/* =========================================================
   TÉKA - GESTÃO OPERACIONAL
   Interface Corporativa
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teka-red: #c51d25;
    --teka-red-dark: #a9151c;
    --teka-yellow: #f6b916;

    --bg: #e6e9ed;
    --sidebar: #252b33;
    --sidebar-dark: #20252c;
    --sidebar-hover: #343b45;

    --surface: #f7f8f9;
    --surface-2: #eef1f4;
    --border: #cdd3da;

    --text: #1d2632;
    --text-2: #465363;
    --text-3: #657181;

    --green: #199653;
    --green-bg: #e7f5ed;

    --orange: #d88900;
    --orange-bg: #fff1d5;

    --red: #d13a46;
    --red-bg: #fbeaec;

    --blue: #3676d8;
    --blue-bg: #e9f0fb;

    --purple: #7558c8;
    --purple-bg: #eeeafb;

    --sidebar-width: 250px;

    --shadow:
        0 2px 4px rgba(15, 23, 42, .04),
        0 7px 20px rgba(15, 23, 42, .035);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    background: var(--sidebar);

    border-right: 1px solid #3a414b;

    box-shadow: 4px 0 18px rgba(15, 23, 42, .08);

    z-index: 100;
}

.brand {
    min-height: 112px;

    padding: 14px 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: var(--sidebar-dark);

    border-bottom: 1px solid #39404a;
}

.brand img {
    width: 78px;
    height: 78px;

    object-fit: contain;

    padding: 3px;

    background: white;

    border-radius: 11px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: white;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.3;
}

.brand-text span {
    margin-top: 5px;

    color: #b9c0ca;

    font-size: 8px;

    line-height: 1.4;
}

/* MENU */

.menu {
    flex: 1;

    padding: 12px;

    overflow-y: auto;
}

.menu::-webkit-scrollbar {
    width: 4px;
}

.menu::-webkit-scrollbar-thumb {
    background: #4b535e;
    border-radius: 20px;
}

.menu-group {
    margin-bottom: 13px;
}

.menu-title {
    display: block;

    padding: 10px 12px 6px;

    color: var(--teka-yellow);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .9px;
}

.menu-item {
    min-height: 40px;

    margin: 2px 0;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 8px;

    color: #d4d9e0;

    font-size: 11px;
    font-weight: 500;

    transition: .18s ease;
}

.menu-item i {
    width: 19px;

    color: #aeb6c2;

    text-align: center;

    font-size: 13px;
}

.menu-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.menu-item:hover i {
    color: var(--teka-yellow);
}

.menu-item.active {
    background: var(--teka-red);

    color: white;

    font-weight: 600;

    box-shadow: 0 5px 14px rgba(197, 29, 37, .24);
}

.menu-item.active i {
    color: white;
}

/* RODAPÉ */

.sidebar-footer {
    min-height: 65px;

    padding: 12px 18px;

    display: flex;
    align-items: center;

    gap: 10px;

    background: var(--sidebar-dark);

    border-top: 1px solid #39404a;
}

.system-status {
    width: 9px;
    height: 9px;

    min-width: 9px;

    border-radius: 50%;

    background: #27bd68;

    box-shadow: 0 0 0 4px rgba(39, 189, 104, .12);
}

.sidebar-footer strong {
    display: block;

    color: white;

    font-size: 9px;
}

.sidebar-footer span {
    display: block;

    margin-top: 3px;

    color: #aeb6c2;

    font-size: 7px;
}

/* =========================================================
   ÁREA PRINCIPAL
========================================================= */

.main {
    width: calc(100% - var(--sidebar-width));

    min-height: 100vh;

    margin-left: var(--sidebar-width);
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 74px;

    padding: 0 27px;

    position: sticky;
    top: 0;

    display: grid;

    grid-template-columns: 1fr minmax(250px, 420px) 1fr;

    align-items: center;

    background: #f3f5f7;

    border-bottom: 1px solid var(--border);

    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);

    z-index: 80;
}

.page-identification h1 {
    color: var(--teka-red-dark);

    font-size: 19px;
    font-weight: 700;
}

.page-identification span {
    display: block;

    margin-top: 3px;

    color: var(--text-2);

    font-size: 10px;
    font-weight: 500;
}

/* PESQUISA */

.topbar-center {
    display: flex;
    justify-content: center;
}

.search-box {
    width: 100%;
    height: 38px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    gap: 9px;

    background: #e6e9ed;

    border: 1px solid #c8ced6;

    border-radius: 9px;

    transition: .18s;
}

.search-box:focus-within {
    background: #fafafa;

    border-color: var(--teka-red);

    box-shadow: 0 0 0 3px rgba(197, 29, 37, .07);
}

.search-box i {
    color: #596676;

    font-size: 11px;
}

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 11px;
}

.search-box input::placeholder {
    color: #606d7c;
}

/* USUÁRIO */

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.top-icon {
    width: 37px;
    height: 37px;

    position: relative;

    border: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: #4d5968;

    border-radius: 8px;

    cursor: pointer;
}

.top-icon:hover {
    background: #e4e7eb;
}

.notification-badge {
    min-width: 15px;
    height: 15px;

    padding: 0 4px;

    position: absolute;

    top: 1px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--teka-red);

    border: 2px solid #f3f5f7;

    border-radius: 10px;

    color: white;

    font-size: 7px;
}

.user-profile {
    padding-left: 15px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-left: 1px solid #ccd2d9;
}

.avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--teka-yellow);

    border-radius: 50%;

    color: #654500;

    font-size: 11px;
    font-weight: 800;
}

.user-info strong {
    display: block;

    color: var(--text);

    font-size: 10px;
}

.user-info span {
    display: block;

    margin-top: 2px;

    color: var(--text-3);

    font-size: 8px;
}

.arrow {
    color: #778290;

    font-size: 8px;
}

/* =========================================================
   CONTEÚDO
========================================================= */

.content {
    max-width: 1550px;

    margin: auto;

    padding: 24px 27px 45px;
}

/* =========================================================
   BANNER
========================================================= */

.welcome {
    min-height: 148px;

    margin-bottom: 23px;

    padding: 23px 27px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(255,255,255,.22),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #dfa500 0%,
            #f5b817 55%,
            #ffd65a 100%
        );

    border: 1px solid #d59e00;

    border-radius: 14px;

    box-shadow: 0 5px 18px rgba(80, 60, 10, .09);
}

.welcome::after {
    content: "";

    width: 230px;
    height: 230px;

    position: absolute;

    right: 24%;
    top: -140px;

    background: rgba(255,255,255,.12);

    border-radius: 50%;
}

.welcome-content {
    max-width: 510px;

    position: relative;

    z-index: 2;
}

.welcome-label {
    display: inline-block;

    margin-bottom: 9px;

    padding: 5px 9px;

    background: rgba(52, 41, 13, .11);

    border-radius: 20px;

    color: #4c3907;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .6px;
}

.welcome h2 {
    margin-bottom: 6px;

    color: #252016;

    font-size: 22px;
    font-weight: 750;
}

.welcome p {
    max-width: 460px;

    color: #514425;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.6;
}

/* AÇÕES BANNER */

.welcome-actions {
    display: flex;

    gap: 9px;

    position: relative;

    z-index: 2;
}

.quick-action {
    width: 126px;
    min-height: 88px;

    padding: 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(247,248,249,.96);

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 10px;

    box-shadow: 0 4px 13px rgba(80,60,10,.08);

    transition: .18s;
}

.quick-action:hover {
    transform: translateY(-3px);

    background: white;

    box-shadow: 0 7px 18px rgba(80,60,10,.12);
}

.quick-icon {
    width: 29px;
    height: 29px;

    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 11px;
}

.quick-icon.item {
    background: #fff0bd;
    color: #936400;
}

.quick-icon.entry {
    background: var(--green-bg);
    color: var(--green);
}

.quick-icon.exit {
    background: var(--red-bg);
    color: var(--red);
}

.quick-action strong {
    display: block;

    color: #222b37;

    font-size: 9px;
}

.quick-action span {
    display: block;

    margin-top: 3px;

    color: #596575;

    font-size: 7px;
}

/* =========================================================
   TÍTULOS DE SEÇÃO
========================================================= */

.dashboard-section-title {
    margin: 4px 1px 12px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;
}

.dashboard-section-title h3 {
    color: #202936;

    font-size: 14px;
    font-weight: 700;
}

.dashboard-section-title p {
    margin-top: 3px;

    color: var(--text-3);

    font-size: 9px;
}

.period-badge {
    padding: 6px 9px;

    background: #d9dde2;

    border: 1px solid #c8ced5;

    border-radius: 7px;

    color: #465260;

    font-size: 8px;
    font-weight: 600;
}

.section-link {
    color: var(--teka-red-dark);

    font-size: 9px;
    font-weight: 700;
}

.section-link i {
    margin-left: 5px;
}

/* =========================================================
   CARDS RESUMO
========================================================= */

.stats {
    margin-bottom: 25px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.stat-card {
    min-height: 108px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 11px;

    box-shadow: var(--shadow);

    transition: .18s;
}

.stat-card:hover {
    transform: translateY(-2px);

    background: #fbfbfc;

    border-color: #bbc2cb;
}

.stat-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 17px;
}

.stat-icon.stock {
    background: #fff0bd;
    color: #9b6900;
}

.stat-icon.warning {
    background: var(--orange-bg);
    color: var(--orange);
}

.stat-icon.critical {
    background: var(--red-bg);
    color: var(--red);
}

.stat-icon.tickets {
    background: var(--blue-bg);
    color: var(--blue);
}

.stat-content span {
    display: block;

    color: var(--text-2);

    font-size: 10px;
    font-weight: 600;
}

.stat-content strong {
    display: block;

    margin: 3px 0;

    color: #151d28;

    font-size: 26px;
    font-weight: 750;
}

.stat-content small {
    color: var(--text-3);

    font-size: 8px;
    font-weight: 500;
}

/* =========================================================
   INDICADORES GERENCIAIS
========================================================= */

.management-grid {
    margin-bottom: 25px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.management-card {
    min-height: 175px;

    padding: 17px;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 11px;

    box-shadow: var(--shadow);

    transition: .18s;
}

.management-card:hover {
    transform: translateY(-3px);

    background: #fbfbfc;

    border-color: #b9c0c9;

    box-shadow: 0 8px 22px rgba(15,23,42,.07);
}

.management-card-top {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.management-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 14px;
}

.management-icon.production {
    background: #fff0bd;
    color: #986700;
}

.management-icon.quality {
    background: var(--green-bg);
    color: var(--green);
}

.management-icon.maintenance {
    background: var(--blue-bg);
    color: var(--blue);
}

.management-icon.warehouse {
    background: var(--purple-bg);
    color: var(--purple);
}

.status-label {
    padding: 4px 7px;

    border-radius: 15px;

    font-size: 7px;
    font-weight: 700;
}

.status-label.waiting {
    background: #e4e7eb;
    color: #596575;
}

.status-label.automatic {
    background: var(--green-bg);
    color: #147642;
}

.management-card > strong {
    color: #222b37;

    font-size: 11px;
}

.management-card > p {
    margin-top: 6px;

    flex: 1;

    color: var(--text-3);

    font-size: 8px;

    line-height: 1.55;
}

.management-footer {
    margin-top: 13px;
    padding-top: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #d8dde3;

    color: var(--teka-red-dark);

    font-size: 8px;
    font-weight: 700;
}

/* =========================================================
   PAINÉIS
========================================================= */

.dashboard-grid {
    margin-bottom: 20px;

    display: grid;

    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);

    gap: 15px;
}

.panel {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 11px;

    box-shadow: var(--shadow);
}

.panel-header {
    min-height: 64px;

    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    background: #f0f2f4;

    border-bottom: 1px solid #d0d5dc;
}

.panel-header h3 {
    color: #202936;

    font-size: 11px;
    font-weight: 700;
}

.panel-header p {
    margin-top: 4px;

    color: var(--text-3);

    font-size: 8px;
}

.panel-header a {
    color: var(--teka-red-dark);

    font-size: 8px;
    font-weight: 700;
}

.counter {
    min-width: 25px;
    height: 25px;

    padding: 0 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7dfe1;

    border-radius: 20px;

    color: var(--teka-red);

    font-size: 8px;
    font-weight: 800;
}

/* VAZIO */

.empty-state {
    min-height: 210px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e3e7eb;

    border-radius: 50%;

    color: #647080;

    font-size: 14px;
}

.empty-state strong {
    color: #293340;

    font-size: 10px;
}

.empty-state p {
    margin-top: 5px;

    color: var(--text-3);

    font-size: 8px;
}

.dashboard-button {
    margin-top: 13px;

    padding: 8px 12px;

    background: var(--teka-red);

    border-radius: 7px;

    color: white;

    font-size: 8px;
    font-weight: 700;

    transition: .18s;
}

.dashboard-button:hover {
    background: var(--teka-red-dark);
}

/* CHAMADOS */

.alert-success {
    min-height: 155px;

    padding: 22px 19px;

    display: flex;
    align-items: center;

    gap: 11px;
}

.success-icon {
    width: 37px;
    height: 37px;

    min-width: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-bg);

    border-radius: 50%;

    color: var(--green);

    font-size: 11px;
}

.alert-success strong {
    display: block;

    color: #28323e;

    font-size: 10px;
}

.alert-success span {
    display: block;

    margin-top: 4px;

    color: var(--text-3);

    font-size: 8px;

    line-height: 1.45;
}

.stock-legend {
    min-height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 17px;

    border-top: 1px solid #d4d9df;

    color: #4d5968;

    font-size: 8px;
    font-weight: 600;
}

.stock-legend div {
    display: flex;
    align-items: center;

    gap: 6px;
}

.dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.dot.normal {
    background: var(--green);
}

.dot.low {
    background: var(--orange);
}

.dot.critical-dot {
    background: var(--red);
}

/* =========================================================
   ACESSO RÁPIDO
========================================================= */

.access-panel {
    margin-bottom: 20px;
}

.access-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);
}

.access-item {
    min-height: 118px;

    padding: 17px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border-right: 1px solid #d3d8de;

    transition: .18s;
}

.access-item:last-child {
    border-right: 0;
}

.access-item:hover {
    background: #e9edf1;
}

.access-icon {
    width: 38px;
    height: 38px;

    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0bd;

    border-radius: 9px;

    color: #966500;

    font-size: 13px;

    transition: .18s;
}

.access-item:hover .access-icon {
    background: var(--teka-red);

    color: white;
}

.access-item strong {
    color: #28323e;

    font-size: 9px;
    font-weight: 700;
}

.access-item span {
    margin-top: 4px;

    color: var(--text-3);

    font-size: 8px;
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1200px) {

    .stats,
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-actions {
        width: 100%;
    }

    .quick-action {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 950px) {

    :root {
        --sidebar-width: 75px;
    }

    .brand {
        min-height: 85px;

        justify-content: center;

        padding: 8px;
    }

    .brand img {
        width: 57px;
        height: 57px;
    }

    .brand-text,
    .menu-title,
    .menu-item span,
    .sidebar-footer div:not(.system-status) {
        display: none;
    }

    .menu-item {
        justify-content: center;

        padding: 0;
    }

    .menu-item i {
        width: auto;

        font-size: 15px;
    }

    .sidebar-footer {
        justify-content: center;
    }

    .topbar {
        grid-template-columns: 1fr auto;
    }

    .topbar-center {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {

    .content {
        padding: 17px 12px 35px;
    }

    .topbar {
        padding: 0 13px;
    }

    .user-info,
    .arrow {
        display: none;
    }

    .stats,
    .management-grid {
        grid-template-columns: 1fr;
    }

    .welcome-actions {
        flex-direction: column;
    }

    .quick-action {
        width: 100%;
        min-height: 62px;

        flex-direction: row;
        align-items: center;

        gap: 10px;
    }

    .quick-icon {
        margin-bottom: 0;
    }

    .dashboard-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-item {
        border-bottom: 1px solid #d3d8de;
    }
}



/* =========================================================
   LOGIN - TÉKA GESTÃO OPERACIONAL
========================================================= */

.login-page {
    min-height: 100vh;
    background: #e6e9ed;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 48% 52%;
}

/* LADO INSTITUCIONAL */

.login-brand-panel {
    min-height: 100vh;
    padding: 55px 65px 35px;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(246,185,22,.16),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #20252c 0%,
            #292f38 55%,
            #1c2127 100%
        );
}

.login-brand-panel::after {
    content: "";
    width: 420px;
    height: 420px;

    position: absolute;
    right: -210px;
    bottom: -150px;

    border: 65px solid rgba(246,185,22,.055);
    border-radius: 50%;
}

.login-brand-content {
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.login-brand-content img {
    width: 115px;
    height: 115px;

    margin-bottom: 45px;

    object-fit: contain;

    padding: 5px;

    background: #fff;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

.login-system-label {
    display: block;

    margin-bottom: 13px;

    color: #f6b916;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.login-brand-content h1 {
    max-width: 480px;

    color: #fff;

    font-size: 35px;
    font-weight: 700;

    line-height: 1.18;
}

.login-brand-content > p {
    max-width: 450px;

    margin-top: 18px;

    color: #c5cbd3;

    font-size: 12px;

    line-height: 1.8;
}

.login-features {
    margin-top: 38px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.login-features div {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #e1e5ea;

    font-size: 10px;
    font-weight: 500;
}

.login-features i {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(246,185,22,.12);

    border: 1px solid rgba(246,185,22,.17);

    border-radius: 7px;

    color: #f6b916;
}

.login-brand-footer {
    position: relative;
    z-index: 2;

    color: #7f8995;

    font-size: 8px;
}

/* LADO DO LOGIN */

.login-form-panel {
    min-height: 100vh;

    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf0f3;
}

.login-box {
    width: 100%;
    max-width: 390px;
}

.login-mobile-logo {
    display: none;
}

.login-welcome {
    display: block;

    margin-bottom: 8px;

    color: #b71921;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.login-box h2 {
    color: #1d2632;

    font-size: 25px;
    font-weight: 700;
}

.login-description {
    margin-top: 8px;
    margin-bottom: 27px;

    color: #596575;

    font-size: 10px;
}

/* FORMULÁRIOS */

.login-form,
.admin-form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group label {
    color: #354151;

    font-size: 9px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    outline: none;

    background: #f8f9fa;

    border: 1px solid #c7cdd5;

    border-radius: 8px;

    color: #202936;

    font-size: 10px;

    transition: .18s;
}

.form-group input:focus,
.form-group select:focus {
    background: #fff;

    border-color: #c51d25;

    box-shadow: 0 0 0 3px rgba(197,29,37,.07);
}

.input-with-icon {
    height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    background: #f8f9fa;

    border: 1px solid #c7cdd5;

    border-radius: 8px;

    transition: .18s;
}

.input-with-icon:focus-within {
    background: #fff;

    border-color: #c51d25;

    box-shadow: 0 0 0 3px rgba(197,29,37,.07);
}

.input-with-icon i {
    width: 16px;

    color: #687483;

    font-size: 11px;

    text-align: center;
}

.input-with-icon input {
    width: 100%;
    height: 100%;

    padding: 0;

    outline: none;

    background: transparent;

    border: 0;

    color: #202936;

    font-size: 11px;
}

.input-with-icon input::placeholder {
    color: #89929d;
}

/* BOTÃO LOGIN */

.login-button {
    height: 44px;

    margin-top: 5px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;

    background: #c51d25;

    border-radius: 8px;

    box-shadow: 0 6px 15px rgba(197,29,37,.18);

    color: #fff;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.login-button:hover {
    background: #a9151c;
    transform: translateY(-1px);
}

.login-security {
    margin-top: 22px;

    padding-top: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-top: 1px solid #d0d5db;

    color: #727d8a;

    font-size: 8px;
}

.login-security i {
    color: #26975a;
}

/* =========================================================
   MENSAGENS
========================================================= */

.flash-message {
    margin-bottom: 16px;

    padding: 11px 13px;

    display: flex;
    align-items: center;

    gap: 8px;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 600;
}

.flash-message.danger {
    background: #f9e5e7;
    border: 1px solid #efc4c8;
    color: #a52631;
}

.flash-message.success {
    background: #e5f4eb;
    border: 1px solid #bfdfcb;
    color: #197442;
}

.flash-message.warning {
    background: #fff1d3;
    border: 1px solid #ecd69f;
    color: #8c650b;
}

/* =========================================================
   PÁGINAS ADMINISTRATIVAS
========================================================= */

.simple-page {
    min-height: 100vh;

    background: #e6e9ed;
}

.simple-topbar {
    min-height: 100px;

    padding: 20px 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: #f4f6f8;

    border-bottom: 1px solid #cbd1d8;

    box-shadow: 0 2px 8px rgba(15,23,42,.035);
}

.back-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    color: #a9151c;

    font-size: 8px;
    font-weight: 700;
}

.simple-topbar h1 {
    color: #202936;

    font-size: 20px;
    font-weight: 700;
}

.simple-topbar p {
    margin-top: 4px;

    color: #606c7b;

    font-size: 9px;
}

.simple-user {
    display: flex;
    align-items: center;

    gap: 15px;
}

.simple-user > span {
    color: #374352;

    font-size: 9px;
    font-weight: 600;
}

.simple-user a {
    padding: 8px 11px;

    display: flex;
    align-items: center;

    gap: 6px;

    background: #e4e7eb;

    border: 1px solid #cbd1d8;

    border-radius: 7px;

    color: #4b5766;

    font-size: 8px;
    font-weight: 600;
}

.simple-user a:hover {
    background: #c51d25;
    border-color: #c51d25;
    color: white;
}

.simple-content {
    max-width: 1450px;

    margin: auto;

    padding: 28px 35px 45px;
}

/* =========================================================
   ADMIN CARDS
========================================================= */

.admin-grid {
    display: grid;

    grid-template-columns: minmax(280px, 360px) 1fr;

    gap: 18px;

    align-items: start;
}

.admin-card {
    overflow: hidden;

    background: #f7f8f9;

    border: 1px solid #cbd1d8;

    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(15,23,42,.04),
        0 7px 20px rgba(15,23,42,.035);
}

.admin-card-header {
    padding: 17px 18px;

    background: #f0f2f4;

    border-bottom: 1px solid #d0d5db;
}

.admin-card-header h2 {
    color: #202936;

    font-size: 12px;
    font-weight: 700;
}

.admin-card-header p {
    margin-top: 4px;

    color: #657181;

    font-size: 8px;
}

.admin-form {
    padding: 18px;
}

.admin-primary-button {
    min-height: 40px;

    margin-top: 4px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;

    background: #c51d25;

    border-radius: 7px;

    color: white;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.admin-primary-button:hover {
    background: #a9151c;

    transform: translateY(-1px);
}

/* =========================================================
   TABELA DE USUÁRIOS
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;
}

.admin-table th {
    padding: 11px 14px;

    background: #e8ebee;

    border-bottom: 1px solid #cfd4da;

    color: #556171;

    text-align: left;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .3px;
}

.admin-table td {
    padding: 13px 14px;

    border-bottom: 1px solid #d9dde2;

    color: #465260;

    font-size: 9px;
}

.admin-table tbody tr:hover {
    background: #eef1f4;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong {
    color: #26303c;

    font-size: 9px;
}

.table-status {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.table-status.active {
    background: #e2f3e9;
    color: #197442;
}

.table-status.inactive {
    background: #f6e4e6;
    color: #aa2934;
}

/* =========================================================
   SETORES
========================================================= */

.sectors-layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
}

.sector-list {
    padding: 5px 17px 14px;
}

.sector-row {
    min-height: 62px;

    padding: 10px 4px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-bottom: 1px solid #d7dce1;
}

.sector-row:last-child {
    border-bottom: 0;
}

.sector-icon {
    width: 36px;
    height: 36px;

    min-width: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0bd;

    border-radius: 8px;

    color: #956400;

    font-size: 11px;
}

.sector-row strong {
    display: block;

    color: #293340;

    font-size: 9px;
}

.sector-row span {
    display: block;

    margin-top: 3px;

    color: #6b7684;

    font-size: 7px;
}

/* =========================================================
   RESPONSIVO - LOGIN E ADMIN
========================================================= */

@media (max-width: 850px) {

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 25px;
    }

    .login-mobile-logo {
        display: block;

        margin-bottom: 25px;
    }

    .login-mobile-logo img {
        width: 90px;

        padding: 4px;

        background: white;

        border-radius: 12px;
    }

    .admin-grid,
    .sectors-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .simple-topbar {
        padding: 17px;

        align-items: flex-start;
        flex-direction: column;
    }

    .simple-content {
        padding: 18px 12px 35px;
    }

    .simple-user {
        width: 100%;

        justify-content: space-between;
    }
}



/* =========================================================
   ALMOXARIFADO - TÉKA GESTÃO OPERACIONAL
========================================================= */

.module-actions {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.module-action-button {
    min-height: 36px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #f2f4f6;

    border: 1px solid #c9cfd6;

    border-radius: 7px;

    color: #3c4857;

    font-size: 9px;
    font-weight: 700;

    transition: .18s;
}

.module-action-button:hover {
    background: #c51d25;
    border-color: #c51d25;
    color: #ffffff;
}

/* =========================================================
   FORMULÁRIOS DO ALMOXARIFADO
========================================================= */

.material-layout {
    grid-template-columns: minmax(300px, 370px) 1fr;
}

.request-layout {
    grid-template-columns: minmax(330px, 410px) 1fr;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.form-textarea {
    width: 100%;
    min-height: 95px;

    padding: 10px 12px;

    resize: vertical;

    outline: none;

    background: #f8f9fa;

    border: 1px solid #c7cdd5;

    border-radius: 8px;

    color: #202936;

    font-family: inherit;
    font-size: 10px;

    transition: .18s;
}

.form-textarea:focus {
    background: #ffffff;

    border-color: #c51d25;

    box-shadow: 0 0 0 3px rgba(197,29,37,.07);
}

.secondary-button {
    min-height: 36px;

    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    align-self: flex-start;

    background: #e8ebef;

    border: 1px solid #c6ccd4;

    border-radius: 7px;

    color: #465260;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.secondary-button:hover {
    background: #dfe3e7;

    color: #a9151c;
}

/* =========================================================
   BUSCA DE MATERIAIS
========================================================= */

.list-header {
    gap: 15px;
}

.table-search {
    width: 210px;
    height: 34px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    gap: 7px;

    background: #e5e8ec;

    border: 1px solid #c7cdd5;

    border-radius: 7px;
}

.table-search i {
    color: #667281;

    font-size: 9px;
}

.table-search input {
    width: 100%;

    border: 0;
    outline: none;

    background: transparent;

    color: #26313e;

    font-size: 9px;
}

.table-search input::placeholder {
    color: #7a8491;
}

/* =========================================================
   TABELA
========================================================= */

.table-description {
    display: block;

    margin-top: 3px;

    color: #727d8a;

    font-size: 7px;
    font-weight: 400;
}

.empty-table {
    padding: 32px !important;

    color: #737d89 !important;

    text-align: center !important;
}

/* =========================================================
   STATUS DE ESTOQUE
========================================================= */

.inventory-status,
.request-status,
.movement-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.inventory-status.normal {
    background: #e2f3e9;
    color: #197442;
}

.inventory-status.low {
    background: #fff0d2;
    color: #94620b;
}

.inventory-status.critical {
    background: #f8e3e5;
    color: #a62832;
}

/* =========================================================
   AJUSTE DE SALDO
========================================================= */

.adjust-form {
    min-width: 250px;

    display: grid;

    grid-template-columns: 70px 1fr 32px;

    gap: 5px;
}

.adjust-form input {
    min-width: 0;
    height: 31px;

    padding: 0 7px;

    outline: none;

    background: #f3f5f6;

    border: 1px solid #cbd1d8;

    border-radius: 6px;

    color: #33404f;

    font-size: 8px;
}

.adjust-form input:focus {
    background: white;
    border-color: #c51d25;
}

.adjust-form button {
    height: 31px;

    border: 0;

    background: #c51d25;

    border-radius: 6px;

    color: white;

    cursor: pointer;
}

.adjust-form button:hover {
    background: #a9151c;
}

/* =========================================================
   NOVA SOLICITAÇÃO
========================================================= */

.request-item-row {
    position: relative;

    margin-bottom: 10px;

    padding: 11px;

    display: grid;

    grid-template-columns: 1fr 105px;

    gap: 9px;

    align-items: end;

    background: #eceff2;

    border: 1px solid #d3d8de;

    border-radius: 8px;
}

.request-material {
    min-width: 0;
}

.request-quantity {
    min-width: 0;
}

.remove-item-button {
    width: 29px;
    height: 29px;

    position: absolute;

    top: -7px;
    right: -7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: #d24650;

    border-radius: 50%;

    color: white;

    font-size: 8px;

    cursor: pointer;

    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

/* =========================================================
   STATUS DE SOLICITAÇÃO
========================================================= */

.request-status.pendente {
    background: #fff0d2;
    color: #8f620c;
}

.request-status.parcial {
    background: #e8edf7;
    color: #395f9b;
}

.request-status.atendida {
    background: #e2f3e9;
    color: #197442;
}

.request-status.cancelada {
    background: #e4e6e9;
    color: #5a6471;
}

.table-link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #a9151c;

    font-size: 8px;
    font-weight: 700;
}

.table-link:hover {
    text-decoration: underline;
}

/* =========================================================
   DETALHE DA SOLICITAÇÃO
========================================================= */

.request-summary {
    margin-bottom: 16px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.request-summary > div {
    min-height: 73px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #f5f6f8;

    border: 1px solid #ccd2d9;

    border-radius: 9px;

    box-shadow: 0 2px 5px rgba(15,23,42,.035);
}

.request-summary span {
    color: #697482;

    font-size: 8px;
    font-weight: 600;
}

.request-summary strong {
    margin-top: 5px;

    color: #27313e;

    font-size: 10px;
}

.delivery-form {
    display: flex;
    align-items: center;

    gap: 5px;
}

.delivery-form input {
    width: 75px;
    height: 31px;

    padding: 0 7px;

    outline: none;

    background: #f3f5f6;

    border: 1px solid #cbd1d8;

    border-radius: 6px;

    font-size: 8px;
}

.delivery-form button {
    height: 31px;

    padding: 0 9px;

    border: 0;

    background: #199653;

    border-radius: 6px;

    color: white;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

.delivery-form button:hover {
    background: #147b44;
}

.cancel-request-form {
    margin-top: 14px;

    display: flex;
    justify-content: flex-end;
}

.cancel-request-form button {
    min-height: 35px;

    padding: 0 11px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    border: 1px solid #d2aeb2;

    background: #f6e7e9;

    border-radius: 7px;

    color: #a52a34;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

.cancel-request-form button:hover {
    background: #c51d25;
    border-color: #c51d25;
    color: white;
}

/* =========================================================
   HISTÓRICO
========================================================= */

.movement-type {
    background: #e8ebef;
    color: #4f5b69;
}

/* =========================================================
   RESPONSIVIDADE DO ALMOXARIFADO
========================================================= */

@media (max-width: 1050px) {

    .material-layout,
    .request-layout {
        grid-template-columns: 1fr;
    }

    .request-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .request-item-row {
        grid-template-columns: 1fr;
    }

    .request-summary {
        grid-template-columns: 1fr;
    }

    .list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }
}

/* =========================================================
   CHAMADOS - TÉKA GESTÃO OPERACIONAL
========================================================= */

.ticket-layout {
    grid-template-columns: minmax(320px, 390px) 1fr;
}

.ticket-origin-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ticket-origin-box > div {
    padding: 10px 11px;

    background: #eceff2;

    border: 1px solid #d2d7dd;

    border-radius: 8px;
}

.ticket-origin-box span {
    display: block;

    color: #6a7582;

    font-size: 7px;
    font-weight: 700;
}

.ticket-origin-box strong {
    display: block;

    margin-top: 3px;

    color: #293441;

    font-size: 9px;
}


/* =========================================================
   TIPO DE CHAMADO
========================================================= */

.ticket-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.ticket-type.ti {
    background: #e6eefb;
    color: #336cb9;
}

.ticket-type.manutenção {
    background: #fff0d6;
    color: #94620b;
}


/* =========================================================
   PRIORIDADE
========================================================= */

.priority-badge {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.priority-badge.baixa {
    background: #e5f4eb;
    color: #197442;
}

.priority-badge.normal {
    background: #e8ebef;
    color: #515e6d;
}

.priority-badge.alta {
    background: #fff0d3;
    color: #93620a;
}

.priority-badge.crítica {
    background: #f7e1e4;
    color: #a52731;
}


/* =========================================================
   STATUS
========================================================= */

.ticket-status {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.ticket-status.aberto {
    background: #e8edf7;
    color: #395f9b;
}

.ticket-status.em-atendimento {
    background: #fff0d2;
    color: #8e610b;
}

.ticket-status.concluído {
    background: #e2f3e9;
    color: #197442;
}

.ticket-status.cancelado {
    background: #e4e6e9;
    color: #586371;
}

.not-assigned {
    color: #818b97;
    font-size: 8px;
}


/* =========================================================
   DETALHE DO CHAMADO
========================================================= */

.ticket-summary {
    margin-bottom: 17px;
}

.ticket-detail-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);

    gap: 16px;

    align-items: start;
}

.ticket-main-column,
.ticket-side-column {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.ticket-description {
    padding: 20px;
}

.ticket-description span {
    display: block;

    margin-bottom: 8px;

    color: #657181;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .4px;
}

.ticket-description p {
    color: #303b48;

    font-size: 10px;

    line-height: 1.7;

    white-space: pre-wrap;
}


/* =========================================================
   ATENDIMENTO
========================================================= */

.ticket-actions-box {
    padding: 16px;
}

.ticket-main-button {
    width: 100%;
    min-height: 39px;

    margin-bottom: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;

    background: #c51d25;

    border-radius: 7px;

    color: #ffffff;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition: .18s;
}

.ticket-main-button:hover {
    background: #a9151c;
}

.compact-form {
    padding: 13px 0 0;

    border-top: 1px solid #d6dbe0;

    margin-top: 13px;
}

.secondary-action-button {
    min-height: 36px;

    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid #c5cbd3;

    background: #e8ebee;

    border-radius: 7px;

    color: #465260;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

.secondary-action-button:hover {
    background: #dfe3e7;

    color: #a9151c;
}

.small-textarea {
    min-height: 78px;
}

.conclude-ticket-button {
    min-height: 40px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;

    background: #199653;

    border-radius: 7px;

    color: white;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.conclude-ticket-button:hover {
    background: #147a44;
}


/* =========================================================
   HISTÓRICO DO CHAMADO
========================================================= */

.ticket-history-card {
    overflow: visible;
}

.ticket-timeline {
    padding: 17px 20px 20px;
}

.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns: 17px 1fr;

    gap: 10px;

    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";

    width: 1px;

    position: absolute;

    left: 6px;
    top: 12px;
    bottom: -2px;

    background: #ccd2d9;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    width: 13px;
    height: 13px;

    position: relative;

    z-index: 2;

    margin-top: 2px;

    border: 3px solid #f7f8f9;

    border-radius: 50%;

    background: #c51d25;

    box-shadow: 0 0 0 1px #d1a3a7;
}

.timeline-content {
    padding: 0 0 3px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.timeline-header strong {
    color: #283340;

    font-size: 9px;
}

.timeline-header span {
    color: #737e8a;

    font-size: 7px;
}

.timeline-content small {
    display: block;

    margin-top: 3px;

    color: #8a939e;

    font-size: 7px;
}

.timeline-content p {
    margin-top: 7px;

    padding: 9px 10px;

    background: #eceff2;

    border: 1px solid #d6dbe0;

    border-radius: 7px;

    color: #475362;

    font-size: 8px;

    line-height: 1.55;

    white-space: pre-wrap;
}


/* =========================================================
   CHAMADO FINALIZADO
========================================================= */

.ticket-final-box {
    min-height: 180px;

    padding: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.ticket-final-box > i {
    margin-bottom: 12px;

    color: #199653;

    font-size: 28px;
}

.ticket-final-box strong {
    color: #293440;

    font-size: 11px;
}

.ticket-final-box p {
    margin-top: 9px;

    color: #606c79;

    font-size: 8px;

    line-height: 1.6;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1100px) {

    .ticket-layout {
        grid-template-columns: 1fr;
    }

    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .ticket-origin-box {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   INDICADORES - TÉKA GESTÃO OPERACIONAL
========================================================= */

.indicator-summary-grid {
    margin-bottom: 24px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.indicator-summary-card {
    min-height: 105px;

    padding: 17px;

    display: flex;
    align-items: center;

    gap: 13px;

    background: #f7f8f9;

    border: 1px solid #cdd3da;

    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(15,23,42,.04),
        0 7px 20px rgba(15,23,42,.035);
}

.indicator-summary-icon {
    width: 45px;
    height: 45px;

    min-width: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7e2e4;

    border-radius: 11px;

    color: #c51d25;

    font-size: 16px;
}

.indicator-summary-icon.yellow {
    background: #fff0bd;
    color: #956400;
}

.indicator-summary-icon.green {
    background: #e4f3ea;
    color: #197442;
}

.indicator-summary-icon.blue {
    background: #e6eefb;
    color: #336cb9;
}

.indicator-summary-card span {
    display: block;

    color: #465363;

    font-size: 9px;
    font-weight: 600;
}

.indicator-summary-card strong {
    display: block;

    margin: 3px 0;

    color: #1b2430;

    font-size: 24px;
}

.indicator-summary-card small {
    color: #657181;

    font-size: 7px;
}


/* =========================================================
   ÁREAS DE INDICADORES
========================================================= */

.indicator-area-grid {
    margin-bottom: 25px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.indicator-area-card {
    min-height: 150px;

    padding: 17px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    background: #f7f8f9;

    border: 1px solid #cdd3da;

    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(15,23,42,.04),
        0 7px 20px rgba(15,23,42,.035);

    transition: .18s ease;
}

.indicator-area-card:hover {
    transform: translateY(-3px);

    background: #fbfbfc;

    border-color: #b9c0c8;

    box-shadow:
        0 8px 22px rgba(15,23,42,.07);
}

.indicator-area-icon {
    width: 43px;
    height: 43px;

    min-width: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 15px;
}

.indicator-area-icon.production {
    background: #fff0bd;
    color: #956400;
}

.indicator-area-icon.yield {
    background: #e7edf8;
    color: #456ba4;
}

.indicator-area-icon.quality {
    background: #e3f3e9;
    color: #197442;
}

.indicator-area-icon.waste {
    background: #f7e1e4;
    color: #a52731;
}

.indicator-area-icon.safety {
    background: #e6eefb;
    color: #336cb9;
}

.indicator-area-icon.workforce {
    background: #eee9fa;
    color: #7057b6;
}

.indicator-area-content {
    flex: 1;
}

.indicator-area-content strong {
    display: block;

    color: #27313e;

    font-size: 10px;
}

.indicator-area-content p {
    margin-top: 6px;

    min-height: 44px;

    color: #657181;

    font-size: 8px;

    line-height: 1.55;
}

.indicator-area-content > span {
    margin-top: 10px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #a9151c;

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   CADASTRO / LISTA
========================================================= */

.indicator-admin-grid {
    margin-bottom: 20px;

    display: grid;

    grid-template-columns: minmax(320px, 390px) 1fr;

    gap: 16px;

    align-items: start;
}

.indicator-latest-card {
    margin-top: 18px;
}

.indicator-category-badge {
    display: inline-flex;

    padding: 4px 7px;

    background: #e8ebef;

    border-radius: 20px;

    color: #4c5867;

    font-size: 7px;
    font-weight: 700;
}

.indicator-source {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.indicator-source.manual {
    background: #e8ebef;
    color: #4f5b69;
}

.indicator-source.excel {
    background: #e3f3e9;
    color: #197442;
}

.indicator-source.automático,
.indicator-source.automatico {
    background: #e6eefb;
    color: #336cb9;
}


/* =========================================================
   RESULTADO / META
========================================================= */

.indicator-result {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.indicator-result.success {
    background: #e2f3e9;
    color: #197442;
}

.indicator-result.danger {
    background: #f7e1e4;
    color: #a52731;
}

.indicator-result.neutral {
    background: #e8ebef;
    color: #53606f;
}


/* =========================================================
   INDICADORES POR SETOR
========================================================= */

.sector-indicator-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.sector-indicator-card {
    min-height: 205px;

    padding: 17px;

    display: flex;
    flex-direction: column;

    background: #f7f8f9;

    border: 1px solid #cdd3da;

    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(15,23,42,.04),
        0 7px 20px rgba(15,23,42,.035);

    transition: .18s;
}

.sector-indicator-card:hover {
    transform: translateY(-3px);

    background: #fbfbfc;

    box-shadow:
        0 8px 22px rgba(15,23,42,.07);
}

.sector-indicator-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}

.sector-indicator-top h3 {
    margin-top: 7px;

    color: #27313e;

    font-size: 11px;
}

.sector-indicator-value {
    margin-top: 22px;

    display: flex;
    align-items: baseline;

    gap: 5px;
}

.sector-indicator-value strong {
    color: #1c2530;

    font-size: 27px;
}

.sector-indicator-value span {
    color: #657181;

    font-size: 8px;
}

.sector-indicator-meta {
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.sector-indicator-meta > span:first-child {
    color: #5f6b78;

    font-size: 8px;
}

.sector-indicator-card > small {
    display: block;

    margin-top: 9px;

    color: #7a8490;

    font-size: 7px;
}

.sector-indicator-empty {
    min-height: 95px;

    margin-top: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #76818d;
}

.sector-indicator-empty i {
    margin-bottom: 8px;

    font-size: 20px;
}

.sector-indicator-empty strong {
    color: #4a5563;

    font-size: 9px;
}

.sector-indicator-empty span {
    margin-top: 4px;

    font-size: 7px;
}

.sector-indicator-footer {
    margin-top: auto;
    padding-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #d7dce1;

    color: #a9151c;

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   DETALHE DO INDICADOR
========================================================= */

.indicator-detail-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);

    gap: 16px;

    align-items: start;
}

.indicator-main-column,
.indicator-side-column {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.indicator-current-result {
    padding: 20px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.indicator-current-result > div {
    min-height: 95px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #eceff2;

    border: 1px solid #d4d9df;

    border-radius: 9px;
}

.indicator-current-result span {
    color: #66717f;

    font-size: 8px;
    font-weight: 600;
}

.indicator-current-value strong {
    margin-top: 6px;

    color: #202936;

    font-size: 25px;
}

.indicator-current-value small {
    margin-top: 2px;

    color: #657181;

    font-size: 8px;
}

.indicator-current-meta strong {
    margin-top: 7px;

    color: #283340;

    font-size: 11px;
}

.indicator-current-status strong {
    margin-top: 8px;
    align-self: flex-start;
}

.indicator-reference {
    padding: 0 20px 18px;

    color: #657181;

    font-size: 8px;
}

.indicator-reference strong {
    color: #394554;
}

.indicator-config-list {
    padding: 10px 17px 16px;
}

.indicator-config-list > div {
    min-height: 52px;

    padding: 10px 3px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-bottom: 1px solid #d7dce1;
}

.indicator-config-list > div:last-child {
    border-bottom: 0;
}

.indicator-config-list span {
    color: #66717f;

    font-size: 8px;
}

.indicator-config-list strong {
    color: #293440;

    font-size: 9px;

    text-align: right;
}


/* =========================================================
   IMPORTAÇÃO EXCEL
========================================================= */

.indicator-import-button {
    background: #e5f3e9;
    border-color: #bddbc8;
    color: #197442;
}

.indicator-import-button:hover {
    background: #197442;
    border-color: #197442;
    color: white;
}

.import-intro {
    margin-bottom: 24px;

    padding: 22px;

    display: flex;
    align-items: center;

    gap: 17px;

    background:
        linear-gradient(
            120deg,
            #eef2f4 0%,
            #f7f8f9 100%
        );

    border: 1px solid #cdd3da;

    border-radius: 12px;

    box-shadow:
        0 2px 4px rgba(15,23,42,.04);
}

.import-intro-icon {
    width: 58px;
    height: 58px;

    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e1f2e7;

    border-radius: 13px;

    color: #197442;

    font-size: 23px;
}

.import-label {
    display: block;

    margin-bottom: 5px;

    color: #a9151c;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;
}

.import-intro h2 {
    color: #202936;

    font-size: 17px;
}

.import-intro p {
    max-width: 800px;

    margin-top: 7px;

    color: #5f6b78;

    font-size: 9px;

    line-height: 1.6;
}

.import-source-grid {
    margin-bottom: 23px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.import-source-card {
    min-height: 130px;

    padding: 16px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    background: #f7f8f9;

    border: 1px solid #cdd3da;

    border-radius: 10px;
}

.import-source-icon {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 14px;
}

.import-source-icon.production {
    background: #fff0bd;
    color: #956400;
}

.import-source-icon.workforce {
    background: #eee9fa;
    color: #7057b6;
}

.import-source-icon.quality {
    background: #e4f3ea;
    color: #197442;
}

.import-source-card strong {
    color: #283340;

    font-size: 9px;
}

.import-source-card p {
    margin-top: 5px;

    color: #657181;

    font-size: 8px;

    line-height: 1.5;
}

.import-source-card span {
    display: block;

    margin-top: 8px;

    color: #a9151c;

    font-size: 7px;
    font-weight: 700;
}

.import-layout {
    margin-bottom: 18px;
}

.import-upload-placeholder {
    min-height: 310px;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.upload-icon {
    width: 68px;
    height: 68px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e1f2e7;

    border-radius: 50%;

    color: #197442;

    font-size: 25px;
}

.import-upload-placeholder strong {
    color: #293440;

    font-size: 11px;
}

.import-upload-placeholder p {
    max-width: 380px;

    margin-top: 8px;

    color: #657181;

    font-size: 8px;

    line-height: 1.6;
}

.accepted-files {
    margin-top: 16px;

    padding: 8px 10px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    background: #eceff2;

    border-radius: 7px;

    color: #596575;

    font-size: 8px;
}

.accepted-files i {
    color: #197442;
}

.import-flow-list {
    padding: 10px 18px 16px;
}

.import-flow-item {
    min-height: 65px;

    padding: 10px 0;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    border-bottom: 1px solid #d7dce1;
}

.import-flow-item:last-child {
    border-bottom: 0;
}

.flow-number {
    width: 27px;
    height: 27px;

    min-width: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c51d25;

    border-radius: 50%;

    color: white;

    font-size: 8px;
    font-weight: 800;
}

.import-flow-item strong {
    display: block;

    color: #293440;

    font-size: 9px;
}

.import-flow-item p {
    margin-top: 4px;

    color: #657181;

    font-size: 8px;

    line-height: 1.45;
}

.import-status {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;
}

.import-status.concluído,
.import-status.concluido {
    background: #e2f3e9;
    color: #197442;
}

.import-status.processando {
    background: #fff0d2;
    color: #8f620c;
}

.import-status.erro {
    background: #f7e1e4;
    color: #a52731;
}


/* =========================================================
   RESPONSIVIDADE - INDICADORES
========================================================= */

@media (max-width: 1150px) {

    .indicator-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .indicator-area-grid,
    .sector-indicator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .indicator-admin-grid,
    .indicator-detail-grid {
        grid-template-columns: 1fr;
    }

    .import-source-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .indicator-summary-grid,
    .indicator-area-grid,
    .sector-indicator-grid,
    .indicator-current-result {
        grid-template-columns: 1fr;
    }

    .import-intro {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================================
   INDICADORES - SETORES E RELATÓRIOS GERENCIAIS
   ========================================================= */

.report-meeting-card {
    margin: 20px 0 26px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #272e36 0%, #343d47 100%);
    border: 1px solid #414b56;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20, 25, 31, .12);
}

.report-meeting-card h3 {
    margin: 5px 0 7px;
    color: #fff;
    font-size: 16px;
}

.report-meeting-card p {
    margin: 0;
    max-width: 680px;
    color: #cbd2d9;
    font-size: 10px;
    line-height: 1.55;
}

.report-meeting-label {
    color: var(--teka-yellow);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.sector-toolbar {
    margin-bottom: 18px;
    padding: 15px 17px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
}

.sector-switcher {
    min-width: 260px;
}

.sector-switcher label,
.source-tab-field label {
    display: block;
    margin-bottom: 5px;
    color: #67717c;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sector-switcher select,
.source-tab-field select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d5dbe1;
    border-radius: 7px;
    color: #29313a;
    font-family: inherit;
    font-size: 10px;
}

.sector-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.source-tabs-config {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e6eaee;
}

.source-tabs-header {
    margin-bottom: 9px;
}

.source-tabs-header strong {
    color: #303943;
    font-size: 10px;
}

.source-tabs-header p {
    margin: 3px 0 0;
    color: #737d87;
    font-size: 8px;
    line-height: 1.45;
}

.source-tab-row {
    margin-bottom: 8px;
    padding: 9px;
    display: grid;
    grid-template-columns: minmax(130px, 1.15fr) minmax(95px, .75fr) minmax(145px, 1fr) auto;
    align-items: end;
    gap: 8px;
    background: #f7f9fa;
    border: 1px solid #e2e7eb;
    border-radius: 9px;
}

.source-tab-name {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #303943;
    font-size: 9px;
    font-weight: 700;
}

.source-tab-name i {
    color: #2f8f63;
}

.source-tab-save {
    min-height: 38px;
    white-space: nowrap;
}

.source-tab-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.source-tab-actions form:first-child {
    display: flex;
    gap: 7px;
    flex: 1;
    min-width: 300px;
}

.source-tab-actions input {
    flex: 1;
    min-height: 38px;
}

.source-tabs-empty {
    display: block;
    color: #737d87;
    font-size: 8px;
}

@media (max-width: 900px) {
    .report-meeting-card,
    .sector-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .source-tab-row {
        grid-template-columns: 1fr 1fr;
    }

    .source-tab-save {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .source-tab-row {
        grid-template-columns: 1fr;
    }

    .source-tab-actions form:first-child {
        min-width: 100%;
        flex-direction: column;
    }
}

/* =========================================================
   CENTRAL DE DADOS - ADICIONAR / COMPARTILHADAS COMIGO
========================================================= */
.data-source-add-card,
.shared-sheets-card {
    margin-bottom: 18px;
}

.data-source-add-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
    padding: 18px;
}

.data-source-add-form,
.data-source-shared-box {
    padding: 14px;
    background: #fff;
    border: 1px solid #e0e5ea;
    border-radius: 10px;
}

.data-source-add-title {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.data-source-add-title > i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f3f5;
    color: #2f8f63;
    font-size: 14px;
}

.data-source-add-title strong {
    display: block;
    color: #29313a;
    font-size: 11px;
}

.data-source-add-title span,
.data-source-help {
    display: block;
    margin-top: 3px;
    color: #737d87;
    font-size: 8px;
    line-height: 1.55;
}

.data-source-add-form .form-group {
    margin-bottom: 11px;
}

.data-source-inline-button {
    margin-top: 12px;
    display: inline-flex;
    width: auto;
    text-decoration: none;
}

.shared-sheets-list {
    padding: 12px 16px 16px;
}

.shared-sheet-row {
    margin-bottom: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) auto;
    gap: 10px;
    align-items: end;
    background: #fff;
    border: 1px solid #e1e6ea;
    border-radius: 9px;
}

.shared-sheet-info {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.shared-sheet-info > i {
    color: #2f8f63;
    font-size: 15px;
}

.shared-sheet-info strong {
    display: block;
    color: #303943;
    font-size: 10px;
}

.shared-sheet-info span {
    display: block;
    margin-top: 3px;
    color: #79838d;
    font-size: 8px;
}

.shared-sheet-sector label {
    display: block;
    margin-bottom: 5px;
    color: #67717c;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.shared-sheet-sector select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d5dbe1;
    border-radius: 7px;
    font-family: inherit;
    font-size: 9px;
}

.shared-sheet-add {
    min-width: 98px;
}

.shared-sheet-added {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.shared-sheets-message {
    margin: 14px 16px 16px;
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
    color: #657181;
    font-size: 9px;
}

.shared-sheets-message.danger {
    border-color: #e5b6b9;
    color: #9f1d24;
}

.source-remove-button {
    border: 1px solid #d6dce2;
    background: #fff;
    color: #68727d;
    cursor: pointer;
}

@media (max-width: 900px) {
    .data-source-add-grid {
        grid-template-columns: 1fr;
    }

    .shared-sheet-row {
        grid-template-columns: 1fr 1fr;
    }

    .shared-sheet-add,
    .shared-sheet-added {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .shared-sheet-row {
        grid-template-columns: 1fr;
    }
}
