/* =========================
   FONTES
========================= */

@font-face {
    font-family: 'Source Sans 3';
    src: url('/assets/fonts/static/SourceSans3-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/assets/fonts/static/SourceSans3-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================
   ROOT
========================= */

:root {
    --verde: #348f6c;
    --verde-hover: #43a07c;
    --verde-claro: #56cf9f;
    --topbar-height: 76px;

    --branco: #f5f7fa;
    --cinza: #e3e3e3;

    --preto: #222222;
    --preto-secundario: #6b7280;

    --azul-claro: #53aadf;

    --glass: rgba(255, 255, 255, .88);

    --shadow-soft:
        0 10px 30px rgba(0, 0, 0, .10);

    --shadow-medium:
        0 15px 45px rgba(0, 0, 0, .18);

    --transition:
        .3s ease;
}

/* =========================
   RESET
========================= */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    font-family: 'Source Sans 3', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* =========================
   BODY
========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body>.d-flex {
    min-height: 100dvh;
    align-items: stretch;
}

body.sidebar-open {
    overflow: hidden;
}

/* =========================
   LOGIN PAGE
========================= */

.login-page {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(circle at top left, rgba(52, 143, 108, .25), transparent 25%),
        radial-gradient(circle at bottom right, rgba(83, 170, 223, .20), transparent 25%),
        linear-gradient(135deg,
            #0f172a 0%,
            #1e293b 100%);
}

.login-page .row {
    margin: 0;
}

/* =========================
   BRANDING
========================= */

.login-branding {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4rem;
}

.branding-content {
    max-width: 540px;
}

.branding-logo {
    width: 260px;

    margin-bottom: 2rem;

    object-fit: contain;
}

.branding-title {
    font-size: clamp(2.5rem, 4vw, 4rem);

    line-height: 1.1;

    font-weight: 700;

    color: #fff;

    margin-bottom: 1.5rem;
}

.branding-description {
    font-size: 1.1rem;

    line-height: 1.7;

    color: rgba(255, 255, 255, .75);
}

/* =========================
   LOGIN CONTENT
========================= */

.login-content {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;
}

/* =========================
   FORM LOGIN
========================= */

.form-login {
    width: 100%;
    max-width: 460px;

    padding: 2.5rem;

    border-radius: 28px;

    background: var(--glass);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .15);

    box-shadow: var(--shadow-medium);

    transition: var(--transition);
}

.form-login:hover {
    transform: translateY(-2px);
}

/* =========================
   LOGO LOGIN
========================= */

.logo-login {
    width: 160px;

    margin-bottom: 1rem;

    object-fit: contain;
}

/* =========================
   TITULOS LOGIN
========================= */

.titulo-login {
    font-size: clamp(1.8rem, 2vw, 2.5rem);

    font-weight: 700;

    color: var(--preto);

    margin-bottom: .5rem;
}

.subtitulo-login {
    color: var(--preto-secundario);

    margin-bottom: 0;
}

/* =========================
   INPUTS
========================= */

.input-login {
    height: 56px;

    border-radius: 16px;

    border: 1px solid #d1d5db;

    background-color: rgba(255, 255, 255, .95);

    padding: 1rem;

    font-size: 1rem;

    transition: var(--transition);
}

.input-login:focus {
    border-color: var(--verde);

    background-color: #fff;

    box-shadow:
        0 0 0 .25rem rgba(52, 143, 108, .15);
}

/* =========================
   BOTÃO LOGIN
========================= */

.btn-login {
    width: 100%;

    height: 56px;

    border: none;

    border-radius: 16px;

    background:
        linear-gradient(135deg,
            var(--verde),
            var(--verde-claro));

    color: var(--branco);

    font-size: 1rem;
    font-weight: 700;

    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(135deg,
            var(--verde-hover),
            var(--verde));

    box-shadow:
        0 12px 24px rgba(52, 143, 108, .25);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    min-height: 100dvh;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;

    padding: 0 1rem 1.25rem;

    background-color: var(--cinza);

    border-radius: 0 1rem 1rem 0;

    box-shadow: var(--shadow-soft);

    transition:
        width .3s ease,
        transform .3s ease;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
}

.sidebar-menu {
    height: 100%;

    display: flex;
    flex-direction: column;
    gap: .55rem;

    padding: 0;
    margin: 0;

    list-style: none;
}

.sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 1rem;
    z-index: 1060;

    width: 48px;
    height: 48px;

    display: none;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 14px;

    background: var(--verde);
    color: var(--branco);

    box-shadow:
        0 12px 28px rgba(52, 143, 108, .28);

    transition:
        background .2s ease,
        transform .2s ease;
}

.sidebar-toggle:hover {
    background: var(--verde-hover);

    transform: translateY(-1px);
}

body.modal-open .sidebar-toggle {
    display: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;

    display: none;

    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.active {
    display: block;
}

/* =========================
   NAV HEADER
========================= */

.nav-header {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* =========================
   SECTIONS
========================= */

.section-home,
.listagem-itens,
.section-item,
.div-main,
.section-itens-acabando {
    background-color: var(--cinza);

    height: fit-content;

    border-radius: 1rem;

    box-shadow: var(--shadow-soft);
}

/* =========================
   BOTÃO ASIDE
========================= */

.btn-aside {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: .75rem;

    padding: .85rem 1rem;

    border-radius: 14px;

    background: transparent;
    color: #374151;

    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-aside i {
    width: 1.25rem;
    flex: 0 0 1.25rem;

    text-align: center;
}

.menu-badge-pendente {
    min-width: 1.35rem;
    height: 1.35rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    padding: 0 .35rem;

    border-radius: 999px;

    background: #dc2626;
    color: #fff;

    font-size: .72rem;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}

.btn-aside:hover {
    background: rgba(52, 143, 108, .12);

    color: var(--verde);

    transform: translateX(2px);
}

.btn-aside.active {
    background: var(--verde);

    color: var(--branco);

    box-shadow:
        0 10px 25px rgba(52, 143, 108, .25);
}

.sidebar .dropdown-menu {
    width: 100%;

    padding: .45rem;

    border: 0;
    border-radius: 14px;

    box-shadow: var(--shadow-soft);
}

.div-main {
    flex: 1;
    min-width: 0;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: #f8fafc;

    border-radius: 0;
    box-shadow: none;

    height: auto;
    overflow-x: hidden;
}

.sidebar .dropdown-item {
    min-height: 44px;

    display: flex;
    align-items: center;

    border-radius: 10px;

    font-weight: 600;
    white-space: normal;
}

.sidebar .dropdown-item:hover {
    background: rgba(52, 143, 108, .12);

    color: var(--verde);
}

.sidebar-logout {
    margin-top: auto;
}

.sidebar-logout .btn {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;

    border-radius: 14px;

    font-weight: 700;
}

/* =========================
   BOX HOME
========================= */

.box-home {
    width: 100%;
    max-width: 220px;

    aspect-ratio: 4 / 2.5;

    background-color: var(--branco);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    border-radius: 1rem;

    padding: 1.5rem;

    box-shadow: var(--shadow-soft);

    transition: var(--transition);
}

.box-home:hover {
    transform: translateY(-2px);
}

.box-home p,
.box-home strong,
.box-home a {
    color: var(--preto);
}

/* =========================
   WIDTH HELPERS
========================= */

.w-300px {
    width: 300px;
}

/* =========================
   BOTÃO VERDE
========================= */

.btn-verde {
    margin: 2px;

    padding: .5rem .9rem;

    background-color: var(--verde);

    color: var(--branco);

    border-radius: .5rem;

    text-decoration: none;

    transition: var(--transition);
}

.btn-verde:hover {
    background-color: var(--verde-claro);

    color: var(--branco);
}

/* =========================
   LOGO SISTEMA
========================= */

.logo-sistema {
    width: 100%;
}

.logo-sistema img {
    max-width: 180px;
    height: auto;

    object-fit: contain;

    mix-blend-mode: multiply;
}

/* =========================
   GRAFICO
========================= */

.grafico-movimentacoes-geral {
    width: 40%;

    height: auto;
}

/* =========================
   TABELAS
========================= */

#tabela_wrapper {
    width: 60%;
}

#tabela_wrapper .row:nth-child(3) {
    margin: 1rem 0;

    border-top: 1px solid var(--preto);

    padding-top: .5rem;
}

.listagem-itens #tabela_wrapper,
.listagem-usuarios #tabela_wrapper {
    width: 100%;
}

/* =========================
   TOOLTIP
========================= */

.custom-tooltip {
    --bs-tooltip-bg: #05598A;
    --bs-tooltip-color: var(--branco);

    font-weight: bold;
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 1200px) {

    .grafico-movimentacoes-geral {
        width: 100%;
    }

    #tabela_wrapper {
        width: 100%;
    }
}

@media (max-width: 991px) {

    .sidebar {
        width: 90px;

        padding-left: .7rem;
        padding-right: .7rem;
    }

    .sidebar .menu-text,
    .sidebar .dropdown-toggle::after {
        display: none;
    }

    .sidebar .logo-sistema {
        min-height: 72px;

        align-items: center !important;
        justify-content: center !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar .logo-sistema img {
        max-width: 56px;
    }

    .btn-aside {
        justify-content: center;

        padding: .85rem;
    }

    .sidebar .dropdown-menu {
        min-width: 240px;
    }

    .sidebar-logout .btn {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .login-content {
        min-height: auto;

        padding: 3rem 1.5rem;
    }

    .form-login {
        max-width: 520px;
    }

    .box-home {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    body {
        padding: 0;
    }

    body>.d-flex {
        display: block !important;
        min-height: 100dvh;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;

        width: 280px;
        max-width: min(280px, 86vw);

        padding-left: 1rem;
        padding-right: 1rem;

        border-radius: 0 1rem 1rem 0;

        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar .menu-text,
    .sidebar .dropdown-toggle::after {
        display: inline-block;
    }

    .sidebar .logo-sistema {
        min-height: auto;

        align-items: flex-start !important;

        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .sidebar .logo-sistema img {
        max-width: 140px;
    }

    .btn-aside {
        justify-content: flex-start;

        padding: .85rem 1rem;
    }

    .sidebar .dropdown-menu {
        position: static !important;
        transform: none !important;

        margin-top: .35rem !important;
    }

    .sidebar .sidebar-nav {
        overflow-y: auto;
    }

    .sidebar .sidebar-menu {
        height: auto;
    }

    .div-main {
        width: 100%;
        min-height: 100dvh;

        padding-top: 4.25rem;
    }

    .section-home,
    .listagem-itens,
    .section-item,
    .div-main,
    .section-itens-acabando {
        border-radius: .8rem;
    }

    .grafico-movimentacoes-geral,
    #tabela_wrapper {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .login-content {
        padding: 1rem;
    }

    .form-login {
        padding: 1.5rem;

        border-radius: 24px;
    }

    .input-login,
    .btn-login {
        height: 52px;
    }

    .titulo-login {
        font-size: 1.7rem;
    }

    .subtitulo-login {
        font-size: .95rem;
    }

    .branding-title {
        font-size: 2.2rem;
    }

    .branding-description {
        font-size: 1rem;
    }

    .box-home {
        padding: 1rem;
    }
}

/* =========================
   DASHBOARD ADMIN-HOME
========================= */
.dashboard-title {
    font-size: clamp(2rem, 3vw, 3rem);

    font-weight: 700;

    color: #111827;

    line-height: 1.1;
}

.dashboard-subtitle {
    font-size: 1rem;

    color: #6b7280;
}

.dashboard-card {
    position: relative;
    min-width: 0;

    height: 100%;

    padding: 1.5rem;

    border-radius: 24px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .95),
            rgba(255, 255, 255, .88));

    border:
        1px solid rgba(255, 255, 255, .3);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .08);

    backdrop-filter: blur(12px);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.dashboard-card-title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);

    font-weight: 600;

    color: #374151;

    line-height: 1.4;
}

.dashboard-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .12);

    border-color:
        rgba(52, 143, 108, .18);
}

.dashboard-metric-value {
    display: flex;

    justify-content: center;
    align-items: center;

    margin-top: auto;

    font-size: clamp(3rem, 5vw, 4rem);

    font-weight: 700;

    line-height: 1;

    color: var(--verde);
}

.dashboard-metric-value a {
    color: inherit;
}

.dashboard-scroll {
    max-height: 280px;

    overflow-y: auto;

    padding-right: .35rem;
}

.dashboard-scroll .list-group-item {
    border: none;

    border-radius: 14px !important;

    margin-bottom: .6rem;

    padding: .9rem 1rem;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.dashboard-scroll .list-group-item:hover {
    transform: translateX(2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .08);
}

@media (max-width: 768px) {

    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    .dashboard-card {
        padding: 1rem;

        border-radius: 20px;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-card-title {
        font-size: 1rem;
    }

    .dashboard-scroll {
        max-height: 220px;
    }

    .dashboard-scroll .list-group-item {
        font-size: .92rem;

        padding: .75rem .9rem;
    }

    .badge {
        font-size: .8rem;
    }
}

a,
button,
.list-group-item,
.dashboard-card {
    transition: .25s ease;
}

a:hover {
    opacity: .92;
}

/*========================
NAVBAR RESPONSIVO 
==========================
*/

.dashboard-topbar {
    position: sticky;

    top: 0;

    z-index: 1030;

    width: 100%;

    flex-shrink: 0;

    min-height: var(--topbar-height);

    display: flex;
    align-items: center;

    padding: .75rem 1.5rem;

    backdrop-filter: blur(16px);

    background:
        rgba(255, 255, 255, .82);

    border-bottom:
        1px solid rgba(255, 255, 255, .4);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, .05);
}

.dashboard-topbar-content {
    width: 100%;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 1rem;

    min-width: 0;
}

.dashboard-topbar-left {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.dashboard-page-kicker {
    font-size: .78rem;

    font-weight: 700;

    color: var(--verde);

    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-page-title {
    font-size: 1.5rem;

    font-weight: 700;

    color: #111827;

    margin: 0;

    line-height: 1.15;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-topbar-right {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.dashboard-user-menu {
    display: flex;

    align-items: center;

    gap: .85rem;

    min-height: 52px;

    padding: .65rem 1rem;

    border-radius: 16px;

    text-decoration: none;

    background:
        rgba(255, 255, 255, .78);

    border:
        1px solid rgba(255, 255, 255, .4);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, .06);

    transition:
        all .25s ease;
}

.dashboard-user-menu,
.dashboard-user-menu:hover {
    color: inherit;
}

.dashboard-user-menu:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(15, 23, 42, .1);
}

.dashboard-user-avatar {
    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        linear-gradient(135deg,
            var(--verde),
            var(--verde-claro));

    color: white;

    flex-shrink: 0;
}

.dashboard-user-info {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.dashboard-user-name {
    font-size: .95rem;

    font-weight: 600;

    color: #111827;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 160px;
}

.dashboard-user-role {
    font-size: .78rem;

    color: #6b7280;
}

.dropdown-menu {
    border-radius: 18px;

    padding: .65rem;
}

.dropdown-item {
    border-radius: 12px;

    padding: .75rem 1rem;

    transition: .2s ease;
}

.dropdown-item:hover {
    background:
        rgba(52, 143, 108, .08);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .div-main {
        padding-top: var(--topbar-height);

        border-radius: 0;
    }

    .dashboard-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 1030;

        min-height: var(--topbar-height);

        padding:
            .75rem 1rem .75rem 4.75rem;
    }

    .dashboard-topbar-content {
        align-items: center;

        gap: .75rem;
    }

    .dashboard-page-kicker {
        display: none;
    }

    .dashboard-page-title {
        font-size: 1.05rem;
    }

    .dashboard-user-menu {
        padding:
            .55rem .75rem;

        min-height: 46px;

        border-radius: 14px;
    }

    .dashboard-user-name {
        max-width: 105px;

        font-size: .85rem;
    }

    .dashboard-user-role {
        display: none;
    }

    .dashboard-user-avatar {
        width: 38px;

        height: 38px;
    }
}

@media (max-width: 576px) {

    .dashboard-topbar {
        padding-right: .75rem;
    }

    .dashboard-user-menu {
        gap: 0;

        padding: .5rem;
    }

    .dashboard-user-info {
        display: none;
    }

    .dashboard-user-menu.dropdown-toggle::after {
        margin-left: .35rem;
    }

    .dashboard-page-title {
        font-size: 1rem;
    }
}

/*===============================================
ITENS-LISTAR
=================================================
*/
/* =========================
   ESTOQUE PAGE
========================= */

.estoque-page {
    width: 100%;

    padding:
        1.5rem 1.5rem 2rem;

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}

.estoque-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;
}

.estoque-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);

    font-weight: 700;

    color: #111827;

    margin-bottom: .35rem;
}

.estoque-subtitle {
    font-size: 1rem;

    color: #6b7280;

    margin: 0;
}

/* =========================
   FILTROS ESTOQUE
========================= */

.estoque-filtros {
    width: 100%;
}

.filtro-label {
    font-size: .9rem;

    font-weight: 600;

    color: #374151;

    margin-bottom: .5rem;
}

.filtro-input {
    min-height: 50px;

    border-radius: 16px;

    border:
        1px solid rgba(209, 213, 219, .9);

    background:
        rgba(255, 255, 255, .9);

    padding:
        .75rem 1rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.filtro-input:focus {
    border-color: var(--verde);

    background: white;

    box-shadow:
        0 0 0 .25rem rgba(52, 143, 108, .12);
}

/* =========================
   TABLE CARD
========================= */

.table-card {
    width: 100%;

    padding: 1.5rem;

    border-radius: 24px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .96),
            rgba(255, 255, 255, .88));

    border:
        1px solid rgba(255, 255, 255, .4);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .08);

    overflow: hidden;
}

/* =========================
   DATATABLE
========================= */

#tabela {
    width: 100% !important;

    margin: 0 !important;
}

#tabela thead th {
    border: none !important;

    font-size: .92rem;

    font-weight: 700;

    color: #374151;

    padding:
        1rem .95rem;

    white-space: nowrap;
}

#tabela tbody td {
    vertical-align: middle;

    border-color:
        rgba(0, 0, 0, .04);

    padding:
        1rem .95rem;

    font-size: .95rem;
}

#tabela tbody tr {
    transition:
        background .2s ease,
        transform .2s ease;
}

#tabela tbody tr:hover {
    background:
        rgba(52, 143, 108, .04);
}

/* =========================
   DATATABLE CONTROLS
========================= */

.dataTables_wrapper .row {
    gap: 1rem;
}

.dataTables_filter input {
    min-height: 44px;

    border-radius: 14px;

    border:
        1px solid #d1d5db;

    padding:
        .5rem .9rem;

    margin-left: .5rem;
}

.dataTables_length select {
    min-height: 44px;

    border-radius: 12px;

    border:
        1px solid #d1d5db;

    padding:
        .3rem .75rem;
}

.dataTables_info,
.dataTables_length,
.dataTables_filter {
    font-size: .92rem;

    color: #6b7280;
}

/* =========================
   PAGINATION
========================= */

.dataTables_paginate .paginate_button {
    border-radius: 12px !important;

    border: none !important;

    transition: .2s ease !important;
}

.dataTables_paginate .paginate_button.current {
    background:
        linear-gradient(135deg,
            var(--verde),
            var(--verde-claro)) !important;

    color: white !important;
}

.dataTables_paginate .paginate_button:hover {
    background:
        rgba(52, 143, 108, .12) !important;

    color: var(--verde) !important;
}

/* =========================
   BOTÃO EDITAR
========================= */

.btn-verde {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        .65rem 1rem;

    border-radius: 12px;

    font-size: .9rem;

    font-weight: 600;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .estoque-page {
        padding:
            1rem 1rem 2rem;
    }

    .table-card {
        padding: 1rem;

        border-radius: 20px;
    }

    .estoque-title {
        font-size: 1.7rem;
    }

    .estoque-subtitle {
        font-size: .92rem;
    }

    #tabela thead th,
    #tabela tbody td {
        font-size: .88rem;

        padding:
            .85rem .75rem;
    }

    .dataTables_wrapper .row {
        gap: .75rem;
    }

    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        width: 100%;

        text-align: left !important;
    }

    .dataTables_filter input {
        width: 100%;

        margin-left: 0;

        margin-top: .5rem;
    }

    .dataTables_length select {
        width: 100%;
    }

    .btn-verde {
        width: 100%;
    }
}

/* =========================
   RESUMO FILTROS
========================= */

#texto-filtros {
    min-height: 24px;

    transition:
        opacity .2s ease;
}

/* =========================
   BOTÕES FILTRO
========================= */

#btn-aplicar-filtros,
#btn-limpar-filtros {
    min-height: 50px;

    border-radius: 14px;

    font-weight: 600;
}

#btn-aplicar-filtros {
    background:
        linear-gradient(135deg,
            var(--verde),
            var(--verde-claro));

    border: none;
}

#btn-aplicar-filtros:hover {
    transform: translateY(-1px);
}

#btn-limpar-filtros:hover {
    background:
        rgba(0, 0, 0, .04);
}

/*============================== 
VIEW ITEM-DETALHADO
================================
*/
/* =========================
   EDITAR ITEM
========================= */

.item-form-card {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;
}

.input-dashboard {
    min-height: 52px;

    border-radius: 14px;

    border:
        1px solid #d1d5db;

    padding:
        .75rem 1rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-dashboard:focus {
    border-color: var(--verde);

    box-shadow:
        0 0 0 .2rem rgba(52, 143, 108, .12);
}

.btn-dashboard-success,
.btn-dashboard-danger {
    /* min-height: 52px; */

    border-radius: 14px;

    font-weight: 600;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .section-item {
        padding:
            1rem !important;
    }

    .item-form-card {
        padding: 1rem;
    }

    .input-dashboard {
        min-height: 48px;
    }
}

/*============================= 
MODAIS
===============================
*/
/* =========================
   MODAL DASHBOARD
========================= */

.modal-dashboard {
    border: none;

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .98),
            rgba(255, 255, 255, .92));

    box-shadow:
        0 20px 60px rgba(15, 23, 42, .18);

    overflow: hidden;
}

.input-dashboard {
    min-height: 52px;

    border-radius: 14px;

    border:
        1px solid #d1d5db;

    padding:
        .75rem 1rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-dashboard:focus {
    border-color: var(--verde);

    box-shadow:
        0 0 0 .2rem rgba(52, 143, 108, .12);
}

.textarea-dashboard {
    min-height: 120px;

    resize: vertical;
}

.btn-dashboard {
    min-height: 52px;

    border-radius: 14px;

    font-weight: 600;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .modal-dialog {
        margin: 1rem;
    }

    .modal-dashboard {
        border-radius: 22px;
    }

    .input-dashboard,
    .btn-dashboard {
        min-height: 48px;
    }

    .textarea-dashboard {
        min-height: 100px;
    }
}

/* ===============================================
GERENCIAMENTO DE USUÁRIOS
================================================= */

.listagem-usuarios .table-responsive {
    overflow-x: auto;
}

.listagem-usuarios table.dataTable {
    margin-top: 0 !important;
}

.listagem-usuarios .btn-verde {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: .5rem;

    border: none;
}

.listagem-usuarios .modal-content {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .98),
            rgba(255, 255, 255, .92));

    backdrop-filter: blur(14px);
}

.listagem-usuarios .form-control,
.listagem-usuarios .form-select {
    min-height: 48px;

    border-radius: 14px;
}

.listagem-usuarios .modal-footer .btn,
.listagem-usuarios .modal-footer .btn-verde {
    min-height: 48px;

    border-radius: 14px;
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {

    .listagem-usuarios {
        padding:
            1rem 1rem 2rem !important;
    }

    .listagem-usuarios .dashboard-card {
        padding: 1rem;
    }

    .listagem-usuarios .btn-verde {
        width: 100%;
    }

    .listagem-usuarios table {
        font-size: .9rem;
    }

    .listagem-usuarios .modal-dialog {
        margin: 1rem;
    }

    .listagem-usuarios .modal-footer {
        flex-direction: column;
    }

    .listagem-usuarios .modal-footer .btn,
    .listagem-usuarios .modal-footer .btn-verde {
        width: 100%;
    }
}

/* 
===================================================
ADMIN CONFIG
===================================================
*/
/* =========================================================
ADMIN CONFIG
========================================================= */

.admin-config {
    min-height: 100vh;
}

/* =========================================================
HEADER
========================================================= */

.dashboard-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);

    font-weight: 800;

    color: #111827;

    letter-spacing: -.02em;
}

.dashboard-subtitle {
    color: #6b7280;

    font-size: .98rem;

    line-height: 1.6;
}

/* =========================================================
CARD
========================================================= */

.dashboard-card {
    padding: 1.5rem;

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .96),
            rgba(248, 250, 252, .92));

    border:
        1px solid rgba(255, 255, 255, .5);

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .05),
        0 2px 10px rgba(15, 23, 42, .03);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 40px rgba(15, 23, 42, .08),
        0 2px 12px rgba(15, 23, 42, .04);
}

/* =========================================================
TABLE
========================================================= */

.table-responsive {
    overflow-x: auto;
}

.table {
    margin-bottom: 0 !important;

    min-width: 600px;
}

.table thead th {
    border: none !important;

    background:
        rgba(15, 23, 42, .03);

    color: #374151;

    font-size: .88rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .03em;

    padding:
        1rem 1.1rem;

    white-space: nowrap;
}

.table tbody td {
    padding:
        1rem 1.1rem;

    vertical-align: middle;

    border-color:
        rgba(15, 23, 42, .05);

    color: #374151;

    font-size: .95rem;
}

.table tbody tr {
    transition:
        background .2s ease,
        transform .2s ease;
}

.table tbody tr:hover {
    background:
        rgba(52, 143, 108, .04);
}

/* =========================================================
BUTTONS
========================================================= */

.btn-verde,
.btn-dashboard {
    min-height: 44px;

    border-radius: 14px;

    font-weight: 600;

    transition:
        all .2s ease;
}

.btn-verde {
    padding:
        .7rem 1.2rem;

    background:
        linear-gradient(135deg,
            #348f6c,
            #3ca878);

    border: none;

    color: white;
}

.btn-verde:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(52, 143, 108, .2);

    color: white;
}

.btn-dashboard-success {
    background:
        linear-gradient(135deg,
            #348f6c,
            #42b883) !important;

    border: none !important;

    color: white !important;
}

.btn-dashboard-success:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(52, 143, 108, .2);
}

.btn-dashboard-danger {
    background:
        linear-gradient(135deg,
            #dc3545,
            #ef4444) !important;

    border: none !important;

    color: white !important;
}

.btn-dashboard-danger:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(220, 53, 69, .2);
}

/* =========================================================
INPUTS
========================================================= */

.input-dashboard,
.form-control {
    min-height: 48px;

    border-radius: 14px;

    border:
        1px solid #dbe1ea;

    padding:
        .75rem 1rem;

    font-size: .95rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-dashboard:focus,
.form-control:focus {
    border-color: #348f6c;

    box-shadow:
        0 0 0 .2rem rgba(52, 143, 108, .12);

    background: white;
}

/* =========================================================
MODAL
========================================================= */

.modal-dashboard {
    border: none;

    border-radius: 28px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .98),
            rgba(248, 250, 252, .95));

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .18);
}

.modal-header,
.modal-footer {
    border: none !important;
}

.modal-body {
    padding:
        1.5rem;
}

.modal-footer {
    padding:
        1rem 1.5rem 1.5rem;
}

.form-label {
    font-weight: 600;

    color: #374151;

    margin-bottom: .55rem;
}

/* =========================================================
DATATABLES
========================================================= */

.dataTables_wrapper .row {
    gap: 1rem;
}

.dataTables_filter input,
.dataTables_length select {
    min-height: 44px;

    border-radius: 12px;

    border:
        1px solid #dbe1ea;

    padding:
        .45rem .8rem;
}

.dataTables_paginate .paginate_button {
    border-radius: 10px !important;

    transition: .2s ease !important;
}

.dataTables_paginate .paginate_button.current {
    background:
        linear-gradient(135deg,
            #348f6c,
            #42b883) !important;

    border: none !important;

    color: white !important;
}

.dataTables_paginate .paginate_button:hover {
    background:
        rgba(52, 143, 108, .08) !important;

    color: #348f6c !important;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 992px) {

    .dashboard-card {
        padding: 1.2rem;

        border-radius: 24px;
    }

    .table {
        min-width: 100%;
    }

    .table thead th,
    .table tbody td {
        padding:
            .9rem .85rem;
    }
}

@media (max-width: 768px) {

    .admin-config {
        padding:
            1rem 1rem 2rem !important;
    }

    .dashboard-title {
        font-size: 1.7rem;
    }

    .dashboard-subtitle {
        font-size: .92rem;
    }

    .dashboard-card {
        padding: 1rem;

        border-radius: 22px;
    }

    .table {
        min-width: 560px;
    }

    .btn-verde,
    .btn-dashboard,
    .btn-dashboard-success,
    .btn-dashboard-danger {
        width: 100%;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .modal-content {
        border-radius: 24px;
    }

    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .table {
        min-width: 520px;
    }

    .table thead th,
    .table tbody td {
        font-size: .85rem;
    }

    .dashboard-title {
        font-size: 1.45rem;
    }
}

/* =========================================================
RELATÓRIO MOVIMENTAÇÕES
========================================================= */

.section-home {
    width: 100%;

    min-height: 100vh;

    padding:
        1.5rem 1.5rem 2rem;

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}

/* =========================================================
HEADER
========================================================= */

.relatorio-header {
    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.dashboard-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);

    font-weight: 800;

    color: #111827;

    letter-spacing: -.02em;
}

.dashboard-subtitle {
    color: #6b7280;

    font-size: .96rem;
}

.relatorio-alert {
    border: none;

    border-radius: 18px;

    background:
        rgba(59, 130, 246, .08);

    color: #1e40af;

    padding:
        1rem 1.2rem;

    margin: 0;
}

/* =========================================================
CARD
========================================================= */

.dashboard-card {
    padding: 1.5rem;

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .96),
            rgba(248, 250, 252, .92));

    border:
        1px solid rgba(255, 255, 255, .45);

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .05);

    overflow: hidden;
}

/* =========================================================
FILTROS
========================================================= */

.form-movimentacoes-geral {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 1rem;

    align-items: end;
}

.filtro-item {
    width: 100%;
}

.form-label {
    font-weight: 600;

    color: #374151;

    margin-bottom: .55rem;
}

.form-control {
    min-height: 48px;

    border-radius: 14px;

    border:
        1px solid #dbe1ea;

    padding:
        .7rem 1rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-control:focus {
    border-color: #348f6c;

    box-shadow:
        0 0 0 .2rem rgba(52, 143, 108, .12);
}

/* =========================================================
BOTÃO
========================================================= */

.btn-verde {
    min-height: 48px;

    border: none;

    border-radius: 14px;

    padding:
        .75rem 1.2rem;

    font-weight: 600;

    background:
        linear-gradient(135deg,
            #348f6c,
            #42b883);

    color: white;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-verde:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 20px rgba(52, 143, 108, .18);

    color: white;
}

/* =========================================================
GRID
========================================================= */

.relatorio-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr) minmax(320px, .8fr);

    gap: 1.5rem;

    align-items: start;
}

/* =========================================================
TABELA
========================================================= */

.tabela-card {
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

#tabela {
    width: 100% !important;

    margin: 0 !important;

    min-width: 700px;
}

#tabela thead th {
    border: none !important;

    background:
        rgba(15, 23, 42, .03);

    color: #374151;

    font-size: .88rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .03em;

    padding:
        1rem .95rem;

    white-space: nowrap;
}

#tabela tbody td {
    padding:
        1rem .95rem;

    border-color:
        rgba(15, 23, 42, .05);

    vertical-align: middle;

    font-size: .94rem;
}

#tabela tbody tr:hover {
    background:
        rgba(52, 143, 108, .04);
}

/* =========================================================
GRÁFICO
========================================================= */

.grafico-card {
    min-height: 100%;
}

.grafico-wrapper {
    position: relative;

    width: 100%;

    min-height: 420px;
}

/* =========================================================
DATATABLES
========================================================= */

.dataTables_wrapper .row {
    gap: 1rem;
}

.dataTables_filter input,
.dataTables_length select {
    min-height: 42px;

    border-radius: 12px;

    border:
        1px solid #dbe1ea;

    padding:
        .45rem .8rem;
}

.dataTables_paginate .paginate_button {
    border-radius: 10px !important;
}

.dataTables_paginate .paginate_button.current {
    background:
        linear-gradient(135deg,
            #348f6c,
            #42b883) !important;

    border: none !important;

    color: white !important;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1200px) {

    .relatorio-grid {
        grid-template-columns: 1fr;
    }

    .grafico-wrapper {
        min-height: 350px;
    }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

    .section-home {
        padding:
            1rem 1rem 2rem;
    }

    .dashboard-card {
        padding: 1rem;

        border-radius: 22px;
    }

    .dashboard-title {
        font-size: 1.7rem;
    }

    .dashboard-subtitle {
        font-size: .92rem;
    }

    .form-movimentacoes-geral {
        grid-template-columns: 1fr;
    }

    .filtro-botao {
        margin-top: .5rem;
    }

    .btn-verde {
        width: 100%;
    }

    #tabela {
        min-width: 620px;
    }

    .grafico-wrapper {
        min-height: 300px;
    }

    .relatorio-alert {
        font-size: .92rem;
    }
}

/* =========================================================
MOBILE PEQUENO
========================================================= */

@media (max-width: 576px) {

    .dashboard-title {
        font-size: 1.45rem;
    }

    #tabela {
        min-width: 560px;
    }

    #tabela thead th,
    #tabela tbody td {
        font-size: .84rem;
    }

    .grafico-wrapper {
        min-height: 260px;
    }
}

/* =========================================================
RELATÓRIO DE ITENS ESGOTANDO
========================================================= */

.section-itens-acabando {
    width: 100%;

    min-height: 100vh;

    padding:
        1.5rem
        1.5rem
        2rem;

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}

/* =========================================================
HEADER
========================================================= */

.relatorio-header {
    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.dashboard-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);

    font-weight: 800;

    color: #111827;

    letter-spacing: -.02em;
}

.dashboard-subtitle {
    color: #6b7280;

    font-size: .96rem;
}

.relatorio-alert {
    border: none;

    border-radius: 18px;

    background:
        rgba(245,158,11,.12);

    color: #92400e;

    padding:
        1rem
        1.2rem;

    margin: 0;
}

/* =========================================================
CARD
========================================================= */

.dashboard-card {
    padding: 1.5rem;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(248,250,252,.92)
        );

    border:
        1px solid rgba(255,255,255,.45);

    box-shadow:
        0 10px 35px rgba(15,23,42,.05);

    overflow: hidden;
}

/* =========================================================
FILTROS
========================================================= */

.form-itens-acabando {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.5fr)
        minmax(180px, 1fr)
        minmax(160px, .8fr);

    gap: 1rem;

    align-items: end;
}

.filtro-item {
    width: 100%;
}

.form-label {
    font-weight: 600;

    color: #374151;

    margin-bottom: .55rem;
}

.form-control {
    min-height: 48px;

    border-radius: 14px;

    border:
        1px solid #dbe1ea;

    padding:
        .7rem
        1rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-control:focus {
    border-color: #348f6c;

    box-shadow:
        0 0 0 .2rem rgba(52,143,108,.12);
}

/* =========================================================
BOTÃO
========================================================= */

.btn-verde {
    min-height: 48px;

    border: none;

    border-radius: 14px;

    padding:
        .75rem
        1.2rem;

    font-weight: 600;

    background:
        linear-gradient(
            135deg,
            #348f6c,
            #42b883
        );

    color: white;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-verde:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 20px rgba(52,143,108,.18);

    color: white;
}

/* =========================================================
GRID
========================================================= */

.relatorio-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(320px, .9fr);

    gap: 1.5rem;

    align-items: start;
}

/* =========================================================
TABELA
========================================================= */

.tabela-card {
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

#tabela {
    width: 100% !important;

    margin: 0 !important;

    min-width: 680px;
}

#tabela thead th {
    border: none !important;

    background:
        rgba(15,23,42,.03);

    color: #374151;

    font-size: .88rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .03em;

    padding:
        1rem
        .95rem;

    white-space: nowrap;
}

#tabela tbody td {
    padding:
        1rem
        .95rem;

    border-color:
        rgba(15,23,42,.05);

    vertical-align: middle;

    font-size: .94rem;
}

#tabela tbody tr:hover {
    background:
        rgba(245,158,11,.06);
}

/* =========================================================
GRÁFICO
========================================================= */

.grafico-card {
    min-height: 100%;
}

.grafico-wrapper {
    position: relative;

    width: 100%;

    min-height: 420px;
}

/* =========================================================
DATATABLES
========================================================= */

.dataTables_wrapper .row {
    gap: 1rem;
}

.dataTables_filter input,
.dataTables_length select {
    min-height: 42px;

    border-radius: 12px;

    border:
        1px solid #dbe1ea;

    padding:
        .45rem
        .8rem;
}

.dataTables_paginate .paginate_button {
    border-radius: 10px !important;
}

.dataTables_paginate .paginate_button.current {
    background:
        linear-gradient(
            135deg,
            #348f6c,
            #42b883
        ) !important;

    border: none !important;

    color: white !important;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1200px) {

    .relatorio-grid {
        grid-template-columns: 1fr;
    }

    .grafico-wrapper {
        min-height: 350px;
    }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

    .section-itens-acabando {
        padding:
            1rem
            1rem
            2rem;
    }

    .dashboard-card {
        padding: 1rem;

        border-radius: 22px;
    }

    .dashboard-title {
        font-size: 1.7rem;
    }

    .dashboard-subtitle {
        font-size: .92rem;
    }

    .form-itens-acabando {
        grid-template-columns: 1fr;
    }

    .btn-verde {
        width: 100%;
    }

    #tabela {
        min-width: 620px;
    }

    .grafico-wrapper {
        min-height: 300px;
    }

    .relatorio-alert {
        font-size: .92rem;
    }
}

/* =========================================================
MOBILE PEQUENO
========================================================= */

@media (max-width: 576px) {

    .dashboard-title {
        font-size: 1.45rem;
    }

    #tabela {
        min-width: 560px;
    }

    #tabela thead th,
    #tabela tbody td {
        font-size: .84rem;
    }

    .grafico-wrapper {
        min-height: 260px;
    }
}
/* =========================================================
RELATÓRIO ITENS REQUISITADOS
========================================================= */

.section-saidas-detalhado {
    width: 100%;

    min-height: 100vh;

    padding: 1.5rem 1.5rem 2rem !important;

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}

.section-saidas-detalhado .relatorio-header {
    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.section-saidas-detalhado > .dashboard-card {
    height: auto;
}

.section-saidas-detalhado .relatorio-alert {
    border: none;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,.12),
            rgba(37,99,235,.08)
        );

    color: #1e3a8a;

    padding: 1rem 1.2rem;

    margin: 0;
}

.section-saidas-detalhado .tabela-card,
.section-saidas-detalhado .grafico-card {
    height: auto;

    align-self: start;
}

.section-saidas-detalhado .grafico-wrapper {
    min-height: 320px;
}

.section-saidas-detalhado .dt-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

    margin-bottom: .75rem;
}

.section-saidas-detalhado .dt-button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: .7rem 1rem !important;

    border: none !important;

    border-radius: 12px !important;

    background: linear-gradient(135deg, #348f6c, #42b883) !important;

    color: #fff !important;

    font-weight: 600;

    line-height: 1.2;

    box-shadow: 0 10px 20px rgba(52, 143, 108, .14);

    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.section-saidas-detalhado .dt-button:hover,
.section-saidas-detalhado .dt-button:focus {
    transform: translateY(-1px);

    box-shadow: 0 12px 24px rgba(52, 143, 108, .18);

    color: #fff !important;
}

.section-itens-requisitados {
    width: 100%;
}

/* =========================================================
HEADER
========================================================= */

.dashboard-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);

    font-weight: 700;

    color: #111827;
}

.dashboard-subtitle {
    color: #6b7280;

    font-size: .96rem;
}

.dashboard-alert {
    border: none;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,.12),
            rgba(37,99,235,.08)
        );

    color: #1e3a8a;
}

/* =========================================================
FILTROS
========================================================= */

.filtros-relatorio {
    display: flex;

    align-items: end;

    gap: 1rem;

    flex-wrap: wrap;
}

.filtro-item {
    min-width: 0;

    min-width: 240px;

    flex: 1;
}

.filtro-botao {
    width: 180px;
}

.form-label {
    font-weight: 600;

    margin-bottom: .45rem;

    color: #374151;
}

.input-dashboard {
    min-height: 48px;

    border-radius: 14px;

    border: 1px solid #d1d5db;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-dashboard:focus {
    border-color: rgba(52,143,108,.55);

    box-shadow:
        0 0 0 .2rem rgba(52,143,108,.12);
}

/* =========================================================
LAYOUT
========================================================= */

.relatorio-grid {
    display: grid;

    grid-template-columns: 1.4fr .9fr;

    gap: 1.5rem;

    align-items: start;
}

/* =========================================================
CARDS
========================================================= */

.dashboard-card {
    padding: 1.5rem;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(255,255,255,.92)
        );

    border:
        1px solid rgba(255,255,255,.45);

    box-shadow:
        0 10px 30px rgba(15,23,42,.08);

    overflow: hidden;
}

/* =========================================================
TABELA
========================================================= */

#tabela {
    width: 100% !important;
}

#tabela thead th {
    border: none !important;

    font-size: .92rem;

    font-weight: 700;

    color: #374151;

    padding:
        1rem
        .9rem;

    white-space: nowrap;
}

#tabela tbody td {
    padding:
        1rem
        .9rem;

    vertical-align: middle;

    border-color:
        rgba(0,0,0,.04);

    font-size: .93rem;
}

#tabela tbody tr {
    transition:
        background .2s ease,
        transform .2s ease;
}

#tabela tbody tr:hover {
    background:
        rgba(52,143,108,.05);
}

/* =========================================================
GRÁFICO
========================================================= */

.grafico-card {
    min-height: 100%;
}

.grafico-wrapper {
    position: relative;

    width: 100%;

    min-height: 420px;
}

.grafico-wrapper canvas {
    width: 100% !important;

    height: 100% !important;
}

/* =========================================================
DATATABLE
========================================================= */

.dataTables_wrapper .row {
    gap: 1rem;
}

.dataTables_filter input,
.dataTables_length select {
    border-radius: 12px;

    border: 1px solid #d1d5db;

    min-height: 42px;
}

.dataTables_filter input {
    margin-left: .5rem;
}

.dataTables_paginate .paginate_button {
    border-radius: 12px !important;

    border: none !important;

    transition: .2s ease !important;
}

.dataTables_paginate .paginate_button.current {
    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--verde-claro)
        ) !important;

    color: white !important;
}

/* =========================================================
BOTÃO
========================================================= */

.btn-verde {
    min-height: 48px;

    border-radius: 14px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1200px) {

    .form-movimentacoes-geral {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-itens-acabando {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-movimentacoes-geral .filtro-botao,
    .form-itens-acabando .filtro-botao {
        grid-column: 1 / -1;
    }

    .relatorio-grid {
        grid-template-columns: 1fr;
    }

    .grafico-wrapper {
        min-height: 360px;
    }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

    .section-home,
    .section-itens-requisitados,
    .section-saidas-detalhado {
        padding: 1rem 1rem 2rem !important;
    }

    .form-movimentacoes-geral,
    .form-itens-acabando {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .dashboard-card {
        padding: 1rem;

        border-radius: 20px;
    }

    .dashboard-title {
        font-size: 1.6rem;
    }

    .dashboard-subtitle,
    .dashboard-alert p {
        font-size: .92rem;
    }

    .filtros-relatorio {
        flex-direction: column;

        align-items: stretch;
    }

    .filtro-item,
    .filtro-botao {
        width: 100%;
    }

    .grafico-wrapper {
        min-height: 300px;
    }

    .section-saidas-detalhado .grafico-wrapper {
        min-height: 260px;
    }

    .section-saidas-detalhado .dt-buttons,
    .section-saidas-detalhado .dt-button {
        width: 100%;
    }

    #tabela thead th,
    #tabela tbody td {
        font-size: .86rem;

        padding:
            .8rem
            .7rem;
    }

    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        width: 100%;

        text-align: left !important;
    }

    .dataTables_filter input {
        width: 100%;

        margin:
            .5rem
            0
            0;
    }

    .dataTables_length select {
        width: 100%;
    }
}
/* =========================================================
MODAL TROCAR SENHA
========================================================= */

.trocar-senha-modal {
    border: none;

    border-radius: 28px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .98),
            rgba(248, 250, 252, .94)
        );

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .18);
}

/* =========================================================
HEADER
========================================================= */

.trocar-senha-titulo {
    font-size: 1.5rem;

    font-weight: 800;

    color: #111827;

    margin-bottom: .2rem;
}

.trocar-senha-subtitulo {
    font-size: .95rem;

    color: #6b7280;

    line-height: 1.5;
}

/* =========================================================
BODY
========================================================= */

.trocar-senha-modal .modal-body {
    padding:
        1.5rem;
}

/* =========================================================
INPUTS
========================================================= */

.trocar-senha-modal .input-dashboard {
    min-height: 52px;

    border-radius: 14px;

    border:
        1px solid #dbe1ea;

    padding:
        .75rem 1rem;

    font-size: .95rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.trocar-senha-modal .input-dashboard:focus {
    border-color: #348f6c;

    box-shadow:
        0 0 0 .2rem rgba(52, 143, 108, .12);

    background: white;
}

/* =========================================================
LABELS
========================================================= */

.trocar-senha-modal .form-label {
    font-weight: 600;

    color: #374151;

    margin-bottom: .55rem;
}

/* =========================================================
FOOTER
========================================================= */

.trocar-senha-modal .modal-footer {
    padding:
        0 1.5rem 1.5rem;

    gap: .75rem;
}

.btn-dashboard-secondary {
    min-height: 48px;

    padding:
        .75rem 1.2rem;

    border-radius: 14px;

    border:
        1px solid #dbe1ea;

    font-weight: 600;

    background: white;

    color: #374151;

    transition:
        all .2s ease;
}

.btn-dashboard-secondary:hover {
    background:
        #f3f4f6;
}

/* =========================================================
RESPONSIVIDADE
========================================================= */

@media (max-width: 768px) {

    .trocar-senha-modal {
        border-radius: 22px;
    }

    .trocar-senha-modal .modal-body {
        padding: 1rem;
    }

    .trocar-senha-modal .modal-footer {
        padding:
            0 1rem 1rem;

        flex-direction: column;
    }

    .trocar-senha-modal .modal-footer .btn {
        width: 100%;
    }

    .trocar-senha-titulo {
        font-size: 1.3rem;
    }

    .trocar-senha-subtitulo {
        font-size: .9rem;
    }

    .trocar-senha-modal .input-dashboard,
    .btn-dashboard-secondary,
    .btn-verde {
        min-height: 48px;
    }
}

@media (max-width: 576px) {

    .modal-dialog {
        margin: 1rem;
    }

    .trocar-senha-modal {
        border-radius: 20px;
    }

    .trocar-senha-titulo {
        font-size: 1.2rem;
    }
}
/* =========================================================
SOLICITAÇÃO DE EDIÇÃO DE ITENS
========================================================= */
    .solicitacoes-mobile-list {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr;
        align-self: stretch;
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
    }

    .solicitacao-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 1rem;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
        padding: 1rem;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .solicitacao-card:active,
    .solicitacao-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.10);
    }

    .solicitacao-card-topo {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .solicitacao-card-titulo {
        font-size: 1rem;
        font-weight: 700;
        color: #162033;
        line-height: 1.3;
    }

    .solicitacao-card-meta {
        display: grid;
        gap: 0.65rem;
        margin-bottom: 1rem;
        flex: 1 1 auto;
    }

    .solicitacao-card-linha .rotulo {
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #7a869a;
        margin-bottom: 0.2rem;
    }

    .solicitacao-card-linha .valor {
        color: #1f2937;
        line-height: 1.4;
    }

    .alteracao-chip-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .alteracao-chip {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        background: #eef4ff;
        color: #2d4c88;
        font-size: 0.78rem;
        font-weight: 600;
    }

    .modal-solicitacao-dialog {
        max-width: 58rem;
        margin: 1.5rem auto;
    }

    .drawer-solicitacao {
        border: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
    }

    #modalSolicitacao .modal-content {
        max-height: calc(100vh - 3rem);
    }

    #modalSolicitacao .modal-header,
    #modalSolicitacao .modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    #modalSolicitacao .modal-body {
        padding: 1.25rem;
    }

    .drawer-cabecalho {
        display: grid;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .drawer-painel {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 1rem;
        background: #fff;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .drawer-painel-destaque {
        background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
        border-color: rgba(52, 143, 108, 0.16);
    }

    .drawer-grid-resumo {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .drawer-meta-label {
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #7a869a;
        margin-bottom: 0.25rem;
    }

    .drawer-meta-valor {
        color: #162033;
        font-weight: 600;
    }

    .drawer-section-title {
        font-size: 0.94rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        color: #162033;
        margin-bottom: 0.85rem;
    }

    .comparacao-lista {
        display: grid;
        gap: 0.85rem;
    }

    .comparacao-item {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 0.95rem;
        background: #fbfcfe;
        padding: 0.9rem;
    }

    .comparacao-rotulo {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #607086;
        margin-bottom: 0.55rem;
    }

    .comparacao-valores {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 0.7rem;
    }

    .comparacao-valor {
        border-radius: 0.85rem;
        padding: 0.75rem 0.85rem;
        font-weight: 700;
        line-height: 1.35;
        word-break: break-word;
    }

    .comparacao-valor-antigo {
        background: #fff3f1;
        color: #9f3b30;
        border: 1px solid #f2d1cc;
    }

    .comparacao-valor-novo {
        background: #edf9f2;
        color: #21724d;
        border: 1px solid #cde8d8;
    }

    .comparacao-seta {
        color: #8da1b8;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .drawer-estado {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .drawer-vazio {
        padding: 2rem 1rem;
        text-align: center;
        color: #607086;
    }

    @media (min-width: 992px) {
        .solicitacoes-mobile-list {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1.4rem;
        }

        .solicitacao-card {
            padding: 1.15rem 1.2rem;
            min-height: 250px;
        }

        .solicitacao-card .btn {
            width: auto !important;
            min-width: 9.5rem;
            align-self: flex-start;
        }

        #modalSolicitacao .modal-footer {
            flex-direction: row !important;
            justify-content: flex-end;
            align-items: center;
        }

        #modalSolicitacao .modal-footer .btn {
            width: auto !important;
            min-width: 10rem;
        }
    }

    @media (min-width: 1400px) {
        .solicitacoes-mobile-list {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            max-width: 1340px;
        }
    }

    @media (max-width: 767.98px) {
        .modal-solicitacao-dialog {
            max-width: calc(100vw - 1rem);
            margin: 0.5rem auto;
        }

        #modalSolicitacao .modal-content {
            max-height: calc(100vh - 1rem);
        }

        .drawer-grid-resumo,
        .comparacao-valores {
            grid-template-columns: 1fr;
        }

        .comparacao-seta {
            text-align: center;
            transform: rotate(90deg);
        }

        .swal2-popup {
            width: calc(100vw - 1.5rem) !important;
        }

        #modalSolicitacao .modal-footer .btn {
            width: 100% !important;
        }
    }