@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../webfonts/rubik/rubik-v30-latin-regular.woff2) format("woff2"), url(../webfonts/rubik/Rubik-Regular.ttf) format("truetype")
}

@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../webfonts/rubik/rubik-v30-latin-italic.woff2) format("woff2"), url(../webfonts/rubik/rubik-v30-latin-italic.ttf) format("truetype")
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../webfonts/rubik/rubik-v30-latin-700.woff2) format("woff2"), url(../webfonts/rubik/Rubik-Black.ttf) format("truetype")
}

:root {
    --theme-blue: #3874ff;
    --theme-indigo: #6610f2;
    --theme-purple: #6f42c1;
    --theme-pink: #d63384;
    --theme-red: #fa3b1d;
    --theme-orange: #e5780b;
    --theme-yellow: #ffc107;
    --theme-green: #25b003;
    --theme-teal: #20c997;
    --theme-cyan: #0097eb;
    --theme-black: #000000;
    --theme-white: #fff;
    --theme-gray: #6e7891;
    --theme-gray-dark: #141824;
    --theme-gray-50: #f5f7fa;
    --theme-gray-100: #eff2f6;
    --theme-gray-200: #e3e6ed;
    --theme-gray-300: #cbd0dd;
    --theme-gray-400: #9fa6bc;
    --theme-gray-500: #8a94ad;
    --theme-gray-600: #6e7891;
    --theme-gray-700: #525b75;
    --theme-gray-800: #3e465b;
    --theme-gray-900: #31374a;
    --theme-gray-1000: #222834;
    --theme-gray-1100: #141824;
    --theme-primary: #3874ff;
    --theme-secondary: #31374a;
    --theme-success: #25b003;
    --theme-info: #0097eb;
    --theme-warning: #e5780b;
    --theme-danger: #fa3b1d;
    --theme-light: #eff2f6;
    --theme-dark: #141824;
    --theme-primary-rgb: 56, 116, 255;
    --theme-secondary-rgb: 49, 55, 74;
    --theme-success-rgb: 37, 176, 3;
    --theme-info-rgb: 0, 151, 235;
    --theme-warning-rgb: 229, 120, 11;
    --theme-danger-rgb: 250, 59, 29;
    --theme-light-rgb: 239, 242, 246;
    --theme-dark-rgb: 20, 24, 36;
    --theme-blue-rgb: 56, 116, 255;
    --theme-indigo-rgb: 102, 16, 242;
    --theme-purple-rgb: 111, 66, 193;
    --theme-pink-rgb: 214, 51, 132;
    --theme-red-rgb: 250, 59, 29;
    --theme-orange-rgb: 229, 120, 11;
    --theme-yellow-rgb: 255, 193, 7;
    --theme-green-rgb: 37, 176, 3;
    --theme-teal-rgb: 32, 201, 151;
    --theme-cyan-rgb: 0, 151, 235;
    --theme-black-rgb: 0, 0, 0;
    --theme-white-rgb: 255, 255, 255;
    --theme-gray-rgb: 110, 120, 145;
    --theme-gray-dark-rgb: 20, 24, 36;
    --theme-gray-50-rgb: 245, 247, 250;
    --theme-gray-100-rgb: 239, 242, 246;
    --theme-gray-200-rgb: 227, 230, 237;
    --theme-gray-300-rgb: 203, 208, 221;
    --theme-gray-400-rgb: 159, 166, 188;
    --theme-gray-500-rgb: 138, 148, 173;
    --theme-gray-600-rgb: 110, 120, 145;
    --theme-gray-700-rgb: 82, 91, 117;
    --theme-gray-800-rgb: 62, 70, 91;
    --theme-gray-900-rgb: 49, 55, 74;
    --theme-gray-1000-rgb: 34, 40, 52;
    --theme-gray-1100-rgb: 20, 24, 36;
    --theme-primary-text-emphasis: #003cc7;
    --theme-secondary-text-emphasis: #525b75;
    --theme-success-text-emphasis: #1c6c09;
    --theme-info-text-emphasis: #005585;
    --theme-warning-text-emphasis: #bc3803;
    --theme-danger-text-emphasis: #b81800;
    --theme-light-text-emphasis: #141824;
    --theme-dark-text-emphasis: #fff;
    --theme-primary-bg-subtle: #e5edff;
    --theme-secondary-bg-subtle: #eff2f6;
    --theme-success-bg-subtle: #d9fbd0;
    --theme-info-bg-subtle: #c7ebff;
    --theme-warning-bg-subtle: #ffefca;
    --theme-danger-bg-subtle: #ffe0db;
    --theme-light-bg-subtle: #f7f9fb;
    --theme-dark-bg-subtle: #9fa6bc;
    --theme-primary-border-subtle: #85a9ff;
    --theme-secondary-border-subtle: #cbd0dd;
    --theme-success-border-subtle: #90d67f;
    --theme-info-border-subtle: #60c6ff;
    --theme-warning-border-subtle: #ffcc85;
    --theme-danger-border-subtle: #f48270;
    --theme-light-border-subtle: #eff2f6;
    --theme-dark-border-subtle: #8a94ad;
    --theme-font-sans-serif: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --theme-font-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --theme-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --theme-gradient-blue: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --theme-body-font-family: var(--theme-font-sans-serif);
    --theme-body-font-size: 1rem;
    --theme-body-font-weight: 400;
    --theme-body-line-height: 1.49;
    --theme-body-color: #31374a;
    --theme-body-color-rgb: 49, 55, 74;
    --theme-body-bg: #f5f7fa;
    --theme-body-bg-rgb: 245, 247, 250;
    --theme-emphasis-color: #141824;
    --theme-emphasis-color-rgb: 20, 24, 36;
    --theme-secondary-color: #3e465b;
    --theme-secondary-color-rgb: 62, 70, 91;
    --theme-secondary-bg: #e3e6ed;
    --theme-secondary-bg-rgb: 227, 230, 237;
    --theme-tertiary-color: #525b75;
    --theme-tertiary-color-rgb: 82, 91, 117;
    --theme-tertiary-bg: #cbd0dd;
    --theme-tertiary-bg-rgb: 203, 208, 221;
    --theme-heading-color: var(--theme-emphasis-color);
    --theme-link-color: #3874ff;
    --theme-link-color-rgb: 56, 116, 255;
    --theme-link-decoration: none;
    --theme-link-hover-color: #003cc7;
    --theme-link-hover-color-rgb: 0, 60, 199;
    --theme-link-hover-decoration: underline;
    --theme-code-color: #d63384;
    --theme-highlight-color: #31374a;
    --theme-highlight-bg: #fff3cd;
    --theme-border-width: 1px;
    --theme-border-style: solid;
    --theme-border-color: #cbd0dd;
    --theme-border-color-translucent: rgba(203, 208, 221, 0.54);
    --theme-border-radius: 0.375rem;
    --theme-border-radius-sm: 0.25rem;
    --theme-border-radius-lg: 0.5rem;
    --theme-border-radius-xl: 1rem;
    --theme-border-radius-xxl: 2rem;
    --theme-border-radius-2xl: var(--theme-border-radius-xxl);
    --theme-border-radius-pill: 50rem;
    --theme-box-shadow: 0px 2px 4px -2px rgba(36, 40, 46, 0.08);
    --theme-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --theme-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --theme-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --theme-focus-ring-width: 0.25rem;
    --theme-focus-ring-opacity: 0.25;
    --theme-focus-ring-color: rgba(56, 116, 255, 0.25);
    --theme-form-valid-color: #25b003;
    --theme-form-valid-border-color: #25b003;
    --theme-form-invalid-color: #fa3b1d;
    --theme-form-invalid-border-color: #fa3b1d;
    --navbar-height: 75px;
    --border-radius-base: 0.5rem;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-base: all 0.3s ease;
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;

    --chart-class-bg: rgba(59, 130, 246, 0.6);
    --chart-class-border: rgba(59, 130, 246, 1);

    --chart-establishment-bg: rgba(16, 185, 129, 0.6);
    --chart-establishment-border: rgba(16, 185, 129, 1);

    --chart-secretary-bg: rgba(139, 69, 19, 0.6);
    --chart-secretary-border: rgba(139, 69, 19, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background-color: var(--theme-gray-100);
    font-family: "Inter", sans-serif;
    color: var(--dark-color)
}

main {
    margin-top: var(--navbar-height);
    min-height: 700px
}

.navbar-custom {
    background: var(--theme-white);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--theme-gray-200);
    box-shadow: 0 1px 8px rgba(40, 40, 90, 0.08);
    position: fixed;
    top: 0;
    left: 0;  /* Mudança aqui: de var(--sidebar-width) para 0 */
    right: 0;
    height: var(--navbar-height);
    transition: all .3s ease;
    z-index: 999;
    padding: 0 30px;
}

.navbar-custom .navbar-brand {
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--theme-gray-700) !important;
    letter-spacing: 1px;
    margin-left: 0.75rem
}

.navbar-custom img[src*="logo-light"] {
    margin-right: 10px;
    vertical-align: middle
}

.navbar-custom .nav-link {
    color: var(--theme-gray-700) !important;
    transition: color 0.2s;
    padding: 0.5rem 0.65rem;
    font-size: 1.05rem
}

.navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus {
    color: var(--theme-gray-400) !important;
    text-decoration: none
}

.notification-badge {
    background: #f04556;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 1rem;
    padding: 2px 7px;
    position: absolute;
    top: 2px;
    right: -7px;
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 0.5px 3px rgba(0, 0, 0, 0.08)
}

.navbar-custom .dropdown-menu {
    min-width: 250px;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(39, 48, 67, 0.18);
    border: 1px solid #27304310;
    font-size: 0.98rem
}

.navbar-custom .dropdown-header {
    font-weight: 500;
    color: var(--theme-gray-1000);
    background: #f3f7fa
}

.navbar-custom .dropdown-item {
    transition: background 0.15s, color 0.15s
}

.navbar-custom .dropdown-item:hover, .navbar-custom .dropdown-item:focus {
    background: #e2e9f7;
    color: #273043
}

.navbar-custom .dropdown-divider {
    border-top: 1.5px solid #f0f0f0
}

.navbar-custom .rounded-circle {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(39, 48, 67, 0.08);
    margin-right: 5px
}

.header-container {
    width: 100%;
    background: transparent !important;
    padding: 32px 32px 24px 32px;
    box-sizing: border-box
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 18px;
    gap: 7px
}

.breadcrumb-nav a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500
}

.breadcrumb-nav .separator {
    color: var(--theme-gray-400)
}

.breadcrumb-nav .current {
    color: var(--theme-gray-600);
    font-weight: 500;
    cursor: default
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 10px
}

.header-title-group a, .header-title-group button {
    width: 165px
}

.header-title-group span {
    margin-right: 50px
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--theme-emphasis-color);
    margin: 0
}

.header-count {
    color: var(--theme-gray-600);
    font-size: 1.25rem;
    font-weight: 500
}

table.dataTable th, table.dataTable td {
    background-color: transparent !important
}

.site-banner-messages {
    width: 100%;
    margin-bottom: 0
}

.site-banner {
    width: 95%;
    margin-top: 25px;
    padding: 16px 24px;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    animation: fadeOut 6s forwards
}

.site-banner .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer
}

.dashboard-card {
    background-color: transparent !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1)
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem
}

.icon-wrapper i {
    transition: all 0.3s ease
}

.dashboard-card:hover .icon-wrapper i {
    transform: scale(1.1)
}

.icon-wrapper i {
    animation: subtle-pulse 2s infinite
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: 0.8
    }
}

.dashboard-card:hover .icon-wrapper i {
    animation: none
}

.bg-blue {
    background: var(--theme-blue)
}

.bg-indigo {
    background: var(--theme-indigo)
}

.bg-purple {
    background: var(--theme-purple)
}

.bg-pink {
    background: var(--theme-pink)
}

.bg-red {
    background: var(--theme-red)
}

.bg-orange{
    background:var(--theme-orange)
}

.bg-yellow {
    background: var(--theme-yellow)
}

.bg-green {
    background: var(--theme-green)
}

.bg-teal {
    background: var(--theme-teal)
}

.bg-cyan {
    background: var(--theme-cyan)
}

.bg-black {
    background: var(--theme-black)
}

.bg-white {
    background: var(--theme-white)
}

.bg-gray {
    background: var(--theme-gray)
}

.icon-blue {
    color: var(--theme-blue)
}

.icon-indigo {
    color: var(--theme-indigo)
}

.icon-purple {
    color: var(--theme-purple)
}

.icon-pink {
    color: var(--theme-pink)
}

.icon-red {
    color: var(--theme-red)
}

.icon-orange {
    color: var(--theme-orange)
}

.icon-yellow {
    color: var(--theme-yellow)
}

.icon-green {
    color: var(--theme-green)
}

.icon-teal {
    color: var(--theme-teal)
}

.icon-cyan {
    color: var(--theme-cyan)
}

.icon-black {
    color: var(--theme-black)
}

.icon-white {
    color: var(--theme-white)
}

.icon-gray {
    color: var(--theme-gray)
}

.bg-theme-blue {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-blue-rgb), var(--bs-bg-opacity));
}

.bg-theme-indigo {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-indigo-rgb), var(--bs-bg-opacity));
}

.bg-theme-purple {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-purple-rgb), var(--bs-bg-opacity));
}

.bg-theme-pink {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-pink-rgb), var(--bs-bg-opacity));
}

.bg-theme-red {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-red-rgb), var(--bs-bg-opacity));
}

.bg-theme-orange {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-orange-rgb), var(--bs-bg-opacity)) !important;
}

.bg-theme-yellow {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-yellow-rgb), var(--bs-bg-opacity));
}

.bg-theme-green {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-green-rgb), var(--bs-bg-opacity));
}

.bg-theme-teal {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-teal-rgb), var(--bs-bg-opacity));
}

.bg-theme-cyan {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-cyan-rgb), var(--bs-bg-opacity));
}

.bg-theme-black {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-black-rgb), var(--bs-bg-opacity));
}

.bg-theme-white {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-white-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-dark {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-dark-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-50 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-50-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-100 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-100-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-200 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-200-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-300 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-300-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-400 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-400-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-500 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-500-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-600 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-600-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-700 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-700-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-800 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-800-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-900 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-900-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-1000 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-1000-rgb), var(--bs-bg-opacity));
}

.bg-theme-gray-1100 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theme-gray-1100-rgb), var(--bs-bg-opacity));
}

.bg-opacity-25 {
  --bs-bg-opacity: 0.25;
}
.bg-opacity-50 {
  --bs-bg-opacity: 0.5;
}
.bg-opacity-75 {
  --bs-bg-opacity: 0.75;
}
.bg-opacity-100 {
  --bs-bg-opacity: 1;
}

.text-theme-blue       { color: var(--theme-blue) !important; }
.text-theme-indigo     { color: var(--theme-indigo) !important; }
.text-theme-purple     { color: var(--theme-purple) !important; }
.text-theme-pink       { color: var(--theme-pink) !important; }
.text-theme-red        { color: var(--theme-red) !important; }
.text-theme-orange     { color: var(--theme-orange) !important; }
.text-theme-yellow     { color: var(--theme-yellow) !important; }
.text-theme-green      { color: var(--theme-green) !important; }
.text-theme-teal       { color: var(--theme-teal) !important; }
.text-theme-cyan       { color: var(--theme-cyan) !important; }
.text-theme-black      { color: var(--theme-black) !important; }
.text-theme-white      { color: var(--theme-white) !important; }

.text-theme-gray       { color: var(--theme-gray) !important; }
.text-theme-gray-dark  { color: var(--theme-gray-dark) !important; }

.text-theme-gray-50    { color: var(--theme-gray-50) !important; }
.text-theme-gray-100   { color: var(--theme-gray-100) !important; }
.text-theme-gray-200   { color: var(--theme-gray-200) !important; }
.text-theme-gray-300   { color: var(--theme-gray-300) !important; }
.text-theme-gray-400   { color: var(--theme-gray-400) !important; }
.text-theme-gray-500   { color: var(--theme-gray-500) !important; }
.text-theme-gray-600   { color: var(--theme-gray-600) !important; }
.text-theme-gray-700   { color: var(--theme-gray-700) !important; }
.text-theme-gray-800   { color: var(--theme-gray-800) !important; }
.text-theme-gray-900   { color: var(--theme-gray-900) !important; }
.text-theme-gray-1000  { color: var(--theme-gray-1000) !important; }
.text-theme-gray-1100  { color: var(--theme-gray-1100) !important; }


.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1
}

.metric-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333
}

.metric-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0
}

.metric-card {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
}

.metric-card.green {
    background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-success-border-subtle) 100%);
}

.metric-card.orange {
    background: linear-gradient(135deg, var(--theme-orange) 0%, var(--theme-warning-border-subtle) 100%);
}

.metric-card.red {
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-danger-border-subtle) 100%);
}

.metric-card.blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.metric-card.purple {
    background: linear-gradient(135deg, var(--theme-purple) 0%, #aa8fda 100%);
}

.metric-card.pink {
    background: linear-gradient(135deg, var(--theme-pink) 0%, #e788b7 100%);
}

.metric-card.cyan {
    background: linear-gradient(135deg, var(--theme-cyan) 0%, #52c1ff 100%);
}

.metric-card.indigo {
    background: linear-gradient(135deg, var(--theme-indigo) 0%, #a471f7 100%);
}

.metric-card.teal {
    background: linear-gradient(135deg, var(--theme-teal) 0%, var(--theme-green) 100%);
}

.metric-card.yellow {
    background: linear-gradient(135deg, var(--theme-yellow) 0%, var(--theme-warning-border-subtle) 100%);
}

.metric-card.gray {
    background: linear-gradient(135deg, var(--theme-gray-600) 0%, var(--theme-gray-800) 100%);
}

.metric-card.dark {
    background: linear-gradient(135deg, var(--theme-gray-900) 0%, var(--theme-gray-1100) 100%);
}

.metric-card.light {
    background: linear-gradient(135deg, var(--theme-gray-100) 0%, var(--theme-gray-300) 100%);
    color: var(--theme-gray-900);
}

.metric-card.success {
    background: linear-gradient(135deg, var(--theme-success) 0%, var(--theme-green) 100%);
}

.metric-card.info {
    background: linear-gradient(135deg, var(--theme-info) 0%, var(--theme-cyan) 100%);
}

.metric-card.warning {
    background: linear-gradient(135deg, var(--theme-warning) 0%, var(--theme-yellow) 100%);
}

.metric-card.danger {
    background: linear-gradient(135deg, var(--theme-danger) 0%, var(--theme-red) 100%);
}

.btn-goback {
    --bs-btn-color: var(--theme-gray-900);
    --bs-btn-bg: transparent !important;
    --bs-btn-border-color: var(--theme-gray-300);
    --bs-btn-hover-color: var(--theme-gray-900);
    --bs-btn-hover-bg: var(--theme-gray-300);
    --bs-btn-hover-border-color: var(--theme-gray-300);
    --bs-btn-focus-shadow-rgb: 111, 66, 193;
    --bs-btn-active-color: var(--theme-gray-900);
    --bs-btn-active-bg: var(--theme-gray-300);
    --bs-btn-active-border-color: var(--theme-gray-300);
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--theme-gray-300)
}

.btn-purple {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6f42c1;
    --bs-btn-border-color: #6f42c1;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5a32a3;
    --bs-btn-hover-border-color: #502a95;
    --bs-btn-focus-shadow-rgb: 111, 66, 193;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #502a95;
    --bs-btn-active-border-color: #462486;
    --bs-btn-disabled-bg: #6f42c1;
    --bs-btn-disabled-border-color: #6f42c1
}

.btn-custom {
    background-color: #6610f2;
    color: #fff;
    border: 2px solid #6610f2;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease
}

.btn-custom:hover {
    background-color: #520dc2;
    border-color: #520dc2;
    color: #ffffff
}

.btn-custom:active {
    background-color: #3d0a91;
    border-color: #3d0a91
}

.btn-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 16, 242, 0.5)
}

.btn-view {
    color: var(--theme-info);
    background: var(--theme-info-bg-subtle);
    border: 1.5px solid var(--theme-info);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s
}

.btn-view:hover, .btn-view:focus {
    background: var(--theme-info);
    color: var(--theme-info-text-emphasis);
    border-color: var(--theme-info-text-emphasis)
}

.btn-edit {
    color: var(--theme-warning);
    background: var(--theme-warning-bg-subtle);
    border: 1.5px solid var(--theme-warning);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s
}

.btn-edit:hover, .btn-edit:focus {
    background: var(--theme-warning);
    color: var(--theme-warning-text-emphasis);
    border-color: var(--theme-warning-text-emphasis)
}

.btn-delete {
    color: var(--theme-danger);
    background: var(--theme-danger-bg-subtle);
    border: 1.5px solid var(--theme-danger);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s
}

.btn-delete:hover, .btn-delete:focus {
    background: var(--theme-danger);
    color: var(--theme-danger-text-emphasis);
    border-color: var(--theme-danger-text-emphasis)
}

.form-section {
    background: transparent !important;
    border-left: 4px solid var(--theme-primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 var(--border-radius-base) var(--border-radius-base) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03)
}

.form-section h5 {
    color: var(--theme-primary);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px
}

.form-section h5 i {
    font-size: 1.2rem
}

.loading-option {
    color: #6c757d;
    font-style: italic
}

.filter-card {
    background: var(--theme-white);
    border: 1px solid var(--theme-gray-300);
    border-radius: var(--border-radius-base);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow-light)
}

.filter-row {
    margin-bottom: 15px
}

.filter-row:last-child {
    margin-bottom: 0
}

.no-results-card {
    background: var(--theme-white);
    border: 1px solid var(--theme-gray-300);
    border-radius: var(--border-radius-base);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow-medium)
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease
}

.card-link:hover {
    text-decoration: none;
    color: inherit
}

.card-clickable {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease
}

.card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db
}

.card-clickable:hover::before {
    transform: scaleX(1)
}

.card-clickable:active {
    transform: translateY(-4px);
    transition: transform 0.1s ease
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937
}

.card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px
}

.card-arrow {
    font-size: 1.2rem;
    color: #9ca3af;
    transition: all 0.3s ease
}

.card-clickable:hover .card-arrow {
    color: #3b82f6;
    transform: translateX(4px)
}

.resume-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    margin-right: 10px;
}

.resume-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.resume-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resume-text {
    line-height: 1.2;
}

.resume-text .count {
    font-weight: bold;
    font-size: 1.75rem;
}

.resume-text .label {
    font-size: 0.9rem;
    color: #6c757d;
}

@keyframes fadeOut {
    0%, 80% {
        opacity: 1;
        visibility: visible
    }
    100% {
        opacity: 0;
        visibility: hidden
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all .3s ease;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width)
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative
}

.sidebar-header .logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.sidebar.collapsed .logo-text {
    display: none
}

.sidebar-toggle {
    position: absolute;
    top: 25px;
    right: -15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all .3s ease
}

.sidebar-toggle:hover {
    transform: scale(1.1)
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none
}

.sidebar-menu li {
    margin-bottom: 5px
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all .3s ease;
    gap: 15px
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px)
}

.sidebar-menu a i {
    width: 20px;
    min-width: 20px;
    font-size: 18px;
    text-align: center;
    color: inherit
}

.has-submenu > a {
    justify-content: space-between;
    align-items: center
}

.submenu-icon {
    margin-left: auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform .3s ease
}

.has-submenu.open > a .submenu-icon {
    transform: rotate(180deg)
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 20px
}

.has-submenu.open .submenu {
    display: block
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all .3s ease
}

.submenu li a i {
    width: 20px;
    min-width: 20px;
    font-size: 16px;
    text-align: center;
    color: inherit
}

.submenu li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1)
}

.sidebar.collapsed .sidebar-menu a span, .sidebar.collapsed .submenu a span {
    display: none
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px
}

.sidebar.collapsed .submenu a {
    justify-content: center;
    padding: 10px
}

.sidebar.collapsed .submenu {
    padding-left: 0
}

.sidebar.collapsed .has-submenu > a .submenu-icon {
    display: none
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 30px;
    transition: all .3s ease;
    min-height: calc(100vh - var(--navbar-height))
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width)
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    min-height: 250px;
    align-content: center
}

.sidebar.collapsed + .navbar-custom {
    left: var(--sidebar-collapsed-width)
}

.navbar-brand {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 20px
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color)
}

.date-selector {
    position: relative;
    min-width: 200px
}

.date-selector .form-control {
    border-radius: 0 8px 8px 0;
    border-color: #e5e7eb;
    background-color: white;
    cursor: pointer;
    font-weight: 500
}

.date-selector .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(79, 70, 229, 0.25)
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all .3s ease
}

.btn-gradient:hover {
    filter: brightness(1.1);
    color: white
}

.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important
}

.flatpickr-day {
    border-radius: 6px !important;
    margin: 2px !important
}

.flatpickr-day:hover {
    background: #f3f4f6 !important
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important
}

.flatpickr-day.today {
    background: #e0e7ff !important;
    border-color: #e0e7ff !important
}

.flatpickr-months .flatpickr-month {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important
}

.bg-theme {
    background-image: url("/static/images/bg/bg-theme.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0
}

.dropdown-item {
    padding: 10px 20px;
    transition: all .3s ease
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color)
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
        gap: 18px
    }

    .header-container {
        padding: 20px 10px 14px 10px
    }

    .sidebar {
        width: var(--sidebar-collapsed-width)
    }

    .navbar-custom {
        width: 100% !important;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
        padding: 20px
    }

    .sidebar-toggle {
        display: none
    }
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-brand {
        font-size: 1.18rem;
        margin-left: 0.4rem
    }

    .navbar-custom .rounded-circle {
        width: 32px;
        height: 32px
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px
    }

    .content-card {
        padding: 20px
    }
}