:root {
    --ink: #172233;
    --muted: #728096;
    --line: #e8edf3;
    --paper: #ffffff;
    --page: #f4f6f9;
    --navy: #14243a;
    --blue: #3569dc;
    --coral: #f27e66;
}

* { box-sizing: border-box; }
body { background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.app-frame { min-height: 100vh; }
.app-sidebar { background: var(--navy); bottom: 0; color: #dce5f1; display: flex; flex-direction: column; left: 0; padding: 25px 17px 18px; position: fixed; top: 0; width: 250px; z-index: 20; }
.brand-lockup { align-items: center; color: var(--ink); display: flex; gap: 11px; line-height: 1.2; }
.brand-lockup:hover { color: var(--ink); }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: .98rem; letter-spacing: -.02em; }
.brand-lockup small { color: #9eacc0; font-size: .75rem; margin-top: 4px; }
.brand-mark { align-items: center; background: var(--coral); border-radius: 12px; color: white; display: inline-flex; font-size: .78rem; font-weight: 800; height: 40px; justify-content: center; letter-spacing: -.05em; width: 40px; }
.sidebar-section-label { color: #8998ae; font-size: .66rem; font-weight: 700; letter-spacing: .13em; margin: 34px 10px 9px; }
.sidebar-link { align-items: center; border-radius: 9px; color: #b6c3d4; display: flex; font-size: .9rem; gap: 12px; margin: 2px 0; min-height: 42px; padding: 9px 11px; }
.sidebar-link.active { background: #263951; color: #fff; font-weight: 600; }
.sidebar-link.disabled { color: #8291a6; cursor: default; }
.nav-glyph { align-items: center; display: inline-flex; font-size: 1.05rem; justify-content: center; width: 20px; }
.nav-soon { border: 1px solid #44566e; border-radius: 20px; font-size: .61rem; margin-left: auto; padding: 2px 7px; }
.sidebar-bottom { align-items: flex-start; border-top: 1px solid #2b3d55; display: flex; gap: 10px; margin-top: auto; padding: 17px 4px 0; }
.sidebar-help-icon { align-items: center; border: 1px solid #718096; border-radius: 50%; color: #dbe3ed; display: inline-flex; flex: 0 0 23px; font-size: .75rem; height: 23px; justify-content: center; }
.sidebar-bottom strong, .sidebar-bottom small { display: block; }
.sidebar-bottom strong { color: #e6edf6; font-size: .76rem; }
.sidebar-bottom small { color: #92a0b3; font-size: .68rem; line-height: 1.5; margin-top: 4px; }
.app-main { margin-left: 250px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; height: 72px; justify-content: space-between; padding: 0 34px; }
.topbar-caption { color: #7c899c; font-size: .82rem; }
.topbar-caption span { color: #bbc4d0; margin: 0 8px; }
.topbar-user { align-items: center; display: flex; }
.user-avatar, .recent-avatar { align-items: center; background: #e8efff; border-radius: 50%; color: #385db2; display: inline-flex; font-size: .83rem; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.user-details { margin-left: 9px; }
.user-details strong, .user-details small { display: block; }
.user-details strong { font-size: .77rem; }
.user-details small { color: var(--muted); font-size: .68rem; margin-top: 2px; }
.page-content { margin: 0 auto; max-width: 1550px; padding: 32px 34px 48px; }
.sidebar-toggle { background: none; border: 0; color: var(--ink); display: none; font-size: 1.35rem; padding: 0 12px 0 0; }
.eyebrow { color: #8b96a6; font-size: .69rem; font-weight: 700; letter-spacing: .11em; margin-bottom: 8px; text-transform: uppercase; }
.page-heading h1 { color: var(--ink); font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.04em; }
.page-heading p { font-size: .9rem; }
.btn-primary { background: #315fd0; border-color: #315fd0; border-radius: 8px; box-shadow: 0 4px 10px rgba(49,95,208,.14); font-size: .85rem; font-weight: 600; padding: 10px 15px; }
.btn-primary:disabled { background: #315fd0; border-color: #315fd0; color: white; opacity: .65; }
.metric-card, .panel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px rgba(28,45,71,.025); }
.metric-card { height: 100%; min-height: 145px; padding: 17px 18px; }
.metric-top { align-items: center; color: #778498; display: flex; font-size: .76rem; font-weight: 600; justify-content: space-between; }
.metric-icon { align-items: center; border-radius: 9px; display: inline-flex; font-size: .9rem; font-weight: 700; height: 33px; justify-content: center; width: 33px; }
.icon-blue { background: #edf2ff; color: #4169cb; }
.icon-violet { background: #f1edff; color: #7759c5; }
.icon-amber { background: #fff4e5; color: #bd7b23; }
.icon-green { background: #e9f7f1; color: #37956e; }
.icon-coral { background: #fff0ec; color: #d76b54; }
.metric-value { color: #1c293a; font-size: 1.8rem; font-weight: 700; letter-spacing: -.045em; line-height: 1.25; margin-top: 12px; }
.metric-value.metric-money { font-size: 1.36rem; margin-top: 17px; }
.metric-foot { color: #98a3b2; font-size: .69rem; margin-top: 7px; }
.panel-card { padding: 20px; }
.panel-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 15px; }
.panel-heading h2 { color: #263447; font-size: .97rem; font-weight: 700; letter-spacing: -.015em; margin: 1px 0 4px; }
.panel-heading p { color: #929eae; font-size: .73rem; margin: 0; }
.count-chip { background: #f2f5f9; border-radius: 20px; color: #66758a; font-size: .69rem; font-weight: 700; min-width: 27px; padding: 5px 8px; text-align: center; }
.schedule-row, .recent-row { align-items: center; border-top: 1px solid #f0f2f5; display: flex; gap: 12px; min-height: 66px; padding: 10px 0; }
.date-tile { align-items: center; background: #eef3ff; border-radius: 9px; color: #4268c7; display: flex; flex: 0 0 42px; flex-direction: column; height: 45px; justify-content: center; }
.date-tile strong { font-size: .9rem; line-height: 1; }
.date-tile span { font-size: .61rem; margin-top: 3px; text-transform: uppercase; }
.date-tile-warm { background: #fff4e8; color: #b87928; }
.schedule-main, .recent-main { flex: 1; min-width: 0; }
.schedule-main strong, .schedule-main span, .recent-main strong, .recent-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-main strong, .recent-main strong { color: #344256; font-size: .79rem; font-weight: 650; }
.schedule-main span, .recent-main span { color: #98a3b2; font-size: .68rem; margin-top: 4px; }
.status-pill { background: #eef2f7; border-radius: 30px; color: #68778a; font-size: .64rem; font-weight: 650; padding: 5px 9px; white-space: nowrap; }
.status-confirmed { background: #edf2ff; color: #4265bd; }
.status-collected { background: #fff5e8; color: #a96f22; }
.status-returned { background: #eaf7f0; color: #36845f; }
.status-cancelled { background: #fcefed; color: #b55449; }
.empty-state { align-items: center; color: #8996a8; display: flex; flex-direction: column; min-height: 178px; justify-content: center; text-align: center; }
.empty-state strong { color: #526175; font-size: .81rem; margin-top: 11px; }
.empty-state span:not(.empty-mark) { font-size: .72rem; margin-top: 4px; }
.empty-mark { align-items: center; background: #f1f5fa; border-radius: 50%; color: #69809d; display: inline-flex; font-size: 1rem; height: 35px; justify-content: center; width: 35px; }
.balance-total { color: #1e2b3d; font-size: 1.85rem; font-weight: 700; letter-spacing: -.045em; margin: 22px 0 17px; }
.balance-divider { border-top: 1px solid #edf0f4; margin-bottom: 12px; }
.balance-detail { color: #8390a1; display: flex; font-size: .74rem; justify-content: space-between; padding: 6px 0; }
.balance-detail strong { color: #4a586b; }
.balance-note { background: #f7f9fb; border-radius: 7px; color: #929ead; font-size: .65rem; line-height: 1.45; margin-top: 14px; padding: 9px 10px; }
.recent-avatar { flex: 0 0 34px; height: 34px; width: 34px; }
.login-page { align-items: center; background: #f3f5f8; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.login-shell { background: #fff; border: 1px solid #e8ecf1; border-radius: 12px; box-shadow: 0 12px 35px rgba(27,42,66,.07); margin: 0 auto; max-width: 430px; padding: 32px 36px 20px; width: 100%; }
.login-brand { margin: 0 auto 31px; }
.login-brand small { color: #8995a5; }
.login-panel { padding: 0; }
.login-form-wrap h1 { color: #1e2c40; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; margin: 0; }
.login-form-wrap p { font-size: .86rem; }
.login-form-wrap .form-label { color: #435166; font-size: .77rem; font-weight: 650; }
.login-form-wrap .form-control { border-color: #dfe5ed; border-radius: 8px; font-size: .87rem; padding: 12px 13px; }
.login-form-wrap .form-control:focus { border-color: #6689df; box-shadow: 0 0 0 .2rem rgba(49,95,208,.13); }
.login-form-wrap .form-check-label { color: #748195; font-size: .76rem; }
.login-security, .login-footer { color: #8d98a8; font-size: .72rem; text-align: center; }
.login-footer { margin: 22px 0 0; }

@media (max-width: 991.98px) {
    .app-sidebar { box-shadow: 15px 0 35px rgba(17,34,55,.13); transform: translateX(-102%); transition: transform .2s ease; }
    .app-sidebar.is-open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .topbar { justify-content: flex-start; padding: 0 20px; }
    .topbar-caption { flex: 1; }
    .topbar-user .user-details { display: none; }
}
@media (max-width: 767.98px) {
    .page-content { padding: 24px 16px 35px; }
    .topbar { height: 62px; padding: 0 15px; }
    .topbar-caption { font-size: .71rem; }
    .topbar-user .btn { font-size: .67rem; margin-left: 7px !important; padding: 5px 8px; }
    .user-avatar { height: 30px; width: 30px; }
    .panel-card { padding: 17px; }
    .login-page { padding: 16px; }
    .login-shell { padding: 28px 24px 18px; }
}

.catalog-image { height: 190px; object-fit: cover; }
.catalog-placeholder { height: 190px; display: grid; place-items: center; color: #64748b; background: #f1f5f9; font-size: 1.5rem; font-weight: 700; }
.item-detail-image { width: 100%; height: 360px; object-fit: cover; }
