:root { --sb: 240px; --primary: #2563eb; }
body { background: #f6f7fb; font-size: 14px; color: #1f2937; }
a { text-decoration: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb); background: #fff; border-right: 1px solid #e5e7eb; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 700; color: #111827; border-bottom: 1px solid #f1f1f1; }
.logo-badge { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.sidebar nav { padding: 8px 10px 30px; }
.sidebar .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 14px 10px 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #374151; margin: 1px 0; }
.sidebar nav a:hover { background: #f3f4f6; }
.sidebar nav a.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.main-wrap { margin-left: var(--sb); min-height: 100vh; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 10px; padding: 0 20px; position: sticky; top: 0; z-index: 1030; }
.content { padding: 22px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.page-head h1 { font-size: 20px; font-weight: 700; margin: 0; }
.card { border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card > .table-responsive:first-child, .card > div > .table { border-radius: 12px; }
.table thead th { font-size: 11.5px; text-transform: uppercase; color: #6b7280; font-weight: 600; background: #fafafa; white-space: nowrap; }
.filters { padding: 12px; }
.empty { text-align: center; padding: 40px 10px; color: #6b7280; }
.empty i { font-size: 36px; display: block; margin-bottom: 6px; color: #cbd5e1; }
.stat { display: flex; flex-direction: row; align-items: center; gap: 14px; color: inherit; }
.stat:hover { border-color: #c7d2fe; }
.stat .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.stat .v { font-size: 20px; font-weight: 700; line-height: 1.1; } .stat .l { font-size: 12px; color: #6b7280; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.thumb.ph { display: grid; place-items: center; background: #f3f4f6; color: #9ca3af; }
.perm-box { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px 8px 34px; width: 100%; }
.items-table td { vertical-align: top; }
.totals > div { padding: 4px 0; }
.balance-box { background: #fff7ed; border: 1px dashed #fb923c; border-radius: 8px; padding: 8px 10px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: #eef0f4; border-radius: 12px; padding: 10px; min-height: 300px; }
.khead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kbody { min-height: 250px; }
.kcard { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid #e5e7eb; cursor: grab; }
.kcol.over { outline: 2px dashed var(--primary); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg,#1f2937,#111827); }
.login-card { width: 380px; }
@media (max-width: 991px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .main-wrap { margin-left: 0; } }
