* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sidebar {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
}

.sidebar-brand span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.sidebar-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #172944;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sidebar-toggle-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}


.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a {
    padding: 11px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover {
    background: #1e293b;
    color: #ffffff;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.topbar span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #6b7280;
}

.page-content {
    padding: 28px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.page-header p {
    margin: 6px 0 0;
    color: #6b7280;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card,
.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.card-value {
    display: block;
    font-size: 24px;
    color: #111827;
}

.card-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.content-card h3 {
    margin-top: 0;
}

.btn-primary,
.btn-secondary,
.btn-light,
button {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-secondary {
    background: #0f172a;
    color: #ffffff;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

.form-control {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 0;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 18px;
    }

    .topbar {
        padding: 0 18px;
    }
}

/* =========================================================
   Smart Solution Brand Theme - SGI EIPSLZ
   ========================================================= */
:root {
    --ss-navy: #172944;
    --ss-blue: #005BEA;
    --ss-cyan: #00AEEF;
    --ss-bg: #F4F7FB;
    --ss-surface: #FFFFFF;
    --ss-text: #111827;
    --ss-muted: #64748B;
    --ss-border: #DDE7F3;
    --ss-soft-blue: #EAF5FF;
    --ss-shadow: 0 18px 45px rgba(2, 11, 92, .08);
    --ss-gradient: linear-gradient(135deg, #020B5C 0%, #005BEA 58%, #00AEEF 100%);
}

html {
    background: var(--ss-bg);
}

body {
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(0, 174, 239, .13), transparent 26rem),
        linear-gradient(180deg, #F8FBFF 0%, #EEF4FC 100%);
    color: var(--ss-text);
}

.app-shell {
    background: transparent;
}

.sidebar {
    width: 278px;
    background: var(--ss-navy);
    color: #ffffff;
    padding: 24px 18px;
    gap: 22px;
    box-shadow: 18px 0 50px rgba(2, 11, 92, .16);
    position: sticky;
    top: 0;
    min-height: 100vh;
    transition: width .2s ease, padding .2s ease;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    box-shadow: none;
}

.sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    background: rgba(255,255,255,.18);
}

.sidebar-brand {
    min-height: 62px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.sidebar-brand-symbol {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 16px;
    padding: 8px;
    background: rgba(255,255,255,.12);
}

.sidebar-brand strong {
    letter-spacing: .2px;
    font-size: 17px;
}

.sidebar-brand span {
    color: rgba(255,255,255,.72);
}

.brand-icon {
    background: var(--ss-gradient);
    box-shadow: 0 12px 24px rgba(0, 91, 234, .25);
}

.sidebar-nav {
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 13px;
    border-radius: 15px;
    color: rgba(255,255,255,.78);
    font-weight: 700;
    letter-spacing: .01em;
}

.sidebar-nav a strong {
    font-size: inherit;
}

.sidebar-nav a span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.09);
    color: #fff;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    background: rgba(255,255,255,.14);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.13);
}

.sidebar-user {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.09);
    margin-bottom: 10px;
}

.sidebar-user span {
    display: block;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    margin-bottom: 3px;
}

.sidebar-user strong {
    font-size: 14px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-weight: 800;
}

.sidebar-logout:hover {
    background: rgba(255,255,255,.18);
}

body.sidebar-collapsed .sidebar {
    width: 78px;
    padding: 20px 14px;
    align-items: center;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-footer {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle {
    flex-shrink: 0;
}

.app-main {
    background: transparent;
}

.topbar {
    min-height: 86px;
    height: auto;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 231, 243, .8);
    padding: 18px 30px;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar h1 {
    color: var(--ss-navy);
    font-size: 24px;
    letter-spacing: -.03em;
}

.topbar span {
    color: var(--ss-muted);
}

.topbar-kicker,
.eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    color: var(--ss-blue) !important;
    font-size: 12px !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 4px;
}

.topbar-brand img {
    height: 42px;
    max-width: 240px;
    object-fit: contain;
}

.page-content {
    padding: 30px;
}

.page-header,
.card,
.content-card {
    border-color: rgba(221, 231, 243, .9);
}

.page-header h2 {
    color: var(--ss-navy);
    letter-spacing: -.04em;
}

.brand-hero-panel {
    padding: 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at right, rgba(0,174,239,.18), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #F3F9FF 100%);
    border: 1px solid var(--ss-border);
    box-shadow: var(--ss-shadow);
}

.hero-symbol {
    width: 96px;
    height: 96px;
    object-fit: contain;
    opacity: .98;
}

.card,
.content-card,
.metric-card,
.welcome-card {
    border-radius: 24px;
    box-shadow: var(--ss-shadow);
}

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ss-gradient);
}

.card-label {
    color: var(--ss-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}

.card-value,
.content-card h3 {
    color: var(--ss-navy);
}

.btn-primary,
button[type="submit"],
.prod-clean-open-btn,
.prod-action-card,
.prod-bottom-menu a,
.prod-bottom-menu button {
    background: #172944 !important;
    color: #ffffff !important;
    border: 0;
    box-shadow: 0 12px 24px rgba(0, 91, 234, .20);
}

.btn-primary:hover,
button[type="submit"]:hover,
.prod-clean-open-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--ss-navy) !important;
    color: #ffffff !important;
}

.btn-light {
    background: var(--ss-soft-blue) !important;
    color: var(--ss-navy) !important;
}

.form-control,
input,
select,
textarea {
    border-color: var(--ss-border) !important;
    border-radius: 14px !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--ss-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 91, 234, .12) !important;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        border-radius: 0 0 28px 28px;
    }

    body.sidebar-collapsed .sidebar {
        width: 100%;
        min-height: 76px;
        align-items: flex-start;
    }

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

    .topbar {
        position: static;
        padding: 16px 18px;
    }

    .topbar-brand img {
        height: 32px;
        max-width: 170px;
    }

    .page-content {
        padding: 18px;
    }

    .hero-symbol {
        display: none;
    }
}

@media (max-width: 560px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .topbar-brand {
        display: none;
    }
}
