:root {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --line: #e8ebf4;
    --text: #1d2233;
    --muted: #8891a7;
    --indigo: #3b57ff;
    --blue-soft: #eff3ff;
    --green: #22b573;
    --red: #ef5151;
    --shadow: 0 10px 30px rgba(23, 34, 75, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: radial-gradient(circle at 20% -20%, #fdfefe 0%, #f4f6fb 45%, #eef2ff 100%);
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
}

.app {
    display: grid;
    grid-template-columns: 225px 1fr 390px;
    /*height: 100vh;*/ /*barra sidbar esquerda*/
    overflow: hidden;
    transition: grid-template-columns .25s ease;
}

.sidebar {
    background: #f7f9ff;
    border-right: 1px solid var(--line);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: padding .25s ease;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 2px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px 10px;
}

.logo-mark {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #2747d9;
    letter-spacing: -.2px;
}

.logo-sub {
    font-size: 14px;
    font-weight: 700;
    color: #7380a3;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid #e4e9f6;
    background: #fff;
    color: #6d7896;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #edf2ff;
    color: #3347c8;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.menu-group {
    margin: 0;
}

.menu-group summary {
    list-style: none;
    cursor: pointer;
}

.menu-group summary::-webkit-details-marker {
    display: none;
}

.menu-group .menu-subitems {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
    padding-left: 10px;
}

.menu-group .menu-subitems .menu-item {
    font-size: 11px;
}

.menu-group .menu-subitems .menu-item i:first-child {
    font-size: 10px;
}

.menu-group .menu-item.has-arrow i:last-child {
    transition: transform .2s ease;
}

.menu-group[open] .menu-item.has-arrow i:last-child {
    transform: rotate(180deg);
}

.sidebar-header {
    display: block;
    margin: 10px 10px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9aa4bf;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #435077;
    text-decoration: none;
}

.menu-item i:first-child {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.menu-item.has-arrow i:last-child {
    margin-left: auto;
    font-size: 9px;
    color: #9ca8c4;
}

.menu-item.active {
    background: linear-gradient(90deg, #3054ff 0%, #3e59ff 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(47, 83, 255, 0.26);
}

.menu-item:hover {
    background: #eef2ff;
    color: #2b3d9b;
}

.sidebar-shortcut {
    margin-top: 2px;
    padding: 10px 12px;
    border: 1px solid #e6eaf6;
    border-radius: 9px;
    color: #6f7a97;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar,
.menu-item,
.logo,
.sidebar-shortcut,
.sidebar-assist,
.menu-item span,
.sidebar-header,
.logo-sub,
.assist-title,
.sidebar-assist p,
.sidebar-assist small,
.sidebar-assist button {
    transition: all .2s ease;
}

.app.sidebar-collapsed {
    grid-template-columns: 78px 1fr 390px;
}

.app.sidebar-collapsed .sidebar {
    padding: 14px 8px;
}

.app.sidebar-collapsed .sidebar-head {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-right: 0;
}

.app.sidebar-collapsed .logo {
    padding: 4px 0 0;
    margin: 0;
    justify-content: center;
}

.app.sidebar-collapsed .logo-mark {
    max-width: 10px;
    overflow: hidden;
    font-size: 20px;
}

.app.sidebar-collapsed .logo-sub,
.app.sidebar-collapsed .sidebar-header,
.app.sidebar-collapsed .menu-item span,
.app.sidebar-collapsed .menu-item.has-arrow i:last-child,
.app.sidebar-collapsed .menu-group .menu-subitems,
.app.sidebar-collapsed .sidebar-shortcut span,
.app.sidebar-collapsed .sidebar-assist {
    display: none;
}

.app.sidebar-collapsed .menu-item {
    justify-content: center;
    padding: 9px 0;
}

.app.sidebar-collapsed .menu-item i:first-child {
    font-size: 13px;
    width: auto;
}

.app.sidebar-collapsed .sidebar-shortcut {
    width: 100%;
    padding: 10px 0;
}

.checkin-perform-page .checkin-summary-card dt {
    font-weight: 700;
    color: #5b6788;
}

.checkin-perform-page .checkin-summary-card dd {
    color: #20283f;
}

.checkin-perform-page .card {
    border-radius: 14px;
}

.checkin-baptized-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-top: 0.1rem;
}

.checkin-baptized-switch .form-check-label {
    margin-left: 0.35rem;
    font-weight: 600;
    color: #303a58;
}

.app.sidebar-collapsed .sidebar-shortcut i {
    margin: 0;
}

.sidebar-assist {
    margin-top: auto;
    padding: 10px;
    border: 1px solid #dfe4f2;
    border-radius: 10px;
    background: #fff;
}

.assist-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    color: #8a95b1;
}

.assist-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #5967f2;
}

.sidebar-assist p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-assist small {
    display: block;
    margin: 3px 0 10px;
    font-size: 10px;
    line-height: 1.4;
    color: #8d96b0;
}

.sidebar-assist button {
    width: 100%;
    border: 0;
    padding: 7px;
    border-radius: 7px;
    background: #5b5ff8;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 74px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 500px);
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 10px;
}

.search-box i {
    color: #a2a9be;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 13px;
    color: #5a6684;
    background: transparent;
}

.top-actions {
    position: absolute;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: #6f7a97;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4b4b;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
}

.user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.user strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.user .small {
    font-size: 11px;
    line-height: 1.2;
}

.content {
    padding: 20px;
    overflow: auto;
}

.dashboard {
    display: grid;
    gap: 14px;
}

.greeting h2 {
    margin: 0;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.greeting p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: var(--shadow);
}

.metric-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.bg-indigo {
    background: #edf1ff;
    color: #3d59ff;
}

.bg-violet {
    background: #f2efff;
    color: #6048dd;
}

.bg-green {
    background: #e9fff4;
    color: #1f9a67;
}

.bg-coral {
    background: #fff0ef;
    color: #d84f4f;
}

.metric-title {
    font-size: 11px;
    color: #8790aa;
    margin-bottom: 3px;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.08;
}

.metric-trend {
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.metric-trend.up {
    color: #1d9f68;
}

.metric-trend.down {
    color: #e05252;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.03fr);
    gap: 14px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.chart-panel {
    padding-bottom: 6px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.panel-head h3,
.ai-panel h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.panel-head button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    font-size: 11px;
    padding: 6px 8px;
    color: #6f7a97;
    font-weight: 700;
}

#cashChart {
    width: 100%;
    height: 220px !important;
}

.ai-panel {
    display: grid;
    gap: 9px;
}

.ai-panel h3 i {
    color: #3a55f7;
}

.ai-item {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fbfcff;
}

.ai-item strong {
    font-size: 12px;
}

.ai-item p {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #74809f;
}

.ai-panel a {
    font-size: 12px;
    font-weight: 700;
    color: #3f54e8;
    text-decoration: none;
    margin-top: 2px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.data-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.data-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-card h4 i {
    font-size: 14px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}

.sales h4 {
    color: #149458;
}

.sales h4 i {
    background: #e8fff4;
}

.purchases h4 {
    color: #2764d5;
}

.purchases h4 i {
    background: #ecf2ff;
}

.payable h4 {
    color: #e57c1e;
}

.payable h4 i {
    background: #fff2e6;
}

.receivable h4 {
    color: #20a66a;
}

.receivable h4 i {
    background: #e8fff4;
}

.data-card-head button {
    border: 1px solid #dbe2f3;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #6e7895;
}

.sales .data-card-head button {
    background: #14a765;
    color: #fff;
    border-color: #14a765;
}

.purchases .data-card-head button {
    background: #4d77e5;
    color: #fff;
    border-color: #4d77e5;
}

.payable .data-card-head button {
    background: #ff9e45;
    color: #fff;
    border-color: #ff9e45;
}

.receivable .data-card-head button {
    background: #40bb7d;
    color: #fff;
    border-color: #40bb7d;
}

.data-toolbar {
    display: flex;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    color: #98a2ba;
    border-bottom: 1px solid #edf0f7;
    padding-bottom: 8px;
}

.data-toolbar .active {
    color: #3a51d8;
}

.data-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-card th,
.data-card td {
    padding: 7px 3px;
    text-align: left;
    border-bottom: 1px solid #f0f2f8;
}

.data-card th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #9aa3bb;
    font-weight: 700;
}

.data-card tbody tr:last-child td {
    border-bottom: 0;
}

.ok {
    color: #1a9d65;
    font-weight: 700;
}

.warn {
    color: #4098d8;
    font-weight: 700;
}

.late {
    color: #eb5959;
    font-weight: 700;
}

.info {
    color: #2f71d3;
    font-weight: 700;
}

.insight-box {
    font-size: 10.5px;
    line-height: 1.35;
    color: #66728f;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid #e6ecfb;
    background: #f8faff;
}

.assistant {
    background: #fbfcff;
    border-left: 1px solid var(--line);
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #66718f;
    padding: 2px 2px 10px;
}

.assistant-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 13px;
    color: #3d53df;
}

.assistant-brand span {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 99px;
    background: #eef1ff;
    letter-spacing: .3px;
}

.assistant-actions {
    display: flex;
    gap: 10px;
    color: #95a0bd;
}

.assistant-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 10px;
}

.assistant-body h5 {
    margin: 0;
    font-size: 31px;
    font-weight: 800;
    color: #4058ec;
    letter-spacing: -.3px;
}

.assistant-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.42;
    color: #6f7c9c;
}

.quick-actions {
    display: grid;
    gap: 7px;
}

.quick-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #6b7693;
    text-align: left;
}

.assistant-question {
    background: linear-gradient(90deg, #5d66fc 0%, #6558f8 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    padding: 10px;
}

.assistant-answer {
    border: 1px solid var(--line);
    background: #fbfcff;
    padding: 9px;
    border-radius: 10px;
    font-size: 11px;
    color: #6c7896;
}

.assistant-answer p {
    font-size: 11px;
    margin-bottom: 7px;
}

.assistant-answer ol {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 4px;
}

.assistant-answer li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.assistant-answer li strong {
    color: #5e6a8a;
}

.assistant-total {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px dashed #d8dff0;
    font-size: 11px;
}

.assistant-total strong {
    color: #1b9f62;
}

.assistant-chat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-chat input {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    font-size: 11px;
    outline: none;
}

.assistant-chat button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #6670ff;
    color: #fff;
}

.assistant-body small {
    font-size: 10px;
    color: #a0a9c0;
    text-align: center;
}

.quick-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.quick-actions-header i {
    color: #f59e0b;
    font-size: 14px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    text-align: left;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
}

.action-btn__label {
    line-height: 1.2;
}

/* Blue — Clientes */
.action-btn--blue {
    border-color: #dce8ff;
    background: #f0f5ff;
    color: #2747d9;
}
.action-btn--blue .action-btn__icon {
    background: #dce8ff;
    color: #2747d9;
}
.action-btn--blue:hover {
    background: #e3ecff;
    border-color: #c2d4ff;
    color: #2747d9;
}

/* Slate — Fornecedores */
.action-btn--slate {
    border-color: var(--line);
    background: #f7f8fb;
    color: #435077;
}
.action-btn--slate .action-btn__icon {
    background: var(--line);
    color: #435077;
}
.action-btn--slate:hover {
    background: #eef0f7;
    border-color: #d4d9ea;
    color: #435077;
}

/* Amber — Solicitações */
.action-btn--amber {
    border-color: #fde8bc;
    background: #fffbf0;
    color: #92580a;
}
.action-btn--amber .action-btn__icon {
    background: #fde8bc;
    color: #b45309;
}
.action-btn--amber:hover {
    background: #fef3d4;
    border-color: #fbd68a;
    color: #92580a;
}

/* Green — Novo Pedido */
.action-btn--green {
    border-color: #bbf0d8;
    background: #f0fdf7;
    color: #166534;
}
.action-btn--green .action-btn__icon {
    background: #bbf0d8;
    color: #15803d;
}
.action-btn--green:hover {
    background: #dcfaee;
    border-color: #86efb8;
    color: #166534;
}

.purchase-request-table-layout {
    display: block;
}

.supply-table-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.supply-table-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 2px;
}

.supply-table-panel__header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}

.supply-table-panel__header p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.supply-table-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dde4fb;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbfcff 0%, #f1f4ff 100%);
    color: #40527f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.supply-table-panel__badge i {
    color: #3554ea;
}

.supply-table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
}

.supply-table-panel .dataTables_wrapper {
    padding: 14px 14px 10px;
}

.supply-table-panel .dataTables_wrapper > .row:first-child > div:last-child,
.supply-table-panel .dataTables_wrapper > .row:last-child > div:last-child {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
    flex: 0 0 auto;
}

.supply-table-panel .dataTables_length,
.supply-table-panel .dataTables_filter {
    margin-bottom: 12px;
}

.supply-table-panel .dataTables_filter,
.supply-table-panel .dataTables_paginate {
    text-align: right;
    margin-left: auto;
    width: fit-content;
}

.supply-table-panel .dataTables_filter label,
.supply-table-panel .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.supply-table-panel .dataTables_length label,
.supply-table-panel .dataTables_filter label,
.supply-table-panel .dataTables_info {
    color: #6f7a97;
    font-size: 12px;
    font-weight: 600;
}

.supply-table-panel .dataTables_length select,
.supply-table-panel .dataTables_filter input {
    border: 1px solid #dde4fb;
    border-radius: 10px;
    background: #f9fbff;
    color: #33415f;
    min-height: 36px;
    padding: 6px 10px;
    outline: 0;
    box-shadow: none;
}

.supply-table-panel .dataTables_filter input {
    margin-left: 8px;
    min-width: 220px;
}

.supply-table-panel .dataTables_length select:focus,
.supply-table-panel .dataTables_filter input:focus {
    border-color: #9db3ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(53, 84, 234, 0.08);
}

.supply-data-table {
    margin-top: 2px !important;
    border-collapse: separate;
    border-spacing: 0;
}

.supply-data-table thead th {
    border: 0;
    border-bottom: 1px solid #e7ebf6;
    background: #f7f9fe !important;
    color: #5f6d91;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 16px;
}

.supply-data-table tbody td {
    border-color: #edf1f8;
    padding: 14px 16px;
    color: #2b3654;
    font-size: 13px;
    vertical-align: middle;
}

.supply-data-table tbody tr {
    transition: background .16s ease;
}

.supply-data-table tbody tr:hover {
    background: #f9fbff;
}

@keyframes pr-border-rotate {
    to {
        background-position: 0 0, 220% 0;
    }
}

.supply-data-table tbody tr.selected,
.supply-data-table tbody tr.selected:hover {
    background: #eef3ff;
}

.supply-data-table tbody tr.selected td {
    color: #1e3a9f;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    background:
        linear-gradient(#eef3ff, #eef3ff) padding-box,
        linear-gradient(
            90deg,
            #3054ff 0%,
            #0d6efd 25%,
            #3054ff 50%,
            #0d6efd 75%,
            #3054ff 100%
        ) border-box;
    background-size: 100% 100%, 220% 100%;
    animation: pr-border-rotate 2.4s linear infinite;
}

.supply-data-table tbody tr.selected td:first-child {
    border-left: 2px solid transparent;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.supply-data-table tbody tr.selected td:last-child {
    border-right: 2px solid transparent;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Supply Toolbar */
.supply-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.supply-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .14s ease, opacity .14s ease, transform .1s ease;
    white-space: nowrap;
}

.stb i {
    font-size: 13px;
}

.stb:hover:not(:disabled):not(.is-disabled) {
    transform: translateY(-1px);
    text-decoration: none;
}

.stb:disabled {
    opacity: .38;
    cursor: not-allowed;
    pointer-events: none;
}

.stb.is-disabled {
    opacity: .38;
    cursor: not-allowed;
    pointer-events: none;
}

/* Blue — Incluir */
.stb--blue {
    border-color: #dce8ff;
    background: #f0f5ff;
    color: #2747d9;
}
.stb--blue:hover {
    background: #e3ecff;
    border-color: #c2d4ff;
    color: #2747d9;
}

/* Slate — Alterar */
.stb--slate {
    border-color: var(--line);
    background: #f7f8fb;
    color: #435077;
}
.stb--slate:hover:not(:disabled) {
    background: #eef0f7;
    border-color: #d4d9ea;
    color: #435077;
}

/* Indigo — Visualizar */
.stb--indigo {
    border-color: #dde3ff;
    background: #f4f5ff;
    color: #3554ea;
}
.stb--indigo:hover:not(:disabled) {
    background: #e8ebff;
    border-color: #c4ceff;
    color: #2540c8;
}

/* Red — Excluir */
.stb--red {
    border-color: #ffd5d5;
    background: #fff5f5;
    color: #c0392b;
}
.stb--red:hover:not(:disabled) {
    background: #ffe8e8;
    border-color: #ffb3b3;
    color: #a93226;
}

/* Green — Exportar */
.stb--green {
    border-color: #bbf0d8;
    background: #f0fdf7;
    color: #166534;
}
.stb--green:hover {
    background: #dcfaee;
    border-color: #86efb8;
    color: #166534;
}

.supply-data-table tbody td code {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f3f6ff;
    color: #3150e0;
    font-size: 12px;
    font-weight: 700;
}

.supply-table-panel .dataTables_paginate {
    margin-top: 10px;
}

.supply-table-panel .dataTables_paginate .pagination {
    justify-content: flex-end;
    margin-left: auto;
}

.supply-table-panel .paginate_button {
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #5f6d91 !important;
    font-weight: 700;
    min-width: 34px;
    min-height: 34px;
    padding: 7px 10px !important;
}

.supply-table-panel .paginate_button:hover {
    background: #edf2ff !important;
    color: #304fdf !important;
}

.supply-table-panel .paginate_button.current,
.supply-table-panel .paginate_button.current:hover {
    background: linear-gradient(180deg, #3d5dff 0%, #2f4ee0 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(47, 78, 224, 0.22);
}

.supply-table-panel .dataTables_info {
    padding-top: 16px;
}

@media (max-width: 860px) {
    .supply-table-panel {
        padding: 14px;
    }

    .supply-table-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .supply-table-panel__badge {
        width: fit-content;
    }

    .supply-table-panel .dataTables_filter input {
        min-width: 0;
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .supply-table-panel .dataTables_filter label,
    .supply-table-panel .dataTables_length label {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .supply-table-panel .dataTables_wrapper > .row:first-child > div:last-child,
    .supply-table-panel .dataTables_wrapper > .row:last-child > div:last-child,
    .supply-table-panel .dataTables_paginate .pagination {
        justify-content: flex-start;
    }

    .supply-table-panel .dataTables_wrapper > .row:first-child > div:last-child,
    .supply-table-panel .dataTables_wrapper > .row:last-child > div:last-child,
    .supply-table-panel .dataTables_filter,
    .supply-table-panel .dataTables_paginate,
    .supply-table-panel .dataTables_paginate .pagination {
        margin-left: 0;
        width: 100%;
        flex: initial;
    }

    .supply-table-panel .dataTables_paginate {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width:1600px) {
    .app {
        grid-template-columns: 215px 1fr 350px;
    }

    .app.sidebar-collapsed {
        grid-template-columns: 70px 1fr 350px;
    }

    .metric-value {
        font-size: 22px;
    }
}

@media (max-width:1280px) {
    .app {
        grid-template-columns: 220px 1fr;
    }

    .app.sidebar-collapsed {
        grid-template-columns: 70px 1fr;
    }

    .assistant {
        display: none;
    }

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

    .overview-grid,
    .data-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:860px) {
    .app {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .app.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
    }

    .sidebar-assist {
        display: none;
    }

    .topbar {
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 14px;
        height: auto;
    }

    .top-actions {
        position: static;
        margin-left: auto;
    }

    .user div {
        display: none;
    }

    .content {
        padding: 12px;
    }

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

    .greeting h2,
    .assistant-body h5 {
        font-size: 24px;
    }

    .data-card {
        overflow-x: auto;
    }
}