.app-main {
    width: 100%;
    max-width: 100%;
    padding-top: 20px;
}

.form-field .clients-create-switch__toggle input[type="checkbox"] {
    margin: 0;
    width: 44px;
    min-width: 44px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #b8c7ff;
    background: #dce6ff;
    background-image: none;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    appearance: none;
}

.form-field .clients-create-switch__toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(18 38 120 / 0.2);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.form-field .clients-create-switch__toggle input[type="checkbox"]:checked {
    background: #3553f8;
    border-color: #2b46d4;
    background-image: none;
}

.form-field .clients-create-switch__toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.form-field .clients-create-switch__toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid rgb(63 99 255 / 0.25);
    outline-offset: 2px;
}

.users-table-actions {
    display: grid;
    gap: 8px;
}

.admin-topbar {
    margin: 0 0 10px;
    border: 1px solid #e3e8f3;
    border-radius: 12px;
    background: #fff;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-topbar__search {
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    border: 1px solid #e4eaf6;
    border-radius: 10px;
    background: #f8fafd;
    padding: 0 9px;
    min-height: 38px;
}

.admin-topbar__search .material-symbols-rounded {
    color: #6d7890;
    font-size: 16px;
}

.admin-topbar__search input {
    border: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    padding: 0;
    min-height: 34px;
    font-size: 0.86rem;
}

.admin-topbar__search input:focus {
    border: 0;
    box-shadow: none;
    outline: none;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-topbar__notifications {
    position: relative;
}

.admin-topbar__notifications summary {
    list-style: none;
    width: 38px;
    height: 38px;
    border: 1px solid #d8dfed;
    border-radius: 9px;
    background: #f7f9fc;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}

.admin-topbar__notifications summary::-webkit-details-marker {
    display: none;
}

.admin-topbar__notifications summary .material-symbols-rounded {
    color: #4b5a79;
    font-size: 18px;
}

.admin-topbar__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1f57d2;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.admin-topbar__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    border: 1px solid #dbe3f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 32px -28px rgb(28 46 98 / 0.52);
    padding: 8px;
    display: grid;
    gap: 4px;
    z-index: 40;
}

.admin-topbar__menu-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 9px;
    color: #33496f;
    text-decoration: none;
    font-size: 0.8rem;
}

.admin-topbar__menu-item:hover {
    background: #f5f8fd;
}

.admin-topbar__menu-item .material-symbols-rounded {
    font-size: 17px;
    color: #5974a7;
}

.admin-topbar__menu-empty {
    color: #6c7891;
    font-size: 0.78rem;
    padding: 8px 9px;
}

.admin-topbar__greeting {
    color: #4d5a73;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-topbar__logout {
    min-height: 38px;
    font-size: 0.72rem;
    padding: 0 8px;
}

.admin-search-results {
    display: grid;
    gap: 12px;
}

.admin-search-results__header h2 {
    margin: 0 0 10px;
    color: #24334e;
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-search-results__list {
    display: grid;
    gap: 8px;
}

.admin-search-results__item {
    border: 1px solid #e3e8f3;
    border-radius: 10px;
    background: #fafbfd;
    padding: 10px 11px;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 3px;
}

.admin-search-results__item strong {
    color: #23314a;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-search-results__item small {
    color: #67748d;
    font-size: 0.77rem;
}

.admin-search-results__item:hover {
    border-color: #ccd6e7;
    background: #f5f8fd;
}

.product-page {
    display: grid;
    gap: 14px;
}

.product-page__header {
    border: 1px solid #e3e8f3;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
}

.product-page__header-main h1 {
    margin: 2px 0 0;
    color: #1f2b42;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.product-page__header-main p {
    margin: 6px 0 0;
    color: #5f6b82;
    font-size: 0.9rem;
    max-width: 780px;
}

.product-page__back {
    width: fit-content;
}

.product-page__eyebrow {
    margin-top: 4px;
    color: #5f6b82;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.product-page__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 12px;
}

.product-page__details {
    border: 1px solid #e3e8f3;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.product-page__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.product-page__meta-card {
    border: 1px solid #e6ebf4;
    border-radius: 10px;
    background: #fafbfd;
    padding: 10px;
    display: grid;
    gap: 5px;
}

.product-page__meta-card small {
    color: #6a758b;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.product-page__meta-card strong {
    color: #25324a;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.product-page__upload-card {
    border: 1px dashed #ccd5e4;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.product-page__upload-card h2 {
    margin: 0;
    color: #25324a;
    font-size: 0.98rem;
    font-weight: 700;
}

.product-page__upload-card p {
    margin: 4px 0 0;
    color: #5f6b82;
    font-size: 0.78rem;
    line-height: 1.45;
}

.product-page__cover {
    border: 1px solid #e6ebf4;
    border-radius: 12px;
    background: #f5f7fb;
    min-height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-page__cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-page__cover .material-symbols-rounded {
    font-size: 34px;
    color: #8b96ab;
}

.product-page__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-page__stat-card {
    border: 1px solid #e3e8f3;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.product-page__stat-card small {
    color: #6a758b;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.product-page__stat-card strong {
    color: #25324a;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
}

.product-page__stat-card--accent {
    border-color: #d7ddea;
    background: #f9fafc;
}

.product-page__table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.product-page__table-header h2 {
    margin: 0;
    color: #25324a;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-page__table-header p {
    margin: 4px 0 0;
    color: #5f6b82;
    font-size: 0.82rem;
}

.product-images-admin {
    display: grid;
    gap: 14px;
}

.product-images-admin__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.product-images-admin__header h2 {
    margin: 0;
    color: #21366f;
    font-size: 1.2rem;
    font-weight: 800;
}

.product-images-admin__header p {
    margin: 6px 0 0;
    color: #6678a3;
    font-size: 0.86rem;
    max-width: 760px;
}

.product-images-admin__upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-images-admin__picker {
    display: grid;
    gap: 6px;
    min-width: min(340px, 100%);
}

.product-images-admin__file-input {
    display: none !important;
}

.product-images-admin__file-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: none;
    border-color: #ccd5e4;
    background: #f5f7fb;
}

.product-images-admin__file-button .material-symbols-rounded {
    font-size: 20px;
}

.product-images-admin__file-help {
    color: #6f7fa4;
    font-size: 0.78rem;
}

.product-images-admin__preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.product-images-admin__preview-card {
    border: 1px solid #dce6fb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: grid;
}

.product-images-admin__preview-card img {
    width: 100%;
    height: 106px;
    object-fit: cover;
    background: #edf3ff;
}

.product-images-admin__preview-radio {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    color: #2d4777;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-images-admin__preview-radio input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
}

.product-images-admin__preview-radio small {
    color: #6c7da5;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-images-admin__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.product-image-card {
    border: 1px solid #dce6fb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 24px -26px rgb(30 51 127 / 0.65);
}

.product-image-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #edf3ff;
}

.product-image-card__meta {
    padding: 10px 10px 0;
    display: grid;
    gap: 6px;
}

.product-image-card__meta small {
    color: #6f7fa4;
    font-size: 0.76rem;
}

.product-image-card__actions {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.product-image-card__actions .btn-secondary {
    width: 100%;
    justify-content: center;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgb(8 14 42 / 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 28;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-mobile-toggle {
    display: none;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e2ff;
    border-radius: 12px;
    background: #fff;
    color: #1f3672;
    box-shadow: 0 14px 24px -22px rgb(23 41 118 / 0.62);
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.sidebar-mobile-toggle .material-symbols-rounded {
    font-size: 18px;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cfddf6;
    background: #edf4ff;
    color: #2c4979;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-status-pill.is-po-sent {
    border-color: #e9cc9e;
    background: #fff6e9;
    color: #8d560e;
}

.order-status-pill.is-pd,
.order-status-pill.is-in-route {
    border-color: #c8dbf8;
    background: #edf5ff;
    color: #204c84;
}

.order-status-pill.is-delivered,
.order-status-pill.is-paid {
    border-color: #a9dcbc;
    background: #eaf9f0;
    color: #0f7240;
}

.order-status-pill.is-canceled {
    border-color: #e8b3bb;
    background: #fff1f2;
    color: #af2236;
}

.order-status-pill.is-in-change {
    border-color: #d8ccff;
    background: #f5f0ff;
    color: #5743a0;
}

.orders-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orders-status-strip {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.orders-status-chip {
    border: 1px solid #d8e5fb;
    border-radius: 12px;
    background: #f7fbff;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.orders-status-chip .material-symbols-rounded {
    color: #315483;
    font-size: 18px;
}

.orders-status-chip small {
    display: block;
    color: #65799f;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.orders-status-chip strong {
    display: block;
    margin-top: 2px;
    color: #1e3765;
    font-size: 0.92rem;
    font-weight: 800;
}

.clients-toolbar .inline-search.inline-search--wide {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(220px, 2.2fr)
        minmax(150px, 1fr)
        minmax(145px, 0.95fr)
        minmax(128px, 0.8fr)
        minmax(128px, 0.8fr)
        auto
        auto;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.clients-toolbar .inline-search.inline-search--wide > input,
.clients-toolbar .inline-search.inline-search--wide > select,
.clients-toolbar .inline-search.inline-search--wide > button,
.clients-toolbar .inline-search.inline-search--wide > a {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.clients-toolbar .inline-search.inline-search--wide > button,
.clients-toolbar .inline-search.inline-search--wide > a {
    width: auto;
    min-width: 92px;
    justify-content: center;
}

.products-filter-form {
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 5px;
}

.clients-toolbar--no-wrap .inline-search.inline-search--wide.products-filter-form {
    width: 100%;
    min-width: 0;
}

.clients-toolbar--no-wrap .inline-search.inline-search--wide.products-filter-form > input,
.clients-toolbar--no-wrap .inline-search.inline-search--wide.products-filter-form > select {
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.66rem;
}

.products-list-plain {
    display: grid;
    gap: 10px;
}

.products-list-plain__row {
    border: 1px solid #dce6fb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 24px -26px rgb(30 51 127 / 0.65);
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(0, 2fr) auto;
    gap: 10px 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}

.products-list-plain__identity strong {
    display: block;
    color: #1f3869;
    font-size: 0.95rem;
    font-weight: 800;
}

.products-list-plain__identity small {
    display: block;
    margin-top: 3px;
    color: #6b7ea5;
    font-size: 0.77rem;
}

.products-list-plain__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #415b88;
    font-size: 0.8rem;
}

.products-list-plain__meta span {
    border: 1px solid #dce6fb;
    border-radius: 999px;
    background: #f7fbff;
    padding: 4px 8px;
}

.products-list-plain__status {
    align-self: center;
    justify-self: end;
}

.orders-table-actions {
    display: grid;
    gap: 6px;
}

.orders-table-actions .btn-link,
.orders-table-actions .btn-secondary {
    width: 100%;
    justify-content: center;
}

.order-advance-modal[hidden] {
    display: none;
}

.order-advance-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 14px;
}

.order-advance-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(8 16 42 / 0.6);
    backdrop-filter: blur(3px);
}

.order-advance-modal__dialog {
    position: relative;
    width: min(540px, 100%);
    border: 1px solid #d6e3f8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 60px -34px rgb(8 20 58 / 0.72);
    overflow: hidden;
}

.order-advance-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8effb;
}

.order-advance-modal__header h2 {
    margin: 0;
    color: #1c3767;
    font-size: 1.02rem;
    font-weight: 800;
}

.order-advance-modal__close {
    width: 34px;
    height: 34px;
    border: 1px solid #d6e3f8;
    border-radius: 10px;
    background: #f3f7ff;
    color: #31527f;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.order-advance-modal__form {
    padding: 14px 16px 16px;
    display: grid;
    gap: 12px;
}

.order-advance-modal__text {
    margin: 0;
    color: #2b4775;
    font-size: 0.9rem;
    line-height: 1.5;
}

.order-advance-modal__pd-field {
    display: grid;
    gap: 6px;
}

.order-advance-modal__pd-field span {
    color: #5f739a;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.order-advance-modal__pd-field input {
    min-height: 44px;
}

.order-advance-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.order-advance-modal__actions .btn-secondary,
.order-advance-modal__actions .btn-primary {
    min-width: 150px;
}

body.modal-open {
    overflow: hidden;
}

.order-status-editor__form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.9fr) auto;
    align-items: end;
}

.order-status-editor__form label {
    display: grid;
    gap: 6px;
}

.order-status-editor__form label span {
    color: #5b6e97;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-status-editor__form input,
.order-status-editor__form select {
    min-height: 44px;
}

.order-status-editor__form button {
    min-height: 44px;
}

.order-detail-page {
    display: grid;
    gap: 14px;
}

.order-detail-page__header h1,
.order-detail-page__header p,
.order-detail-page__kpis .clients-stat__content strong,
.order-detail-page__kpis .clients-stat__content small,
.order-detail-page .panel-card h2,
.order-detail-page .panel-card p,
.order-detail-page .panel-card strong,
.order-detail-page .panel-card small,
.order-detail-page .btn-link,
.order-detail-page .btn-primary,
.order-detail-page .btn-secondary,
.order-detail-page .data-table th,
.order-detail-page .data-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-detail-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-detail-page__actions .btn-link,
.order-detail-page__actions .inline-search {
    min-width: 0;
}

.order-detail-page__actions .inline-search {
    width: auto;
}

.order-detail-page__actions .inline-search button {
    min-height: 42px;
}

.order-detail-page__kpis {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.order-detail-page__kpis .clients-stat {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    overflow: hidden;
}

.order-detail-page__kpis .clients-stat__content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.order-detail-page__kpis .clients-stat__content strong {
    line-height: 1.3;
    min-width: 0;
    font-size: 0.84rem;
}

.order-detail-page__kpis .clients-stat__icon {
    flex-shrink: 0;
    font-size: 18px;
}

.order-detail-page__kpis .clients-stat__content small {
    font-size: 0.62rem;
}

.order-detail-page__info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.order-detail-page__client-info,
.order-detail-page__address {
    min-width: 0;
}

.order-detail-page__facts {
    margin: 10px 0 0;
    display: grid;
    gap: 8px;
}

.order-detail-page__facts div {
    border: 1px solid #e4ebf8;
    border-radius: 10px;
    background: #f9fbff;
    padding: 9px 10px;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.order-detail-page__facts dt {
    color: #5e7099;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-detail-page__facts dd {
    margin: 0;
    color: #223c67;
    font-size: 0.78rem;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-detail-page .panel-card {
    min-width: 0;
}

.order-detail-page .panel-card h2 {
    font-size: 0.96rem;
}

.order-detail-page .panel-card p {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.order-detail-page__kpis .order-status-pill {
    font-size: 0.68rem;
    padding: 3px 7px;
}

.order-detail-page .order-status-editor__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.order-detail-page .order-status-editor__form label,
.order-detail-page .order-status-editor__form input,
.order-detail-page .order-status-editor__form select {
    min-width: 0;
}

.panel-order-timeline {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.panel-order-timeline__step {
    border: 1px solid #d6e3f8;
    border-radius: 12px;
    background: #f7fbff;
    min-height: 84px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: center;
}

.panel-order-timeline__dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #c7d8f1;
    background: #edf4ff;
    color: #385680;
    display: grid;
    place-items: center;
}

.panel-order-timeline__dot .material-symbols-rounded {
    font-size: 18px;
}

.panel-order-timeline__copy strong {
    display: block;
    color: #203861;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
}

.panel-order-timeline__copy small {
    display: block;
    margin-top: 2px;
    color: #63779f;
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.panel-order-timeline__step.is-current {
    border-color: #90b5e8;
    background: linear-gradient(145deg, #edf5ff, #f8fbff);
    box-shadow: 0 14px 28px -25px rgb(26 56 133 / 0.6);
}

.panel-order-timeline__step.is-upcoming {
    opacity: 0.7;
}

.panel-order-timeline__step.is-delivered .panel-order-timeline__dot,
.panel-order-timeline__step.is-delivered.is-current .panel-order-timeline__dot,
.panel-order-timeline__step.is-delivered.is-done .panel-order-timeline__dot {
    border-color: #68be8f;
    background: #e4f8ec;
    color: #147342;
}

.order-detail-page__items {
    min-width: 0;
    overflow-x: auto;
}

.order-detail-page__items .data-table.clients-table {
    width: 100%;
    min-width: 860px;
    table-layout: fixed;
}

.order-detail-page__items .data-table.clients-table th,
.order-detail-page__items .data-table.clients-table td {
    white-space: normal;
    vertical-align: top;
}

.order-detail-page__items .data-table.clients-table th:nth-child(3),
.order-detail-page__items .data-table.clients-table td:nth-child(3) {
    width: 28%;
}

.order-detail-page__items .data-table.clients-table th:nth-child(1),
.order-detail-page__items .data-table.clients-table td:nth-child(1) {
    width: 14%;
}

.order-detail-page__items .data-table.clients-table th:nth-child(2),
.order-detail-page__items .data-table.clients-table td:nth-child(2),
.order-detail-page__items .data-table.clients-table th:nth-child(4),
.order-detail-page__items .data-table.clients-table td:nth-child(4),
.order-detail-page__items .data-table.clients-table th:nth-child(5),
.order-detail-page__items .data-table.clients-table td:nth-child(5),
.order-detail-page__items .data-table.clients-table th:nth-child(6),
.order-detail-page__items .data-table.clients-table td:nth-child(6) {
    width: 14.5%;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(286px, 84vw);
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        box-shadow: none;
    }

    .sidebar:hover {
        width: min(286px, 84vw);
        box-shadow: none;
    }

    .sidebar.is-expanded {
        width: min(286px, 84vw);
        transform: translateX(0);
        box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.12), 16px 0 34px -26px rgb(9 19 60 / 0.72);
    }

    .sidebar__toggle {
        display: none;
    }

    .sidebar-mobile-toggle {
        display: inline-flex;
        margin-bottom: 14px;
        position: sticky;
        top: 10px;
        z-index: 10;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .app-main {
        padding: 16px;
        margin-left: 0;
    }

    .panel-actions {
        align-items: stretch;
    }

    .order-detail-page__actions .btn-link,
    .order-detail-page__actions .inline-search {
        width: 100%;
    }

    .order-detail-page__actions .inline-search button {
        width: 100%;
    }

    .inline-search {
        width: 100%;
    }

    .inline-search input,
    .inline-search select,
    .inline-search button,
    .inline-search a,
    .inline-search--wide input {
        min-width: 0;
        width: 100%;
    }

    .clients-overview {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .admin-topbar {
        flex-wrap: wrap;
    }

    .admin-topbar__search {
        width: 100%;
        order: 2;
    }

    .admin-topbar__actions {
        width: 100%;
        justify-content: flex-end;
        order: 1;
    }

    .product-page__header-main h1 {
        font-size: 1.7rem;
    }

    .product-page__hero {
        grid-template-columns: 1fr;
    }

    .product-page__meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-page__stats {
        grid-template-columns: 1fr;
    }

    .products-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-filter-form {
        grid-template-columns: 1fr;
    }

    .products-filter-form > button,
    .products-filter-form > a {
        width: 100%;
        min-width: 0;
    }

    .products-list-plain__row {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .products-list-plain__status {
        justify-self: start;
    }

    .product-images-admin__upload {
        width: 100%;
    }

    .product-images-admin__picker {
        width: 100%;
    }

    .product-images-admin__file-button {
        width: 100%;
        justify-content: center;
    }

    .clients-table {
        min-width: 720px;
    }

    .orders-summary-grid {
        grid-template-columns: 1fr;
    }

    .orders-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clients-toolbar .inline-search.inline-search--wide {
        grid-template-columns: 1fr;
    }

    .clients-toolbar--no-wrap .inline-search.inline-search--wide.products-filter-form {
        grid-template-columns:
            minmax(0, 1.8fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .order-advance-modal__actions {
        flex-direction: column-reverse;
    }

    .order-advance-modal__actions .btn-secondary,
    .order-advance-modal__actions .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .order-status-editor__form {
        grid-template-columns: 1fr;
    }

    .order-detail-page__items .data-table.clients-table {
        min-width: 760px;
    }

    .order-detail-page__info-grid {
        grid-template-columns: 1fr;
    }

    .panel-order-timeline {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .panel-order-timeline__step {
        min-width: 190px;
    }
}

@media (max-width: 700px) {
    .panel-header h1,
    .dashboard-header__intro h1 {
        font-size: 2rem;
    }

    .product-page__header {
        padding: 14px;
    }

    .admin-topbar__greeting {
        display: none;
    }

    .admin-topbar__logout {
        min-width: 0;
        padding: 0 8px;
    }

    .admin-topbar__menu {
        right: auto;
        left: 0;
        min-width: min(280px, calc(100vw - 46px));
    }

    .product-page__header-main h1 {
        font-size: 1.45rem;
    }

    .product-page__meta-grid {
        grid-template-columns: 1fr;
    }

    .product-page__stat-card strong {
        font-size: 1.55rem;
    }

    .panel-header p,
    .dashboard-header__intro p {
        font-size: 0.95rem;
    }

    .clients-overview,
    .dashboard-strip,
    .products-cards {
        grid-template-columns: 1fr;
    }

    .order-detail-page__header h1 {
        font-size: clamp(1.46rem, 6.2vw, 2rem);
        line-height: 1.2;
    }

    .order-detail-page__kpis .clients-stat {
        padding: 10px;
        gap: 8px;
    }

    .order-detail-page__kpis .clients-stat__content strong {
        font-size: 0.82rem;
    }

    .order-detail-page__facts div {
        padding: 8px 9px;
    }

    .order-detail-page__facts dd {
        font-size: 0.76rem;
    }

    .client-company__meta strong,
    .client-company__meta small,
    .client-price strong,
    .client-price small {
        overflow-wrap: anywhere;
    }

    .clients-table {
        min-width: 0;
        border-spacing: 0 10px;
    }

    .order-detail-page__items .data-table.clients-table {
        min-width: 0;
        table-layout: auto;
    }

    .clients-table thead {
        display: none;
    }

    .clients-table,
    .clients-table tbody,
    .clients-table tr,
    .clients-table td {
        display: block;
        width: 100%;
    }

    .clients-table tbody tr {
        border: 1px solid #e7edff;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 12px 24px -24px rgb(36 58 148 / 0.55);
    }

    .clients-table tbody td {
        border: 0;
        border-bottom: 1px solid #edf2ff;
        border-radius: 0;
        background: transparent;
        padding: 10px 12px;
        display: grid;
        grid-template-columns: minmax(108px, 42%) 1fr;
        gap: 8px;
        align-items: start;
    }

    .clients-table tbody td::before {
        content: attr(data-label);
        color: #6d7db0;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.64rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .clients-table tbody td:last-child {
        border-bottom: 0;
    }

    .clients-table .btn-link {
        width: 100%;
        justify-content: center;
    }

    .clients-empty-row,
    .clients-empty-row td {
        display: block;
        width: 100%;
    }

    .clients-empty-row td {
        border: 0 !important;
        padding: 12px !important;
        text-align: left;
        background: transparent;
    }

    .clients-empty-row td::before {
        content: none;
    }
}
