:root {
    --indtec-font: 'Source Sans 3', sans-serif;
    --indtec-bg: linear-gradient(135deg, #e7eef7 0%, #f8f6f1 100%);
    --indtec-dark: #0f1b2d;
    --indtec-dark-2: #16263b;
    --indtec-accent: #1f6feb;
    --sidebar-width: 280px;
    --card-radius: 18px;
}

body.app-body {
    font-family: var(--indtec-font);
    background: var(--indtec-bg);
    color: #1a1f2b;
    min-height: 100vh;
}

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

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--indtec-dark) !important;
    color: #e5e9f0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .offcanvas-header {
    padding: 1.5rem 1.5rem 1rem;
}

.app-sidebar .offcanvas-body {
    padding: 0 1.25rem 1.5rem;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-weight: 700;
    background: var(--indtec-accent);
    color: #fff;
    letter-spacing: 0.02em;
}

.app-sidebar .nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.app-sidebar .nav-link {
    color: #e5e9f0;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.app-sidebar .nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.app-sidebar .submenu .nav-link {
    padding-left: 2.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.app-sidebar .submenu .nav-link i {
    opacity: 0.85;
}

html.suprimentos-open #submenu-suprimentos.collapse:not(.show) {
    display: block;
    height: auto;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    background: linear-gradient(120deg, #10243d, #1c2f49);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 0.5rem;
    text-decoration: none;
}

.nav-logo__img {
    max-height: 46px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.app-content {
    padding: 1.5rem;
}

.content-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--card-radius);
    background: linear-gradient(130deg, rgba(31, 111, 235, 0.12), rgba(15, 27, 45, 0.03));
}

.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #345;
    font-weight: 600;
}

.page-hero__title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-hero__subtitle {
    margin: 0;
    color: #4a5461;
}

.card-kpi {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 27, 45, 0.08);
}

.card-kpi__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.card-kpi__label {
    font-size: 0.9rem;
    color: #67727e;
}

.card-kpi__value {
    font-size: 1.35rem;
    font-weight: 600;
}

.table-responsive {
    border-radius: 12px;
}

.entry-items {
    overflow: visible;
}

.entry-items .ts-dropdown,
.ts-dropdown {
    z-index: 1060;
}

.status-badge {
    font-weight: 600;
    border-radius: 999px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.status-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}

.status-chip--draft {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.status-chip--sent {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.status-chip--approved {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.status-chip--engineering {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.status-chip--purchase {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.status-chip--partial {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

.status-chip--fulfilled {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.status-chip--rejected {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-chip--separated {
    background: #e0f2fe;
    color: #0e7490;
    border-color: #bae6fd;
}

.status-chip--delivered {
    background: #e0f2fe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge--attention {
    animation: soft-blink 1.8s ease-in-out infinite !important;
}

@keyframes soft-blink {
    0%,
    100% {
        opacity: 0.45;
        box-shadow: 0 0 0 rgba(255, 193, 7, 0);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 1rem rgba(255, 193, 7, 0.55);
        transform: scale(1.03);
    }
}

.modal-xxl {
    max-width: 80vw;
}

.login-body {
    font-family: var(--indtec-font);
    background: linear-gradient(140deg, #0f1b2d, #1f3b5c);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #fff;
}

.login-shell {
    width: min(420px, 100%);
}

.login-card {
    border-radius: 20px;
    background: #fff;
    color: #1a1f2b;
}

.login-logo {
    max-width: 180px;
    max-height: 80px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 991.98px) {
    .app-content {
        padding: 1rem;
    }

    .content-card {
        padding: 1rem;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
