html,
body {
    height: 100%;
}

hr {
    margin-top: 15px;
    margin-bottom: 15px;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container,
.wrap > .container-fluid{
    padding: 70px 15px 20px;
}

.break{
    word-break: break-all;
}

.small{
    font-size: .9em !important;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
  }

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.grid-view th a.asc,
.grid-view th a.desc
{
    padding-right: 20px;
    position: relative
}

.grid-view th a.asc:after,
.grid-view th a.desc:after{
    right: 0px;
    bottom: 3px;
    top: auto;
    position: absolute;
}

/* Приглушённый текст — читаемый (4.8:1 на белом); был #ccc (1.6:1) */
.text-muted{
    color: #6b7280 !important;
}
.text-bold{
    font-weight: bold;
}

/* Agreement Tab */
.agreement-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.agreement-actions {
    margin-top: 15px;
    text-align: right;
}

.hint-block {
    display: block;
    margin-top: 5px;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.error-summary ul{
    margin-bottom: 5px;
}

.cursor-pointer{
    cursor: pointer;
}

/* Brown status label, matches the brown status color used in models */
.label-brown{
    background-color: #fbe9d0;
    color: #333;
}

/* Compact alert variant with reduced paddings for inline use */
.alert-sm{
    padding: 5px 10px;
    margin-bottom: 0;
}

/* Spacing between inline footer buttons in Shipping details panel */
#fulfilled-footer .footer-buttons{
    gap: 5px;
}

.multiselect-container>li>a{
  padding: 0;
}
.multiselect-container>li>a>label {
  margin: 0;
  height: 100%;
  cursor: pointer;
  font-weight: 400;
  padding: 3px 20px 3px 40px;
}

.ui-datepicker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  list-style: none;
  background-color: #ffffff;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  *border-right-width: 2px;
  *border-bottom-width: 2px;
  color: #333333;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.428571429;
}
.ui-datepicker{
  box-shadow: 5px 5px rgba(102, 102, 102, 0.1);
  border: 1px solid #efefef;

  -webkit-border-radius: 0;
     -moz-border-radius: 0;
}
.ui-datepicker th,
.ui-datepicker td{
  padding: 0px 5px;
}
.ui-datepicker:before {
  content: '';
  display: inline-block;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
  border-top: 0;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  position: absolute;
}
.ui-datepicker:after {
  content: '';
  display: inline-block;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  border-top: 0;
  position: absolute;
}
.ui-datepicker:before {
  top: -7px;
}
.ui-datepicker:after {
  top: -6px;
}
.ui-datepicker table {
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ui-datepicker table tr td,
.ui-datepicker table tr th {
  text-align: center;
  width: 30px;
  height: 30px;
  border-radius: 4px !important;
  border: none !important;
}
.ui-datepicker table tr td a,
.ui-datepicker table tr th {
  background-color: transparent !important;
  border: none !important;
}
.ui-datepicker table tr td:hover,
.ui-datepicker table tr td.focused {
  background: #eeeeee !important;
  cursor: pointer;
}
.ui-datepicker table tr td.old,
.ui-datepicker table tr td.new {
  color: #999999;
}
.ui-datepicker table tr td.ui-datepicker-current-day{
  background-color: #ffdb99 !important;
  border-color: #ffb733 !important;
}
.ui-datepicker table tr td.ui-datepicker-current-day a{
  color: #000000;
}
.ui-datepicker table td.ui-state-disabled .ui-state-default{
    border: none;
    background: none;
}
.ui-widget-header{
  background: none;
  border: none
}
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover{
  top: 2px
}
.ui-datepicker .ui-datepicker-prev-hover{
  left: 2px
}
.ui-datepicker .ui-datepicker-next-hover{
  right: 2px
}

html.error{
  height: auto !important
}

.has-error input, .has-error textarea, .has-error select{
    /* Ошибка — сплошная красная 1px, как остальные рамки полей (было 2px пунктир с розовым фоном) */
    border: #f87171 1px solid !important;
    background-color: #fff !important;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

form .required label.control-label:after{
    content:" * ";
    color:red;
}

select.input-inline{
  display: inline-block;
  width: auto
}

.form-control[disabled] + .input-group-addon,
.form-control[readonly] + .input-group-addon{
    background-color: #eee;
}

.margin-top-5{
    margin-top: 5px
}
.margin-top-25{
    margin-top: 25px;
}
.margin-top-33{
    margin-top: 33px;
}
.margin-bottom-0{
  margin-bottom: 0
}
.margin-bottom-5{
    margin-bottom: 5px !important;
}
.margin-bottom-15{
  margin-bottom: 15px !important
}
.margin-right-5{
    margin-right: 5px;
}
.margin-negative-top-20{
  margin-top: -20px
}
.margin-negative-top-30{
  margin-top: -30px
}

.padding-top-24{
    padding-top: 24px
}
.mb-0{
    margin-bottom: 0 !important;
}
.mb-30{
    margin-bottom: .3em !important;
}
.mb-50{
    margin-bottom: .5em !important;
}
.mb-1{
    margin-bottom: 1em !important;
}
.mb-2{
    margin-bottom: 2em !important;
}
.my-0{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.my-30{
    margin-top: .3em !important;
    margin-bottom: .3em !important;
}
.my-1{
    margin-top: 1em !important;
    margin-bottom: 1em !important;
}
.mt-0{
    margin-top: 0 !important;
}
.mt-1{
    margin-top: 1em !important;
}
.me-0{
    margin-right: 0 !important;
}
.me-30{
    margin-right: .3em !important;
}
.me-1 {
    margin-right: 1rem !important;
}
.pe-0 {
    padding-right: 0 !important;
}
.px-1{
    padding-left: 1em;
    padding-right: 1em;
}
.px-2{
    padding-left: 2em;
    padding-right: 2em;
}

.brown{
    background-color: #fbe9d0 !important;
}
.brown:hover{
    background-color: #f9deb9 !important;
}

.h-100{
    height: 100%
}

.checkbox input:disabled + i{
    background: #f5f5f5;
    border-color: #efefef;
}

.select-multiple-items-label{
  margin: 0;
  padding-left: 20px;
  display: block
}
.select-multiple-items-label i{
  top: 0
}

#middle div.panel-heading {
    height: auto;
}
#middle div.panel-heading form .form-control{
  height: 34px;
  width: 100%
}
#middle div.panel-heading form label{
  margin-right: 10px
}
#middle div.panel-heading form .btn:not(.btn-xs){
  height: 34px
}

table form{
  margin-bottom: 0
}

@media (max-width: 991px){
  /* Таблицы на узком экране больше не перестраиваются в карточки (одна отправка занимала экран):
     обычная таблица с прокруткой вбок и закреплённой шапкой — раздел «Таблицы кабинета» */
  #middle div.panel-heading{
    height: auto
  }
  #middle div.panel-heading form{
    margin: 0
  }
  #middle div.panel-heading form .form-group{
    margin: 0
  }
}

.input-group .form-control{
  border-right: 0
}
.input-group .form-control:focus ~div{
  border-color: #c6c6c6;
}
.input-group-addon{
  border: #ddd 2px solid;
  background: #fff
}
/* Read-only text before the input */
.input-group-prefix .input-group-addon{
  background-color: #eee;
}
.input-group-prefix .form-control{
  border-left: 0;
  border-right: #ddd 2px solid;
}
.input-group-prefix .form-control:focus{
  border-right-color: #c6c6c6;
}

.input-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.auto-height{
  height: auto !important
}

.reset-line-height{
    line-height: unset;
}

.panel-body .table.detail-view tr:first-child th,
.panel-body .table.detail-view tr:first-child td{
  border-top: none
}

.select2-container{
  width: 100% !important
}
.select2-container .select2-selection--multiple{
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 3px;
  border: #ddd 2px solid
}
.select2-container--default.select2-container--focus .select2-selection--multiple{
  border: #c6c6c6 2px solid
}

.panel-danger>.panel-heading,
.panel-success>.panel-heading{
  padding: 15px 15px;
}

.users-date-filter{
  white-space: nowrap
}
.users-date-filter input{
  max-width: 100px
}

.label-iframe{
  width: 100%;
  min-height: 400px
}

#parcelsGrid .field-parcels-width,
#parcelsGrid .field-parcels-length,
#parcelsGrid .field-parcels-height,
#parcelsGrid .field-parcels-weight{
  max-width: 80px
}

#searchForm{
  width: 500px
}
#searchForm .select2-container--default .select2-selection--single{
  background: transparent;
  padding: 0;
  border: 0;
  margin: 0;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  height: 50px;
}
#searchForm .select2-container--default .select2-selection--single .select2-selection__rendered{
  color: #999;
  height: 50px;
  line-height: 50px;
}
#searchForm .select2-selection__arrow{
  display: none
}

#page-header .title-wrapper h1{
    padding: 0;
    color: #1f2937;
    display: inline-block;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: #fff 0 1px;
    font-size: 22px;
    line-height: 22px;
    margin: 7px 0;
}
.title-wrapper{
  display: flex;
  align-items: center
}
.title-wrapper .title_suffix{
  margin-left: 20px
}

#middle #stock-view-wrapper div.panel-heading{
  height: auto;
}

.has-error .select2-container .select2-selection--single{
  border: #bf6464 2px dashed !important;
  background-color: #fdfbfb !important;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.flex-wrapper{
  display: flex !important;
  align-items: center
}
.flex-justify-space{
    justify-content: space-between;
}
.flex-align-top{
    align-items: start !important;
}
.flex-wrap{
    flex-wrap: wrap;
}

@media (max-width: 991px){
  #panel-1  div.panel-heading form{
    margin-top: 0;
  }
}

@media (max-width: 786px){
  #panel-1  div.panel-heading form{
    margin-top: 10px;
  }
}
.justify-space-between{
  justify-content: space-between;
}

form .pjax > div.row{
  margin-bottom: 0
}

.modal-body.disabled{
    opacity: 0.2;
}

.text-left{
    text-align: left;
}

.user-details-print .user-avatar{
    width: 250px;
}
.user-details-print .user-passport{
    max-width: 100%;
}

.scan-box.scanned{
    animation: shake 1s infinite;
    -webkit-animation: shake 1s infinite;
    -moz-animation: shake 1s infinite;
    -o-animation: shake 1s infinite;
}
.scan-box.scanned .modal-header{
    background: #ccfbf1;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(0, -1px, 0);
    }

    20%, 80% {
        transform: translate3d(0, 2px, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(0, -4px, 0);
    }

    40%, 60% {
        transform: translate3d(0, 4px, 0);
    }
}

.inventory-item-form,
.stock-lot-form,
.product-form{
    margin-left: -15px;
    margin-right: -15px;
}
.inventory-item-form .item-background,
.stock-lot-form .item-background,
.product-form .item-background{
    position: absolute;
    left: 0;
    top: -21px;
    width: 100%;
    height: calc(100% + 42px);
    z-index: 0;
    opacity: .2;
}
.inventory-item-form:last-child,
.stock-lot-form:last-child,
.product-form:last-child{
    margin-bottom: 0
}
.inventory-item-form .item,
.stock-lot-form .item,
.product-form .item{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    padding-right: 25px;
    padding-left: 15px;
}

.inventory-item-form .group,
.stock-lot-form .group,
.product-form .group{
    width: 8%;
    min-width: 170px;
    position: relative;
}
.inventory-item-form .group:not(:last-child),
.stock-lot-form .group:not(:last-child),
.product-form .group:not(:last-child){
    margin-right: 0.5%;
}
.inventory-item-form .group-delete,
.stock-lot-form .group-delete,
.product-form .group-delete{
    position: absolute;
    top: calc(50% - 10px);
    right: 15px;
}
.inventory-item-form .control-label,
.stock-lot-form .control-label,
.product-form .control-label{
    text-align: left;
    font-size: 12px;
}

.sky-form .btn:first-child{
    margin-left: 0;
}
.login-box > .sky-form {
    background-color: #fff;
}

#inventory-view-wrapper .panel-heading{
    height: auto !important;
}

.pay-invoice-wrapper .total-info_line{
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    align-items: center;
}
.pay-invoice-wrapper .total-info_line.amount .txt-1{
    min-width: 60px;
}
.pay-invoice-wrapper .field-payment-currency{
    min-width: 70px;
}
.pay-invoice-wrapper .total-info_line:not(:last-child){
    border-bottom: 1px solid #efefef;
}
.pay-invoice-wrapper .total-info .txt-2{
    color: #1d1d1d;
    font-size: 18px;
}
.pay-invoice-wrapper .total-info .txt-3 {
    color: #6a6a6a;
    font-size: 13px;
}
.pay-invoice-wrapper .total-info .txt-4 {
    color: #5a5959;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
}
.pay-invoice-wrapper .total-info .txt-5 {
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
}
.pay-invoice-wrapper .payment-method{
    display: flex;
    align-items: center;
}
.pay-invoice-wrapper .payment-method:not(:last-child){
    margin-bottom: 10px;
}
.pay-invoice-wrapper .payment-method .text-block{
    width: 45%;
}
.pay-invoice-wrapper .title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.pay-invoice-wrapper .desc {
    font-size: 15px;
    color: #202020;
}
.pay-invoice-wrapper .radio-wrap{
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: 20px;
}
.pay-invoice-wrapper .radio{
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}
.pay-invoice-wrapper .radio .radio-elem{
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}
.pay-invoice-wrapper .radio input:checked + .radio-elem::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    box-sizing: border-box;
}
.pay-invoice-wrapper .payment-method.check {
    border: 1px solid #efefef;
}
#header .logo a{
    display: flex;
    width: 100%;
    height: 100%;
}

#header .logo img{
    max-width: 120px;
}

#items-grid table tfoot td,
.box-items-grid table tfoot td{
    font-weight: 700;
}

.message-widget-button {
    display: flex;
    align-items: center;
    height: 100%;
    padding-bottom: 5px;
}

#log-grid tr td{
    border: none;
    padding-top: 10px;
    padding-bottom: 10px;
}
#log-grid tr td:first-child{
    border-right: 2px solid #efefef;
    position: relative;
    padding-right: 20px;
}
@media (min-width: 1100px){
    #log-grid tr td:first-child{
        width: 126px;
    }
}
@media (min-width: 860px) and (max-width: 992px){
    #log-grid tr td:first-child{
        width: 126px;
    }
}
@media (min-width: 430px) and (max-width: 767px){
    #log-grid tr td:first-child{
        width: 126px;
    }
}
#log-grid tr td:first-child:after{
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 10px;
    position: absolute;
    background: #2dd4bf;
    right: -6px;
    z-index: 1;
    top: 16px;
}
#log-grid tr td:nth-child(2){
    padding-left: 20px
}

.help-desk p{
    margin-bottom: 5px;
}
.help-desk p:not(:last-child):after{
    content: '---';
    display: block;
}

.box-title .icon{
    position: absolute;
    top: 10px;
    right: 0;
    max-width: 50%;
    max-height: calc(75% - 10px);
    font-size: 70px;
    opacity: .6;
}

.stock-shop-icon{
    width: 16px;
}

.cookies-notification{
    background: #333 !important;
    color: white;
}
.cookies-notification a:not(.button-delete){
    color: #0d95e8 !important;
}
.cookies-notification .button-delete{
    padding-top: 0;
    padding-bottom: 0;
}

.pallet-box-box-form .item{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    padding-right: 20px;
}

.pallet-box-box-form .group{
    width: 8%;
    min-width: 170px;
}

.pallet-box-box-form .group:not(:last-child){
    margin-right: 0.5%;
}
.pallet-box-box-form .group-delete{
    min-width: 30px;
    margin-right: -40px;
}
.pallet-box-box-form .control-label{
    text-align: left;
    font-size: 12px;
}


.earned-item{
    margin-right: 20px
}

.channels{
    margin-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
}

/*.warehouse-icon{
    display: block;
    margin-top: 2px;
}*/

select.default{
    border-color: #888;
}
select.danger{
    border-color: #bf6464;
}

body.min .trustpilot-widget{
    display: none;
}

.stock-replenish-qty-form .field-lot-replenish_qty{
    max-width: 75px;
}

.lot-sku-form .field label,
.lot-sku-form .field .help{
    font-size: 80%;
}
.lot-sku-form .lot-sku-field{
    flex: 1 1;
    margin-right: 10px;
}

.courier-rule-form .condition{
    margin: 11px 10px 11px 0;
}
.courier-rule-form .result{
    margin: 11px;
}
.courier-rule-form .courier-rule-add-button{
    margin-left: 10px;
}
.field-courierrule-currency{
    margin-left: 10px;
}
.partner-logo{
    padding: 10px;
}
.partner-logo a{
    display: block;
}
.partner-logo img{
    max-width: 150px;
    max-height: 30px;
}

.stock-lot-form .photos-wrapper .image-item,
.product-form .photos-wrapper .image-item{
    display: flex;
    align-items: center;
}
.stock-lot-form .photos-wrapper .image-item .delete,
.product-form .photos-wrapper .image-item .delete{
    margin-left: 5px;
}

.flex-wrapper.form-fields > div:not(.actions){
    flex: 1 0 200px;
}
.flex-basis-100{
    flex-basis: 100px !important;
}
.flex-basis-150{
    flex-basis: 150px !important;
}
.flex-basis-300{
    flex-shrink: 1 !important;
    flex-basis: 300px !important;
}
.flex-basis-400{
    flex-shrink: 1 !important;
    flex-basis: 400px !important;
}

#header .nav{
    margin: 0 10px
}
#header .dropdown{
    margin: 0
}
.dropdown-language > a .fi{
    margin-right: 5px;
    margin-left: 8px;
}
.dropdown-language .selected-language{
    margin-right: 8px;
}
.dropdown-language .dropdown-menu{
    min-width: unset;
}
#header .delivery-calculator,
#header .delivery-calculator:hover,
#header .delivery-calculator:focus,
#header .delivery-calculator:active{
    color: rgba(255, 255, 255, .68);
    line-height: 50px;
    padding: 0 10px !important;
    background-color: transparent !important;
}
#header li:hover .delivery-calculator{
    color: #fff;
    background-color: rgba(0,0,0,0.1) !important;
}
#header .active .delivery-calculator,
#header .active .delivery-calculator:hover,
#header .active .delivery-calculator:focus,
#header .active .delivery-calculator:active{
    color: #fff;
    background-color: rgba(0,0,0,0.1) !important;
}
#header .dropdown-language .dropdown-item{
    display: block;
    white-space: nowrap;
    padding: 5px 25px;
}
.dropdown-menu > li button {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333333;
    white-space: nowrap;
    width: 100%;
    text-align: left;
}
.dropdown-menu > li button:hover, .dropdown-menu > li button:focus {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}
.dropdown-header{
    margin-top: 9px;
}

#dashboard .border-right-black {
    border-right: 1px solid rgba(0,0,0,0.5);
}

/* Conditional Sticky Flash Messages */
#flashes.sticky-mode {
    z-index: 9999;
    pointer-events: none;
    clear: both;
    position: fixed;
    top: 0;
    right: 15px;
    width: auto;
    max-width: calc(100vw - 30px);
    padding: 10px 0 0;
}

#flashes.sticky-mode .alert {
    pointer-events: auto;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-right: 35px;
}

#flashes.sticky-mode .alert .close {
    position: absolute;
    top: calc(50% - 11px);
    right: 10px;
    cursor: pointer;
}

.padding-right-40 {
    padding-right: 40px !important;
}

#platform-connection .select2-container--default .select2-search--inline .select2-search__field{
    min-width: 150px !important;
}

/* Platform integration cards */
.platform-cards {
    display: flex;
    flex-wrap: wrap;
}
.platform-cards > div {
    margin-bottom: 15px;
}
.platform-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.platform-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.platform-card-connected {
    border-color: #0f766e;
    background: #f0fff0;
}
.platform-card-pending {
    border-color: #f0ad4e;
    background: #fef9e7;
}
.platform-card-not-active {
    border-color: #ccc;
    background: #f5f5f5;
    opacity: 0.7;
}
.platform-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.platform-card-logo {
    flex-shrink: 0;
}
.platform-card-logo .platform-icon {
    width: 36px;
    height: 36px;
}
.platform-card-info {
    min-width: 0;
}
.platform-card-name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}
.platform-card-status {
    margin-top: 2px;
}
.platform-card-actions {
    margin-top: auto;
}
.platform-card-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.platform-switcher {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-bottom: 0;
    cursor: pointer;
}
.platform-switcher-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.platform-switcher-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: background-color 0.3s;
}
.platform-switcher-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.platform-switcher-input:checked + .platform-switcher-slider:before {
    transform: translateX(18px);
}
.platform-card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.platform-card-action-link:hover {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
}
.platform-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.platform-toggle-form {
    margin-bottom: 0;
}
.platform-unlink-form {
    margin-bottom: 0;
    margin-left: auto;
}

/* User shop confirmation */
.user-shop-hidden {
    display: none;
}

/* Agreement signature block — cursive font for the signature cell */
.agreement-signature {
    border-collapse: collapse;
    margin-top: 10px;
}
.agreement-signature th,
.agreement-signature td {
    border: 0;
    padding: 0;
    vertical-align: top;
}
/* Great Vibes — free OFL script font; bundled under cabinet/bundle/fonts/ and shared with the PDF renderer */
@font-face {
    font-family: "Great Vibes";
    src: url("../fonts/GreatVibes-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
.agreement-signature-font {
    font-family: "Great Vibes", cursive;
    font-size: 26px;
}

/* ==== Inbound creation/update wizard ==== */
.inbound-wizard {
    margin-bottom: 20px;
}
.wizard-head {
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}
.wizard-head .fa {
    color: #888;
}
.wizard-steps {
    gap: 12px;
    margin-bottom: 18px;
}
.wizard-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 220px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
}
.wizard-tab:hover,
.wizard-tab:focus {
    text-decoration: none;
    color: #333;
}
.wizard-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    font-size: 13px;
    flex: none;
}
.wizard-tab-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.wizard-tab-title {
    font-weight: 700;
}
.wizard-panel {
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.wizard-panel .panel-heading {
    background: transparent;
    border-bottom: 0;
    padding: 18px 20px 0;
}
.wizard-panel-title {
    font-size: 18px;
    font-weight: 700;
}
.wizard-panel-hint {
    margin-top: 4px;
    text-transform: initial;
}
.wizard-panel-step-label {
    margin-left: auto;
    font-weight: 700;
}
.wizard-panel .panel-body {
    padding: 20px;
}
.wizard-footer {
    display: flex;
    align-items: center;
    background: transparent;
    border-top: 1px solid #ececec;
}
.wizard-footer-left {
    margin-right: auto;
}
.wizard-footer-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
/* .btn-dark — цвет в разделе «Тёмная кнопка — один цвет» в конце файла */
.wizard-advanced {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}
.wizard-toggle {
    display: inline-block;
    font-weight: 600;
    cursor: pointer;
}
.wizard-toggle:hover {
    text-decoration: none;
}
.wizard-advanced-body {
    margin-top: 12px;
}

/* Handling method cards */
.handling-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.handling-method {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: normal;
    cursor: pointer;
}
.handling-method-radio {
    padding-top: 2px;
}
.handling-method-body {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.handling-method-title {
    font-size: 15px;
}
.handling-method-desc {
    color: #6b7280;
}
.handling-note {
    margin: 16px 0;
    padding: 12px 16px;
    background: #eceef1;
    color: #374151;
}
.handling-note-info {
    border-left-color: #2a2370;
}
.handling-note-required {
    border-left-color: #ea580c;
}
.handling-instructions {
    margin-top: 16px;
}
.handling-additional {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.wizard-confirm {
    padding-top: 0;
}
.label-active {
    background-color: #6b7280;
}

/* generic on/off switcher */
.switcher {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin-bottom: 0;
    cursor: pointer;
}
.switcher-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.switcher-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s;
}
.switcher-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.switcher-input:checked + .switcher-slider:before {
    transform: translateX(20px);
}

/* shipping settings rows and rule type cards */
.settings-section-title {
    margin-top: 0;
}
.settings-row,
.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.settings-card {
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.settings-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 8px;
}
.settings-card-body {
    flex: 1 1 auto;
}
.settings-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}
.settings-card-description {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}
.settings-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.settings-tag {
    padding: 3px 10px;
    font-size: 12px;
    color: #475569;
    background-color: #f1f5f9;
    border-radius: 12px;
}
.settings-tag-more {
    color: #6b7280;
    background-color: transparent;
}
.settings-card-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.settings-card-count {
    font-size: 13px;
    color: #6b7280;
}
.settings-card-action {
    white-space: nowrap;
}
.settings-switcher-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}
.settings-switcher-field {
    margin-bottom: 0;
    line-height: 1;
}
.settings-switcher-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.settings-note {
    margin-top: 16px;
    margin-bottom: 0;
}

/* how rules work explainer */
.how-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}
.how-rules-step {
    flex: 1 1 200px;
    padding-left: 32px;
    position: relative;
}
.how-rules-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #2a2370;
    border-radius: 50%;
}
.how-rules-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.how-rules-text {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}
/* Products list */
.lot-grid > table > tbody > tr > td {
    height: 52px;
    vertical-align: middle;
}
/* Label holds only an absolute icon, give it the icon height to center it */
.lot-grid .select-multiple-items-label {
    height: 19px;
}
.lot-grid .photo-item {
    margin: 0;
    padding: 0;
}
.lot-characteristics {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}
#lot-filters .select2-container {
    display: block;
}
.lot-filter-buttons {
    align-self: flex-end;
    white-space: nowrap;
}
.lot-filter-chips {
    margin-bottom: 10px;
}
.lot-filter-chip {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 2px 10px;
    font-size: 12px;
    color: #333;
    background: #eee;
    border-radius: 12px;
}
.lot-filter-chip:hover {
    color: #333;
    background: #ddd;
    text-decoration: none;
}
#lot-filter-error {
    margin-bottom: 10px;
}
.ajax-loading {
    position: relative;
    opacity: .5;
    pointer-events: none;
}
.ajax-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid #ccc;
    border-top-color: #2a2370;
    border-radius: 50%;
    animation: ajax-loading-spin .8s linear infinite;
}
@keyframes ajax-loading-spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
    .lot-characteristics {
        max-width: 160px;
    }
}

.tutorial-description img {
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

/* Поля ввода кабинета: тонкая светлая рамка (1px вместо темы 2px), скругление 6px, светлее серый у недоступных
   полей. Высота прежняя (40px) — соседние кнопки рассчитаны на неё */
.form-control,
.select2-container .select2-selection,
.select2-dropdown,
.input-group-addon {
    border-width: 1px;
    border-color: #d3d8de;
    border-radius: 6px;
}
.input-group-addon {
    border-right-width: 0;
}

/* Выпадающий список: своя стрелка с отступом от края — системная прилипала к правой рамке */
select.form-control:not([multiple]):not([size]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7178' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}
select.form-control::-ms-expand {
    display: none;
}
.form-control:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: #9ca7b3;
    box-shadow: 0 0 0 3px rgba(185, 194, 204, .25);
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
.select2-container--disabled .select2-selection {
    background-color: #f6f7f9;
    border-color: #e0e4e8;
    color: #6b7178;
}
textarea.form-control {
    border-radius: 6px;
}

/* Группы «поле + кнопка»: наружные углы скруглены так же, внутренние — прямые, как в Bootstrap */
.input-group > .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.input-group > .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Стрелка select2 — такая же, как у обычных списков */
.select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 100%;
    width: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7178' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 8px;
}
.select2-container .select2-selection--single .select2-selection__arrow b {
    display: none;
}
.select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: rotate(180deg);
}

/* ==== Shipment creation wizard (SHP-01…10) — тот же язык, что у мастера Inbound ==== */
.shipment-wizard ::selection { background: #f3f2fa; }
.shipment-wizard a:focus-visible,
.shipment-wizard .btn:focus-visible { outline: 2px solid #2a2370; outline-offset: 2px; }
.shipment-wizard .tabular { font-variant-numeric: tabular-nums; }
.shipment-wizard-head { display: flex; justify-content: flex-end; margin: -6px 0 10px; }

.shipment-steps { margin-bottom: 16px; }
.shipment-steps-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.shipment-step-link { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; color: #333; text-decoration: none; transition: border-color .15s ease-out, background-color .15s ease-out; }
.shipment-step-link:hover, .shipment-step-link:focus { color: #111827; text-decoration: none; border-color: #e2dff2; }
.shipment-step-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #4b5563; font-size: 13px; font-weight: 600; }
.shipment-step.is-needs-fix .shipment-step-num { background: #fef3c7; color: #b45309; }
.shipment-step.is-later .shipment-step-num { background: #e2e8f0; color: #475569; }
.shipment-step-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.shipment-step-title { font-weight: 700; font-size: 13px; }
.shipment-step-sub { overflow: hidden; color: #6b7280; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.shipment-step.is-needs-fix .shipment-step-sub { color: #b45309; }

.shipment-wizard-panel .panel-heading .flex-wrapper { align-items: flex-start; gap: 8px; }
.shipment-wizard-title { margin: 0; font-size: 18px; line-height: 1.3; }
.shipment-wizard-panel .wizard-panel-step-label { white-space: nowrap; }
/* Липнет форма с кнопками: её контейнер — вся панель шага, так кнопки видны на длинном шаге */
#wizard-nav-form { position: sticky; bottom: 0; z-index: 5; }
.shipment-wizard-footer { gap: 8px; padding: 12px 20px; background: #fafafa; border-radius: 0 0 10px 10px; box-shadow: var(--dock-shadow); }
.shipment-wizard-back { padding-left: 0; color: #374151; }

.wizard-section { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.wizard-section-title, .shipment-wizard legend.wizard-section-title { display: block; width: auto; margin: 0 0 10px; padding: 0; border: 0; color: #111827; font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: none; }
.wizard-section-title small { font-weight: normal; }
.shipment-wizard .help-block { font-size: 12px; color: #6b7280; }
.shipment-wizard .has-error .help-block { color: #b91c1c; }
.wizard-step-errors ul { padding-left: 18px; margin-top: 4px; }
.wizard-source-note .fa { margin-right: 4px; }

/* Флаг страны перед её названием или кодом (app\helpers\CountryFlag, флаг склада) — SVG flag-icons, 4:3 */
.country-flag { display: inline-block; flex: none; width: 18px; height: 13.5px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; background-size: cover; box-shadow: 0 0 0 1px rgba(17, 24, 39, .08); }
.warehouse-icon.country-flag { width: 16px; height: 12px; margin-right: 4px; }
/* Кабинет: между полями форм по вертикали 16px — стандарт для страниц и окон. Было 27–37: пустой блок ошибки (5+10),
   отступ группы (15), общий form .row (20, essentials) и обёртки .margin-bottom-10. Ошибка или подсказка под полем — 6px от поля */
#content .form-group:not(.mb-0), .modal .form-group:not(.mb-0) { margin-bottom: 16px; }
#content .help-block, .modal .help-block { margin: 6px 0 0; }
#content .help-block:empty, .modal .help-block:empty { display: none; }
#content form .row, .modal form .row { margin-bottom: 0; }
#content form .margin-bottom-10:has(> .form-group), .modal form .margin-bottom-10:has(> .form-group) { margin-bottom: 0 !important; }
/* Карточки выбора — по две в ряд на всю ширину; нечётная последняя — на всю строку, без дыры; на телефоне — одна колонка */
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.purpose-grid > .purpose-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .purpose-grid { grid-template-columns: minmax(0, 1fr); } }
.purpose-card { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; font-weight: normal; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.purpose-card:hover { border-color: #e2dff2; }
/* Рамка фокуса — только с клавиатуры: после клика мышью радио в фокусе, и к рамке выбора добавлялась вторая линия */
.purpose-card:has(.purpose-card-input:focus-visible) { outline: 2px solid #2a2370; outline-offset: 2px; }
.purpose-card-input { position: absolute; opacity: 0; pointer-events: none; }
.purpose-card-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 16px; }
.purpose-card-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.purpose-card-title { color: #111827; font-size: 14px; font-weight: 600; }
.purpose-card-text { color: #6b7280; font-size: 13px; }

.shipment-wizard-aside { position: sticky; top: 16px; }
.wizard-summary { padding: 16px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wizard-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.wizard-summary-title { color: #111827; font-size: 15px; font-weight: 700; }
.wizard-save-status { font-size: 12px; color: #6b7280; }
.wizard-save-status.is-saved { color: #0f766e; }
.wizard-save-status.is-failed, .wizard-save-status.is-rejected { color: #b91c1c; }
.wizard-summary-list { margin: 0; }
.wizard-summary-list dt { color: #6b7280; font-size: 12px; font-weight: normal; }
.wizard-summary-list dd { margin: 0 0 10px; color: #111827; font-size: 14px; overflow-wrap: anywhere; }
.wizard-summary-ready { margin-top: 4px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.wizard-summary-ready.is-open { background: #f8fafc; color: #475569; }
.wizard-summary-ready.is-ready { background: #f0fdf4; color: #166534; }

.wizard-lines td { vertical-align: middle !important; }
.wizard-lines-photo { width: 52px; }
.wizard-lines-qty { width: 110px; }
.wizard-lines-qty .help-block { margin: 2px 0 0; }
.wizard-lines-title { display: -webkit-box; overflow: hidden; color: #111827; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.wizard-remove { color: #9ca3af; }
.wizard-remove:hover, .wizard-remove:focus { color: #b91c1c; }

.wizard-search { max-width: 560px; }
.wizard-picker { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wizard-picker-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f1f5f9; }
.wizard-picker-row:first-child { border-top: 0; }
.wizard-picker-row.is-selected { background: #f8fbff; }
.wizard-picker-row.is-blocked .wizard-picker-icon, .wizard-picker-row.is-blocked .wizard-lines-title { opacity: .6; }
.wizard-picker-photo, .wizard-picker-icon { flex: none; width: 40px; }
.wizard-picker-icon { display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; background: #f1f5f9; color: #475569; }
.wizard-picker-body { flex: 1 1 auto; min-width: 0; }
.wizard-picker-action { flex: none; text-align: right; }
.wizard-blocker { margin-top: 2px; color: #b45309; }
.wizard-contents { margin-top: 2px; color: #374151; }
.wizard-add-form { display: flex; align-items: center; gap: 6px; }
.wizard-add-form input { width: 72px; height: 32px; margin: 0; }
.wizard-empty { padding: 14px 16px; background: #fff; border: 1px dashed #d3d8de; border-radius: 10px; color: #6b7280; }

.wizard-operation { margin-bottom: 20px; padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wizard-operation-title { color: #111827; font-size: 15px; font-weight: 600; }
.wizard-measure { margin-top: 6px; padding: 10px 14px; background: #f1f5f9; border-radius: 8px; color: #475569; }
.wizard-measure .fa { margin-right: 6px; }
.wizard-fba-lines { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 16px; }
.wizard-fba-line { padding: 14px 0 4px; border-top: 1px solid #eef0f3; }
.wizard-fba-line:first-child { border-top: 0; }
.wizard-fba-line-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.wizard-fba-line .field { margin-bottom: 10px; }

.wizard-fee { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 24px 0 0; }
.wizard-fee dt { color: #6b7280; font-weight: normal; }
.wizard-fee dd { margin: 0; font-variant-numeric: tabular-nums; }

.wizard-doc { margin-bottom: 10px; padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wizard-doc.is-missing { border-color: #fcd34d; background: #fffdf5; }
.wizard-doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wizard-doc-title { color: #111827; font-weight: 600; }
.wizard-doc-need { color: #6b7280; white-space: nowrap; }
.wizard-doc.is-missing .wizard-doc-need { color: #b45309; }
.wizard-doc-file { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.wizard-doc .form-group { margin-top: 8px; }

.wizard-instruction { margin-bottom: 16px; padding: 16px 18px; background: #111827; border-radius: 10px; color: #fff; }
.wizard-instruction-label { color: #9ca3af; font-size: 12px; }
.wizard-instruction-text { margin-top: 2px; font-size: 17px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.wizard-readiness { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wizard-ready { padding: 12px 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; }
.wizard-ready.is-ready { border-color: #99f6e4; background: #f0fdf4; color: #166534; }
.wizard-ready-title { font-weight: 700; color: inherit; }
.wizard-ready.is-open .wizard-ready-title { color: #111827; }
.wizard-ready.is-open .fa { color: #9ca3af; }
.wizard-ready ul { margin: 6px 0 0; padding-left: 18px; color: #374151; }
.wizard-review { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wizard-review-block { padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; min-width: 0; }
.wizard-review-block header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.wizard-review-block h3 { margin: 0; color: #111827; font-size: 14px; font-weight: 700; }
.wizard-review-block dl { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 4px 12px; margin: 0; }
.wizard-review-block dt { color: #6b7280; font-weight: normal; }
.wizard-review-block dd { margin: 0; overflow-wrap: anywhere; }
.wizard-review-list { margin: 0; padding-left: 18px; }
.wizard-review-cost { grid-column: 1 / -1; }

@media (max-width: 991px) {
    .shipment-wizard-aside { position: static; margin-top: 4px; }
}
@media (max-width: 767px) {
    .shipment-steps { margin: 0 -16px 14px; }
    .shipment-steps-list { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .shipment-steps-list::-webkit-scrollbar { display: none; }
    .shipment-step { flex: 0 0 auto; width: 168px; scroll-snap-align: start; }
    .wizard-readiness, .wizard-review { grid-template-columns: 1fr; }
    .shipment-wizard-footer { padding: 10px 12px; }
    .shipment-wizard-footer .wizard-footer-left { flex: none; }
    .shipment-wizard-footer .wizard-footer-right { flex: 1 1 auto; min-width: 0; }
    .shipment-wizard-footer .wizard-footer-right { gap: 6px; }
    .shipment-wizard-footer .wizard-footer-right .btn { flex: 1 1 auto; min-width: 0; padding-left: 10px; padding-right: 10px; }
    .shipment-wizard-back { padding: 6px 8px; }
    .wizard-picker-row { flex-wrap: wrap; }
    .wizard-picker-row { align-items: flex-start; }
    .wizard-picker-row .wizard-picker-body { flex: 1 1 0; }
    .wizard-picker-action { width: 100%; text-align: left; padding-left: 52px; }
    .wizard-review-block dl { grid-template-columns: 1fr; gap: 0; }
    .wizard-review-block dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .shipment-step-link, .purpose-card, .purpose-card::after { transition: none; }
}

/* ==== Кнопки кабинета — один стиль ====
 * Тема и Bootstrap 3 давали разное: скругление 3, 4 и 20 px, обычный и жирный шрифт, капс в заголовках панелей,
 * разную высоту у <a> и <button>. Теперь у всех кнопок любого размера: скругление 6 px как у полей, полужирный 14 px без капса,
 * высота по размеру — 40 (как поле), 32 (sm), 24 (xs), 48 (lg). Цвета — прежние, по смыслу кнопки.
 */
.btn,
a.btn {
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
    padding: 9px 16px;
    height: auto;
    min-height: 40px;
    box-shadow: none;
    transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn-sm, a.btn.btn-sm, .btn-group-sm > .btn {
    border-radius: 6px;
    font-size: 13px;
    line-height: 20px;
    padding: 5px 12px;
    min-height: 32px;
}
.btn-xs, a.btn.btn-xs, .btn-group-xs > .btn {
    border-radius: 6px;
    font-size: 12px;
    line-height: 18px;
    padding: 2px 8px;
    min-height: 24px;
}
.btn-lg, a.btn.btn-lg, .btn-group-lg > .btn {
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
    padding: 11px 20px;
    min-height: 48px;
}
.btn-link { font-weight: 600; }
.panel-heading .btn, .panel-heading a.btn { text-transform: none; }
.btn:active, .btn.active { box-shadow: none; }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: .5; }

/* Второстепенная кнопка — в тон полям */
.btn-default:hover, .btn-default:focus, .btn-default.focus { background-color: #f6f7f9; border-color: #b9c2cc; color: #111827; }

/* ==== Верх карточки отправки (SHP-09): статус, готовность, следующее действие ==== */
.shipment-top .panel-body { padding: 16px 20px; }
.shipment-top-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.shipment-top-title { font-size: 20px; font-weight: 700; color: #111827; line-height: 28px; }
.shipment-top-title .label { font-size: 12px; font-weight: 600; vertical-align: 3px; margin-left: 6px; }
.shipment-top-ref { color: #4b5563; font-size: 13px; }
.shipment-top-next { flex: 1 1 280px; max-width: 520px; padding: 10px 14px; border-radius: 6px; background: #f6f7f9; border: 1px solid #e5e7eb; color: #111827; font-size: 13px; }
.shipment-top-next.is-client { background: #fffbeb; border-color: #fde68a; }
.shipment-top-next-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 2px; }
.shipment-top-approve { margin: 8px 0 0; }
.shipment-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; }
.shipment-top-grid dt { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }
.shipment-top-grid dd { margin: 0; color: #111827; font-size: 14px; overflow-wrap: anywhere; }
.shipment-top-grid dd.is-ok { color: #166534; }
.shipment-top-grid dd.is-wait { color: #92400e; }
.shipment-top-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.shipment-top-awaited { color: #92400e; font-style: normal; }
@media (max-width: 767px) {
    .shipment-top .panel-body { padding: 14px 16px; }
    .shipment-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ссылка ждёт, пока дойдут сохранения полей (script.js) */
a.is-waiting { cursor: progress; opacity: .6; pointer-events: none; }

/* Журнал в карточке на телефоне был шире экрана — прокрутка внутри блока, длинный текст переносится */
#log-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#log-grid td { overflow-wrap: anywhere; }

/* ==== План упаковки по коробкам (мастер, шаг 3, SHP-05) ==== */
.wizard-plan-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wizard-plan-box { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px 12px; margin: 0; min-width: 0; background: #fff; }
.wizard-plan-box-head { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0 0 8px; padding: 0 0 6px; border: 0; border-bottom: 1px solid #f0f1f3; font-size: 14px; font-weight: 600; color: #111827; }
.wizard-plan-box-head .btn { min-height: 24px; padding: 0 6px; color: #6b7280; }
.wizard-plan-field { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 400; }
.wizard-plan-field > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #374151; }
.wizard-plan-field .form-control { text-align: right; }
.wizard-plan-dims { margin-top: 8px; }
.wizard-plan-dims-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.wizard-plan-dims-row .form-control { padding-left: 8px; padding-right: 8px; text-align: right; }
.wizard-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wizard-plan-check { margin-bottom: 10px; }
.wizard-plan-check th { font-size: 12px; font-weight: 600; color: #6b7280; }
.wizard-plan-check tr.is-ok td:nth-child(2) { color: #166534; }
.wizard-plan-check tr.is-off td:nth-child(2) { color: #92400e; font-weight: 600; }
.wizard-plan-field.is-pallet { grid-template-columns: minmax(0, 1fr) 130px; }
.wizard-plan-field.is-pallet .form-control { text-align: left; }

/* Ставка по тарифу клиента у вариантов (INB-01, COM-05) */
.handling-method-rate { display: block; }
.wizard-rate { margin-top: 4px; }

/* ==== Карточки (panel), окна, well — скругление как у карточек мастера (10px), в тон кнопкам и полям (6px) ====
   Тема обнуляет углы у .panel и всех её частей. overflow: hidden не ставим — обрезал бы выпадающие меню
   и подсказки внутри карточки, — скругляем первый и последний блок сами. Внутренний радиус 9px = 10px − рамка. */
.panel { border-radius: 10px; }
.panel > :first-child,
.panel > form:first-child > :first-child,
.panel > .table-responsive:first-child > .table:first-child { border-top-left-radius: 9px; border-top-right-radius: 9px; }
.panel > :last-child,
.panel > form:last-child > :last-child,
.panel > .table-responsive:last-child > .table:last-child { border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; }
/* Таблица прямо в карточке: углы у крайних ячеек (фон строк иначе торчит квадратом) */
.panel > .table:first-child > thead:first-child > tr:first-child > th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child > th:first-child { border-top-left-radius: 9px; }
.panel > .table:first-child > thead:first-child > tr:first-child > th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child > th:last-child { border-top-right-radius: 9px; }
.panel > .table:last-child > tbody:last-child > tr:last-child > td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child > td:first-child { border-bottom-left-radius: 9px; }
.panel > .table:last-child > tbody:last-child > tr:last-child > td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child > td:last-child { border-bottom-right-radius: 9px; }
.panel-group .panel + .panel { margin-top: 8px; }
/* Плашки темы .box (склад на главной, итоги на Referrals), вкладки, рамка таблицы на телефоне — те же углы */
.box { border-radius: 10px; }
.box > :first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.box > :last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
/* Плашки .box: внутри было 10px по бокам — тесно. 16×20, на телефоне 14×16; число — главное, подпись — над ним */
.box { padding: 16px 20px; }
.box .box-title h4 { margin: 0; font-size: 15px; font-weight: 600; opacity: .92; }
.box .box-body { font-size: 20px; font-weight: 600; line-height: 28px; font-variant-numeric: tabular-nums; }
.box .box-body .btn { font-size: 14px; line-height: normal; }
@media (max-width: 767px) {
    .box { padding: 14px 16px; }
}
.nav-tabs + .tab-content { border-radius: 0 0 10px 10px; }
@media (max-width: 767px) {
    .table-responsive { border-radius: 6px; }
}
.modal-content > :first-child { border-top-left-radius: 9px; border-top-right-radius: 9px; }
.modal-content > :last-child { border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; }
.well { border-radius: 10px; }
.alert { border-radius: 6px; }

/* Плашки-счётчики на главной кабинета: число крупно, подпись меньше — «Low On Stock» в одну строку */
#dashboard .dashboard-stat-value { font-size: 18px; line-height: 24px; }
#dashboard .dashboard-stat-label { font-size: 14px; line-height: 20px; }
#dashboard .panel-footer .col-xs-4 { padding-left: 4px; padding-right: 4px; }

/* ==== Типографика кабинета — одна шкала ====
   Заголовок страницы 22/600 · заголовок карточки 13/600 капсом · раздел внутри карточки 16/600 ·
   текст и таблицы 13–14 · подписи полей 13/600 · мелкий текст и подсказки 12 · метки 11/600.
   :where() держит вес и цвет слабее своих классов (заголовок мастера, белый текст на цветных плашках). */

/* Заголовок карточки: был Arial 700 серым (<strong>) или Open Sans 400 — теперь один вид */
.panel > .panel-heading { font-family: "Open Sans", Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.panel > .panel-heading strong { font-family: inherit; }
:where(.panel > .panel-heading) strong { font-weight: 600; color: inherit; }
:where(.panel > .panel-heading) small { letter-spacing: 0; font-weight: 400; }

/* Раздел внутри карточки (h4): было 18px с весом 500 или 600. Цвет не трогаем — на цветных плашках он белый */
:where(.panel-body, .settings-section) h4:not(.modal-title), .settings-section-title { font-size: 16px; font-weight: 600; line-height: 22px; }

/* Таблицы: плотнее и темнее, шапка — как подписи полей */
.table > thead > tr > th, .table > tfoot > tr > th { font-size: 13px; font-weight: 600; color: #374151; }
.table > tbody > tr > td, .table > tfoot > tr > td { font-size: 13px; color: #374151; }

/* Подписи полей: в формах было 14/400, в фильтрах 11.9 — одна подпись 13/600 */
.form-group > label, label.control-label { font-size: 13px; font-weight: 600; }

/* Мелкий текст и подсказки: было 11.9 / 12.6 / 9.45 */
small, .small { font-size: 12px; }
.help-block, .hint-block { font-size: 12px; color: #6b7280; }

/* Метки статусов и счётчики: были 10.5px */
.label { letter-spacing: .01em; }

/* Карточки-итоги на главной: было 24px — на телефоне занимали полэкрана. Заголовок и итог 18px */
#dashboard .panel-body h3.weight-700 { color: #111827; font-size: 18px; line-height: 26px; }
#dashboard .panel-body h3.pull-right.small { font-size: 13px; line-height: 26px; }
@media (max-width: 767px) {
    #page-header .title-wrapper h1 { font-size: 18px; line-height: 24px; }
}

/* ==== Таблицы кабинета ====
   Строка залита цветом статуса, как привыкли клиенты, но светлее: насыщенные оранжевый, розовый и жёлтый
   подряд читались тяжело. Наведение — чуть темнее того же цвета. */
.table > tbody > tr.danger > td { background-color: #fef2f2; }
.table > tbody > tr.warning > td { background-color: #fffbeb; }
.table > tbody > tr.success > td { background-color: #f0fdfa; }
.table > tbody > tr.info > td { background-color: #f3f2fa; }
.table > tbody > tr.active > td { background-color: #f7f8f9; }
.table > tbody > tr.brown { background-color: #fff7ed !important; }
.table-hover > tbody > tr.danger:hover > td { background-color: #fee2e2; }
.table-hover > tbody > tr.warning:hover > td { background-color: #fef3c7; }
.table-hover > tbody > tr.success:hover > td { background-color: #ccfbf1; }
.table-hover > tbody > tr.info:hover > td { background-color: #f3f2fa; }
.table-hover > tbody > tr.active:hover > td { background-color: #eef0f2; }
.table-hover > tbody > tr.brown:hover { background-color: #ffedd5 !important; }
/* Полоса цвета статуса у левого края строки — вместе со светлой заливкой */
.table > tbody > tr.danger > td:first-child { box-shadow: inset 3px 0 0 #f87171; }
.table > tbody > tr.warning > td:first-child { box-shadow: inset 3px 0 0 #fbbf24; }
.table > tbody > tr.success > td:first-child { box-shadow: inset 3px 0 0 #2dd4bf; }
.table > tbody > tr.info > td:first-child { box-shadow: inset 3px 0 0 #38bdf8; }
.table > tbody > tr.brown > td:first-child { box-shadow: inset 3px 0 0 #fb923c; }
.table > tbody > tr.active > td:first-child { box-shadow: inset 3px 0 0 #9ca3af; }
/* Поле на цветной плашке .box (склад на главной) — как все поля */
.box .form-control { border-color: #d3d8de; }

/* Метка статуса в строке — в тон заливке строки */
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }

/* Широкий экран: таблица в своём блоке прокрутки (GridView::renderItems), шапка закреплена, без переносов.
   До 992px строки показываются карточками — блок ничего не меняет */
@media (min-width: 992px) {
    .grid-scroll { overflow: auto; max-height: calc(100vh - 160px); border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
    .grid-scroll > .table { margin-bottom: 0; border: 0; }
    .grid-scroll > .table > thead > tr > th { position: sticky; top: 0; z-index: 2; background: #eef0f3; border-bottom: 0; white-space: nowrap; vertical-align: middle; }
    .grid-scroll > .table > thead > tr > th a { color: #374151; }
    .grid-scroll > .table > tbody > tr > td { white-space: nowrap; vertical-align: top; }
    .grid-scroll > .table > thead > tr > th, .grid-scroll > .table > tbody > tr > td { padding: 8px 10px; }
    .grid-scroll > .table > tbody > tr:first-child > td { border-top: 0; }
    /* Длинное название товара — одной строкой не шире 360px, полностью — в подсказке */
    .grid-scroll .lot-title { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
}

/* ==== Мелкие элементы — те же углы (по проходу всех страниц кабинета) ==== */

/* Пагинация: отдельные кнопки 32px со скруглением 6px вместо слитной полосы с прямыми углами. Цвета темы */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; }
.pagination > li { display: block; }
.pagination > li > a, .pagination > li > span,
.pagination > li:first-child > a, .pagination > li:first-child > span,
.pagination > li:last-child > a, .pagination > li:last-child > span {
    float: none; margin-left: 0; display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px; border-radius: 6px; border-color: #d3d8de;
    font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.pagination > li > a { color: #374151; }
.pagination > li > a:hover, .pagination > li > a:focus { background-color: #f6f7f9; border-color: #b9c2cc; color: #111827; }
.pagination > .disabled > span, .pagination > .disabled > a { color: #b4bcc6; background-color: #fff; border-color: #e5e7eb; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover,
.pagination > .active > a:focus, .pagination > .active > span:focus { background-color: #762dc4; border-color: #762dc4; color: #fff; }

/* Вкладки: тема ставила углы 0 с !important */
.nav-tabs > li > a { border-radius: 6px 6px 0 0 !important; }

/* Метки и счётчики: были 2.75–3px */
.badge { border-radius: 999px; }

/* Выпадающие меню, подсказки, всплывающие окна */
.dropdown-menu { border-radius: 8px; border-color: #e5e7eb; box-shadow: 0 8px 24px rgba(17, 24, 39, .12); padding: 4px 0; }
.dropdown-menu > li > a, .dropdown-menu > li > button { border-radius: 0; }
.popover { border-radius: 8px; }
.ui-datepicker { border-radius: 8px; }
.select2-container--default .select2-dropdown, .select2-dropdown { border-radius: 6px; }

/* Кнопки соцсетей на Referrals */
a.popup { border-radius: 6px; }

/* Цифры в таблицах и пагинации — одной ширины, столбцы не прыгают */
.table > tbody > tr > td { font-variant-numeric: tabular-nums; }

/* Прокрутка таблицы — системный ползунок, тонкий, в тон рамкам: на Mac скрывается до прокрутки, на Windows виден */
.grid-scroll { scrollbar-width: thin; scrollbar-color: #c5ccd4 transparent; }

/* Выделение текста — цветом кабинета, не системным */
::selection { background: #cfe0f5; color: #111827; }

/* Поле выбора файла: системная кнопка браузера — в вид второстепенной кнопки кабинета */
input[type="file"]::file-selector-button { margin-right: 10px; padding: 0 12px; height: 28px; border: 1px solid #d3d8de; border-radius: 6px; background: #fff; color: #374151; font: 600 13px "Open Sans", Arial, sans-serif; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #f6f7f9; border-color: #b9c2cc; }
input[type="file"].form-control { padding-top: 5px; padding-bottom: 5px; }

/* Иерархия в ячейке таблицы: главное значение темнее, второстепенное — светлее и мельче
   (как в таблицах, где глаз сначала ловит имя и сумму, потом подробности) */
.table .cell-main { color: #111827; font-weight: 600; }
.table .cell-dark { color: #111827; }
.table .cell-muted { color: #6b7280; }
.table .cell-main a, .table .cell-dark a { font-weight: inherit; }
/* Длинный текст (описание в журнале) переносится, иначе журнал уходит в одну бесконечную строку */
.grid-scroll > .table > tbody > tr > td.cell-wrap { white-space: normal; min-width: 280px; max-width: 560px; }
.table .cell-sub, .table td small, .table td .small, .table td .text-muted { color: #6b7280; font-size: 12px; }
span.cell-sub { font-size: 12px; }
.table .lot-title { color: #111827; font-weight: 600; }
.table td .label { color: #fff; }

/* Кнопки «поделиться» (rrssb): скрипт библиотеки подбирает шрифт под ширину колонки — кнопка Facebook
   выходила 57px с текстом 22px, крупнее поля рядом. Размер — как у кнопок кабинета, цвет — фирменный */
.share-links .rrssb-buttons { font-size: 14px !important; height: auto !important; }
.share-links .rrssb-buttons li { height: 40px !important; }
.share-links .rrssb-buttons li a { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px !important; border-radius: 6px; font-size: 14px !important; font-weight: 600; text-transform: none; }
.share-links .rrssb-buttons li a .rrssb-icon { position: static !important; display: inline-flex; width: 16px !important; height: 16px; padding: 0 !important; }
.share-links .rrssb-buttons li a .rrssb-icon svg { width: 16px !important; height: 16px !important; top: 0 !important; left: 0 !important; position: static !important; }
.share-links .rrssb-buttons li a .rrssb-text { position: static !important; font-size: 14px !important; text-transform: capitalize; }

/* ==== Шапка и боковое меню — цвет сайта ====
   Было серо-зелёное #5a6667, с сайтом не связанное. Теперь тёмно-синий заголовков сайта (#001064), смягчённый
   и уходящий в индиго — намёк на фиолетовый сайта (#762dc4). Активный пункт — мягкая фиолетовая подложка
   и полоса 3px главного розового сайта (#fc427b). Текст меню на этом фоне — контраст больше 9:1 */
#header { background: var(--nav-bg); }
#aside, #asidebg { background: linear-gradient(180deg, #1a2050 0%, #221d58 55%, #2a1d60 100%); }
#aside .nav-list > li, #aside .nav-list > li > a { background-color: transparent; border-color: rgba(255, 255, 255, .06); }
#aside .nav-list > li > a:hover, #aside ul ul a:hover { background-color: rgba(140, 92, 230, .12); color: #fff; }
#aside .nav-list > li.active > a { background-color: rgba(140, 92, 230, .22); color: #fff; box-shadow: inset 3px 0 0 #fc427b; }
#aside ul ul li.active > a { color: #fff; }
#header .logo { border-color: rgba(255, 255, 255, .06); }
/* Тема (green.css) красит в серо-зелёный и раскрытые пункты, наведение, Dashboard, логотип —
   прозрачные поверх градиента; у свёрнутого меню выпадающие подменю — сплошной индиго */
#aside nav ul li.menu-open, #aside nav ul li.always-open, #aside nav ul li.active,
#aside nav ul li a.dashboard, #aside .logo { background-color: transparent; }
#aside nav > ul > li > a:hover, #aside nav > ul > li > a:focus { background-color: rgba(140, 92, 230, .12); }
#aside nav ul li.active > a, #aside nav ul > li.active:hover > a { background-color: rgba(140, 92, 230, .22); box-shadow: inset 3px 0 0 #fc427b; }
#aside nav ul li.active > ul, #aside nav ul li.menu-open > ul { background-color: rgba(10, 8, 40, .22); }
body.min #aside ul.nav > li > ul li, body.min #aside ul.nav li.menu-open, body.min #aside ul.nav > li:hover > ul { background-color: #221d58; }
body.min #aside ul.nav > li:hover:before { border-right-color: #221d58; }

/* Шапка: аватар круглый, подписи светлее серого темы */
#header img.user-avatar { border-radius: 50%; border-color: rgba(255, 255, 255, .35); object-fit: cover; }
#aside nav ul li ul li.active > a { box-shadow: none; font-weight: 600; }

/* Буквенный аватар (app\helpers\Avatar), если фото нет */
#header .user-avatar-initials { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background-color: #762dc4; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.profile-avatar-initials { background-color: #762dc4; display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 160px; max-width: 100%; border-radius: 50%; color: #fff; font-size: 56px; font-weight: 600; letter-spacing: .02em; }

/* Счётчики в боковом меню: были разной высоты, у красного иконка и число вставали в две строки
   (тема при открытом меню ставит всем span в пункте display: block !important).
   Одна плашка: высота 20px, скругление 6px, число по центру, ширина растёт с числом */
#aside nav ul li a .label,
body.menu-open #aside ul.nav > li > a span.label {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 4px;
    height: 20px; min-width: 22px; padding: 0 6px !important; margin-top: 0; border-radius: 6px;
    font-size: 11px; font-weight: 600; line-height: 20px !important; white-space: nowrap; font-variant-numeric: tabular-nums;
}
#aside nav ul li a .label .small, #aside nav ul li a .label i,
body.menu-open #aside ul.nav > li > a span.label span { display: inline !important; font-size: 11px; line-height: 20px; margin: 0 !important; }
#aside nav ul li a .label + .label, #aside nav ul li a .label.margin-left-10 { margin-left: 6px !important; }

/* Телефон: строка шапки (почта, калькулятор, язык, аватар, баланс) переносится под шапку и рисовалась поверх
   открытого меню — «Dashboard» наезжал на значки. Пока меню открыто, строка скрыта: меню её перекрывает */
@media (max-width: 767px) {
    body.menu-open #header > *:not(.logo):not(#mobileMenuBtn) { display: none !important; }
}

/* ==== Текст на тёмном фоне шапки и меню — белый с прозрачностью, без серых ====
   Серые темы (#939da8, #9da9b7, #c2c9c9) на индиго выглядели грязно. Уровни: основное 86%, второстепенное 68%,
   подписи разделов и стрелки 45%, активное и наведение — 100% */
#header, #header nav a, #header nav ul li a, #header .user-name, #header .selected-language,
#header nav i, #header button i, #header div.pull-right > span:not(.label) { color: rgba(255, 255, 255, .68); }
#header nav a:hover, #header nav a:focus, #header nav a:hover i, #header .dropdown.open > a { color: #fff; }
#header .user-name { color: rgba(255, 255, 255, .86); }
#aside nav ul li a, #aside nav ul li a i.main-icon { color: rgba(255, 255, 255, .86); }
#aside nav ul li ul li a { color: rgba(255, 255, 255, .68); }
#aside h3, #aside nav h3, #aside nav a i.pull-right, #aside nav a i.fa-menu-arrow { color: rgba(255, 255, 255, .45); }
#aside nav ul li a:hover, #aside nav ul li a:hover i, #aside nav ul li ul li a:hover,
#aside nav ul li.active > a, #aside nav ul li.active > a i, #aside nav ul li ul li.active > a { color: #fff; }
/* Пунктир «дерева» подменю — тоже белый с прозрачностью */
#aside nav ul li ul, #aside nav ul li ul li a:before, #aside nav ul li ul li:before { border-color: rgba(255, 255, 255, .14); }

/* Шапка: всё по центру высоты 50px. Имя было выше середины на 2.7px, аватар — на 1px, конверт — на 1.4px */
#header nav > ul > li > a.dropdown-toggle { display: flex; align-items: center; height: 50px; }
#header img.user-avatar, #header .user-avatar-initials { margin: 0 10px 0 0; }
#header .user-name { display: inline-flex; align-items: center; line-height: 1; }
#header .user-name > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
#header .message-widget-button button { display: flex; align-items: center; justify-content: center; line-height: 1; }
#header .message-widget-button button i { line-height: 1; }

/* Бейджи (.label) — один вид во всём кабинете: высота 20px, по 8px по бокам, скругление 6px, белый 11/600.
   Было: Bootstrap .2em .6em .3em — текст прижат к краям, читается хуже */
.label { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 20px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 16px; color: #fff; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.label:empty { display: none; }
/* Баланс в шапке — заметнее: 22px, 12px */
#header .label { min-height: 22px; padding: 2px 9px; font-size: 12px; line-height: 18px; color: #fff; }
#header .message-widget-button button i { vertical-align: 0; }

/* Конверт: у обёртки темы padding-bottom 5px сдвигал кнопку на 2.5px вверх */
#header .message-widget-button { display: flex; align-items: center; height: 50px; padding: 0 !important; }
#header .message-widget-button button { margin: 0 !important; top: 0 !important; position: relative; height: 50px !important; padding: 0 10px !important; border: 0; box-sizing: border-box; }

/* Крестик закрытия меню: был толстый глиф Glyphicons 21px — тонкий из двух линий 2px, под ширину гамбургера */
#mobileMenuBtn { position: relative; }
#mobileMenuBtn.active:before, #mobileMenuBtn.active:after {
    content: ""; font-family: inherit; position: absolute; top: 50%; left: 50%; width: 18px; height: 2px;
    margin: -1px 0 0 -9px; border-radius: 2px; background: currentColor; line-height: 0;
}
#mobileMenuBtn.active:before { transform: rotate(45deg); }
#mobileMenuBtn.active:after { transform: rotate(-45deg); }

/* Телефон: шапка в две ровные строки на тёмном фоне (раньше значки, Top up и баланс плавали лесенкой
   под шапкой, на светлом фоне страницы). 1) меню, логотип, конверт, калькулятор (значок), флаг, аватар;
   2) баланс слева, Top up справа */
@media (max-width: 991px) {
    #header { display: flex; flex-wrap: wrap; height: auto; padding-bottom: 8px; background: linear-gradient(160deg, #141a45 0%, #1d1a52 60%, #241a5a 100%); }
    #header > * { float: none !important; }
    #mobileMenuBtn { order: 1; flex: none; }
    #header .logo { order: 2; min-width: 0; }
    #header .message-widget-button { order: 3; }
    #header nav { order: 4; }
    #header nav > ul { float: none !important; display: flex; align-items: center; height: 50px; margin: 0; }
    #header nav > ul > li { float: none !important; }
    #header .delivery-calculator { font-size: 0; }
    #header .delivery-calculator i { font-size: 17px; }
    #header .selected-language { display: none; }
    #header img.user-avatar, #header .user-avatar-initials { margin-right: 12px; }
    #header > .margin-right-20 { flex: 1 1 auto; height: 40px !important; margin: 0 0 0 16px !important; }
    #header > .margin-right-30 { height: 40px !important; margin: 0 16px 0 0 !important; }
}

/* Активный пункт меню — фиолетовый сайта (#762dc4, как буквенный аватар) и розовая полоса.
   Тема ставит фон активного пункта с !important */
#aside nav ul > li.active > a, #aside nav ul > li.active:hover > a { background-color: #762dc4 !important; color: #fff; }
#aside nav ul li ul li.active > a { background-color: transparent !important; }

/* Боковое меню: ровные строки.
   Группы разделялись отступом 30px + рамкой (пустые полосы), Dashboard был 50px против 40 у остальных,
   счётчики и плюсик плавали (float) не по центру строки. Теперь пункт — flex: иконка, текст, справа счётчики и плюсик */
#aside nav > ul.nav.nav-list { margin-bottom: 12px; }
#aside nav ul li a.dashboard, body.menu-open #aside nav ul li a.dashboard { height: 40px; line-height: 14px; }
#aside nav > ul > li > a { display: flex !important; align-items: center; gap: 0; min-height: 40px; }
#aside nav > ul > li > a > i.main-icon { flex: none; }
#aside nav > ul > li > a > span:not(.label) { order: 1; flex: 1 1 auto; min-width: 0; }
#aside nav > ul > li > a > .label { float: none !important; order: 3; margin-left: 6px !important; }
#aside nav > ul > li > a > .label.label-danger { order: 4; }
#aside nav > ul > li > a > i.pull-right, #aside nav > ul > li > a > i.fa-menu-arrow { float: none !important; order: 5; margin-left: 8px; }

/* Плашка .box.default (выбор склада на главной): была #999 темы — грязно-серая. Наш светлый серый, как шапка таблиц */
.box.default { background-color: #eef0f3; color: #374151; }
.box.default label, .box.default .control-label { color: #374151; }

/* ==== Тёмная кнопка — один цвет ====
   Было: .btn-primary темы #4b5354 (серо-зелёный), выбор файла и активная дата — #5a6667, .btn-dark мастеров — свой.
   Теперь один тёмный с оттенком индиго, как меню: не чистый чёрный */
.btn-primary, .btn-dark, .datepicker table tr td.active.active, .datepicker table tr td.active:hover {
    background-color: #1e1b34 !important; border-color: #1e1b34 !important; color: #fff !important; background-image: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary, .btn-dark:hover, .btn-dark:focus, .btn-dark:active {
    background-color: #2c2850 !important; border-color: #2c2850 !important; color: #fff !important;
}
.btn-primary[disabled], .btn-primary.disabled, .btn-dark[disabled], .btn-dark.disabled { background-color: #1e1b34 !important; border-color: #1e1b34 !important; }

/* ==== Чистые серые вместо темы ====
   Тема: текст #676a6c и заголовки #4b5354 (серо-зелёные), рамки #ddd/#eee, полоски #f9f9f9,
   полоса заголовка страницы #f6f8f8 / #dee5e7. Палитра кабинета: текст #111827 / #374151 / #6b7280,
   рамки #e5e7eb / #d3d8de, фоны #f6f7f9 / #eef0f3 / #f9fafb */
body, #middle { color: #374151; }
#middle div.panel-heading { color: #374151 !important; }
.panel > .panel-heading strong { color: inherit; }
.panel-default, .panel-default > .panel-heading { border-color: #e5e7eb; }
.panel > .panel-heading { border-bottom-color: #e5e7eb; }
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th,
.table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { border-color: #e5e7eb; }
.table > thead > tr > th { border-bottom-color: #e5e7eb; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9fafb; }
#page-header { background-color: #f6f7f9; border-bottom-color: #e5e7eb; }
.breadcrumb > .active, .breadcrumb > li.active { color: #6b7280; }
#dashboard .panel-footer[class*="bg-"] { border-top-color: transparent; }
.nav-tabs > li > a { color: #6b7280; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #111827; }
.checkbox, label.checkbox { color: #374151; }
h6 { color: #6b7280; }
.platform-card-action-link { color: #374151; }
.lot-characteristics { color: #6b7280; }
.wizard-advanced, .wizard-footer { border-color: #e5e7eb; }
select.form-control option { color: #111827; }
/* Остатки серых темы — правилами той же силы, что у темы */
#page-header > ol > li.active, #page-header .breadcrumb > li.active { color: #6b7280; }
div.tabs ul.nav-tabs a, .page-profile div.tabs ul.nav-tabs a { color: #6b7280; }
div.tabs ul.nav-tabs li.active a, .page-profile div.tabs ul.nav-tabs li.active a { color: #111827; }
#middle h6, h6.mb-2 { color: #6b7280; }
hr { border-top-color: #e5e7eb; }
.img-thumbnail { border-color: #e5e7eb; }
.panel-light, .dashboard .panel { border-color: #e5e7eb; }
.wizard-tab-title { color: #111827; }
.wizard-tab-num { color: #6b7280; }

/* Десктоп: шапка и боковое меню закреплены — прокручивается только страница.
   Было: шапка — обычный блок, меню растянуто на высоту страницы, оба уезжали вверх.
   Меню со своей прокруткой, если пунктов больше высоты экрана; у свёрнутого меню (body.min) прокрутки нет —
   его подменю выпадают вбок и обрезались бы */
@media (min-width: 768px) {
    #header { position: sticky; top: 0; }
    #aside { position: fixed; top: 50px; bottom: 0; height: auto !important; }
    body:not(.min) #aside { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
    body:not(.min) #aside::-webkit-scrollbar { width: 6px; }
    body:not(.min) #aside::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 999px; }
}

/* ==== Цвета — палитра Tailwind вместо Bootstrap 3 ====
   Было: #0f766e, #2a2370, #f0ad4e, #d9534f, #40c0cb, ссылки #2a2370, плашки темы — насыщенный «светофор».
   Кнопки и бейджи — оттенок 600 (белый текст читается), наведение — 700; уведомления — 50 / 200 / 800;
   заливки строк — 50, полоса статуса — 400 (выше, раздел «Таблицы кабинета»). Плашки-итоги без смысла
   «хорошо/плохо» — холодная тройка indigo / sky / teal */
/* warning: amber-600 на тёмном отдавал коричневым — amber-300 с тёмно-янтарным текстом (контраст ~11:1) */
.label-warning *, .btn-warning i { color: inherit; }

.text-success { color: #0f766e !important; }
.text-info { color: #2a2370 !important; }
.text-warning { color: #b45309 !important; }
.text-danger { color: #b91c1c !important; }
.bg-danger, td.bg-danger { background-color: #fef2f2 !important; }
.bg-success, td.bg-success { background-color: #f0fdfa !important; }
.bg-warning, td.bg-warning { background-color: #fffbeb !important; }
.bg-info, td.bg-info { background-color: #f3f2fa !important; }
.alert-success { background-color: #f0fdfa; border-color: #99f6e4; color: #115e59; }
.alert-warning { background-color: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background-color: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info strong, .alert-success strong, .alert-warning strong, .alert-danger strong { color: inherit; }

/* Плашки-итоги: главная (Inbounds, Products, Shipments) и Referrals */
.panel-footer.bg-blue, .box.info { background-color: #4f46e5 !important; }
.panel-footer.bg-teal, .box.warning { background-color: #2a2370 !important; }
.panel-footer.bg-olive, .box.danger { background-color: #0d9488 !important; }

/* Карточка всегда белая: тема делала .panel прозрачной, и таблица прямо в карточке (план упаковки, товары)
   висела на сером фоне страницы */
.panel { background-color: #fff; }

/* Шапка любой таблицы кабинета, не только списков в блоке прокрутки: сразу видно, что это шапка.
   Светло-серый фон, 12px 600, отступы 10×12, линия снизу; ячейки — те же боковые отступы */
.table > thead > tr > th { vertical-align: middle;
}
.table > tbody > tr > td { padding: 10px 12px; }
.table-condensed > tbody > tr > td { padding: 8px 12px; }

/* Миниатюры товаров в таблицах и карточках: без рамки и внутреннего отступа (img-thumbnail Bootstrap),
   картинка занимает всё место, лёгкое скругление */
.img-thumbnail { padding: 0; border: 0; border-radius: 6px; background: #f3f4f6; object-fit: cover; }
.table .img-thumbnail, .photo-item .img-thumbnail, .width-50 .img-thumbnail { width: 40px; height: 40px; }

/* ==== Карточка отправки: Shipping details ====
   Факты сеткой: подпись 12px серым над значением 14/600 тёмным; ниже разделы с действиями */
.ship-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 20px; margin: 0; }
.ship-fact { min-width: 0; }
.ship-fact-wide { grid-column: span 2; }
.ship-fact-wide .copy-clipboard { white-space: nowrap; }
.ship-fact dt { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #6b7280; }
.ship-fact dd { margin: 0; font-size: 14px; font-weight: 600; color: #111827; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ship-sub { display: block; width: 100%; font-size: 12px; font-weight: 400; color: #6b7280; }
.ship-empty { font-weight: 400; color: #6b7280; }
.ship-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.ship-section-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #111827; }
.ship-section-title .fa { color: #6b7280; margin-right: 4px; }
.ship-value { font-size: 14px; font-weight: 600; color: #111827; }
.ship-note { font-size: 13px; color: #374151; }
.ship-section #fulfilled-courier-form { max-width: 360px; }
/* Amazon: два поля в строку */
.ship-section .fulfilled-amazon form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-section .fulfilled-amazon .form-group { margin: 0; }
.ship-section .fulfilled-amazon label { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.ship-section .fulfilled-amazon .form-control { height: 40px; font-size: 14px; }
@media (max-width: 480px) { .ship-section .fulfilled-amazon form { grid-template-columns: 1fr; } }
/* Суммы в подвале карточки */
.ship-costs { display: flex; gap: 20px; margin: 0; }
.ship-costs dt { font-size: 12px; font-weight: 600; color: #6b7280; margin: 0 0 2px; }
.ship-costs dd { margin: 0; font-size: 14px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
#fulfilled-footer .flex-justify-space { align-items: center; gap: 12px; }

/* ==== Спокойная система (по итогам дизайн-критики) ====
   Цвет — для важности, а не для категории. 4 оттенка: нейтральные, тёмный #1e1b34 для главного действия,
   красный — проблема/удаление, янтарный — внимание. Фиолетовый сайта — только меню, пагинация, аватар.
   Перекрывает раздел «Цвета — палитра Tailwind» выше. */

/* Второстепенные кнопки: белые с рамкой (был залитый голубой/бирюзовый/аква) */
.btn-info .fa, .btn-success .fa, .btn-aqua .fa, .btn-info i, .btn-success i, .btn-aqua i { color: #6b7280; }
/* Предупреждение — контур янтарный */
.btn-warning { background-color: #fff !important; border-color: #fcd34d !important; color: #92400e !important; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { background-color: #fffbeb !important; border-color: #f59e0b !important; color: #78350f !important; }
/* Удаление и отмена — контур красный; сплошная красная только в окне подтверждения */
.btn-danger { background-color: #fff !important; border-color: #fca5a5 !important; color: #b91c1c !important; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { background-color: #fef2f2 !important; border-color: #f87171 !important; color: #991b1b !important; }
.modal-footer .btn-danger { background-color: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
/* Кнопка ⋮ в строках таблиц — без заливки, только значок */
.table .dropdown > .dropdown-toggle.btn-xs { background-color: transparent !important; border-color: transparent !important; color: #6b7280 !important; width: 28px; height: 28px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.table .dropdown > .dropdown-toggle.btn-xs:hover, .table .dropdown.open > .dropdown-toggle.btn-xs { background-color: #eef0f3 !important; color: #111827 !important; }
.table .dropdown > .dropdown-toggle.btn-danger.btn-xs { color: #b91c1c !important; }

/* Бейджи: нейтральные; цвет только у тревожных */
.label-info, .label-success, .label-default, .label-primary { background-color: #eef0f3 !important; border-color: #eef0f3 !important; color: #374151 !important; }
.label-warning { background-color: #fef3c7 !important; border-color: #fef3c7 !important; color: #92400e !important; }
.label-danger { background-color: #fee2e2 !important; border-color: #fee2e2 !important; color: #b91c1c !important; }
/* На тёмном меню: счётчик — полупрозрачный белый, непрочитанные комментарии — красный */
#aside nav ul li a .label { background-color: rgba(255, 255, 255, .16) !important; color: #fff !important; }
#aside nav ul li a .label.label-danger { background-color: #ef4444 !important; color: #fff !important; }
/* Баланс в шапке — просто текст */
#header .label-success { background: transparent !important; border-color: transparent !important; color: #fff !important; padding: 0 2px; font-size: 13px; }

/* Статус: проблема — красный, остальное нейтрально (цвет статуса несёт заливка строки) */
.status-pill, .status-pill.status-info, .status-pill.status-success, .status-pill.status-brown, .status-pill.status-warning, .status-pill.status-active { background: #eef0f3; color: #374151; }
.status-pill.status-danger { background: #fee2e2; color: #b91c1c; }

/* Плашки-итоги: белые карточки, цифры тёмные */
#dashboard .panel-footer[class*="bg-"] { background-color: #f9fafb !important; border-top: 1px solid #e5e7eb !important; }
#dashboard .panel-footer[class*="bg-"] .text-white, #dashboard .dashboard-stat-value { color: #111827 !important; }
#dashboard .dashboard-stat-label { color: #6b7280 !important; }
#dashboard .border-right-black { border-right-color: #e5e7eb; }
.box.info, .box.warning, .box.danger { background-color: #fff !important; color: #111827; border: 1px solid #e5e7eb; }
.box.info .box-title, .box.warning .box-title, .box.danger .box-title { border-color: #e5e7eb; }
.box.info .box-title h4, .box.warning .box-title h4, .box.danger .box-title h4 { color: #6b7280; }
.box .btn-warning { background-color: #1e1b34 !important; border-color: #1e1b34 !important; color: #fff !important; }

/* Шапка таблицы — сразу видно, что это шапка: капитель 12px, отступы, отчётливая нижняя граница */
.table > thead > tr > th {
    background-color: #f3f4f6 !important; color: #4b5563 !important; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; padding: 11px 12px !important;
    border-bottom: 1px solid #d1d5db !important; box-shadow: none !important;
}
.table > thead > tr > th a { color: #4b5563 !important; }
.grid-scroll > .table > thead > tr > th { box-shadow: 0 1px 0 #d1d5db !important; }

/* Нет фото — серый квадрат с иконкой картинки (Images::$placeholder) */
.img-placeholder { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #f3f4f6; color: #9ca3af; font-size: 16px; vertical-align: middle; }
/* Выбор файла — техническое действие: белая кнопка, как остальные второстепенные (виджет Upload ставит btn-primary) */
.file-upload-button.btn-primary:hover, .file-upload-button.btn-primary:focus { background-color: #f3f4f6 !important; border-color: #b9c2cc !important; color: #111827 !important; }
/* Кнопки в строках таблиц (⋮, «i» и т. п. размера xs) — без заливки, только значок */
.table .btn-xs.btn-primary, .table .btn-xs.btn-info, .table .btn-xs.btn-success, .table .btn-xs.btn-aqua, .table .btn-xs.btn-default {
    background-color: transparent !important; border-color: transparent !important; color: #6b7280 !important;
}
.table .btn-xs.btn-primary:hover, .table .btn-xs.btn-info:hover, .table .btn-xs.btn-success:hover, .table .btn-xs.btn-aqua:hover, .table .btn-xs.btn-default:hover {
    background-color: #eef0f3 !important; color: #111827 !important;
}
/* Те же «подпись над значением» в адресе склада (главная) и в верху карточки товара */
.ship-facts-address { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ship-facts-address .ship-fact.is-key dd { color: #762dc4; }
.ship-facts-inline { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 8px; }
@media (max-width: 767px) { .ship-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } }

/* Телефон и узкое окно (до 767px): шапка — ровно две строки.
   Было: логотип сжимался (flex 1 1 0), значки на разной высоте, баланс заезжал в первую строку лесенкой.
   1) меню, логотип нормального размера, справа конверт · калькулятор · флаг · аватар — всё по центру 50px;
   2) баланс слева, Top up справа (перенос строки — псевдоэлемент на всю ширину) */
@media (max-width: 991px) {
    #header { align-items: center; }
    #header .logo { flex: 0 0 auto; width: auto !important; overflow: visible; height: 50px; display: flex; align-items: center; }
    #header .logo a { display: flex; align-items: center; height: 50px; }
    #header .logo img { height: 24px; width: auto; max-width: none; }
    #header .message-widget-button { margin-left: auto; height: 50px; display: flex; align-items: center; }
    #header .message-widget-button button { height: 50px !important; display: flex; align-items: center; padding: 0 8px !important; }
    #header nav > ul > li, #header nav > ul > li > a { height: 50px; display: flex !important; align-items: center; }
    #header .delivery-calculator { line-height: 1 !important; height: 50px; display: flex !important; align-items: center; padding: 0 8px !important; }
    #header .delivery-calculator i { line-height: 1; }
    #header #dropdown-flag { padding: 0 8px; }
    #header::after { content: ""; order: 5; flex-basis: 100%; height: 0; }
    #header > .margin-right-20 { order: 6 !important; }
    #header > .margin-right-30 { order: 7 !important; }
}
@media (max-width: 420px) {
    #header .logo { margin-left: 12px !important; margin-right: 0 !important; padding: 0 !important; }
    #header .logo img { height: 20px; }
    #header nav { flex: none; }
    #header .delivery-calculator, #header #dropdown-flag { padding: 0 6px !important; }
    #header .message-widget-button button { padding: 0 6px !important; }
    #header img.user-avatar, #header .user-avatar-initials { margin-right: 10px; }
}

/* Узкий экран: та же таблица с прокруткой, что на десктопе (без перестройки в карточки) */
@media (max-width: 991px) {
    /* Только вбок: вертикально листается страница (своя вертикальная прокрутка внутри страницы на телефоне
       «залипала» и ездила по диагонали). Без пружины на страницу */
    .grid-scroll { overflow-x: auto; overflow-y: hidden; max-height: none; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
    .grid-scroll > .table { margin-bottom: 0; border: 0; }
    .grid-scroll > .table > thead > tr > th { position: static; white-space: nowrap; }
    .grid-scroll > .table > tbody > tr > td { white-space: nowrap; vertical-align: top; }
    .grid-scroll .lot-title { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
    .grid-scroll > .table > tbody > tr > td.cell-wrap { white-space: normal; min-width: 220px; }
}

/* Баннер cookies: кнопка «Got it!» — белая с тёмным текстом на тёмном баннере (текст был белым на белом) */
body .cookies-notification .button-delete, body .cookies-notification .btn-success { background-color: #fff !important; border-color: #fff !important; color: #111827 !important; }
.cookies-notification .button-delete:hover { background-color: #f3f4f6 !important; }

/* ==== Вход, регистрация, сброс пароля (макет layouts/login) ====
   Две колонки: слева форма на белом, справа фирменный фон сайта (верх фона главной, без волны).
   До 992px — одна колонка, фон полосой сверху */
body.auth-body { background: #fff; padding: 0; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: 32px 56px; background: #fff; }
.auth-logo { display: flex; align-self: center; width: 100%; max-width: 400px; }
.auth-logo img { height: 26px; width: auto; }
.auth-content { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 400px; margin: 0 auto; padding: 40px 0; }
.auth-foot { font-size: 12px; color: #9ca3af; }
.auth-art {
    position: relative; overflow: hidden;
    background: #a43fb6 url(../images/auth-bg.jpg) center / cover no-repeat;
    background-image: image-set(url(../images/auth-bg.webp) type("image/webp"), url(../images/auth-bg.jpg) type("image/jpeg"));
    background-size: cover; background-position: center;
}

/* Надпись на фоне (владелец 28.10, как на входе админки): по центру панели, белым */
.auth-art { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-art-pitch { max-width: 440px; text-align: center; }
.auth-art-title { margin: 0 0 12px; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 12px rgba(30, 10, 60, .25); }
.auth-art-text { margin: 0; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .86); }

.auth-title { margin: 0 0 8px; font-size: 28px; line-height: 34px; font-weight: 700; color: #111827; letter-spacing: -.01em; }
.auth-lead { margin: 0 0 28px; font-size: 14px; line-height: 21px; color: #6b7280; }

.auth-form .form-group { margin-bottom: 18px; }
.auth-form .control-label, .auth-form label.control-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.auth-form .form-control { height: 44px; font-size: 14px; }
.auth-form .help-block { margin: 6px 0 0; font-size: 12px; }
.auth-form .has-error .form-control { border-color: #f87171; }
.auth-form .has-error .help-block { color: #b91c1c; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row .control-label { margin-bottom: 6px; }
.auth-link-small { font-size: 13px; font-weight: 600; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-check { padding-left: 28px; font-size: 13px; font-weight: 400; color: #374151; line-height: 20px; }
.auth-check a { font-weight: 600; }
.auth-submit { width: 100%; height: 46px; font-size: 15px; }

.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.auth-social { display: grid; gap: 10px; }
.auth-social-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; height: 44px; font-size: 14px; }
.auth-social-btn .fa-facebook-official { font-size: 18px; color: #1877f2; }
/* Фирменная «G» Google — по правилам кнопки входа Google */
.auth-social-google { width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C36.9 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.auth-switch { margin: 24px 0 0; text-align: center; font-size: 14px; color: #6b7280; }
.auth-switch a { font-weight: 600; }

@media (max-width: 991px) {
    /* Узкий экран: только форма, фон убран; логотип над формой по её левому краю */
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-main { padding: 24px 24px 20px; }
    .auth-logo { display: flex; align-self: center; width: 100%; max-width: 440px; }
    .auth-content { max-width: 440px; padding: 28px 0 32px; justify-content: flex-start; }
    .auth-foot { text-align: center; }
}
@media (max-width: 420px) {
    .auth-row { grid-template-columns: 1fr; }
    .auth-title { font-size: 24px; line-height: 30px; }
}
/* Телефон: поля 16px — иначе iOS Safari приближает страницу при фокусе на поле */
@media (max-width: 767px) {
    .form-control, select.form-control, textarea.form-control, .auth-form .form-control { font-size: 16px; }
}
/* Поле с ошибкой — сплошная красная рамка (тема рисовала пунктир с розовым фоном); «успешно» у полей — без зелёного */
.has-error .form-control, .has-error .form-control:focus { border-style: solid; border-color: #f87171; background-color: #fff; box-shadow: none; }
.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.has-success .form-control { border-color: #d3d8de; background-color: #fff; box-shadow: none; }
.has-success .control-label, .has-success label, .has-success .checkbox { color: inherit; }

/* Баннер cookies: наш тёмный вместо серого #333; на десктопе одна строка — текст слева, кнопка справа;
   на телефоне кнопка под текстом. Разметка виджета общая с сайтом — только стили */
body .cookies-notification { background: #1e1b34 !important; color: rgba(255, 255, 255, .86); box-shadow: 0 -6px 24px rgba(17, 24, 39, .18); }
body .cookies-notification .content-wrapper { position: relative; padding: 24px 140px 24px 0; font-size: 14px; line-height: 21px; }
body .cookies-notification a.more { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
body .cookies-notification .button-delete { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; height: 36px; padding: 0 18px !important; display: inline-flex; align-items: center; font-weight: 600; }
@media (max-width: 767px) {
    body .cookies-notification .content-wrapper { padding: 14px 0; }
    body .cookies-notification .button-delete { position: static; transform: none; margin-top: 12px; width: 100%; justify-content: center; }
}

/* Чекбокс темы (label.checkbox > input + i): квадрат 18px по центру первой строки текста (тема ставила top 5px
   при строке 20px — квадрат ниже текста), рамка как у полей; отмеченный — тёмный с белой галочкой */
label.checkbox, .checkbox { line-height: 20px; }
label.checkbox > i, .checkbox i { top: 1px !important; width: 18px; height: 18px; border: 1.5px solid #b9c2cc !important; border-radius: 4px; background: #fff; box-sizing: border-box; }
.checkbox input + i:after { top: 0; left: 0; width: 100%; height: 100%; font: normal 10px/15px FontAwesome; text-align: center; color: #fff; }

/* Вход: форма без нижнего отступа темы (30px) — разделитель «или» сразу под кнопкой */
.auth-form { margin-bottom: 0; }
.auth-divider { margin: 20px 0 16px; }
/* Чекбоксы и капча в формах входа: группа с чекбоксом — 16px снизу (было 22 + 18 + пустая строка ошибки),
   капча — 20px до кнопки (прилипала) */
.auth-check { margin: 2px 0 0; }
.auth-form .form-group:has(> .auth-check), .auth-form .form-group:has(label.auth-check) { margin-bottom: 20px; }
.auth-form .help-block:empty { display: none; }
.auth-form .g-recaptcha { margin: 0 0 20px; }
#register-form .form-group:has(label.auth-check) { margin-bottom: 16px; }

/* ==== Кнопка «создать» — зелёная (teal) ====
   Главные действия создания: New product, New inbound, Create shipment / New order, Top up, отправка мастера.
   Тёмная .btn-primary остаётся для «сохранить» в формах. teal-700, а не 600: белый текст 13px держит контраст 5.5:1 */
.btn-create { background-color: #0f766e !important; border-color: #0f766e !important; color: #fff !important; background-image: none; }
.btn-create:hover, .btn-create:focus, .btn-create:active, .btn-create.active { background-color: #115e59 !important; border-color: #115e59 !important; color: #fff !important; }
.btn-create .fa, .btn-create i { color: #fff !important; }
.btn-create:focus-visible { box-shadow: 0 0 0 3px rgba(15, 118, 110, .3); }
.btn-create[disabled], .btn-create.disabled { background-color: #0f766e !important; border-color: #0f766e !important; opacity: .45; }

/* Фильтры и формы на flex-строках (.form-fields): при переносе кнопки Apply и поля вставали вплотную — у .group нет нижнего отступа */
.form-fields.flex-wrap { row-gap: 12px; }

/* ==== Цвет кнопки = функция ====
   зелёная .btn-create — создать; жёлтая .btn-accent — деньги, услуги, подключения (Top up, Pay, Withdraw, Order service, Connect, Authorise);
   тёмная .btn-primary — сохранить/посчитать в форме; белая — остальное; красный контур — удалить.
   Жёлтый — amber-300 приложения с тёмно-янтарным текстом (контраст ~11:1) */
.btn-accent { background-color: #fcd34d !important; border-color: #fcd34d !important; color: #451a03 !important; background-image: none; }
.btn-accent:hover, .btn-accent:focus, .btn-accent:active, .btn-accent.active { background-color: #fbbf24 !important; border-color: #fbbf24 !important; color: #451a03 !important; }
.btn-accent .fa, .btn-accent i { color: inherit !important; }
.btn-accent:focus-visible { box-shadow: 0 0 0 3px rgba(245, 158, 11, .35); }
.btn-accent[disabled], .btn-accent.disabled { background-color: #fcd34d !important; border-color: #fcd34d !important; opacity: .5; }

/* Tutorials: «Read» — серая кнопка с заливкой, а не красный контур с «i» */
.table .btn-xs.tutorial-open { border: 1px solid #e5e7eb !important; color: #1f2937 !important; padding: 3px 10px; font-size: 12px; }
.table .btn-xs.tutorial-open:hover, .table .btn-xs.tutorial-open:focus { background-color: #e5e7eb !important; color: #111827 !important; }
.table .btn-xs.tutorial-open .fa { color: #6b7280; margin-right: 2px; }

/* Серый второстепенный текст на подкрашенных строках таблиц не дотягивал до 4.5:1 (#6b7280 на red-50 — 4.42) */
.table > tbody > tr > td.cell-muted, .table > tbody > tr .cell-sub, .table > tbody > tr td small { color: #5b6370; }

/* Пополнение: итог был бирюзовым #2bb3b8 (2.5:1), подписи — #aaa (2.3:1) */
.pay-invoice-wrapper .total-info .txt-5 { color: #111827 !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-invoice-wrapper .text-gray { color: #6b7280 !important; }

/* Пополнение: склад и сумма в столбик (склад обрезался «GB Great Blak…»), пояснение о комиссии — подвал карточки «To pay», кнопка оплаты во всю ширину */
.pay-invoice-wrapper .total-info_line.amount { flex-direction: column; align-items: stretch; gap: 16px; }
.pay-invoice-wrapper .total-info_line.amount .form-group { margin-right: 0 !important; width: 100%; }
.pay-invoice-wrapper .pay-fee-note { background: #f9fafb; color: #6b7280; font-size: 12px; line-height: 1.5; border-top: 1px solid #eef0f3; }
.pay-invoice-wrapper .pay-fee-note strong { color: #374151; font-weight: 600; }
.pay-invoice-wrapper .btn-accent { width: 100%; padding-top: 10px; padding-bottom: 10px; }


/* Мастер поставки/отправки: подписи шагов и «Step 1 of 3» не дотягивали до 4.5:1 */
.wizard-tab-sub { color: #6b7280 !important; }
.wizard-tab:not(.current):not(.done) .wizard-tab-num { color: #374151; }
.wizard-panel-step-label { color: #762dc4 !important; }

/* Выбранное в мастерах — фиолетовый навигации (#762dc4), а не отдельный синий: текущий шаг, пройденный шаг,
   выбранный способ обработки и назначение отправки. Ссылки остаются синими */
.wizard-tab.current, .shipment-step.is-current .shipment-step-link,
.purpose-card.is-selected, .handling-method.selected { border-color: #762dc4 !important; box-shadow: 0 0 0 1px #762dc4 inset !important; background: #f8f3fd !important; }
.wizard-tab.current .wizard-tab-num, .wizard-tab.done .wizard-tab-num,
.shipment-step.is-current .shipment-step-num, .shipment-step.is-checked .shipment-step-num,
.purpose-card.is-selected .purpose-card-icon { background: #762dc4 !important; color: #fff !important; }
.purpose-card-icon { background: #f3ebfc; color: #762dc4; }
.purpose-card:has(.purpose-card-input:focus-visible), .shipment-wizard .btn:focus-visible { outline-color: #762dc4; }
/* Кружок выбора в углу у каждой карточки выбора, как радио: у карточек без иконки (шаг Handling) выбор иначе виден только по рамке */
.purpose-card { padding-right: 44px; }
.purpose-card::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid #d1d5db; border-radius: 50%; background: #fff; transition: border-color 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out; }
.purpose-card:hover::after { border-color: #b9a5e3; }
.purpose-card.is-selected::after { border-color: #762dc4; background: #762dc4; box-shadow: inset 0 0 0 3.5px #fff; }
/* Пояснения в шаге обработки: без цветной полосы слева, тон фона несёт смысл */
.handling-note { border-left: 0 !important; border-radius: 8px; }
.handling-note-info { background: #f3f4f6; color: #374151; }
.handling-note-required { background: #fff7ed; color: #9a3412; }

/* ==== Активный цвет — фиолетовый навигации #762dc4 ====
   Нативные радио и флажки (accent-color), отмеченные флажки темы, радио оплаты, переключатели (были синий, бирюзовый, зелёный) */
input[type="radio"], input[type="checkbox"] { accent-color: #762dc4; }
.checkbox input:checked + i { background: #762dc4 !important; }
.radio input:checked + i { border-color: #762dc4 !important; }
.radio input + i:after { background-color: #762dc4 !important; }
.checkbox input:focus-visible + i, .radio input:focus-visible + i { box-shadow: 0 0 0 3px rgba(118, 45, 196, .25); }
.pay-invoice-wrapper .radio .radio-elem { border-color: #b9c2cc; }
.pay-invoice-wrapper .radio input:checked + .radio-elem { border-color: #762dc4; }
.pay-invoice-wrapper .radio input:checked + .radio-elem::before { background-color: #762dc4; }
.switcher-input:checked + .switcher-slider,
input:checked + .platform-switcher-slider, .platform-switcher input:checked + span, .platform-switcher-slider.active,
.platform-switcher-input:checked + .platform-switcher-slider { background-color: #762dc4 !important; }

/* ==== Бейджи статусов — один образец ====
   .label и .status-pill в контенте и окнах: пилюля 12/600, отступ 2×8, нейтральный серый; янтарный — внимание, красный — проблема.
   Счётчики в меню и шапке (#aside, #header, баланс) остаются своими */
#content .label, .modal .label, #content .status-pill, .modal .status-pill, .platform-status {
    display: inline-flex; align-items: center; gap: 4px; min-height: 0; padding: 2px 8px !important; border-radius: 999px !important;
    font-size: 12px !important; font-weight: 600; line-height: 18px !important; letter-spacing: 0; text-transform: none !important;
    white-space: nowrap; vertical-align: middle; border: 0;
}
#content .label-brown, #content .label-active, #content .label-iframe, #content .label-default, #content .label-primary,
#content .label-info, #content .label-success, .platform-status-pending, .platform-status-not-active, .platform-status-not-connected {
    background-color: #eef0f3 !important; color: #374151 !important;
}
.platform-status-connected { background-color: #ccfbf1 !important; color: #115e59 !important; }
#content .label .fa, .platform-status .fa { font-size: 11px; }

/* Текст в полях — тёмный, как остальной основной текст (тема давала #555) */
.form-control, select.form-control, textarea.form-control { color: #111827; }
.form-control::placeholder { color: #9ca3af; }

/* «Создать» в строках таблиц — без заливки, зелёный текст: зелёная заливка в каждой строке слилась бы в сплошную полосу */
.table .btn-xs.btn-create .fa, .table .btn-xs.btn-create i { color: #0f766e !important; }
.table .btn-xs.btn-create:hover, .table .btn-xs.btn-create:focus { background-color: #f0fdfa !important; border-color: #99f6e4 !important; }

/* ==== Система цветов (итог) ====
   зелёная .btn-create — создать/добавить/новое; жёлтая .btn-accent — деньги, услуги, подключения;
   тёмная .btn-primary/.btn-dark — сохранить, посчитать, применить, продолжить; серая с заливкой — всё остальное;
   красный контур — удалить; фиолетовый #762dc4 — активное (выбрано, текущий шаг, включено);
   ссылки и информационные плашки — синий бокового меню (#2a2370), без отдельного голубого */

/* Второстепенные — серая заливка, чтобы кнопку было видно на белом */
.btn-default, .btn-info, .btn-success, .btn-aqua {
    background-color: #f3f4f6 !important; border-color: #e5e7eb !important; color: #1f2937 !important;
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active,
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active,
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active,
.btn-aqua:hover, .btn-aqua:focus, .btn-aqua:active, .btn-aqua.active, .open > .dropdown-toggle.btn-default {
    background-color: #e5e7eb !important; border-color: #d1d5db !important; color: #111827 !important;
}
.btn-default .fa, .btn-info .fa, .btn-success .fa, .btn-aqua .fa { color: #4b5563; }
.file-upload-button.btn-primary { background-color: #f3f4f6 !important; border-color: #e5e7eb !important; color: #1f2937 !important; }
.file-upload-button.btn-primary:hover { background-color: #e5e7eb !important; }
/* в строках таблиц — по-прежнему без заливки */
.table .btn-xs.btn-default, .table .btn-xs.btn-info, .table .btn-xs.btn-success, .table .btn-xs.btn-aqua { background-color: transparent !important; border-color: transparent !important; }
.table .btn-xs.btn-default:hover, .table .btn-xs.btn-info:hover, .table .btn-xs.btn-success:hover, .table .btn-xs.btn-aqua:hover { background-color: #eef0f3 !important; }
.table .btn-xs.tutorial-open { background-color: #f3f4f6 !important; border-color: #e5e7eb !important; }

/* Ссылки — синий бокового меню, наведение — фиолетовый активного */
a, .btn-link, .text-primary { color: #2a2370; }
a:hover, a:focus, .btn-link:hover, .btn-link:focus { color: #762dc4; }
.text-primary { color: #2a2370 !important; }
.breadcrumb a { color: #2a2370; }
.grid-scroll > .table > thead > tr > th a:hover { color: #762dc4; }
#aside a, #header a, #aside a:hover, #header a:hover { color: inherit; }

/* Информационные плашки — светлый тон того же синего вместо голубого */
.alert-info .fa, .alert-info a { color: #2a2370 !important; }

/* Фокус — фиолетовый активного, не голубой */
.btn:focus-visible, .shipment-wizard .btn:focus-visible { outline: 2px solid #762dc4 !important; outline-offset: 2px; }
.form-control:focus { border-color: #762dc4 !important; box-shadow: 0 0 0 3px rgba(118, 45, 196, .15) !important; }

/* Способы оплаты — карточки со скруглением 8px и рамкой, как остальные выбираемые карточки */
.pay-invoice-wrapper .payment-method { border: 1px solid #e5e7eb !important; border-radius: 8px !important; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pay-invoice-wrapper .payment-method:hover { border-color: #c4b5e8 !important; }
.pay-invoice-wrapper .payment-method.check { border-color: #762dc4 !important; background: #f8f3fd; box-shadow: 0 0 0 1px #762dc4 inset; }

/* «Создать» из выбранных строк — мягкий зелёный (тот же цвет функции, ниже по весу, чем основное «New …») */
.btn-create.btn-create-soft { background-color: #f0fdfa !important; border-color: #99f6e4 !important; color: #0f766e !important; }
.btn-create.btn-create-soft .fa, .btn-create.btn-create-soft i { color: #0f766e !important; }
.btn-create.btn-create-soft:hover, .btn-create.btn-create-soft:focus { background-color: #ccfbf1 !important; border-color: #5eead4 !important; color: #115e59 !important; }
.btn-create.btn-create-soft[disabled], .btn-create.btn-create-soft.disabled { background-color: #f0fdfa !important; opacity: .55; }

/* Иконки карточек правил — один нейтральный тон вместо зелёной/синей/фиолетовой плитки */
.settings-card-icon, .settings-card-icon-protection, .settings-card-icon-package, .settings-card-icon-weight,
.settings-card-icon-price, .settings-card-icon-country, .settings-card-icon-platform { background-color: #f3f2fa !important; color: #2a2370 !important; }

/* Поделиться в Facebook — серая второстепенная кнопка, без фирменного синего */
#content a.popup { background-color: #f3f4f6 !important; border: 1px solid #e5e7eb !important; color: #1f2937 !important; border-radius: 6px; }
#content a.popup:hover { background-color: #e5e7eb !important; }
#content a.popup .fa, #content a.popup i { color: #2a2370 !important; }
#content a.popup span, #content a.popup .rrssb-text { color: #1f2937 !important; }
#content a.popup svg, #content a.popup path { fill: #2a2370 !important; }

/* Подсказка под заголовком шага мастера — читаемый серый (было #9ca3af, 2.5:1) */
.wizard-panel-hint { color: #6b7280 !important; }

/* Телефон: шаги мастера поставки — одна строка из номеров, подпись только у текущего (было три карточки на пол-экрана) */
@media (max-width: 767px) {
    .wizard-steps { flex-wrap: nowrap !important; gap: 6px !important; }
    .wizard-tab { min-width: 0 !important; flex: 0 0 auto; padding: 8px 10px !important; gap: 8px; }
    .wizard-tab.current { flex: 1 1 auto; }
    .wizard-tab:not(.current) .wizard-tab-text { display: none; }
    .wizard-tab .wizard-tab-sub { display: none; }
}

/* ===================================================================
   Разбор impeccable critique (3 агента, 25.10): правки по страницам
   =================================================================== */

/* «Создать» сильнее серой второстепенной, даже если на кнопке остался старый btn-success/btn-info */
.btn.btn-create:not(.btn-create-soft) { background-color: #0f766e !important; border-color: #0f766e !important; color: #fff !important; }
.btn.btn-create:not(.btn-create-soft):hover, .btn.btn-create:not(.btn-create-soft):focus { background-color: #115e59 !important; border-color: #115e59 !important; }
.btn.btn-create:not(.btn-create-soft) .fa { color: #fff !important; }
.table .btn-xs.btn-create { background-color: transparent !important; border-color: transparent !important; color: #0f766e !important; }
.table .btn-xs.btn-create .fa { color: #0f766e !important; }

/* Главная: карточки одной высоты в ряду; объём — второстепенной строкой; вложенные панели задач без рамок; комментарии on hold не обрезаются */
@media (min-width: 992px) {
    #dashboard > .row { display: flex; flex-wrap: wrap; }
    #dashboard > .row > [class*="col-"] { display: flex; flex-direction: column; }
    #dashboard > .row > [class*="col-"] > .panel { flex: 1; }
}
#dashboard .panel-body h3.weight-700 > span { font-size: 13px !important; font-weight: 400 !important; color: #6b7280 !important; }
#dashboard .panel .panel { border: 0 !important; box-shadow: none; margin: 0; }
#dashboard .panel .panel > .panel-heading { background: none !important; border: 0; padding: 10px 0 4px; font-size: 12px; color: #6b7280 !important; }
#dashboard .panel .panel > .panel-body { padding: 0; }
#shipmentsonhold-grid td { white-space: normal !important; word-break: break-word; }
#shipmentsonhold-grid small { color: #6b7280; margin-right: 4px; }
#dashboard .dashboard-stat-value.is-attention { color: #b45309 !important; }

/* Пустые таблицы: шапка остаётся, строка «пусто» — короткая серая */
.grid-scroll td > .empty { color: #6b7280; padding: 4px 0; }

/* Задачи: фильтры ровно */
#tasks-filters > .px-1 { flex: 1 1 150px; }
#tasks-filters > .flex-basis-100 { flex: 0 0 90px; }
#tasks-filters > .flex-basis-400 { flex: 0 1 330px; }

/* Биллинг: pdf / xlsx / Add task в строку; меньше пустоты над фильтрами */
#invoicesGrid td:last-child { white-space: nowrap; }
#invoicesGrid td:last-child .mb-30 { margin: 0 !important; display: inline-block; }
#invoicesGrid td:last-child > .btn { margin: 0 4px 0 0 !important; }
#invoicesGridWrapper .my-30 { margin: 0 0 12px !important; }
#invoicesGridWrapper .panel-body > hr { margin: 8px 0 16px; }

/* Кнопки, ждущие выбора строк: в выключенном состоянии — ровно серые, а не бледные цветные */
.requires-selected-inbound[disabled], .requires-selected-inbound.disabled { background: #f3f4f6 !important; border-color: #e5e7eb !important; color: #9ca3af !important; opacity: 1 !important; }
.requires-selected-inbound[disabled] .fa, .requires-selected-inbound.disabled .fa { color: #9ca3af !important; }

/* Поставки: колонка действий не обрезается */
#inbound-grid th:last-child { font-size: 0; width: 44px; }

/* Мастера: «Step 1 of 3» — серый счётчик справа (фиолетовый только для активного); заголовок без капса; поля сеткой по 3 */
.wizard-panel .wizard-panel-step-label { flex: 0 0 auto !important; margin-left: auto; text-align: right; color: #6b7280 !important; font-size: 12px; font-weight: 600; }
.wizard-panel .wizard-panel-title { text-transform: none !important; letter-spacing: 0; font-size: 18px; font-weight: 600; color: #111827; }
@media (min-width: 992px) { #inbound-form .form-fields > div:not(.actions) { flex: 0 0 33.333% !important; max-width: 33.333%; } }
.wizard-toggle { color: #2a2370 !important; }
.wizard-toggle:hover { color: #762dc4 !important; }
.handling-method-note { align-self: flex-start; margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: #374151; font-size: 12px; font-weight: 600; }
.handling-method-rate { font-size: 12px; margin-top: 6px; }
.handling-additional > strong { flex-basis: 100%; font-size: 13px; font-weight: 600; color: #111827; }

/* Товары: поиск шире, Apply не уезжает одна */
#lot-filters > .flex-basis-400 { flex: 2 1 280px !important; }


/* Форма товара: 6 колонок, без сирот на всю ширину */
@media (min-width: 992px) {
    #lot-form .form-fields.flex-align-top { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #lot-form .form-fields.flex-align-top::before, #lot-form .form-fields.flex-align-top::after { display: none; }
    #lot-form .form-fields.flex-align-top > div:first-child, #lot-sku-wrapper, #lot-title-wrapper { grid-column: span 2; }
    /* Окно товара без склада: название до конца строки; вторая строка — шесть равных полей */
    #lot-sku-wrapper:first-child + #lot-title-wrapper { grid-column: span 4; }
    #lot-form .form-fields.flex-align-top.lot-form-details > div:first-child { grid-column: auto; }
    /* Размеры, таможня, prep — сетка в 4 колонки: 4 + 8 полей ложатся тремя полными строками, без дыр в конце */
    #lot-form .form-fields.flex-align-top.lot-form-advanced { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #lot-form .form-fields.flex-align-top.lot-form-advanced > div:first-child { grid-column: auto; }
}
/* Между 992 и 1199 (с боковым меню) шесть колонок по ~110px: подписи переносились и сдвигали поля — три колонки */
@media (min-width: 992px) and (max-width: 1199px) {
    #lot-form .form-fields.flex-align-top.lot-form-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Подпись ошибки не раздувает строку и не сдвигает соседей */
#lot-form .lot-form-details .help-block-error:empty { display: none; }
#lot-form .lot-form-details .help-block-error { font-size: 12px; line-height: 1.3; margin: 4px 0 0; }

/* Отправки: фильтры сеткой; щит защиты — серый; карточка сверху — в один ряд на широком экране */
#fulfilled-filters > .form-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; margin: 0; }
#fulfilled-filters > .form-fields > div { padding: 0; flex-basis: auto; }
#fulfilled-filters .flex-basis-400 { grid-column: span 2; }
#fulfilled-grid .fa-shield.text-success { color: #6b7280 !important; }
@media (min-width: 1200px) { .shipment-top-grid { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none !important; } }

/* Калькулятор: поля в 4 колонки, результат без вертикальных линий, цена справа */
#calculator-form .form-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
#calculator-form .form-fields > div { padding: 0; }
@media (max-width: 767px) { #calculator-form .form-fields { grid-template-columns: 1fr 1fr; } }
#calculator-wrapper .table-bordered, #calculator-wrapper .table-bordered td, #calculator-wrapper .table-bordered th { border-left: 0; border-right: 0; }
#calculator-wrapper td:nth-child(3), #calculator-wrapper th:nth-child(3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#calculator-wrapper td.small strong { font-weight: 400; color: #6b7280; }

/* Каналы продаж: подключённый — первым, рамка активного фиолетового вместо зелёной заливки */
.platform-cards > div:has(.platform-card-connected) { order: -1; }
.platform-card.platform-card-connected { background: #fff !important; border-color: #762dc4 !important; box-shadow: 0 0 0 1px #762dc4 inset; }

/* Правила доставки: типы правил — строки списка, а не карточки в карточке; пояснение о защите — серый текст */
.panel:has(.settings-section-title) .settings-card { border: 0 !important; border-top: 1px solid #e5e7eb !important; border-radius: 0 !important; margin: 0 !important; padding: 16px 0 !important; align-items: center; box-shadow: none !important; }
.panel:has(.settings-section-title) .settings-card:hover { box-shadow: none !important; }
#courier-rule-protection .settings-note { background: none !important; border: 0 !important; margin-top: 8px; font-size: 13px; }

/* Правила продаж и «More integrations»: поля столбиком, подпись сверху, как на остальных страницах */
#platform-rule-form, #location-rule-form, #more-integrations-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
#platform-rule-form .form-group, #location-rule-form .form-group, #more-integrations-form .form-group { margin: 0 0 16px !important; display: flex; flex-direction: column; }
#platform-rule-form .control-label, #location-rule-form .control-label, #more-integrations-form .control-label { float: none; width: auto !important; text-align: left !important; padding: 0 !important; margin-bottom: 6px; }
#platform-rule-form .form-group > [class*="col-md"], #location-rule-form .form-group > [class*="col-md"], #more-integrations-form .form-group > [class*="col-md"] { float: none; width: auto !important; padding: 0 !important; margin-left: 0 !important; }
#platform-rule-form .help-block:empty, #location-rule-form .help-block:empty, #more-integrations-form .help-block:empty { display: none; }
#platform-rule-grid a:hover .glyphicon-trash, #location-rule-grid a:hover .glyphicon-trash { color: #b91c1c; }

/* Иконки правил — разные цвета, но только из палитры кабинета (светлый фон + тёмный тон того же цвета) */
.settings-card-icon-weight   { background-color: #ccfbf1 !important; color: #0f766e !important; }
.settings-card-icon-price    { background-color: #fef3c7 !important; color: #92400e !important; }
.settings-card-icon-package  { background-color: #f3f2fa !important; color: #2a2370 !important; }
.settings-card-icon-platform { background-color: #f3ebfc !important; color: #762dc4 !important; }
.settings-card-icon-country  { background-color: #ffe4ec !important; color: #be185d !important; }
.settings-card-icon-protection { background-color: #f3ebfc !important; color: #762dc4 !important; }
.panel:has(.settings-section-title) .settings-card-meta { flex-direction: row !important; align-items: center; gap: 16px; }

/* Корзина — одна иконка-кнопка по всему кабинету (как ghost-destructive в shadcn):
   квадрат 28px, светло-красный фон #fef2f2, красная иконка #dc2626; наведение — фон #fee2e2. Кнопки «Delete» с текстом остаются красным контуром */
a:not(.btn):has(> .glyphicon-trash), a:not(.btn):has(> .fa-trash), a:not(.btn):has(> .fa-trash-o),
button:not(.btn):has(> .glyphicon-trash), button:not(.btn):has(> .fa-trash), button:not(.btn):has(> .fa-trash-o) {
    display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0 !important;
    border-radius: 6px !important; background-color: #fef2f2 !important; border: 1px solid #fee2e2 !important; color: #dc2626 !important;
    text-decoration: none !important; vertical-align: middle; transition: background-color .15s, border-color .15s;
}
a:not(.btn):has(> .glyphicon-trash):hover, a:not(.btn):has(> .fa-trash):hover, a:not(.btn):has(> .fa-trash-o):hover,
button:not(.btn):has(> .glyphicon-trash):hover, button:not(.btn):has(> .fa-trash):hover, button:not(.btn):has(> .fa-trash-o):hover {
    background-color: #fee2e2 !important; border-color: #fecaca !important;
}
.glyphicon-trash, a .fa-trash, a .fa-trash-o, button .fa-trash, button .fa-trash-o,
#platform-rule-grid .glyphicon-trash, #location-rule-grid .glyphicon-trash { color: #dc2626 !important; font-size: 13px; top: 0; }
.btn-danger .glyphicon-trash, .btn-danger .fa-trash, .btn-danger .fa-trash-o { color: inherit !important; }
#platform-rule-form, #location-rule-form, #more-integrations-form { align-items: start; }
#platform-rule-form .form-group:has(button[type=submit]), #location-rule-form .form-group:has(button[type=submit]), #more-integrations-form .form-group:has(button[type=submit]) { padding-top: 26px; }
#content .status-pill.status-attention { background: #fef3c7 !important; color: #92400e !important; }

/* select2 с выбором нескольких (Warehouses и др.): высота и рамка как у поля, плейсхолдер внутри, теги в строку */
.select2-container--default .select2-selection--multiple {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 40px;
    border: 1px solid #d3d8de !important; border-radius: 6px !important; background: #fff; cursor: text;
}
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color: #762dc4 !important; box-shadow: 0 0 0 3px rgba(118, 45, 196, .15); }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { display: contents !important; margin: 0 !important; padding: 0 !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 0 !important; padding: 2px 8px 2px 22px !important; border: 0 !important; border-radius: 999px !important; background: #eef0f3 !important; color: #374151; font-size: 12px; font-weight: 600; line-height: 18px; position: relative; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { position: absolute; left: 7px; top: 1px; border: 0 !important; background: none !important; color: #6b7280 !important; padding: 0 !important; }
.select2-container .select2-search--inline { flex: 1 1 80px; }
.select2-container .select2-search--inline .select2-search__field { margin: 0 !important; font-size: 14px; font-family: inherit; color: #111827; resize: none; overflow: hidden; vertical-align: middle; }
.select2-container .select2-search--inline .select2-search__field::placeholder { color: #9ca3af; }
#platform-rule-form .select2-container, #location-rule-form .select2-container, #more-integrations-form .select2-container { width: 100% !important; }
#location-rule-form .help-block.small { margin: 6px 0 0; font-size: 12px; color: #6b7280; }
/* Плейсхолдер в textarea select2 рисуется у верхнего края — центрируем отступом, а не line-height; слева 4px — в линию с текстом одиночных select2 */
.select2-container .select2-search--inline .select2-search__field { height: 30px !important; line-height: 20px !important; padding: 5px 0 5px 4px !important; box-sizing: border-box; }
.select2-container--default .select2-selection--multiple { padding: 4px 8px 4px 8px !important; }

/* ==== Инфо — жёлтый приложения ====
   Иконки «?» и «i» — жёлтый кружок #fcd34d с тёмно-янтарным знаком (тот же жёлтый, что у кнопок денег/услуг);
   информационные плашки .alert-info — светло-жёлтые. Подсказка — по наведению (tooltip) или окно по клику */
#content i.fa-question-circle, #content i.fa-info-circle, .modal i.fa-question-circle, .modal i.fa-info-circle,
#content .glyphicon-question-sign, #content .glyphicon-info-sign {
    display: inline-flex !important; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
    background: #fcd34d; color: #451a03 !important; font-size: 11px !important; line-height: 1; vertical-align: -3px; padding: 0 !important; flex: none;
}
#content i.fa-question-circle::before, .modal i.fa-question-circle::before, #content .glyphicon-question-sign::before { content: "?"; font-family: inherit; font-weight: 800; }
#content i.fa-info-circle::before, .modal i.fa-info-circle::before, #content .glyphicon-info-sign::before { content: "i"; }
#content a i.fa-question-circle, #content [data-toggle="tooltip"] i.fa-question-circle, #content i.fa-question-circle[data-toggle="tooltip"], .info-tip { cursor: help; }
#content a:hover i.fa-question-circle, #content i.fa-question-circle[data-toggle="tooltip"]:hover { background: #fbbf24; }
#content i.fa-question-circle.text-danger { background: #fee2e2; color: #b91c1c !important; }

.alert-info { background-color: #fffbeb !important; border-color: #fde68a !important; color: #78350f !important; }
.alert-info a { color: #78350f !important; text-decoration: underline; }
.alert-info strong { color: #451a03 !important; }
#courier-rule-protection .settings-note { color: #6b7280 !important; }
/* Пояснение о защите: текст — ровно под описанием карточки, жёлтая «i» — в поле слева от него */
#courier-rule-protection .settings-note { display: flex !important; align-items: flex-start; gap: 8px; padding: 0 0 0 34px !important; margin: 10px 0 0 !important; line-height: 20px; }
#courier-rule-protection .settings-note .fa { display: inline-flex !important; margin-top: 1px; }
/* «i» в жёлтом кружке — прямой жирный знак по центру (курсив засечного шрифта уводил его вбок) */
#content i.fa-info-circle::before, .modal i.fa-info-circle::before, #content .glyphicon-info-sign::before { font-style: normal !important; font-weight: 800 !important; line-height: 1; }
#content i.fa-question-circle::before, .modal i.fa-question-circle::before, #content .glyphicon-question-sign::before { line-height: 1; font-size: 11px; }

/* Телефон: в карточках правил переключатель уходит под текст, описание — на всю ширину */
@media (max-width: 767px) {
    #content .settings-row, #content .settings-card { flex-wrap: wrap; }
    #content .settings-row .settings-card-body, #content .settings-card .settings-card-body { flex: 1 1 0; min-width: 0; }
    #content .settings-row .settings-card-meta, #content .settings-card .settings-card-meta { flex-basis: 100%; margin-top: 8px; }
}

/* Выравнивание по горизонтали (скан всех страниц: центр значка/бейджа против центра первой строки текста) */
.settings-section-title:has(> i), .shipment-top-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert:has(> i.fa:first-child) { display: flex; align-items: flex-start; gap: 8px; }
.alert:has(> i.fa:first-child) > i.fa:first-child { margin-top: 1px; }
.wizard-panel-title + .label { vertical-align: 3px; margin-left: 6px; }
.handling-method-radio input[type=radio] { margin-top: 2px !important; }
.table td > a:has(> .glyphicon-trash), .table td > a:has(> .fa-trash), .table td > button:has(> .fa-trash) { margin: -5px 0; }
#content .wizard-panel-title + .label { position: relative; top: -3px; margin-left: 6px; }

/* ==== Каналы продаж: карточки (переверстка) ====
   Сетка одинаковых карточек; шапка — плитка с логотипом, название, статус; низ под линией — действие.
   Не подключён — серая «Connect» на всю ширину; подключён — рамка активного фиолетового, переключатель «Active», Unlink, ссылки на правила */
#platform-connection .platform-cards > div { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; min-width: 0; }
#platform-connection .platform-card-header { gap: 12px; padding: 16px 16px 0; margin: 0; align-items: center; }
#platform-connection .platform-card-name { margin-bottom: 4px; }
#platform-connection .platform-card-status { margin: 0; }
#platform-connection .platform-card-actions { margin-top: auto; padding: 12px 16px; border-top: 1px solid #f1f2f4; }
#platform-connection .platform-card-header + .platform-card-actions { margin-top: auto; }
#platform-connection .platform-card > .platform-card-header { flex: 1 0 auto; align-items: flex-start; }
#platform-connection .platform-connect-btn { justify-content: center; display: inline-flex; align-items: center; gap: 6px; }
#platform-connection .platform-card-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
#platform-connection .platform-toggle-form { align-items: center; gap: 8px; }
#platform-connection .platform-switcher-label { font-size: 13px; font-weight: 600; color: #374151; }
#platform-connection .platform-card-footer { border: 0; }
#platform-connection .platform-card-action-link { display: inline-flex; align-items: center; gap: 6px; }
#platform-connection .platform-card-action-link .fa { color: #6b7280; }
#platform-connection .platform-card.platform-card-pending { border-color: #fcd34d !important; }
#platform-connection .platform-cards > div:has(.platform-card-connected), #platform-connection .platform-cards > div:has(.platform-card-not-active), #platform-connection .platform-cards > div:has(.platform-card-pending) { order: -1; }
#platform-connection .platform-card-footer { margin-top: 10px; }
#platform-connection .platform-card-action-link { justify-content: center; border-radius: 6px; text-decoration: none !important; }
#content i.fa-info-circle::before, .modal i.fa-info-circle::before, #content .glyphicon-info-sign::before { font-family: Arial, Helvetica, sans-serif !important; font-size: 12px !important; }
@media (max-width: 767px) {
    #platform-connection .platform-card-header { flex-direction: column; align-items: flex-start !important; gap: 8px; padding: 12px 12px 0; }
    #platform-connection .platform-card-actions { padding: 10px 12px; }
    #platform-connection .platform-cards > div:has(.platform-card-connected) { grid-column: 1 / -1; }
    #content .settings-row .settings-card-meta, #content .settings-card .settings-card-meta { justify-content: flex-start !important; padding-left: 60px; }
}
@media (max-width: 767px) { #content .settings-row .settings-card-meta, #content .settings-card .settings-card-meta { align-items: flex-start !important; } }

/* ==== Каналы продаж v2 — как страницы интеграций в продуктах (Vercel/Linear) ====
   Группы «Connected» и «Available» с заголовком и счётчиком; карточка: логотип слева, действие справа в верхней строке,
   ниже название и тип площадки (у подключённой — точка состояния); у подключённой внизу ссылки на правила и мягкий Unlink */
#platform-connection.integrations > .panel-body { padding: 24px; }
.integrations-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.integrations-head:not(:first-child) { margin-top: 28px; }
.integrations-title { margin: 0; font-size: 15px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.integrations-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #eef0f3; color: #374151; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
#platform-connection .platform-cards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 !important; }
#platform-connection .platform-cards::before, #platform-connection .platform-cards::after { display: none !important; }
#platform-connection .platform-cell { min-width: 0; }
#platform-connection .platform-card { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 16px !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; opacity: 1 !important; transition: border-color .15s; }
#platform-connection .platform-card:hover { border-color: #d1d5db !important; box-shadow: none !important; }
#platform-connection .platform-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#platform-connection .platform-card-logo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #f9fafb; border: 1px solid #eef0f3; flex: none; }
#platform-connection .platform-card-logo .platform-icon { width: 24px; height: 24px; object-fit: contain; }
#platform-connection .platform-card-trailing { display: flex; align-items: center; }
#platform-connection .platform-connect-btn { width: auto !important; padding: 5px 14px !important; background: #fff !important; border: 1px solid #d1d5db !important; color: #111827 !important; font-weight: 600; border-radius: 8px !important; }
#platform-connection .platform-connect-btn:hover, #platform-connection .platform-connect-btn:focus { background: #f3f4f6 !important; border-color: #9ca3af !important; }
#platform-connection .platform-card-name { font-size: 15px; font-weight: 600; color: #111827; line-height: 1.3; margin: 0; }
#platform-connection .platform-card-kind { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: #6b7280; line-height: 1.4; }
#platform-connection .platform-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: none; }
#platform-connection .platform-dot-on { background: #14b8a6; box-shadow: 0 0 0 3px #ccfbf1; }
#platform-connection .platform-dot-wait { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
#platform-connection .platform-toggle-form { margin: 0; display: flex; }
#platform-connection .platform-card-footer { display: flex !important; align-items: center; gap: 16px; margin: 16px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid #f1f2f4 !important; grid-template-columns: none; }
#platform-connection .platform-card-action-link { padding: 0 !important; background: none !important; border: 0 !important; font-size: 13px; font-weight: 600; color: #2a2370 !important; white-space: nowrap; }
#platform-connection .platform-card-action-link:hover { color: #762dc4 !important; background: none !important; }
#platform-connection .platform-unlink-form { margin: 0 0 0 auto !important; }
#platform-connection .platform-unlink-btn { padding: 4px 10px; border: 0; border-radius: 6px; background: #fef2f2; color: #dc2626; font-size: 13px; font-weight: 600; cursor: pointer; }
#platform-connection .platform-unlink-btn:hover, #platform-connection .platform-unlink-btn:focus-visible { background: #fee2e2; }
#platform-connection .platform-card.platform-card-connected { border-color: #e5e7eb !important; box-shadow: none !important; }
#platform-connection .platform-card.platform-card-not-active .platform-card-logo { filter: grayscale(1); opacity: .55; }
/* Площадка отозвала ключ (TokenReconnect): красная рамка, статус и плашка с кнопкой «Reconnect» */
#platform-connection .platform-card.platform-card-reconnect { border-color: #fca5a5 !important; }
#platform-connection .platform-card.platform-card-reconnect:hover { border-color: #f87171 !important; }
#platform-connection .platform-cards > div:has(.platform-card-reconnect) { order: -2; grid-column: 1 / -1; }
#platform-connection .platform-dot-off { background: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
#platform-connection .platform-card-reconnect .platform-card-kind { color: #b91c1c; font-weight: 600; }
#platform-connection .platform-reconnect { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; }
#platform-connection .platform-reconnect-text { flex: 1 1 260px; max-width: 70ch; margin: 0; font-size: 13px; line-height: 1.5; color: #7f1d1d; }
#platform-connection .platform-reconnect-form { flex: none; margin: 0; }
@media (max-width: 767px) {
    #platform-connection.integrations > .panel-body { padding: 16px; }
    #platform-connection .platform-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #platform-connection .platform-card { padding: 12px !important; }
    #platform-connection .platform-card-trailing { order: 3; }
    #platform-connection .platform-cards > .platform-cell:has(.platform-card-footer) { grid-column: 1 / -1; }
    #platform-connection .platform-card:has(.platform-card-footer) .platform-card-top { flex-direction: row; align-items: center; }
}
@media (max-width: 767px) {
    #platform-connection .platform-card-top { flex-direction: row !important; align-items: center !important; gap: 8px; margin-bottom: 12px; }
    #platform-connection .platform-connect-btn { padding: 4px 10px !important; }
}

/* ==== Тулбар списков (товары, поставки) ====
   Группы: создать · «With selected» · услуги · справа утилиты (импорт, отчёт). Между группами — тонкая вертикальная линия */
.cab-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 4px; }
.cab-toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cab-toolbar-group > form, .cab-toolbar-form { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.cab-toolbar .my-30, .cab-toolbar .margin-right-5 { margin: 0 !important; }
.cab-toolbar-group + .cab-toolbar-group { padding-left: 16px; border-left: 1px solid #e5e7eb; }
.cab-toolbar-utils { margin-left: auto; border-left: 0 !important; padding-left: 0 !important; }
.cab-toolbar-label { font-size: 12px; font-weight: 600; color: #6b7280; margin-right: 2px; white-space: nowrap; }
@media (max-width: 767px) {
    .cab-toolbar { gap: 12px; }
    .cab-toolbar-group + .cab-toolbar-group { border-left: 0; padding-left: 0; }
    .cab-toolbar-group { width: 100%; }
    .cab-toolbar-utils { margin-left: 0; }
}

/* Карточка задачи: факты сеткой на всю ширину, текст задачи серой плашкой, комментарии без вложенной карточки */
.task-view .task-facts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding-bottom: 20px; border-bottom: 1px solid #eef0f3; }
.task-view .task-facts .ship-fact:first-child { grid-column: span 2; }
.task-view .task-section-title { margin: 24px 0 10px; font-size: 15px; font-weight: 600; color: #111827; }
.task-view .task-text-body { padding: 14px 16px; border-radius: 8px; background: #f9fafb; border: 1px solid #eef0f3; color: #111827; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.task-view .task-comment-form { margin-top: 16px; }
.task-view #comment-wrapper > hr { display: none; }
@media (max-width: 767px) { .task-view .task-facts .ship-fact:first-child { grid-column: 1 / -1; } }
@media (min-width: 992px) { .task-view .task-facts { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; } .task-view .task-facts .ship-fact:first-child { grid-column: auto; } }

/* Пополнение: согласие и «Pay» — в карточке суммы, под итогом (раньше Pay был в третьей карточке, а согласие — в первой) */
.pay-invoice-wrapper .pay-action { padding-top: 0; }
.pay-invoice-wrapper .pay-action .form-group { margin: 0 0 14px; }
.pay-invoice-wrapper .pay-action .btn-accent { width: 100%; padding: 11px 16px; font-size: 15px; }

/* Биллинг: баланс — подпись и суммы, рядом «Top up» */
.billing-balance { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.billing-balance-label { font-size: 12px; font-weight: 600; color: #6b7280; }
.billing-balance-value { display: inline-flex; gap: 10px; font-size: 16px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }
.billing-balance-value .balance { margin: 0 !important; }
.task-view .task-back { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef0f3; }
@media (max-width: 767px) { .task-view .task-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Комментарии в списке задач: кружок с числом; серый — прочитаны, красный — есть новые */
.comment-count { display: inline-flex; align-items: center; gap: 4px; height: 22px; min-width: 22px; padding: 0 8px; border-radius: 999px; background: #eef0f3; color: #374151 !important; font-size: 12px; font-weight: 600; text-decoration: none !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comment-count .fa { font-size: 11px; color: inherit !important; }
.comment-count:hover { background: #e5e7eb; }
.comment-count.comment-count-new { background: #dc2626; color: #fff !important; }
.comment-count.comment-count-new:hover { background: #b91c1c; }

/* ==== Иконки-кнопки без текста — один размер по всему кабинету ====
   Квадрат 28px, иконка по центру, скругление 6px. Отличается только цвет:
   изменить / просмотр — серый (#f3f4f6, иконка #374151), удалить — светло-красный (#fef2f2, иконка #dc2626).
   Несколько таких кнопок рядом — в одну линию через 6px */
:is(a, button):not(.btn):is(:has(> .fa-edit), :has(> .fa-pencil), :has(> .fa-pencil-square-o), :has(> .glyphicon-pencil), :has(> .glyphicon-eye-open), :has(> .fa-eye)) {
    display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0 !important; margin: 0;
    border-radius: 6px !important; background-color: #f3f4f6 !important; border: 1px solid #e5e7eb !important; color: #374151 !important;
    text-decoration: none !important; vertical-align: middle; line-height: 1; cursor: pointer; transition: background-color .15s, border-color .15s;
}
:is(a, button):not(.btn):is(:has(> .fa-edit), :has(> .fa-pencil), :has(> .fa-pencil-square-o), :has(> .glyphicon-pencil), :has(> .glyphicon-eye-open), :has(> .fa-eye)):hover {
    background-color: #e5e7eb !important; border-color: #d1d5db !important; color: #111827 !important;
}
:is(a, button):not(.btn) > :is(.fa-edit, .fa-pencil, .fa-pencil-square-o, .glyphicon-pencil, .glyphicon-eye-open, .fa-eye) { color: inherit !important; font-size: 13px; top: 0; margin: 0 !important; line-height: 1; }
:is(a, button):not(.btn):is(:has(> .fa-trash), :has(> .glyphicon-trash), :has(> .fa-trash-o)) { margin: 0; line-height: 1; vertical-align: middle; }
:is(a, button):not(.btn) > :is(.fa-trash, .glyphicon-trash, .fa-trash-o) { margin: 0 !important; line-height: 1; top: 0; }

/* Группа: форма или ячейка с несколькими иконками-кнопками — в строку, по центру */
form:has(> :is(a, button):not(.btn) > :is(.fa-edit, .fa-trash, .glyphicon-pencil, .glyphicon-trash)) { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; vertical-align: middle; }
.table td:has(> :is(a, button):not(.btn) > :is(.fa-edit, .fa-trash, .glyphicon-pencil, .glyphicon-trash, .glyphicon-eye-open)) { white-space: nowrap; }
.table td > :is(a, button):not(.btn):is(:has(> .fa-edit), :has(> .glyphicon-pencil), :has(> .glyphicon-eye-open), :has(> .fa-trash), :has(> .glyphicon-trash)) + :is(a, button) { margin-left: 6px; }
.table td > form:has(> :is(a, button):not(.btn) > :is(.fa-edit, .fa-trash)), .table td > a:has(> .glyphicon-trash), .table td > a:has(> .glyphicon-pencil), .table td > a:has(> .glyphicon-eye-open) { margin: -5px 0; }

/* Способы оплаты: логотип банка — небольшой и одинаковый (рамка 56×40), карточки одной высоты, всё по левому краю */
.pay-invoice-wrapper .payment-method { justify-content: flex-start !important; gap: 14px; min-height: 64px; height: auto !important; padding: 10px 14px !important; }
.pay-invoice-wrapper .payment-method .radio-wrap { flex: none; margin: 0 !important; padding: 0 !important; position: relative; }
.pay-invoice-wrapper .payment-method .logo { flex: none; display: flex; align-items: center; justify-content: center; width: 56px !important; height: 40px; margin: 0 !important; padding: 0 !important; }
.pay-invoice-wrapper .payment-method .logo img { max-width: 56px !important; max-height: 36px !important; width: auto !important; height: auto !important; object-fit: contain; border-radius: 4px; }
.pay-invoice-wrapper .payment-method .text-block { flex: 1 1 auto; min-width: 0; margin: 0 !important; padding: 0 !important; }
.pay-invoice-wrapper .payment-method .title { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.3; }
.pay-invoice-wrapper .payment-method .desc { font-size: 13px; color: #6b7280; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pay-invoice-wrapper .payment-method .radio-wrap { height: 16px; width: 16px; } .pay-invoice-wrapper .payment-method .radio-wrap label.radio { display: block; height: 16px; }

/* ==== Подсказки (tooltip) — белые ====
   Белая плашка со скруглением 8px и лёгкой тенью, тёмный текст; стрелка тоже белая. Появляются через 80 мс, без анимации */
.tooltip { font-family: inherit; z-index: 2000; filter: drop-shadow(0 4px 12px rgba(17, 24, 39, .12)) drop-shadow(0 1px 2px rgba(17, 24, 39, .08)); }
.tooltip.in { opacity: 1 !important; }
.tooltip-inner { background: #fff !important; color: #111827 !important; font-size: 12px; font-weight: 500; line-height: 1.45; padding: 6px 10px; border-radius: 8px; max-width: 280px; text-align: left; box-shadow: 0 0 0 1px rgba(17, 24, 39, .06); }
.tooltip.top .tooltip-arrow { border-top-color: #fff !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: #fff !important; }
.tooltip.left .tooltip-arrow { border-left-color: #fff !important; }
.tooltip.right .tooltip-arrow { border-right-color: #fff !important; }
.copy-clipboard-id { cursor: pointer; }
/* Подсказка jQuery UI (её использует кабинет) — тот же белый вид */
.ui-tooltip.cab-tooltip { position: absolute; z-index: 3000; max-width: 280px; padding: 6px 10px !important; background: #fff !important; border: 1px solid rgba(17, 24, 39, .08) !important; border-radius: 8px !important; box-shadow: 0 6px 16px rgba(17, 24, 39, .12), 0 1px 2px rgba(17, 24, 39, .08) !important; color: #111827 !important; font: 500 12px/1.45 inherit; font-family: inherit !important; pointer-events: none; }
.ui-tooltip.cab-tooltip .ui-tooltip-content { color: #111827; }

/* ==== Таблицы: фото и заглушка «нет фото» — один размер и одно место; ячейки по центру по вертикали ====
   Фото было в .row с отрицательным отступом −15px — стояло левее заглушки. Теперь оба 40×40 от левого края ячейки */
.table [id^="ImagesList"] { width: auto !important; }
.table [id^="ImagesList"] .row { margin: 0 !important; }
.table [id^="ImagesList"] .photo-item { padding: 0 !important; width: auto !important; float: none !important; }
.table [id^="ImagesList"] a.zoom { display: block; width: 40px; height: 40px; }
.table img.img-thumbnail, .table .img-placeholder { width: 40px !important; height: 40px !important; display: block !important; margin: 0 !important; object-fit: cover; border-radius: 6px !important; }
.grid-scroll .table > tbody > tr > td, .table > tbody > tr > td { vertical-align: middle !important; }

/* Флажки — одна рамка 1px везде (таблицы, формы, фильтры) */
label.checkbox > i, .checkbox i, .table .checkbox i, .table label > i, .select-multiple-items + i { border-width: 1px !important; border-style: solid !important; border-color: #b9c2cc !important; }
.checkbox input:checked + i, .table input:checked + i { border-color: #762dc4 !important; }
input[type="checkbox"] { accent-color: #762dc4; }
/* Флажок выбора строки без подписи: у label не было высоты, квадрат висел ниже центра строки на 10px */
.table td > label.checkbox { display: inline-block !important; width: 18px; height: 18px; padding: 0 !important; margin: 0 !important; vertical-align: middle; line-height: 18px; }
.table td > label.checkbox > i { top: 0 !important; left: 0 !important; }
.table .img-placeholder { display: flex !important; align-items: center; justify-content: center; }

/* Подсказка у инфо-значков «?» / «i» — жёлтая (светлый тон нашего жёлтого, тёмно-янтарный текст), остальные — белые */
.tooltip.tooltip-info .tooltip-inner, .ui-tooltip.cab-tooltip.cab-tooltip-info { background: #fef3c7 !important; color: #451a03 !important; box-shadow: 0 0 0 1px #fcd34d !important; }
.ui-tooltip.cab-tooltip.cab-tooltip-info { border-color: #fcd34d !important; box-shadow: 0 6px 16px rgba(17, 24, 39, .12) !important; }
.ui-tooltip.cab-tooltip.cab-tooltip-info .ui-tooltip-content { color: #451a03; }
.tooltip.tooltip-info.top .tooltip-arrow { border-top-color: #fcd34d !important; }
.tooltip.tooltip-info.bottom .tooltip-arrow { border-bottom-color: #fcd34d !important; }
.tooltip.tooltip-info.left .tooltip-arrow { border-left-color: #fcd34d !important; }
.tooltip.tooltip-info.right .tooltip-arrow { border-right-color: #fcd34d !important; }

/* ==== Фильтры списков — одна сетка с общим левым краем ====
   Каждое поле фильтра — своя форма в обёртке .px-1, даты — во вложенной строке с отрицательным отступом: края полей прыгали.
   Обёртки и формы не участвуют в раскладке (display: contents), полями сетки становятся сами поля с подписью.
   Формы и их отправка не меняются. Поиск — на две колонки */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 0 !important;
}
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(form, .form-fields, .px-1, .px-2, .row):not(.actions):not(:has(> small, > label, > .control-label)) { display: contents !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(.group, .form-group, .px-1:has(> small, > label)) { margin: 0 !important; padding: 0 !important; min-width: 0; width: auto !important; max-width: none !important; flex: none !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) .actions { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) script { display: none; }
[id$="-filters"] .form-control { width: 100% !important; }
@media (max-width: 767px) {
    :is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* У обёрток с классом row / clearfix служебные ::before/::after становились пустыми ячейками сетки */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(form, .form-fields, .px-1, .px-2, .row, .group, .form-group)::before,
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(form, .form-fields, .px-1, .px-2, .row, .group, .form-group)::after { display: none !important; content: none !important; }
/* Поле фильтра — любой блок, где прямо лежат подпись и поле (.group, колонка col-xs-6 у дат, форма даты в биллинге) */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> small, > label, > .control-label) {
    margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; float: none !important; min-width: 0;
}

/* Фильтры: строки заполняются на всю ширину ровными долями (6 полей — по 1/6, 2 поля — по 50%), на телефоне перестраиваются.
   Обычное поле — от 160px, поиск — от 320px; остаток строки делится поровну (flex-grow: 1) */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) { display: flex !important; flex-wrap: wrap; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> small, > label, > .control-label) { flex: 1 1 160px !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) [class*="-search"]:is(.group, .form-group) { flex: 1 1 320px !important; grid-column: auto; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) .actions { flex: 0 0 auto; }
@media (max-width: 767px) {
    :is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> small, > label, > .control-label) { flex-basis: 140px !important; }
}
/* Фильтры без подписей (задачи): полем считается и блок, где прямо лежит поле ввода или select2 */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> .form-control, > select, > .select2-container):not(:has(> small, > label, > .control-label)) {
    display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; float: none !important; flex: 1 1 130px !important; min-width: 0;
}
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> [name*="search"]) { flex-basis: 320px !important; }

/* Фильтры v3: короткие поля — верхней строкой ровными долями; длинные (поиск, канал продаж, способ оплаты) — нижней строкой у таблицы,
   по 50%, если их два, и на всю ширину, если поиск один */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> small, > label, > .control-label, > .form-control, > select, > .select2-container) { flex: 1 1 130px !important; order: 1; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="platform_id"], [class*="field-"][class*="method_id"]) { flex: 1 1 calc(50% - 8px) !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="-search"], div:has(> [name*="search"]), form:has(> [name*="search"])) { flex: 1 1 calc(50% - 8px) !important; }
@media (max-width: 767px) {
    :is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="platform_id"], [class*="field-"][class*="method_id"], [class*="field-"][class*="-search"], div:has(> [name*="search"])) { flex-basis: 100% !important; }
}
/* Поля фильтров — по верхнему краю, подпись у всех одной высоты (у дат в биллинге подпись лежит прямо в форме — поле стояло на 8px выше) */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) { align-items: flex-start !important; }
[id$="-filters"] :is(div, form):has(> small, > label) > small { display: block; margin: 0 0 6px !important; line-height: 18px; height: 18px; }
[id$="-filters"] :is(div, form):has(> small, > label) > small > label, [id$="-filters"] :is(div, form) > label.control-label { display: block; margin: 0 !important; padding: 0 !important; line-height: 18px; font-size: 13px; }
[id$="-filters"] .help-block:empty { display: none; }
/* Поиск — всегда нижняя строка, слева; справа от него длинное поле (канал продаж, способ оплаты) или кнопки Apply.
   Перенос строки перед поиском — пустой элемент на всю ширину (::after контейнера, order 97) */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields)::after {
    content: "" !important; display: block !important; order: 97; flex: 0 0 100% !important; padding: 0;
}
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields)::before { display: none !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="-search"], div:has(> [name*="search"]), form:has(> [name*="search"])) { order: 98 !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="platform_id"], [class*="field-"][class*="method_id"]) { order: 99 !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) .actions { order: 100 !important; align-self: flex-end; }
/* Фильтры: между строками ровно 16px (перенос перед поиском сам даёт лишний зазор — нижняя строка поднимается на 16px),
   от фильтров до таблицы — 16px */
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) { gap: 16px !important; margin: 0 0 16px !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields)::after { margin: 0 !important; height: 0 !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="-search"], div:has(> [name*="search"]), form:has(> [name*="search"]), [class*="field-"][class*="platform_id"], [class*="field-"][class*="method_id"], .actions) { margin-top: -16px !important; }
[id$="-filters"]:not(.form-fields) { margin-bottom: 0 !important; padding-bottom: 0 !important; }
:is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is(div, form):has(> [name*="search"]):not(:has(> small, > label, > .control-label)) { margin-top: -16px !important; }
@media (max-width: 767px) {
    :is([id$="-filters"].form-fields, [id$="-filters"] > .form-fields) :is([class*="field-"][class*="platform_id"], [class*="field-"][class*="method_id"], .actions) { margin-top: 0 !important; }
}

/* Флажок «выбрать все» в шапке таблицы: как флажки строк (18px, рамка 1px), часть выбрана — фиолетовый с белой чёрточкой */
.table th > label.select-all-checkbox { display: inline-block !important; width: 18px; height: 18px; padding: 0 !important; margin: 0 !important; vertical-align: middle; cursor: pointer; }
.table th > label.select-all-checkbox > i { top: 0 !important; left: 0 !important; }
.select-all-checkbox[data-state="some"] > i { background: #762dc4 !important; border-color: #762dc4 !important; }
.select-all-checkbox[data-state="some"] > i::after { content: "" !important; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; width: auto; background: #fff; border-radius: 1px; opacity: 1 !important; }

/* ==== Окна (modal) — мягче и современнее ====
   Скругление 12px, белая шапка с тонкой линией, заголовок 16/600, крестик — квадрат 32px с серым фоном при наведении,
   затемнение — нейтральное (было фиолетовое) */
.modal-backdrop { background-color: #111827 !important; }
.modal-backdrop.in { opacity: .45 !important; }
.modal-content { border: 0 !important; border-radius: 12px !important; box-shadow: 0 24px 48px rgba(17, 24, 39, .18), 0 4px 12px rgba(17, 24, 39, .08) !important; overflow: hidden; }
.modal-header { background: #fff !important; border-bottom: 1px solid #eef0f3 !important; padding: 16px 20px !important; border-radius: 12px 12px 0 0 !important; }
.modal-title { font-size: 16px; font-weight: 600; color: #111827; line-height: 1.4; }
.modal-body { padding: 20px !important; color: #374151; }
.modal-footer { background: #fff; border-top: 1px solid #eef0f3 !important; padding: 12px 20px !important; }
.modal .close { width: 32px; height: 32px; margin: -4px -8px 0 0 !important; border-radius: 8px; opacity: 1 !important; color: #6b7280 !important; font-size: 22px; font-weight: 400; line-height: 30px; text-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; }
.modal .close:hover, .modal .close:focus-visible { background: #f3f4f6; color: #111827 !important; }

/* Окно-предупреждение (.modal-alert): цвет фона по типу, иконка в кружке, заголовок и список, внизу «Close» */
.modal-alert .modal-content { border: 1px solid transparent !important; }
.modal-alert .modal-alert-body { display: flex; align-items: flex-start; gap: 14px; padding: 20px 16px 16px 20px; }
.modal-alert .modal-alert-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; color: #fff; }
.modal-alert .modal-alert-text { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.modal-alert .modal-alert-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.modal-alert .modal-alert-list { margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; }
.modal-alert .modal-alert-list li + li { margin-top: 4px; }
.modal-alert .close { flex: none; margin: -6px -4px 0 0 !important; }
.modal-alert .modal-alert-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
.modal-alert-warning .modal-content { background: #fffbeb !important; border-color: #fde68a !important; }
.modal-alert-warning .modal-alert-icon { background: #d97706; }
.modal-alert-warning .modal-alert-title, .modal-alert-warning .modal-alert-list { color: #78350f; }
.modal-alert-danger .modal-content { background: #fef2f2 !important; border-color: #fecaca !important; }
.modal-alert-danger .modal-alert-icon { background: #dc2626; }
.modal-alert-danger .modal-alert-title, .modal-alert-danger .modal-alert-list { color: #7f1d1d; }
.modal-alert-success .modal-content { background: #f0fdfa !important; border-color: #99f6e4 !important; }
.modal-alert-success .modal-alert-icon { background: #0f766e; }
.modal-alert-success .modal-alert-title, .modal-alert-success .modal-alert-list { color: #134e4a; }
.modal-alert .modal-alert-footer .btn-default { background: #fff !important; }
/* Значок предупреждения в строке поставки — жёлто-янтарный (это предупреждение, не ошибка) */
.inbound-warning-icon { color: #d97706 !important; }
/* Окно и затемнение — над закреплённой шапкой и меню (шапка не затемнялась); маленькое предупреждение — ближе к центру экрана */
.modal-backdrop { z-index: 2040 !important; }
.modal { z-index: 2050 !important; }
.modal-alert .modal-dialog { margin-top: 14vh; }

/* ==== Карточка отправки: причины Hold в верхнем блоке, под «Your next step» ==== */
.shipment-top-hold { margin: 0 0 14px; }

/* ==== Профиль: узкая колонка аватара, кнопка Save закреплена внизу экрана ==== */
.profile-avatar-initials { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1 / 1; font-size: clamp(28px, 3.4vw, 56px); }
.page-profile .profile-save-bar { position: sticky; bottom: 0; z-index: 5; margin: 24px -15px 0; padding: 12px 0; background: #fff; border-top: 1px solid var(--dock-border); box-shadow: var(--dock-shadow); }
@media (max-width: 767px) { .page-profile .profile-avatar-initials { max-width: 96px; font-size: 34px; } }

/* ==== Главная: пустые блоки — одна строка; «Low on stock» и «On hold» больше нуля — янтарным ==== */
.dash-empty { margin: 0; padding: 12px 14px; border-radius: 8px; background: #f6f7f9; color: #6b7280; font-size: 13px; }
#content .panel-footer .is-attention .dashboard-stat-value { color: #b45309 !important; }
#content .panel-footer .is-attention .dashboard-stat-label { color: #92400e !important; }
#content #shipmentsonhold-grid .table > tbody > tr > td:first-child { white-space: nowrap !important; word-break: normal !important; width: 1%; }

/* ==== Черновики отправок: тип пилюлей рядом с номером ==== */
.fulfilled-drafts .draft-type-pill { margin-left: 6px; vertical-align: 1px; background: #f3f2fa; color: #2a2370; }

/* Блок «Errors» (log/common/error/panel): заголовок и переключатель периода в одну строку */
#middle div.panel-heading.log-error-heading,
.panel-heading.log-error-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.log-period { display: inline-flex; flex-wrap: wrap; padding: 2px; background: #f3f4f6; border-radius: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.log-period-item { padding: 3px 10px; font-size: 12px; line-height: 18px; color: #4b5563; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-period-item:hover, .log-period-item:focus { color: #111827; text-decoration: none; }
.log-period-item.active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
.log-period-item:focus-visible { outline: 2px solid #762dc4; outline-offset: 1px; }

/* Окно «Import products»: две карточки (файл, платформа) на общей сетке. Строки карточек — подзаголовок, подсказка,
   поля, кнопка — выровнены между колонками (subgrid): подсказка в две строки больше не сдвигает поля и кнопку соседа */
.import-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; margin-bottom: 20px; }
.import-way { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; }
.import-way > form { display: contents; }
.import-way > form > .panel { display: grid; grid-row: span 4; grid-template-rows: subgrid; margin: 0; }
.import-ways .import-way-hint { margin: 0; padding: 12px 15px 0; font-size: 13px; line-height: 1.45; color: #6b7280; }
.import-ways .panel-body { padding-top: 12px; }
.import-ways .panel-body > .form-group:last-child { margin-bottom: 0; }
.import-ways .panel-footer { align-self: end; }
@media (max-width: 599px) {
    .import-ways, .import-way, .import-way > form > .panel { display: block; }
    .import-way + .import-way { margin-top: 16px; }
}
/* Текст ошибки (часто с именем файла) переносится, дата — в одну строку: таблица не уезжает вбок на телефоне */
.log-error-panel #log-error-grid td { white-space: normal; overflow-wrap: anywhere; }
.log-error-panel #log-error-grid td:first-child, .log-error-panel #log-error-grid th:first-child { white-space: nowrap; width: 1%; }

/* Подвал шага мастера inbound на телефоне: «Delete draft» и длинная «Continue to handling method» не помещались
   в строку — кнопка вылезала за карточку, страница скроллилась вбок. Перенос: основная кнопка — во всю ширину под ней */
@media (max-width: 767px) {
    .wizard-footer:not(.shipment-wizard-footer) { flex-wrap: wrap; gap: 8px; }
    .wizard-footer:not(.shipment-wizard-footer) .wizard-footer-right { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
    .wizard-footer:not(.shipment-wizard-footer) .wizard-footer-right .btn { flex: 1 1 auto; white-space: normal; }
}

/* Соседние карточки в ряду (.row > .col-* > .panel) — одной высоты, подвал прижат к низу: нижние края и кнопки
   Tasks / Photo and documents, Address / Shipping details, Payment method / Amount стояли вразнобой */
@media (min-width: 768px) {
    #middle .row:has(> [class*="col-"] > .panel) { display: flex; flex-wrap: wrap; }
    #middle .row:has(> [class*="col-"] > .panel)::before,
    #middle .row:has(> [class*="col-"] > .panel)::after { display: none; }
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"] { display: flex; flex-direction: column; float: none; }
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"] > .panel:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"] > .panel:last-child > .panel-body { flex: 1 1 auto; }
}
/* Во flex-ряду колонка без класса под текущую ширину сжалась бы по содержимому — как в Bootstrap, она во всю строку */
@media (min-width: 768px) and (max-width: 991px) {
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"]:not([class*="col-xs-"]):not([class*="col-sm-"]) { width: 100%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"]:not([class*="col-xs-"]):not([class*="col-sm-"]):not([class*="col-md-"]) { width: 100%; }
}
@media (min-width: 1200px) {
    #middle .row:has(> [class*="col-"] > .panel) > [class*="col-"]:not([class*="col-xs-"]):not([class*="col-sm-"]):not([class*="col-md-"]):not([class*="col-lg-"]) { width: 100%; }
}

/* Мастер отправки: переход между шагами ajax-ом — панель гаснет, только если ответ задержался (26.10) */
.shipment-wizard .shipment-wizard-panel, .shipment-wizard .shipment-wizard-aside { transition: opacity .15s ease-out; }
.shipment-wizard.is-navigating .shipment-wizard-panel, .shipment-wizard.is-navigating .shipment-wizard-aside { opacity: .55; pointer-events: none; transition-delay: .15s; }
.shipment-wizard .shipment-wizard-title:focus { outline: none; }

/* Мастер отправки на телефоне, шаг Review: стрелка, корзина и Save draft — первой строкой, кнопки отправки —
   второй, текст не обрезается (26.10) */
@media (max-width: 767px) {
    .shipment-wizard[data-step="review"] .shipment-wizard-footer { flex-wrap: wrap; row-gap: 8px; }
    .shipment-wizard[data-step="review"] .shipment-wizard-footer .wizard-footer-right { display: contents; }
    .shipment-wizard[data-step="review"] .shipment-wizard-footer .wizard-footer-right .btn[name="wizard-draft"] { flex: 1 1 auto; margin-left: 6px; }
    .shipment-wizard[data-step="review"] .shipment-wizard-footer .wizard-footer-right .btn[name="save"] { flex: 1 1 calc(50% - 4px); min-width: 0; white-space: normal; line-height: 1.25; }
}
/* Остальные шаги на телефоне: стрелка и корзина — квадратные 40 px, Save draft и Continue не обрезаются */
@media (max-width: 767px) {
    .shipment-wizard-footer { gap: 6px; }
    .shipment-wizard-footer .wizard-footer-left { display: flex; gap: 6px; }
    .shipment-wizard-footer .shipment-wizard-back, .shipment-wizard-footer .shipment-wizard-delete { width: 40px; padding-left: 0; padding-right: 0; text-align: center; }
    .shipment-wizard-footer .wizard-footer-right .btn { min-width: auto; }
}

/* Мастер отправки: сводка — плашка над кнопками внизу, закреплена вместе с ними, раскрывается вверх (Олег 26.10).
   Форма шага — на всю ширину. Состояние «раскрыто» — localStorage (script.js). */
#wizard-nav-form { position: static; }
.wizard-dock { position: sticky; bottom: 0; z-index: 5; border-radius: 0 0 10px 10px; box-shadow: var(--dock-shadow); }
.wizard-dock .shipment-wizard-footer { box-shadow: none; }
.wizard-dock .shipment-wizard-aside { position: static; margin: 0; }
.wizard-dock .wizard-summary { padding: 0; background: #fff; border: 0; border-top: 1px solid #e5e7eb; border-radius: 0; }
.wizard-summary-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 6px 20px; background: #fff; border: 0; color: #374151; font-size: 13px; text-align: left; cursor: pointer; }
.wizard-summary-toggle:hover { background: #fafafa; }
.wizard-summary-toggle:focus-visible { outline: 2px solid #6d28d9; outline-offset: -2px; }
.wizard-dock .wizard-summary-title { flex: none; font-size: 13px; }
.wizard-summary-line { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #6b7280; white-space: nowrap; text-overflow: ellipsis; }
.wizard-dock .wizard-summary-ready { flex: none; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.wizard-dock .wizard-save-status { flex: none; }
.wizard-summary-chevron { flex: none; color: #9ca3af; transition: transform .15s ease-out; }
.wizard-dock.is-summary-open .wizard-summary-chevron { transform: rotate(180deg); }
.wizard-dock .wizard-summary-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.wizard-dock .wizard-summary-list dd { margin-bottom: 10px; }
@media (max-width: 991px) {
    .wizard-dock .wizard-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .wizard-summary-toggle { gap: 8px; padding: 6px 12px; }
    .wizard-summary-line { display: none; }
    .wizard-dock .wizard-summary-ready { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* Конец формы: плашка отлипла — сводка раскрыта сама (Олег 26.10) */
.wizard-dock-end { height: 1px; margin-top: -1px; }
.wizard-dock.is-at-end .wizard-summary-chevron { visibility: hidden; }
.wizard-dock.is-at-end .wizard-summary-toggle { cursor: default; }
.wizard-dock.is-unpinned { box-shadow: none; }

/* Сводка: раскрывается плавно, содержимое — светлая карточка (Олег 26.10). display:none заменён сеткой 0fr/1fr */
.wizard-dock .wizard-summary-body { display: grid; grid-template-rows: 0fr; max-height: none; padding: 0 20px; overflow: visible; border-top: 0; transition: grid-template-rows .24s cubic-bezier(.2, .7, .3, 1); }
.wizard-dock.is-summary-open .wizard-summary-body, .wizard-dock.is-at-end .wizard-summary-body { display: grid; grid-template-rows: 1fr; }
.wizard-summary-inner { min-height: 0; overflow: hidden; }
.wizard-summary-card { margin: 2px 0 12px; padding: 14px 16px 4px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease-out, transform .24s cubic-bezier(.2, .7, .3, 1); }
.wizard-dock.is-summary-open .wizard-summary-card, .wizard-dock.is-at-end .wizard-summary-card { opacity: 1; transform: none; }
.wizard-dock.is-summary-open .wizard-summary-inner { max-height: 45vh; overflow-y: auto; }
.wizard-dock.is-at-end .wizard-summary-inner { max-height: none; }
.wizard-dock .wizard-summary-title::before { content: "\f0ca"; margin-right: 6px; font-family: FontAwesome; font-weight: normal; color: #6d28d9; }
@media (max-width: 767px) {
    .wizard-dock .wizard-summary-body { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .wizard-dock .wizard-summary-body, .wizard-summary-card { transition: none; }
}
/* Значения сводки — полужирные, подписи — мелкие серые; «Not decided yet» и пояснения — обычные (Олег 26.10) */
.wizard-dock .wizard-summary-list dt { margin-bottom: 1px; color: #6b7280; font-size: 12px; font-weight: 400; }
.wizard-dock .wizard-summary-list dd { color: #111827; font-weight: 600; }
.wizard-dock .wizard-summary-list dd .text-muted { color: #6b7280; font-weight: 400; }

/* Карточка отправки: возврат клиенту на исправление (ТЗ Максима 26.10) — чек-лист: пункт = статус, название,
   комментарий склада, одна ровная строка исправления; внизу счётчик и одна главная кнопка */
.client-action { overflow: hidden; }
.client-action.is-open { border-color: #fcd34d; }
.client-action-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #fffbeb; border-bottom: 1px solid #fde68a; }
.client-action.is-sent .client-action-header { background: #f0fdf4; border-bottom: 0; }
.client-action-icon { flex: none; margin-top: 2px; color: #d97706; font-size: 20px; }
.client-action.is-sent .client-action-icon { color: #16a34a; }
.client-action-title { margin: 0 0 2px; color: #78350f; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.client-action.is-sent .client-action-title { color: #166534; }
.client-action-lead { max-width: 70ch; margin: 0; color: #92400e; font-size: 13px; }
.client-action.is-sent .client-action-lead { color: #166534; }
.client-action-list { margin: 0; padding: 0; list-style: none; }
.client-action-item { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid #f1f5f9; }
.client-action-item:first-child { border-top: 0; }
.client-action-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #fef3c7; color: #b45309; font-size: 12px; }
.client-action-item.is-done .client-action-mark { background: #dcfce7; color: #15803d; }
.client-action-main { flex: 1 1 auto; min-width: 0; }
.client-action-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #111827; font-size: 14px; }
.client-action-meta { color: #6b7280; font-size: 12px; }
.client-action-item.is-done .client-action-meta { color: #15803d; font-weight: 600; }
.client-action-note { max-width: 70ch; margin: 6px 0 0; padding: 8px 12px; background: #f8fafc; border-radius: 8px; color: #374151; font-size: 13px; white-space: pre-line; }
.client-action-fix { margin: 12px 0 0; }
.client-action-fix-file { max-width: 460px; }
.client-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)) auto; align-items: end; gap: 12px; justify-content: start; }
.client-action-field .control-label { margin-bottom: 4px; color: #374151; font-size: 12px; font-weight: 600; }
.client-action-row .btn { height: 34px; }
.client-action-choice { margin: 0 0 10px; }
.client-action-hint { display: block; margin-top: 6px; color: #6b7280; font-size: 12px; }
.client-action-todo { margin: 8px 0 0; color: #b45309; font-size: 12px; }
.client-action-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 20px; background: #fafafa; border-top: 1px solid #e5e7eb; }
.client-action-progress { color: #374151; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
    .client-action-header, .client-action-item, .client-action-footer { padding-left: 14px; padding-right: 14px; }
    .client-action-row { grid-template-columns: 1fr; }
    .client-action-footer .btn { flex: 1 1 100%; }
}
.shipment-top-fix { margin-top: 8px; }

/* Верх карточки отправки (Олег 26.10, переверстан): номер и статус слева, этапы справа, данные строкой ниже,
   следующий шаг — полосой внизу с действием справа. Без надписи капсом над текстом */
.shipment-top { overflow: hidden; }
.shipment-top-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-bottom: 18px; }
.shipment-top-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #111827; font-size: 22px; font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.shipment-top-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 600; }
.shipment-top-status.is-hold { background: #fef3c7; color: #92400e; }
.shipment-top-status.is-cancelled { background: #f3f4f6; color: #4b5563; }
.shipment-top-ref { margin-top: 4px; color: #6b7280; font-size: 13px; }
.shipment-top-ref strong { color: #111827; font-weight: 600; }
.shipment-top-stages { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shipment-top-stage { display: flex; align-items: flex-start; gap: 10px; min-width: 190px; max-width: 300px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.shipment-top-stage > .fa { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; font-size: 12px; }
.shipment-top-stage.is-ok > .fa { background: #dcfce7; color: #15803d; }
.shipment-top-stage.is-wait > .fa { background: #fef3c7; color: #b45309; }
.shipment-top-stage-label { display: block; color: #6b7280; font-size: 12px; }
.shipment-top-stage-state { display: block; color: #111827; font-size: 14px; font-weight: 600; }
.shipment-top-stage.is-wait .shipment-top-stage-state { color: #92400e; }
.shipment-top-stage-note { display: block; margin-top: 2px; color: #6b7280; font-size: 12px; }
.shipment-top .shipment-top-grid { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; gap: 12px 24px; margin: 0; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.shipment-top .shipment-top-grid dt { margin-bottom: 2px; color: #6b7280; font-size: 12px; font-weight: 400; }
.shipment-top .shipment-top-grid dd { color: #111827; font-size: 14px; font-weight: 600; }
.shipment-top .shipment-top-grid dd .shipment-top-sub { font-weight: 400; }
.shipment-top-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: none; margin: 0; padding: 12px 20px; border: 0; border-top: 1px solid #e5e7eb; border-radius: 0; background: #f8fafc; color: #111827; font-size: 14px; }
.shipment-top-next.is-client { background: #fffbeb; border-top-color: #fde68a; }
.shipment-top-next-icon { flex: none; color: #6b7280; font-size: 16px; }
.shipment-top-next.is-client .shipment-top-next-icon { color: #b45309; }
.shipment-top-next-text { flex: 1 1 260px; margin: 0; font-weight: 600; }
.shipment-top-next .shipment-top-approve { margin: 0; }
@media (max-width: 767px) {
    .shipment-top-stages { width: 100%; }
    .shipment-top-stage { flex: 1 1 100%; max-width: none; }
    .shipment-top-next { padding: 12px 16px; }
    .shipment-top-next .btn { flex: 1 1 100%; }
}


/* Карточка отправки, товары (Олег 26.10, переверстано): товар, подготовка, таможня, количество и цена справа,
   итог внизу; добавление товара — одной строкой в подвале панели */
.shipment-lines { width: 100%; }
.shipment-lines > thead > tr > th { padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; color: #6b7280; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.shipment-lines > thead > tr > th a { color: inherit; }
.shipment-lines > tbody > tr > td { padding: 12px; border-top: 1px solid #f1f5f9; vertical-align: top; }
.shipment-lines > tbody > tr:hover > td { background: #fcfcfd; }
.shipment-lines > tfoot > tr > td { padding: 10px 12px; background: #f8fafc; border-top: 1px solid #e5e7eb; color: #111827; font-weight: 700; }
.shipment-lines-product { width: 38%; }
.shipment-lines-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shipment-lines tbody .shipment-lines-num { color: #111827; font-weight: 600; }
.shipment-line-product { display: flex; align-items: flex-start; gap: 12px; min-width: 220px; }
.shipment-line-photo { flex: none; width: 40px; }
.shipment-line-photo .row { margin: 0; }
.shipment-line-photo .photo-item { padding: 0; }
.shipment-line-photo img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.shipment-line-text { min-width: 0; }
.shipment-line-title { display: -webkit-box; overflow: hidden; color: #111827; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shipment-line-meta { margin-top: 2px; color: #6b7280; font-size: 12px; overflow-wrap: anywhere; }
.shipment-customs-missing { color: #b45309; font-weight: 600; }
.shipment-lines-customs { min-width: 200px; }
.shipment-add-footer { padding: 14px 15px; background: #fafafa; }
.shipment-add-line { margin: 0; }
.shipment-add-title { margin-bottom: 8px; color: #111827; font-size: 13px; font-weight: 700; }
.shipment-add-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
.shipment-add-field { margin: 0; }
.shipment-add-field.is-sku { flex: 1 1 280px; max-width: 420px; }
.shipment-add-field.is-qty { flex: 0 0 110px; }
.shipment-add-field .control-label { margin-bottom: 4px; color: #374151; font-size: 12px; font-weight: 600; }
.shipment-add-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 21px; }
.shipment-add-actions .btn { height: 40px; }
@media (max-width: 767px) {
    .shipment-add-field.is-sku { flex-basis: 100%; max-width: none; }
    .shipment-add-actions { padding-top: 0; flex: 1 1 100%; }
    .shipment-add-actions .btn { flex: 1 1 auto; }
}

/* Секции карточки отправки: заголовок обычным регистром с итогом справа, рамка, отступ между секциями —
   таблица и добавление товара читаются одной секцией (Олег 26.10) */
.shipment-products { margin-bottom: 24px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.shipment-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
.shipment-section-title { margin: 0; color: #111827; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.shipment-section-title .fa { margin-right: 4px; color: #6d28d9; }
.shipment-section-count { color: #6b7280; font-size: 13px; font-variant-numeric: tabular-nums; }
.shipment-products-body .shipment-lines > thead > tr > th:first-child, .shipment-products-body .shipment-lines td:first-child { padding-left: 16px; }
.shipment-products-body .shipment-lines > thead > tr > th:last-child, .shipment-products-body .shipment-lines td:last-child { padding-right: 16px; }
.shipment-products-body .grid-view, .shipment-products-body .grid-scroll { margin: 0; border: 0; border-radius: 0; }
.shipment-products .shipment-add-footer { padding: 14px 16px 16px; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.shipment-add-title .fa { margin-right: 4px; color: #6b7280; }
/* Остальные секции карточки отправки — тот же вид: заголовок обычным регистром, рамка, отступ между секциями */
#fulfilled-view-wrapper > .row > [class*="col-"] > .panel, #fulfilled-view-wrapper > .panel:not(.shipment-top):not(.client-action) { margin-bottom: 24px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
#fulfilled-view-wrapper .panel > .panel-heading { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; background: #fff; color: #111827; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
#fulfilled-view-wrapper .panel > .panel-heading strong { font-weight: 700; }

/* Мастер, план упаковки таблицей (ТЗ Максима 26.10) */
.wizard-plan-import { margin-top: 16px; padding: 14px 16px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; }
.wizard-plan-import-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.wizard-plan-import-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.wizard-plan-file { flex: 1 1 260px; max-width: 420px; }
.wizard-plan-file .form-group { margin: 0; }
.wizard-plan-import-form .btn { height: 40px; }
.wizard-plan-preview { padding: 12px; background: #fff; border: 1px solid #d1fae5; border-radius: 8px; }
.wizard-plan-preview-head { margin-bottom: 8px; }
.wizard-plan-preview .table { font-size: 13px; }
.wizard-plan-preview-actions { display: flex; gap: 8px; margin: 10px 0 0; }

/* Свёрнутая сводка: значения полужирные через серые точки, готовность — цветной меткой; поменялось — подсветка */
.wizard-summary-line { display: flex; align-items: center; gap: 0; }
.wizard-summary-part { flex: none; max-width: 32ch; overflow: hidden; color: #111827; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; border-radius: 4px; }
.wizard-summary-part + .wizard-summary-part::before { content: "·"; margin: 0 8px; color: #9ca3af; font-weight: 400; }
.wizard-dock .wizard-summary-ready.is-open { background: #fef3c7; color: #92400e; font-weight: 600; }
.wizard-dock .wizard-summary-ready.is-ready { background: #dcfce7; color: #166534; font-weight: 600; }
.wizard-dock .wizard-summary-ready strong { font-weight: 700; }
@keyframes wizard-part-changed { 0% { background-color: #ede9fe; box-shadow: 0 0 0 4px #ede9fe; } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }
.wizard-summary-part.is-changed, .wizard-summary-ready.is-changed { animation: wizard-part-changed 1.4s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) { .wizard-summary-part.is-changed, .wizard-summary-ready.is-changed { animation: none; } }

/* Раскрытие сводки внизу не должно двигать прокрутку браузерным «удержанием» — иначе на границе дёргается */
.shipment-wizard .wizard-dock, .shipment-wizard .wizard-dock-end { overflow-anchor: none; }

/* ===== Тосты (bundle/js/toast.js) =====
   Флеши и ответы действий — поверх страницы, поток не сдвигается. Компактные — справа сверху, широкие (ошибки,
   длинный текст) — по центру сверху. Сам блок #flashes и сводка ошибок формы (.alert.cab-flash) — только источник
   для тостов, на странице их нет */
#flashes, .alert.cab-flash { display: none !important; }
.cab-toasts { position: fixed; top: 16px; z-index: 2100; display: flex; flex-direction: column; pointer-events: none; }
.cab-toasts-compact { right: 16px; width: 360px; max-width: calc(100vw - 32px); }
.cab-toasts-wide { left: 50%; width: 600px; max-width: calc(100vw - 32px); transform: translateX(-50%); }
/* Слот схлопывается по высоте, когда тост уходит, — соседи подъезжают плавно, а не прыгают */
.cab-toast-slot { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 200ms cubic-bezier(.23, 1, .32, 1), margin 200ms cubic-bezier(.23, 1, .32, 1); margin-bottom: 8px; }
.cab-toast-slot.is-leaving { grid-template-rows: 0fr; margin-bottom: 0; }
.cab-toast { min-height: 0; overflow: hidden; pointer-events: auto; display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 10px 12px 14px; background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .12), 0 2px 6px rgba(17, 24, 39, .06);
    font-size: 14px; line-height: 1.45;
    opacity: 0; transform: translateY(-8px) scale(.98);
    transition: opacity 220ms cubic-bezier(.23, 1, .32, 1), transform 220ms cubic-bezier(.23, 1, .32, 1); }
.cab-toast-slot.is-shown .cab-toast { opacity: 1; transform: none; }
.cab-toast-slot.is-leaving .cab-toast { opacity: 0; transform: translateY(-6px) scale(.98); transition-duration: 160ms; }
.cab-toast-icon { flex: none; font-size: 18px; line-height: 20px; margin-top: 0; }
.cab-toast-body { flex: 1; min-width: 0; padding-top: 0; overflow-wrap: anywhere; }
.cab-toast-body a { color: inherit; text-decoration: underline; font-weight: 600; }
.cab-toast-body strong, .cab-toast-body b { font-weight: 600; }
.cab-toast-body p { margin: 0 0 4px; }
.cab-toast-body p:last-child, .cab-toast-body ul:last-child { margin-bottom: 0; }
.cab-toast-body ul, .cab-toast-body ol { margin: 4px 0 0; padding-left: 18px; }
.cab-toasts-wide .cab-toast { padding: 14px 12px 14px 16px; }
.cab-toasts-wide .cab-toast-body { max-height: 50vh; overflow-y: auto; }
.cab-toast-success .cab-toast-icon { color: #0f766e; }
.cab-toast-info .cab-toast-icon { color: #762dc4; }
.cab-toast-warning { border-color: #fde68a; }
.cab-toast-warning .cab-toast-icon { color: #d97706; }
.cab-toast-error { border-color: #fecaca; }
.cab-toast-error .cab-toast-icon { color: #dc2626; }
.cab-toast-close { flex: none; width: 28px; height: 28px; margin: -4px -2px -4px 0; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #6b7280; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 150ms ease, color 150ms ease; }
.cab-toast-close:hover { background: #f3f4f6; color: #111827; }
.cab-toast-close:focus-visible { outline: 2px solid #762dc4; outline-offset: 1px; }
/* Тонкий крестик — один на весь кабинет (тосты, модалки, плашки) */
.cab-x { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 767px) {
    .cab-toasts-compact, .cab-toasts-wide { left: 12px; right: 12px; width: auto; max-width: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cab-toast, .cab-toast-slot.is-leaving .cab-toast { transform: none !important; }
    .cab-toast-slot { transition: none; }
}

/* ==== Окна и крестики — один образец на весь кабинет ====
   В старой теме (essentials.css) у .modal-dialog своя тень 0 10px 25px /50% и радиус 3px: поверх новой карточки
   это грязные тёмные углы. Тень и скругление — только у .modal-content */
.modal-dialog { box-shadow: none !important; border-radius: 12px !important; }
.datepicker.dropdown-menu { border-color: #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 24, 39, .12); }

/* Крестик закрытия: вместо жирного «×» шрифта (Bootstrap .close — 21px/700) и иконки fa-times — тонкий штрих.
   Работает для любой разметки внутри .close (&times;, <span>, <i class="fa fa-times">) */
.close { float: right; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 8px; background: transparent; color: #6b7280 !important; opacity: 1 !important; text-shadow: none !important;
    font-size: 0 !important; line-height: 0 !important; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.close > * { display: none !important; }
.close::before { content: ""; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.close:hover, .close:focus-visible { background: #f3f4f6; color: #111827 !important; outline: none; }
.close:focus-visible { box-shadow: 0 0 0 2px #762dc4; }
.modal .close { font-size: 0 !important; }
/* Иконка-крестик (удалить строку, отменить) — тот же тонкий штрих вместо жирного глифа Font Awesome */
.fa-times::before, .fa-xmark::before, .fa-close::before, .fa-remove::before { content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ==== Закреплённые внизу панели — один вид ====
   Подвал мастера, сводка мастера, Save в профиле, панель групповых действий: белый фон, тонкая линия сверху,
   мягкая тень только вверх, кнопки — обычные кнопки кабинета */
:root { --dock-shadow: 0 -6px 12px -10px rgba(17, 24, 39, .25); --dock-border: #e5e7eb;
    --nav-bg: linear-gradient(90deg, #141a45 0%, #1d1a52 60%, #241a5a 100%); }

/* ==== Панель групповых действий (views/common/bulk-bar.php, script.js bulkBarsUpdate) ====
   Края — по контейнеру контента (как карточки страницы), впритык к низу окна. Выезжает, когда отмечены строки.
   Тёмная, цветом шапки и меню (--nav-bg): это режим «выбраны строки», он должен быть заметен; кнопки — обычные кабинета
   Место под неё внизу страницы зарезервировано всегда — выбор строки ничего не сдвигает */
.bulk-bar-spacer { height: 72px; }
.bulk-bar { position: fixed; z-index: 1030; bottom: 0; left: var(--bulk-left, 0); width: var(--bulk-width, 100%);
    transform: translateY(100%); visibility: hidden;
    transition: transform 240ms cubic-bezier(.23, 1, .32, 1), visibility 0s linear 240ms; }
.bulk-bar.is-active { transform: none; visibility: visible; transition-delay: 0s; }
.bulk-bar-inner { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px 12px 10px 8px; background: var(--nav-bg); color: #fff;
    border-radius: 8px 8px 0 0; box-shadow: 0 -6px 16px -6px rgba(17, 24, 39, .35); }
.bulk-bar-count { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
    background: transparent; color: rgba(255, 255, 255, .72); font-size: 13px; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease; }
.bulk-bar-count:hover, .bulk-bar.is-open .bulk-bar-count { background: rgba(255, 255, 255, .1); }
.bulk-bar-num { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.bulk-bar-caret { font-size: 14px; transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.bulk-bar.is-open .bulk-bar-caret { transform: rotate(180deg); }
.bulk-bar-divider { flex: none; width: 1px; height: 20px; background: rgba(255, 255, 255, .18); margin: 0 4px; }
.bulk-bar-actions { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.bulk-bar-actions::-webkit-scrollbar { display: none; }
.bulk-bar-actions form, .bulk-bar-actions .form-group, .bulk-bar-actions .group { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px; margin: 0 !important; }
.bulk-bar .btn { flex: none; margin: 0 !important; white-space: nowrap; }
.bulk-bar .btn.bulk-danger { color: #b91c1c !important; }
.bulk-bar .btn.bulk-danger:hover { background: #fef2f2 !important; border-color: #fecaca !important; }
.bulk-bar-clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: auto; padding: 0;
    border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .72); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.bulk-bar-clear:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bulk-bar-count:focus-visible, .bulk-bar-clear:focus-visible, .bulk-bar .btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
/* Номера выбранного — карточка над панелью */
.bulk-bar-list { position: absolute; left: 8px; bottom: calc(100% + 8px); width: 320px; max-width: calc(100% - 16px); max-height: 260px; overflow-y: auto;
    padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 10px 28px rgba(17, 24, 39, .14);
    opacity: 0; transform: translateY(6px) scale(.98); transform-origin: bottom left; pointer-events: none;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(.23, 1, .32, 1); }
.bulk-bar.is-open .bulk-bar-list { opacity: 1; transform: none; pointer-events: auto; }
.bulk-bar-list-head { margin: 0 2px 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
.bulk-bar-ids { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bulk-bar-ids li { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 2px 0 8px; border-radius: 6px; background: #f3f4f6;
    color: #374151; font-size: 12px; font-variant-numeric: tabular-nums; }
.bulk-bar-id-remove { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0;
    border-radius: 4px; background: transparent; color: #9ca3af; cursor: pointer; }
.bulk-bar-id-remove:hover { background: #e5e7eb; color: #111827; }
.bulk-bar-id-remove .cab-x { width: 12px; height: 12px; }
@media (max-width: 767px) {
    .bulk-bar { left: 0; width: 100%; }
    .bulk-bar-inner { padding: 8px 12px; border-radius: 0; }
    .bulk-bar-list { width: auto; right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bulk-bar { transition: visibility 0s; }
    .bulk-bar-list { transition: opacity 120ms ease; transform: none; }
}

/* ===== Карточка товара (макет Максима 27.10): шапка с действиями, товар + остатки, поставки, Details шестью группами ===== */
.page-header-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.page-header-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.page-header-actions .btn i { font-size: 13px; color: #4b5563; }
.page-header-action-form { display: contents; }
.page-header-actions .btn-delete-outline { color: #b91c1c; border-color: #fca5a5; }
.page-header-actions .btn-delete-outline i { color: #b91c1c; }
.page-header-actions .btn-delete-outline:hover, .page-header-actions .btn-delete-outline:focus { color: #991b1b; background: #fef2f2; border-color: #f87171; }
@media (min-width: 768px) {
    .page-header-actions { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); margin: 0; }
}

.lot-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; min-width: 0; }
.lot-card-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.lot-card-grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.lot-card-grid > .card-section { margin-bottom: 0; }
.lot-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.lot-icon-green { background: #ecfdf3; color: #15803d; }
.lot-icon-amber { background: #fff7ed; color: #c2410c; }
.lot-icon-indigo { background: #eef2ff; color: #4338ca; }
.lot-icon-sky { background: #e0f2fe; color: #0369a1; }
.lot-icon-gray { background: #f3f4f6; color: #4b5563; }

/* Товар: фото, название, SKU / статус / склад */
.lot-hero { display: flex; align-items: flex-start; gap: 20px; }
.lot-hero-photo { flex: none; width: 128px; height: 128px; border-radius: 8px; background: #f9fafb; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lot-hero-photo .thumbnails, .lot-hero-photo a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.lot-hero-photo img { width: 100%; height: 100%; object-fit: contain; border: 0; padding: 0; border-radius: 0; background: transparent; }
.lot-hero-photo .img-placeholder { width: 128px !important; height: 128px !important; font-size: 28px; border-radius: 8px; }
.lot-hero-body { min-width: 0; flex: 1 1 auto; }
.lot-hero-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; line-height: 1.35; color: #111827; overflow-wrap: anywhere; }
.lot-hero-facts { display: grid; grid-template-columns: max-content max-content minmax(0, max-content); gap: 8px 32px; margin: 0; }
.lot-hero-facts > div:first-child dd { overflow-wrap: normal; white-space: nowrap; }
.lot-hero-facts dt { margin: 0 0 4px; font-size: 12px; font-weight: 500; color: #6b7280; }
.lot-hero-facts dd { margin: 0; font-size: 14px; font-weight: 600; color: #111827; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 4px; }

/* Остатки на складе */
.lot-card-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #111827; }
.lot-stock-list { list-style: none; margin: 0; padding: 0; }
.lot-stock-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.lot-stock-list li + li { border-top: 1px solid #f1f2f4; }
.lot-stock-text { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 500; color: #111827; line-height: 1.35; }
.lot-stock-text small { display: block; font-size: 12px; font-weight: 400; color: #6b7280; }
.lot-stock-qty { font-size: 16px; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }

/* Поставки и отправки */
.lot-link-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px 20px; font-size: 13px; }
.lot-link-icon { flex: none; width: 24px; padding-top: 2px; font-size: 16px; color: #4338ca; text-align: center; }
.lot-link-title { margin: 0 0 2px; font-size: 13px; font-weight: 500; color: #111827; }
.lot-link-list { margin: 0; }
.lot-link-list li { line-height: 1.7; }
.lot-link-more summary { display: inline-block; margin-top: 2px; color: #4338ca; font-weight: 500; cursor: pointer; list-style: none; }
.lot-link-more summary::-webkit-details-marker { display: none; }
.lot-link-more summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.lot-link-more[open] summary { display: none; }

/* Сворачиваемый раздел (views/common/card-section.php): Details, услуги, задачи, файлы, история */
.card-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 16px; min-width: 0; }
.card-section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 20px; background: none; border: 0; text-align: left; border-radius: 10px; }
.card-section-toggle:focus-visible { outline: 2px solid #762dc4; outline-offset: -2px; }
.card-section-toggle i { flex: none; color: #4b5563; transition: transform .2s ease; }
.card-section-toggle.collapsed i { transform: rotate(180deg); }
.card-section-title { margin: 0; font-size: 18px; font-weight: 600; color: #111827; text-transform: none; letter-spacing: 0; }
.card-section-body { padding: 0 16px 16px; }
.card-section-body > :last-child { margin-bottom: 0; }
.card-section-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 16px; }
.card-section-footer > div { width: 100%; }
.card-section .lot-details-note { margin-bottom: 12px; }
.lot-details-note { padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; font-size: 13px; color: #374151; }
.lot-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lot-details-group { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px 8px; min-width: 0; }
.lot-details-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #111827; }
.lot-details-rows { margin: 0; }
.lot-details-rows > div { display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 1fr); gap: 10px; padding: 7px 0; align-items: baseline; }
.lot-details-rows > div + div { border-top: 1px solid #f1f2f4; }
.lot-details-rows dt { font-size: 13px; font-weight: 400; color: #6b7280; }
.lot-details-rows dd { margin: 0; font-size: 13px; font-weight: 600; color: #111827; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lot-detail-with-action { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.lot-detail-with-action .btn { flex: none; }
.lot-detail-with-action .btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; line-height: 1; }
.lot-detail-with-action .btn .fa-lg { font-size: 12px; }

@media (max-width: 1199px) {
    .lot-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .lot-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .lot-card { padding: 16px; }
    .lot-hero { gap: 14px; }
    .lot-hero-photo, .lot-hero-photo .img-placeholder { width: 88px !important; height: 88px !important; }
    .lot-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
    .lot-details-grid { grid-template-columns: minmax(0, 1fr); }
    .card-section-body, .card-section-footer { padding: 0 12px 12px; }
    .card-section-toggle { padding: 14px 16px; }
    .lot-details-group { padding: 12px 12px 6px; }
    .lot-details-rows > div { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
    .lot-link-card { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .card-section-toggle i { transition: none; }
}

/* Разбор паллеты на коробки: связь паллета ↔ коробки (views/inbound/common/breakdown.php) */
.inbound-breakdown { margin: 8px 0 0; color: #4b5563; }
.inbound-breakdown-box { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 2px 0; white-space: nowrap; }
.inbound-parent { margin-top: 2px; }

/* ==== Состав коробок паллеты под разбор (мастер, шаг 3; views/inbound/view/wizard/box-contents.php) ==== */
.box-contents { border-top: 1px solid #eceef3; }
.box-contents-head { margin-bottom: 12px; }
.box-contents-optional { margin-left: 6px; font-size: 12px; color: #6b7280; }
.box-contents-table { margin-bottom: 8px; }
.box-contents-table > thead > th, .box-contents-table > thead > tr > th { font-size: 12px; color: #6b7280; font-weight: 600; border-bottom-width: 1px; }
.box-contents-table > tbody > tr > td { vertical-align: middle; border-top-color: #f1f2f6; }
.box-contents-table .box-col { width: 96px; }
.box-contents-table .qty-col { width: 110px; }
.box-contents-table .remove-col { width: 44px; text-align: center; }
.box-contents-table .remove-col .btn { min-width: 36px; min-height: 36px; color: #9ca3af; }
.box-contents-table .remove-col .btn:hover, .box-contents-table .remove-col .btn:focus { color: #dc2626; }
.box-contents-table .form-control.is-invalid { border-color: #dc2626; box-shadow: none; }
.box-contents-readonly td { font-size: 13px; }
.box-contents-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.box-contents-paste { background: #f9fafb; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.box-contents-paste label { font-weight: 400; font-size: 13px; color: #374151; }
.box-contents-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; margin-bottom: 8px; }
.box-contents-paste-errors { font-size: 13px; margin-bottom: 8px; }
.box-contents-paste-errors:empty { display: none; }
.box-contents-summary { margin-bottom: 12px; }
.box-contents-subtitle { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
.box-contents-chips, .box-contents-unpack { display: flex; flex-wrap: wrap; gap: 6px; }
.box-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #f3f4f6; color: #374151; }
.box-chip-part { background: #fff7ed; color: #9a3412; }
.box-chip-full { background: #ecfdf5; color: #047857; }
.box-chip-over { background: #fef2f2; color: #b91c1c; }
.box-unpack-item { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-weight: 400; font-size: 13px; cursor: pointer; min-height: 36px; }
.box-unpack-item input { margin: 0; }
.box-unpack-item:has(input:checked) { border-color: #762dc4; background: #f7f2fd; }
.box-contents-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.box-contents-dirty { font-size: 12px; color: #9a3412; }
/* Телефон: строка таблицы — карточка: «коробка, количество, ×» сверху, товар во всю ширину снизу, подписи над полями */
@media (max-width: 575px) {
    .js-box-contents .table-responsive { overflow-x: visible; }
    .js-box-contents .box-contents-table thead { display: none; }
    .js-box-contents .box-contents-table tbody tr { display: grid; grid-template-columns: 1fr 1fr 44px; grid-template-areas: "box qty rm" "lot lot lot"; gap: 4px 8px; padding: 10px 12px; border-top: 1px solid #f1f2f6; }
    .js-box-contents .box-contents-table tbody td { display: block; width: auto; padding: 0; border: 0; }
    .js-box-contents .box-contents-table tbody td.box-col { grid-area: box; }
    .js-box-contents .box-contents-table tbody td.qty-col { grid-area: qty; }
    .js-box-contents .box-contents-table tbody td.remove-col { grid-area: rm; align-self: end; }
    .js-box-contents .box-contents-table tbody td.lot-col { grid-area: lot; }
    .js-box-contents .box-contents-table tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; margin-bottom: 2px; }
    .js-box-contents .box-contents-table tbody td.lot-col::before { display: none; }
}

/* Мастер входящей, шаг 1: поля, зависящие от типа, — свой контейнер для перерисовки, но в той же строке формы */
.inbound-type-fields { display: contents; }

/* «Needs your action» / «Waiting for clients» на главной (app\services\fulfilled\ActionNeeded, 28.10) */
.action-needed .panel-body { padding: 16px; }
.action-needed-group + .action-needed-group { margin-top: 16px; }
.row > .action-needed-group + .action-needed-group { margin-top: 0; }
.action-needed-group .badge { margin-left: 4px; vertical-align: 1px; }
.action-needed-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Решение по недостаче в карточке отправки (ShipWithoutMissing, 28.10) */
.shortage-decision { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .08); }
.shortage-decision-options { margin: 0; padding-left: 18px; }
.shortage-decision-options li + li { margin-top: 8px; }

/* Плашка «магазин отключён» вверху каждой страницы (layouts/blocks/reconnect): текст слева, кнопка справа */
.reconnect-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reconnect-banner-text { line-height: 1.5; }
.reconnect-banner .btn { flex: 0 0 auto; }
@media (max-width: 767px) { .reconnect-banner { flex-direction: column; align-items: stretch; } }

/* Ячейка «Per unit (Combined)» (app\helpers\UnitPrice): за штуку — полужирно, за строку в скобках — серым (владелец 29.10) */
.grid-money-main { font-weight: 600; }
.grid-money-sub { color: #6b7280; }

/* Правила доставки: подпись, поля, «=» и кнопка — на одной линии по центру; пустой блок ошибки не поднимает поле
   (владелец 30.10: «выравнивание по горизонтали») */
.courier-rule-form > .flex-wrapper, .courier-rule-form .flex-wrapper.flex-align-top { align-items: center !important; flex-wrap: wrap; gap: 8px 10px; }
.courier-rule-form .condition { margin: 0; white-space: nowrap; }
.courier-rule-form .result, .courier-rule-form .courier-rule-add-button { margin: 0; }
.courier-rule-form .field, .courier-rule-form .form-group { margin-bottom: 0; }
.courier-rule-form .help-block-error:empty { display: none; }
/* Поле правила сжимается до 160px — ряд правила помещается в одну строку и на узком окне (владелец 30.10) */
.courier-rule-form .flex-basis-400 { flex: 1 1 160px !important; min-width: 160px; max-width: 400px; }

/* ==== Профиль (users/update): шапка и вкладки на всю ширину, как карточка пользователя в админке (владелец 31.10) ==== */
.user-profile { display: flex; flex-direction: column; gap: 16px; }
.up-card, .up-head { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.up-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px 24px; }
.up-head-avatar { flex: 0 0 auto; }
.up-head-avatar img, .up-initials { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.up-initials { display: flex; align-items: center; justify-content: center; background-color: #762dc4; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.up-head-who { flex: 1 1 260px; min-width: 0; }
.up-head-name { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; color: #111827; overflow-wrap: anywhere; }
.up-head-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 13px; color: #6b7280; }
.up-head-meta > span { overflow-wrap: anywhere; }
.up-head-id { font-weight: 600; color: #374151; }
.up-tabs > .nav-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0 12px; border-bottom: 1px solid #e5e7eb; }
.up-tabs > .nav-tabs::-webkit-scrollbar { display: none; }
.up-tabs > .nav-tabs::before, .up-tabs > .nav-tabs::after { display: none; }
.up-tabs > .nav-tabs > li { float: none; flex: 0 0 auto; margin: 0; }
.up-tabs > .nav-tabs > li > a, .up-tabs > .nav-tabs > li > a:hover, .up-tabs > .nav-tabs > li > a:focus { margin: 0; padding: 14px 14px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #6b7280; font-weight: 500; white-space: nowrap; }
.up-tabs > .nav-tabs > li > a:hover { color: #111827; }
.up-tabs > .nav-tabs > li.active > a, .up-tabs > .nav-tabs > li.active > a:hover, .up-tabs > .nav-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid #111827; background: none; color: #111827; }
.page-profile.user-profile .up-tabs > .tab-content { padding: 20px 24px 24px; background: none !important; border: 0; border-radius: 0 0 12px 12px; }
.up-tabs > .tab-content > .tab-pane { background: none; }
.up-tabs > .tab-content > .tab-pane > .alert:first-child { margin-bottom: 16px; }
/* Кнопка сохранения профиля внизу вкладки — на всю ширину карточки */
.page-profile.user-profile .profile-save-bar { margin: 24px -24px -24px; padding: 12px 24px; border-radius: 0 0 12px 12px; }
.up-collapse { margin-top: 16px; }
.up-collapse-toggle { display: inline-flex; align-items: center; gap: 6px; }
.up-collapse .up-collapse-body { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.up-collapse.is-open .up-collapse-body { display: block; }
.up-collapse.is-open .up-collapse-toggle { display: none; }
.up-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
/* В небольших таблицах профиля текст целиком: адрес компании переносится, а не режется «…» */
.user-profile .table > tbody > tr > td.cell-clip { max-width: none; white-space: normal; }
.user-profile .table > tbody > tr > td.cell-clip > .clip-text, .user-profile .table > tbody > tr > td.cell-clip > a, .user-profile .table > tbody > tr > td.cell-clip > span:not(.label):not(.fa):not(.badge):not(.status-pill) { display: inline; max-width: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* Пустая таблица — одна строка текста, без шапки */
.user-profile table:has(> tbody .empty) > thead { display: none; }
.user-profile table:has(> tbody .empty), .user-profile table:has(> tbody .empty) > tbody, .user-profile tbody > tr:has(> td > .empty), .user-profile tbody td:has(> .empty) { display: block; border: 0 !important; background: none !important; box-shadow: none; text-align: left !important; }
.user-profile tbody td:has(> .empty) { padding: 4px 0; }
.user-profile tbody td:has(> .empty)::before { display: none !important; content: none !important; }
.user-profile .grid-scroll:has(tbody .empty) { border: 0; background: none; box-shadow: none; }
.user-profile .empty { font-size: 13px; color: #6b7280; }
@media (max-width: 767px) {
    .up-head { padding: 16px; gap: 12px 14px; }
    .up-head-avatar img, .up-initials { width: 52px; height: 52px; font-size: 18px; }
    .up-head-name { font-size: 18px; }
    .page-profile.user-profile .up-tabs > .tab-content { padding: 16px; }
    .page-profile.user-profile .profile-save-bar { margin: 20px -16px -16px; padding: 12px 16px; }
    .up-tabs > .nav-tabs { padding: 0 4px; }
    .up-tabs > .nav-tabs > li > a, .up-tabs > .nav-tabs > li > a:hover, .up-tabs > .nav-tabs > li > a:focus { padding: 12px 10px 10px; }
}
@media (max-width: 1199px) {
    /* Таблицы профиля на телефоне, планшете и ноутбуке (до 1199px: в 1024px с меню колонки не помещаются) — карточками: подпись слева, значение справа, без прокрутки вбок */
    .user-profile .grid-scroll { overflow: visible; border: 0; background: none; box-shadow: none; }
    .user-profile .table > thead { display: none; }
    .user-profile .table, .user-profile .table > tbody { display: block; width: 100%; margin: 0; background: none; border: 0; }
    .user-profile .table > tbody > tr { display: block; margin-bottom: 12px; padding: 2px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background-color: #fff; overflow: hidden; }
    .user-profile .table > tbody > tr.success { background-color: #f0fdf4; }
    .user-profile .table > tbody > tr.danger { background-color: #fef2f2; }
    .user-profile .table > tbody > tr.warning { background-color: #fffbeb; }
    .user-profile .table > tbody > tr > td { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; padding: 8px 0 !important; border: 0 !important; border-top: 1px solid #f3f4f6 !important; background: transparent !important; box-shadow: none !important; text-align: right; }
    .user-profile .table > tbody > tr > td:first-child { border-top: 0 !important; }
    .user-profile .table > tbody > tr > td::before { content: attr(data-label); margin-right: auto; padding-right: 12px; color: #6b7280; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; }
    .user-profile .table > tbody > tr > td:not([data-label]) { justify-content: flex-start; }
    .user-profile .table > tbody > tr > td:not([data-label])::before { display: none; }
    .user-profile .table > tbody > tr:has(> td > .empty) { margin: 0; padding: 0; border: 0; }
}
