/* Taj & Sons — application shell and table polish. */

body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; background: #f4f6f9; margin: 0; }

.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 230px; flex-shrink: 0;
    background: linear-gradient(180deg, #15283c 0%, #1b3a5c 100%);
    color: #d7dee6;
}
.sidebar .brand {
    font-size: 1.15rem; font-weight: 700; color: #fff;
    padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar nav { padding: .4rem 0 1.5rem 0; }
.sidebar nav a {
    display: block; color: #cfd9e3; text-decoration: none;
    padding: .4rem 1.1rem; font-size: .875rem; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.16); color: #fff; border-left-color: #4da3ff; }
.sidebar .nav-section {
    color: #7f97ad; text-transform: uppercase; font-size: .66rem; letter-spacing: .1em;
    padding: .9rem 1.1rem .25rem;
}

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: #fff; border-bottom: 1px solid #dde3ea;
    display: flex; align-items: center; gap: .8rem; padding: .55rem 1.4rem;
}
.topbar .co-switch select {
    font-weight: 600; border: 1px solid #c9d3dd; border-radius: .35rem;
    padding: .3rem .6rem; font-size: .875rem; background: #fff;
}
.topbar .fy { color: #6b7a89; font-size: .85rem; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .85rem; font-weight: 600; }

.content { padding: 1.2rem 1.4rem 3rem; }
.content h3 { font-weight: 600; margin-bottom: .3rem; }

.card { border: 1px solid #dde3ea; box-shadow: 0 1px 3px rgba(16,42,67,.07); border-radius: .5rem; }
.stat-card .label { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: #6b7a89; }
.stat-card .value { font-size: 1.5rem; font-weight: 600; }

.table { font-variant-numeric: tabular-nums; font-size: .875rem; }
.table > thead th {
    background: #f2f5f8; border-bottom: 2px solid #c9d3dd;
    text-transform: uppercase; font-size: .72rem; letter-spacing: .05em;
    color: #3d4c5c; white-space: nowrap;
}
.table > tbody td { vertical-align: middle; }
.table > tfoot td { border-top: 2px solid #c9d3dd; background: #f8fafc; font-weight: 700; }
.table-hover > tbody > tr:hover > * { background-color: #eef4fb; }

.form-label { font-size: .78rem; font-weight: 600; color: #3d4c5c; margin-bottom: .15rem; }
.void-row { text-decoration: line-through; color: #97a3af; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #1b2a3a; }
.login-card { background: #fff; border-radius: 10px; padding: 2.2rem 2.5rem; width: 24rem; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.login-card h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.login-card .subtitle { color: #6b7a89; font-size: .85rem; margin-bottom: 1.4rem; }

@media (max-width: 820px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; }
}
