.admin-body {
    background: #f7f8fa;
    color: #2b2926;
}
.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
}
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #292821;
    color: #fff;
    padding: 22px 16px;
    overflow: auto;
}
.admin-sidebar .brand {
    color: #fff;
    padding: 0 12px 24px;
    display: block;
    text-align: center;
}
.admin-sidebar .brand img {
    width: 92px;
    height: 92px;
}
.admin-sidebar h4 {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: #c7baa8;
    margin: 20px 12px 8px;
}
.admin-sidebar button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    border-radius: 9px;
    background: transparent;
    color: #e6e0d6;
    font-size: 12px;
    font-weight: 550;
    margin: 3px 0;
    padding: 10px 13px;
    min-height: 39px;
    gap: 10px;
}
.admin-sidebar button.active,
.admin-sidebar button:hover {
    background: #ffc146;
    color: #3d2015;
}
.admin-sidebar .side-icon {
    width: 20px;
    font-size: 17px;
}
.admin-sidebar a {
    color: #f8ce7b;
    font-size: 11px;
    display: block;
    padding: 16px 13px;
}
.admin-header {
    background: white;
    border-bottom: 1px solid #e9e9e9;
    padding: 19px 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 12px;
}
.admin-header h2 {
    margin: 0;
    font-size: 16px;
}
.admin-main {
    padding: 30px;
    max-width: 1700px;
    margin: auto;
}
.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}
.admin-title h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}
.admin-title p {
    font-size: 12px;
    color: #827b70;
    margin: 0;
}
.admin-title button {
    font-size: 12px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 25px;
}
.metric {
    background: white;
    border: 1px solid #e9e5df;
    border-radius: 13px;
    padding: 22px;
    min-width: 0;
}
.metric small {
    font-size: 11px;
}
.metric b {
    display: block;
    font-size: 29px;
    letter-spacing: -1px;
    margin: 10px 0 6px;
}
.metric span {
    font-size: 10px;
    color: #876e46;
}
.admin-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}
.admin-main .panel {
    border-color: #e9e5df;
    padding: 22px;
}
.admin-main .panel h3 {
    font-size: 15px;
}
.admin-main table button {
    font-size: 11px;
    padding: 7px 11px;
    min-height: 30px;
}
.admin-main table img {
    width: 47px;
    height: 40px;
    object-fit: cover;
    border-radius: 7px;
}
.admin-main table td {
    max-width: 320px;
    word-break: break-word;
}
.admin-main table .cell-desc {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
    color: #827b70;
}
.chart {
    display: flex;
    gap: 12px;
    height: 190px;
    align-items: end;
    padding: 20px 0 30px;
}
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: end;
    position: relative;
}
.chart-col i {
    display: block;
    background: linear-gradient(#ffd476, #ffab24);
    width: 65%;
    border-radius: 5px 5px 0 0;
    min-height: 2px;
}
.chart-col small {
    font-size: 9px;
    position: absolute;
    bottom: -25px;
}
.chart-col span {
    font-size: 8px;
    color: #816c50;
    margin-bottom: 5px;
}
.admin-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.admin-toolbar input,
.admin-toolbar select {
    width: auto;
    flex: 1;
    min-width: 120px;
}
.admin-toolbar button {
    font-size: 12px;
}
.kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 15px;
    overflow: auto;
    padding-bottom: 20px;
}
.kanban-column {
    background: #edece9;
    border-radius: 15px;
    padding: 14px;
    min-height: 250px;
}
.kanban-column h3 {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}
.kanban-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    border: 1px solid #e3ded5;
}
.kanban-card h4 {
    margin: 0 0 5px;
}
.kanban-card p {
    margin: 7px 0;
    color: #776f65;
    font-size: 11px;
}
.kanban-card button {
    width: 100%;
    font-size: 11px;
    min-height: 34px;
    margin-top: 10px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}
.form-grid label.wide {
    grid-column: 1/-1;
}
.admin-body dialog {
    max-width: 920px;
}
.admin-body dialog h2 {
    font-size: 25px;
}
.admin-body dialog .modal-body {
    padding: 32px;
}
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
}
.order-detail-grid p {
    font-size: 13px;
}
.order-detail-grid .panel {
    padding: 18px;
}
.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.order-actions button,
.order-actions a {
    font-size: 11px;
    padding: 10px 13px;
}
.order-choice-list {
    padding-left: 18px;
    font-size: 12px;
    color: #746555;
}
.order-detail-item {
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
}
.order-detail-item h3 {
    font-size: 15px;
}
.admin-login {
    max-width: 430px;
    margin: 7vh auto;
    padding: 30px;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.admin-login .setup-logo {
    width: 110px;
}
.admin-login h1 {
    font-size: 27px;
    text-align: center;
}
.admin-login > p {
    text-align: center;
    font-size: 13px;
}
.admin-login button {
    width: 100%;
    margin-top: 16px;
}
.tabs {
    display: flex;
    gap: 7px;
    overflow: auto;
    margin-bottom: 20px;
}
.tabs button {
    font-size: 12px;
    white-space: nowrap;
    background: white;
    color: var(--brown);
    border: 1px solid var(--line);
}
.tabs button.active {
    background: #ffc146;
    border-color: #ffc146;
}
.setting-section {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.mobile-menu-toggle {
    display: none;
}
.inline-image {
    display: flex;
    gap: 10px;
    align-items: center;
}
.inline-image img {
    width: 60px;
    height: 50px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.inline-image input {
    font-size: 10px;
}
.help-text {
    font-size: 12px;
    color: #806e60;
}
.admin-modal .form-error {
    margin-top: 10px;
}
.admin-main .empty-state {
    background: #fff8e8;
}
.split-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.split-actions button {
    font-size: 12px;
}
.coordinates-note {
    font-size: 11px;
    padding: 10px;
    background: #fff4dc;
    border-radius: 8px;
}
.admin-body input[readonly] {
    background: #f5f3ef;
}
.admin-main .status-badge {
    white-space: nowrap;
}
.admin-title .select {
    max-width: 160px;
}
@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 195px 1fr;
    }
    .admin-main {
        padding: 22px;
    }
    .admin-header {
        padding: 18px 22px;
    }
    .metric-grid {
        gap: 12px;
    }
    .metric {
        padding: 16px;
    }
    .metric b {
        font-size: 23px;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        padding: 18px 10px;
    }
    .admin-sidebar button {
        font-size: 11px;
    }
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .admin-shell {
        display: block;
    }
    .admin-sidebar {
        display: none;
        position: fixed;
        z-index: 40;
        width: 235px;
        box-shadow: 10px 0 40px #0004;
    }
    .admin-sidebar.open {
        display: block;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        background: #fff0cc;
        color: #3d2015;
        padding: 5px 12px;
        font-size: 20px;
        min-height: 35px;
    }
    .admin-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 15;
    }
    .admin-main {
        padding: 20px 16px;
    }
    .admin-title {
        gap: 12px;
    }
    .admin-title h1 {
        font-size: 25px;
    }
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
    .metric b {
        font-size: 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .admin-title button {
        padding: 10px;
        font-size: 11px;
    }
    .admin-body dialog .modal-body {
        padding: 24px 19px;
    }
    .admin-login {
        margin: 30px 16px;
        max-width: none;
    }
    .admin-toolbar {
        gap: 8px;
    }
    .admin-sidebar .brand {
        padding-bottom: 15px;
    }
    .admin-sidebar .brand img {
        width: 70px;
        height: 70px;
    }
}
.admin-grid > *,
.admin-main .panel {
    min-width: 0;
}
@media (max-width: 768px) {
    .admin-header > div {
        min-width: 0;
    }
    .admin-header > div:last-child {
        max-width: 145px;
        font-size: 10px;
        text-align: right;
    }
    .admin-header h2 {
        font-size: 13px;
    }
    .admin-header .store-badge {
        font-size: 9px;
    }
    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.admin-sidebar .side-art {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("../images/admin-menu.webp");
    background-repeat: no-repeat;
    background-size: 75px 225px;
    flex-shrink: 0;
}
.art-dashboard {
    background-position: -3px -16px;
}
.art-orders {
    background-position: -3px -44px;
}
.art-catalog {
    background-position: -3px -76px;
}
.art-customers {
    background-position: -3px -108px;
}
.art-promotions {
    background-position: -3px -138px;
}
.art-reports {
    background-position: -3px -167px;
}
.art-settings {
    background-position: -3px -194px;
}
