@charset "UTF-8";
:root,
:root[data-theme=light] {
  --bg-app: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8f9fa;
  --bg-surface-3: #f3f4f6;
  --border: #eaeaea;
  --border-soft: #f3f4f6;
  --text: #111827;
  --text-2: #4b5563;
  --text-muted: #9ca3af;
  --brand: #013483;
  --brand-contrast:#ffffff;
  --accent: #f7941d;
  --sidebar-from: #ffffff;
  --sidebar-to: #ffffff;
  --sidebar-text: #6b7280;
  --sidebar-text-hover: #111827;
  --sidebar-text-active: #013483;
  --sidebar-name: #111827;
  --sidebar-group-text: #b0b7c3;
  --sidebar-hover-bg: #f3f4f6;
  --sidebar-active-bg: rgba(1, 52, 131, 0.1);
  --sidebar-border: #eaeaea;
  --sidebar-logo-bg: transparent;
  --sidebar-newbtn-text: #013483;
  --sidebar-newbtn-border: rgba(1, 52, 131, 0.30);
  --topbar-from: #ffffff;
  --topbar-to: #f6f8fc;
  --topbar-border: #e8ecf3;
  --shadow: rgba(0, 0, 0, .07);
  --shadow-strong: rgba(0, 0, 0, .12);
  --input-bg: #f8f9fa;
  --input-border: #eaeaea;
  --scroll-thumb: #d4d8e0;
  --scroll-thumb-hover: #9ca3af;
  color-scheme: light;
}

:root[data-theme=dark] {
  --bg-app: #0b1120;
  --bg-surface: #131c2e;
  --bg-surface-2: #1a2436;
  --bg-surface-3: #212c40;
  --border: #263248;
  --border-soft: #1e2839;
  --text: #e8edf7;
  --text-2: #b6c2d6;
  --text-muted: #7f8ea8;
  --brand: #5b8def;
  --brand-contrast:#0b1120;
  --accent: #f7941d;
  --sidebar-from: #0d1526;
  --sidebar-to: #070d1a;
  --sidebar-text: #c3d0e6;
  --sidebar-text-hover: #ffffff;
  --sidebar-text-active: #ffffff;
  --sidebar-name: #ffffff;
  --sidebar-group-text: #8ba0c4;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.07);
  --sidebar-active-bg: rgba(255, 255, 255, 0.13);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-logo-bg: #ffffff;
  --sidebar-newbtn-text: #dbe4f2;
  --sidebar-newbtn-border: rgba(255, 255, 255, 0.28);
  --topbar-from: #131c2e;
  --topbar-to: #0f1726;
  --topbar-border: #263248;
  --shadow: rgba(0, 0, 0, .45);
  --shadow-strong: rgba(0, 0, 0, .6);
  --input-bg: #1a2436;
  --input-border: #2c3a52;
  --scroll-thumb: #2e3a52;
  --scroll-thumb-hover: #46587d;
  color-scheme: dark;
  --bs-body-bg: #131c2e;
  --bs-body-color: #e8edf7;
  --bs-emphasis-color: #e8edf7;
  --bs-secondary-color: #b6c2d6;
  --bs-tertiary-color: #7f8ea8;
  --bs-secondary-bg: #1a2436;
  --bs-tertiary-bg: #212c40;
  --bs-border-color: #263248;
  --bs-heading-color: #e8edf7;
  --bs-link-color: #5b8def;
  --bs-link-hover-color: #7ba4f4;
  --bs-code-color: #f0a4c8;
}

:root[data-theme=dark] .form-floating > label::after {
  background-color: transparent !important;
}

:root[data-theme=dark] .cms-main-content {
  color: var(--text);
}
:root[data-theme=dark] .card,
:root[data-theme=dark] .card-header.bg-white, :root[data-theme=dark] .card-header.bg-light,
:root[data-theme=dark] .modal-content,
:root[data-theme=dark] .dropdown-menu,
:root[data-theme=dark] .list-group-item,
:root[data-theme=dark] .accordion-item,
:root[data-theme=dark] .offcanvas,
:root[data-theme=dark] .toast,
:root[data-theme=dark] .bg-white,
:root[data-theme=dark] .bg-light {
  background-color: var(--bg-surface) !important;
  color: var(--text);
  border-color: var(--border);
}
:root[data-theme=dark] .card-header, :root[data-theme=dark] .card-footer, :root[data-theme=dark] .modal-header, :root[data-theme=dark] .modal-footer {
  background-color: var(--bg-surface-2);
  border-color: var(--border);
}
:root[data-theme=dark] .text-dark, :root[data-theme=dark] .text-black, :root[data-theme=dark] .text-body {
  color: var(--text) !important;
}
:root[data-theme=dark] .text-muted, :root[data-theme=dark] .text-secondary {
  color: var(--text-muted) !important;
}
:root[data-theme=dark] h1, :root[data-theme=dark] h2, :root[data-theme=dark] h3, :root[data-theme=dark] h4, :root[data-theme=dark] h5, :root[data-theme=dark] h6,
:root[data-theme=dark] .h1, :root[data-theme=dark] .h2, :root[data-theme=dark] .h3, :root[data-theme=dark] .h4, :root[data-theme=dark] .h5, :root[data-theme=dark] .h6 {
  color: var(--text);
}
:root[data-theme=dark] .text-primary, :root[data-theme=dark] .text-primary-gm, :root[data-theme=dark] .text-primary-title-gm {
  color: var(--brand) !important;
}
:root[data-theme=dark] .text-dark-gm {
  color: var(--text) !important;
}
:root[data-theme=dark] .border, :root[data-theme=dark] .border-top, :root[data-theme=dark] .border-bottom,
:root[data-theme=dark] .border-start, :root[data-theme=dark] .border-end {
  border-color: var(--border) !important;
}
:root[data-theme=dark] hr {
  border-color: var(--border);
  opacity: 1;
}
:root[data-theme=dark] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: var(--bg-surface-2);
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: var(--bg-surface-3);
  --bs-table-hover-color: var(--text);
  color: var(--text);
}
:root[data-theme=dark] .table > thead {
  color: var(--text-2);
}
:root[data-theme=dark] .table > :not(caption) > * > * {
  background-color: transparent;
  border-color: var(--border);
}
:root[data-theme=dark] .table-light, :root[data-theme=dark] .table-light > th, :root[data-theme=dark] .table-light > td,
:root[data-theme=dark] thead.table-light th, :root[data-theme=dark] .table > thead.table-light > tr > * {
  --bs-table-bg: var(--bg-surface-2);
  background-color: var(--bg-surface-2) !important;
  color: var(--text-2) !important;
  border-color: var(--border) !important;
}
:root[data-theme=dark] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--bg-surface-2);
  color: var(--text);
}
:root[data-theme=dark] .table-hover > tbody > tr:hover > * {
  background-color: var(--bg-surface-3);
  color: var(--text);
}
:root[data-theme=dark] .form-control, :root[data-theme=dark] .form-select, :root[data-theme=dark] .input-group-text, :root[data-theme=dark] .ts-control, :root[data-theme=dark] .ts-dropdown {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}
:root[data-theme=dark] .form-control::placeholder {
  color: var(--text-muted);
}
:root[data-theme=dark] .form-control:focus, :root[data-theme=dark] .form-select:focus {
  background-color: var(--bg-surface-2);
  border-color: var(--brand);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}
:root[data-theme=dark] .form-control:disabled, :root[data-theme=dark] .form-control[readonly] {
  background-color: var(--bg-surface-3);
  color: var(--text-2);
}
:root[data-theme=dark] .form-label, :root[data-theme=dark] .form-check-label {
  color: var(--text-2);
}
:root[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
}
:root[data-theme=dark] .btn-light, :root[data-theme=dark] .btn-outline-secondary, :root[data-theme=dark] .btn-outline-dark {
  background-color: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme=dark] .btn-light:hover, :root[data-theme=dark] .btn-outline-secondary:hover, :root[data-theme=dark] .btn-outline-dark:hover {
  background-color: var(--bg-surface-3);
  color: var(--text);
}
:root[data-theme=dark] .bg-body, :root[data-theme=dark] .bg-body-tertiary, :root[data-theme=dark] .bg-body-secondary {
  background-color: var(--bg-surface) !important;
}
:root[data-theme=dark] .badge.bg-light, :root[data-theme=dark] .badge.text-bg-light {
  background-color: var(--bg-surface-3) !important;
  color: var(--text) !important;
}
:root[data-theme=dark] a:not(.btn):not(.nav-link-gm):not(.apps-item):not(.sidebar-workspace):not(.sidebar-new-btn):not(.sidebar-group-header) {
  color: var(--brand);
}
:root[data-theme=dark] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
:root[data-theme=dark] .nav-tabs {
  border-bottom-color: var(--border);
}
:root[data-theme=dark] .nav-tabs .nav-link {
  color: var(--text-2);
  border-color: transparent;
}
:root[data-theme=dark] .nav-tabs .nav-link:hover {
  border-color: var(--border);
  background: var(--bg-surface-2);
}
:root[data-theme=dark] .nav-tabs .nav-link.active {
  background: var(--bg-surface);
  border-color: var(--border) var(--border) var(--bg-surface);
  color: var(--text);
}
:root[data-theme=dark] .nav-pills .nav-link {
  color: var(--text-2);
}
:root[data-theme=dark] .nav-pills .nav-link.active {
  background: var(--brand);
  color: var(--brand-contrast);
}
:root[data-theme=dark] .page-link {
  background: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text-2);
}
:root[data-theme=dark] .page-link:hover {
  background: var(--bg-surface-3);
  color: var(--text);
}
:root[data-theme=dark] .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
:root[data-theme=dark] .page-item.disabled .page-link {
  background: var(--bg-surface);
  color: var(--text-muted);
}
:root[data-theme=dark] .btn-page {
  background: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text-2);
}
:root[data-theme=dark] .btn-page:hover {
  background: var(--bg-surface-3);
  color: var(--text);
}
:root[data-theme=dark] .btn-page.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
:root[data-theme=dark] .alert-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
:root[data-theme=dark] .alert-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
:root[data-theme=dark] .alert-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
:root[data-theme=dark] .alert-info,
:root[data-theme=dark] .alert-primary {
  background: rgba(91, 141, 239, 0.14);
  border-color: rgba(91, 141, 239, 0.3);
  color: #b9cdff;
}
:root[data-theme=dark] .alert-secondary, :root[data-theme=dark] .alert-light {
  background: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text-2);
}
:root[data-theme=dark] .progress {
  background: var(--bg-surface-3);
}
:root[data-theme=dark] .breadcrumb-item, :root[data-theme=dark] .breadcrumb-item a {
  color: var(--text-2);
}
:root[data-theme=dark] .breadcrumb-item.active {
  color: var(--text);
}
:root[data-theme=dark] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}
:root[data-theme=dark] .form-check-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
}
:root[data-theme=dark] .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
:root[data-theme=dark] .spinner-border.text-primary {
  color: var(--brand) !important;
}
:root[data-theme=dark] .role-item-premium.active {
  background: rgba(91, 141, 239, 0.12) !important;
  border-color: var(--brand) !important;
}
:root[data-theme=dark] .role-item-premium.active .role-icon-box {
  background: rgba(91, 141, 239, 0.22) !important;
  color: #b9cdff !important;
}

:root[data-theme=dark] .btn-primary, :root[data-theme=dark] .btn-gm-primary, :root[data-theme=dark] .btn-primary-gm {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
:root[data-theme=dark] .btn-primary:hover, :root[data-theme=dark] .btn-primary:focus, :root[data-theme=dark] .btn-primary:active, :root[data-theme=dark] .btn-gm-primary:hover, :root[data-theme=dark] .btn-gm-primary:focus, :root[data-theme=dark] .btn-gm-primary:active, :root[data-theme=dark] .btn-primary-gm:hover, :root[data-theme=dark] .btn-primary-gm:focus, :root[data-theme=dark] .btn-primary-gm:active {
  background-color: #7ba4f4;
  border-color: #7ba4f4;
  color: var(--brand-contrast);
}
:root[data-theme=dark] .btn-outline-primary, :root[data-theme=dark] .btn-gm-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}
:root[data-theme=dark] .btn-outline-primary:hover, :root[data-theme=dark] .btn-outline-primary:focus, :root[data-theme=dark] .btn-outline-primary:active, :root[data-theme=dark] .btn-gm-outline-primary:hover, :root[data-theme=dark] .btn-gm-outline-primary:focus, :root[data-theme=dark] .btn-gm-outline-primary:active {
  background-color: var(--brand);
  color: var(--brand-contrast);
}
:root[data-theme=dark] .btn-gm-outline-secondary, :root[data-theme=dark] .btn-outline-secondary, :root[data-theme=dark] .btn-outline-dark {
  color: var(--text-2);
  border-color: var(--border);
}
:root[data-theme=dark] .btn-gm-outline-secondary:hover, :root[data-theme=dark] .btn-gm-outline-secondary:focus, :root[data-theme=dark] .btn-gm-outline-secondary:active, :root[data-theme=dark] .btn-outline-secondary:hover, :root[data-theme=dark] .btn-outline-secondary:focus, :root[data-theme=dark] .btn-outline-secondary:active, :root[data-theme=dark] .btn-outline-dark:hover, :root[data-theme=dark] .btn-outline-dark:focus, :root[data-theme=dark] .btn-outline-dark:active {
  background-color: var(--bg-surface-2);
  color: var(--text);
  border-color: var(--border);
}
:root[data-theme=dark] .btn-gm-outline-light {
  color: var(--text-2);
  border-color: var(--border);
}
:root[data-theme=dark] .btn-gm-outline-light:hover {
  color: var(--text);
  background: var(--bg-surface-2);
}
:root[data-theme=dark] .btn-gm-secondary, :root[data-theme=dark] .btn-light, :root[data-theme=dark] .btn-secondary {
  background-color: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme=dark] .btn-gm-secondary:hover, :root[data-theme=dark] .btn-light:hover, :root[data-theme=dark] .btn-secondary:hover {
  background-color: var(--bg-surface-3);
  color: var(--text);
}
:root[data-theme=dark] .btn-link, :root[data-theme=dark] .btn-link-gm {
  color: var(--brand);
}
:root[data-theme=dark] .btn:disabled, :root[data-theme=dark] .btn.disabled {
  background-color: var(--bg-surface-3);
  border-color: var(--border);
  color: var(--text-muted);
  opacity: 0.65;
}
:root[data-theme=dark] .modal-content {
  background-color: var(--bg-surface);
  color: var(--text);
  border-color: var(--border);
}
:root[data-theme=dark] .modal-header, :root[data-theme=dark] .modal-footer {
  background-color: var(--bg-surface-2);
  border-color: var(--border);
}
:root[data-theme=dark] .modal-title {
  color: var(--text);
}
:root[data-theme=dark] .modal .form-control, :root[data-theme=dark] .modal .form-select, :root[data-theme=dark] .modal .input-group-text {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}
:root[data-theme=dark] .modal .form-label, :root[data-theme=dark] .modal .form-check-label {
  color: var(--text-2);
}
:root[data-theme=dark] .modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
:root[data-theme=dark] .modal .table {
  color: var(--text);
  --bs-table-color: var(--text);
}
:root[data-theme=dark] .ts-wrapper.single .ts-control,
:root[data-theme=dark] .ts-control, :root[data-theme=dark] .ts-control input {
  background: var(--input-bg) !important;
  color: var(--text) !important;
  border-color: var(--input-border) !important;
}
:root[data-theme=dark] .ts-control input::placeholder {
  color: var(--text-muted) !important;
}
:root[data-theme=dark] .ts-wrapper.focus .ts-control {
  border-color: var(--brand) !important;
}
:root[data-theme=dark] .ts-control .item {
  color: var(--text) !important;
}
:root[data-theme=dark] .ts-dropdown {
  background: var(--bg-surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: 0 8px 24px var(--shadow);
}
:root[data-theme=dark] .ts-dropdown .option {
  color: var(--text-2) !important;
}
:root[data-theme=dark] .ts-dropdown .option:hover,
:root[data-theme=dark] .ts-dropdown .active {
  background: var(--bg-surface-2) !important;
  color: var(--text) !important;
}
:root[data-theme=dark] .ts-dropdown .optgroup-header {
  background: var(--bg-surface-2) !important;
  color: var(--text-muted) !important;
}
:root[data-theme=dark] .ts-dropdown .no-results {
  color: var(--text-muted) !important;
}
:root[data-theme=dark] .ts-dropdown [data-selectable].option[data-value=""] {
  color: var(--text-muted) !important;
}

:root[data-theme=dark] .swal2-popup {
  background: var(--bg-surface) !important;
  color: var(--text) !important;
}
:root[data-theme=dark] .swal2-title, :root[data-theme=dark] .swal2-html-container {
  color: var(--text) !important;
}
:root[data-theme=dark] .swal2-input, :root[data-theme=dark] .swal2-textarea, :root[data-theme=dark] .swal2-select {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text) !important;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.text-primary-gm {
  color: #013483 !important;
}

.text-dark-gm {
  color: var(--text) !important;
}

.text-light-mg {
  color: var(--bg-surface-2) !important;
}

.text-primary-title-gm {
  color: #013483;
  font-weight: 600;
}

.text-primary-subtitle-gm {
  font-weight: 400;
}

.fw-semi-bold {
  font-weight: 600;
}

.h1-gm {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h2-gm {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h3-gm {
  font-size: 1.05rem;
  font-weight: 700;
}

.h4-gm {
  font-size: 0.95rem;
  font-weight: 600;
}

.h5-gm {
  font-size: 0.86rem;
  font-weight: 600;
}

.p-gm {
  font-size: 0.85rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.admin-page-premium {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-app);
  color: var(--text);
  min-height: 100vh;
  display: flex !important;
  flex-direction: row;
  margin: 0;
  padding: 0;
}
.admin-page-premium > .flex-grow-1 {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
}

.cms-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-page-premium .page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: calc(100vh - 60px);
  padding: 2rem 2.5rem !important;
  margin: 0 !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
  background-clip: padding-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

.gm-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-saas-plan {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-saas-plan.plan-free {
  background: #f3f4f6;
  color: #6b7280;
}
.badge-saas-plan.plan-starter {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.badge-saas-plan.plan-pro {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}
.badge-saas-plan.plan-enterprise {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.inner-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.inner-page-titles {
  flex: 1;
  min-width: 0;
}

.inner-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.inner-page-subtitle {
  font-size: 0.81rem;
  color: var(--text-2);
  margin: 0.2rem 0 0;
}

.inner-page-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.content-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.content-card-body {
  padding: 1.25rem;
}

.btn-saas-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.15s;
  cursor: pointer;
}
.btn-saas-outline:hover {
  background: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-saas-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: #013483;
  color: white;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(1, 52, 131, 0.25);
}
.btn-saas-primary:hover {
  background: #012a6a;
  color: white;
  box-shadow: 0 4px 12px rgba(1, 52, 131, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .admin-page-premium {
    flex-direction: column;
  }
  .cms-main-content {
    min-width: 100%;
  }
  .admin-page-premium .page-content {
    padding: 1.25rem 1rem !important;
  }
}
body.bg-light {
  background: var(--bg-surface-2) !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

.admin-content-wrapper {
  background: transparent;
  color: var(--text);
}
.admin-content-wrapper .text-muted {
  color: var(--text-2) !important;
}
.admin-content-wrapper h2 {
  color: var(--text);
}

@keyframes gm-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gm-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gm-fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gm-fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes gm-fade-in-right {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes gm-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes gm-pop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes gm-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes gm-shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}
@keyframes gm-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes gm-bounce-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes gm-ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
.gm-fade-in {
  animation: gm-fade-in 0.55s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-fade-in-up {
  animation: gm-fade-in-up 0.65s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-fade-in-down {
  animation: gm-fade-in-down 0.65s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-fade-in-left {
  animation: gm-fade-in-left 0.65s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-fade-in-right {
  animation: gm-fade-in-right 0.65s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-scale-in {
  animation: gm-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.gm-pop {
  animation: gm-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.gm-stagger > * {
  animation: gm-fade-in-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.gm-stagger > *:nth-child(1) {
  animation-delay: 0s;
}

.gm-stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}

.gm-stagger > *:nth-child(3) {
  animation-delay: 0.16s;
}

.gm-stagger > *:nth-child(4) {
  animation-delay: 0.24s;
}

.gm-stagger > *:nth-child(5) {
  animation-delay: 0.32s;
}

.gm-stagger > *:nth-child(6) {
  animation-delay: 0.4s;
}

.gm-stagger > *:nth-child(7) {
  animation-delay: 0.48s;
}

.gm-stagger > *:nth-child(8) {
  animation-delay: 0.56s;
}

.gm-stagger > *:nth-child(9) {
  animation-delay: 0.64s;
}

.gm-stagger > *:nth-child(10) {
  animation-delay: 0.72s;
}

.gm-stagger > *:nth-child(11) {
  animation-delay: 0.8s;
}

.gm-stagger > *:nth-child(12) {
  animation-delay: 0.88s;
}

.gm-stagger > *:nth-child(13) {
  animation-delay: 0.96s;
}

.gm-stagger > *:nth-child(14) {
  animation-delay: 1.04s;
}

.gm-stagger > *:nth-child(15) {
  animation-delay: 1.12s;
}

.gm-stagger > *:nth-child(16) {
  animation-delay: 1.2s;
}

.gm-stagger > *:nth-child(17) {
  animation-delay: 1.28s;
}

.gm-stagger > *:nth-child(18) {
  animation-delay: 1.36s;
}

.gm-stagger > *:nth-child(19) {
  animation-delay: 1.44s;
}

.gm-stagger > *:nth-child(20) {
  animation-delay: 1.52s;
}

.gm-stagger > *:nth-child(21) {
  animation-delay: 1.6s;
}

.gm-stagger > *:nth-child(22) {
  animation-delay: 1.68s;
}

.gm-stagger > *:nth-child(23) {
  animation-delay: 1.76s;
}

.gm-stagger > *:nth-child(24) {
  animation-delay: 1.84s;
}

.gm-stagger > *:nth-child(25) {
  animation-delay: 1.92s;
}

.gm-stagger > *:nth-child(26) {
  animation-delay: 2s;
}

.gm-stagger > *:nth-child(27) {
  animation-delay: 2.08s;
}

.gm-stagger > *:nth-child(28) {
  animation-delay: 2.16s;
}

.gm-stagger > *:nth-child(29) {
  animation-delay: 2.24s;
}

.gm-stagger > *:nth-child(30) {
  animation-delay: 2.32s;
}

.gm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gm-hover-lift {
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.22s;
}
.gm-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.gm-hover-glow {
  transition: transform 0.18s, box-shadow 0.18s;
}
.gm-hover-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1, 52, 131, 0.25);
}
.gm-hover-glow:active {
  transform: translateY(0);
}

.gm-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gm-ripple::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: var(--ripple-size, 100px);
  height: var(--ripple-size, 100px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}
.gm-ripple.is-rippling::after {
  animation: gm-ripple 0.6s ease-out;
}

.gm-ripple-dark::after {
  background: rgba(1, 52, 131, 0.18);
}

.gm-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(1, 52, 131, 0.2);
  border-top-color: #013483;
  border-radius: 50%;
  animation: gm-spin 0.7s linear infinite;
  vertical-align: middle;
}
.gm-spinner.gm-spinner-sm {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}
.gm-spinner.gm-spinner-lg {
  width: 28px;
  height: 28px;
  border-width: 3px;
}
.gm-spinner.gm-spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

.gm-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.tab-content > .tab-pane {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content > .tab-pane.fade {
  opacity: 0;
}

.tab-content > .tab-pane.fade.show.active {
  opacity: 1;
  animation: gm-fade-in-up 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.cms-main-content > main.page-content {
  animation: gm-fade-in 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.sidebar-gm .nav-link-gm {
  position: relative;
}

.content-card,
.summary-card,
.admin-card-premium,
.kpi-card,
.action-card {
  animation: gm-fade-in-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.content-card:nth-of-type(1),
.summary-card:nth-of-type(1),
.admin-card-premium:nth-of-type(1),
.kpi-card:nth-of-type(1),
.action-card:nth-of-type(1) {
  animation-delay: 0s;
}

.content-card:nth-of-type(2),
.summary-card:nth-of-type(2),
.admin-card-premium:nth-of-type(2),
.kpi-card:nth-of-type(2),
.action-card:nth-of-type(2) {
  animation-delay: 0.08s;
}

.content-card:nth-of-type(3),
.summary-card:nth-of-type(3),
.admin-card-premium:nth-of-type(3),
.kpi-card:nth-of-type(3),
.action-card:nth-of-type(3) {
  animation-delay: 0.16s;
}

.content-card:nth-of-type(4),
.summary-card:nth-of-type(4),
.admin-card-premium:nth-of-type(4),
.kpi-card:nth-of-type(4),
.action-card:nth-of-type(4) {
  animation-delay: 0.24s;
}

.content-card:nth-of-type(5),
.summary-card:nth-of-type(5),
.admin-card-premium:nth-of-type(5),
.kpi-card:nth-of-type(5),
.action-card:nth-of-type(5) {
  animation-delay: 0.32s;
}

.content-card:nth-of-type(6),
.summary-card:nth-of-type(6),
.admin-card-premium:nth-of-type(6),
.kpi-card:nth-of-type(6),
.action-card:nth-of-type(6) {
  animation-delay: 0.4s;
}

.content-card:nth-of-type(7),
.summary-card:nth-of-type(7),
.admin-card-premium:nth-of-type(7),
.kpi-card:nth-of-type(7),
.action-card:nth-of-type(7) {
  animation-delay: 0.48s;
}

.content-card:nth-of-type(8),
.summary-card:nth-of-type(8),
.admin-card-premium:nth-of-type(8),
.kpi-card:nth-of-type(8),
.action-card:nth-of-type(8) {
  animation-delay: 0.56s;
}

.content-card:nth-of-type(9),
.summary-card:nth-of-type(9),
.admin-card-premium:nth-of-type(9),
.kpi-card:nth-of-type(9),
.action-card:nth-of-type(9) {
  animation-delay: 0.64s;
}

.content-card:nth-of-type(10),
.summary-card:nth-of-type(10),
.admin-card-premium:nth-of-type(10),
.kpi-card:nth-of-type(10),
.action-card:nth-of-type(10) {
  animation-delay: 0.72s;
}

.content-card:nth-of-type(11),
.summary-card:nth-of-type(11),
.admin-card-premium:nth-of-type(11),
.kpi-card:nth-of-type(11),
.action-card:nth-of-type(11) {
  animation-delay: 0.8s;
}

.content-card:nth-of-type(12),
.summary-card:nth-of-type(12),
.admin-card-premium:nth-of-type(12),
.kpi-card:nth-of-type(12),
.action-card:nth-of-type(12) {
  animation-delay: 0.88s;
}

.row > .col > .card, .row > .col > .kpi-card, .row > .col > .action-card, .row > .col > .summary-card, .row > .col > .content-card, .row > .col > .admin-card-premium, .row > [class*=col-] > .card, .row > [class*=col-] > .kpi-card, .row > [class*=col-] > .action-card, .row > [class*=col-] > .summary-card, .row > [class*=col-] > .content-card, .row > [class*=col-] > .admin-card-premium {
  animation: gm-fade-in-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.row > .col:nth-child(1) > *,
.row > [class*=col-]:nth-child(1) > * {
  animation-delay: 0s;
}

.row > .col:nth-child(2) > *,
.row > [class*=col-]:nth-child(2) > * {
  animation-delay: 0.08s;
}

.row > .col:nth-child(3) > *,
.row > [class*=col-]:nth-child(3) > * {
  animation-delay: 0.16s;
}

.row > .col:nth-child(4) > *,
.row > [class*=col-]:nth-child(4) > * {
  animation-delay: 0.24s;
}

.row > .col:nth-child(5) > *,
.row > [class*=col-]:nth-child(5) > * {
  animation-delay: 0.32s;
}

.row > .col:nth-child(6) > *,
.row > [class*=col-]:nth-child(6) > * {
  animation-delay: 0.4s;
}

.row > .col:nth-child(7) > *,
.row > [class*=col-]:nth-child(7) > * {
  animation-delay: 0.48s;
}

.row > .col:nth-child(8) > *,
.row > [class*=col-]:nth-child(8) > * {
  animation-delay: 0.56s;
}

.row > .col:nth-child(9) > *,
.row > [class*=col-]:nth-child(9) > * {
  animation-delay: 0.64s;
}

.row > .col:nth-child(10) > *,
.row > [class*=col-]:nth-child(10) > * {
  animation-delay: 0.72s;
}

.row > .col:nth-child(11) > *,
.row > [class*=col-]:nth-child(11) > * {
  animation-delay: 0.8s;
}

.row > .col:nth-child(12) > *,
.row > [class*=col-]:nth-child(12) > * {
  animation-delay: 0.88s;
}

.row > .col:nth-child(13) > *,
.row > [class*=col-]:nth-child(13) > * {
  animation-delay: 0.96s;
}

.row > .col:nth-child(14) > *,
.row > [class*=col-]:nth-child(14) > * {
  animation-delay: 1.04s;
}

.row > .col:nth-child(15) > *,
.row > [class*=col-]:nth-child(15) > * {
  animation-delay: 1.12s;
}

.row > .col:nth-child(16) > *,
.row > [class*=col-]:nth-child(16) > * {
  animation-delay: 1.2s;
}

.modal,
.modal-body,
.modal-body *,
.modal-content,
.modal-content * {
  animation: none !important;
}

.modal-body .row > .col,
.modal-body .row > [class*=col-],
.modal-body .form-floating,
.modal-body .form-control,
.modal-body .form-select,
.modal-body .ts-control,
.modal-body .ts-wrapper {
  transform: none !important;
}

.modal.fade .modal-dialog,
.modal.show .modal-dialog {
  animation: none !important;
}

.modal.show .modal-content {
  animation: gm-scale-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.content-card,
.summary-card,
.admin-card-premium {
  transition: box-shadow 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.22s;
}
.content-card:hover,
.summary-card:hover,
.admin-card-premium:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--border);
}

.modal.fade .modal-dialog {
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

form.gm-form-animated > div {
  animation: gm-fade-in 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}

form.gm-form-animated > div:nth-child(1) {
  animation-delay: 0s;
}

form.gm-form-animated > div:nth-child(2) {
  animation-delay: 0.04s;
}

form.gm-form-animated > div:nth-child(3) {
  animation-delay: 0.08s;
}

form.gm-form-animated > div:nth-child(4) {
  animation-delay: 0.12s;
}

form.gm-form-animated > div:nth-child(5) {
  animation-delay: 0.16s;
}

form.gm-form-animated > div:nth-child(6) {
  animation-delay: 0.2s;
}

form.gm-form-animated > div:nth-child(7) {
  animation-delay: 0.24s;
}

form.gm-form-animated > div:nth-child(8) {
  animation-delay: 0.28s;
}

form.gm-form-animated > div:nth-child(9) {
  animation-delay: 0.32s;
}

form.gm-form-animated > div:nth-child(10) {
  animation-delay: 0.36s;
}

.modal .ts-dropdown,
.ts-dropdown {
  z-index: 10000 !important;
}

.modal .ts-control {
  z-index: 1;
}

.modal-body .form-floating,
.modal-body .form-control {
  overflow: visible;
}

.btn-saas-primary,
.btn-gm-add,
.btn-saas-outline {
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.18s, background-color 0.18s, border-color 0.18s;
}
.btn-saas-primary:active,
.btn-gm-add:active,
.btn-saas-outline:active {
  transform: translateY(0) !important;
}

.sidebar-gm .nav-link-gm {
  transition: background 0.15s, color 0.15s, padding-left 0.18s cubic-bezier(0.25, 1, 0.5, 1);
}
.sidebar-gm .nav-link-gm:hover:not(.active) {
  padding-left: calc(0.875rem + 4px);
}

.nav-tabs .nav-link {
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.nav-tabs .nav-link:hover {
  transform: translateY(-1px);
}

.badge,
.dash-section-count,
.badge-gm,
.status-pill {
  animation: gm-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.15s;
}

.topbar-avatar-btn:hover .topbar-avatar {
  animation: gm-bounce-soft 0.4s ease;
}

.activity-empty i,
.dash-empty-pages i {
  animation: gm-bounce-soft 2.4s ease-in-out infinite;
}

canvas {
  animation: gm-fade-in 0.5s ease both;
  animation-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.btn-gm-primary,
.btn-primary-gm {
  position: relative;
  overflow: hidden;
  background-color: #013483;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 1px 3px rgba(1, 52, 131, 0.25);
  transition: background-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn-gm-primary:hover,
.btn-primary-gm:hover {
  background-color: #012a6a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 52, 131, 0.35);
  transform: translateY(-1px);
}
.btn-gm-primary:active,
.btn-primary-gm:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(1, 52, 131, 0.35);
}

.btn-gm-secondary {
  background-color: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
}
.btn-gm-secondary:hover {
  background-color: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-gm-success {
  background-color: #22c55e;
  color: #fff;
  border: none;
  border-radius: 8px;
}
.btn-gm-success:hover {
  background-color: rgb(27.9948051948, 162.2051948052, 77.3974025974);
  color: #fff;
}

.btn-gm-danger {
  background-color: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
}
.btn-gm-danger:hover {
  background-color: rgb(235.7842364532, 30.4157635468, 30.4157635468);
  color: #fff;
}

.btn-outline-primary {
  color: #013483;
  border: 1.5px solid #013483;
  border-radius: 8px;
}
.btn-outline-primary:hover {
  background-color: #013483;
  color: #fff;
}

.btn-primary {
  background-color: #013483;
  border-color: #013483;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #012a6a;
  border-color: #012a6a;
}

.admin-card-premium {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.card .card-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.86rem;
}
.card .card-body {
  padding: 1.25rem;
}
.card .card-footer {
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border);
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: box-shadow 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.22s;
}
.kpi-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: var(--border);
}
.kpi-card:hover .icon-circle {
  transform: scale(1.08) rotate(-2deg);
}
.kpi-card .icon-circle {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kpi-card .kpi-label {
  font-size: 0.66rem;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.kpi-card .kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.kpi-card .kpi-footer {
  margin-top: 0.875rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: box-shadow 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.22s;
}
.action-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--border);
}
.action-card:hover .action-icon {
  transform: scale(1.12) rotate(-3deg);
}
.action-card:hover .action-label {
  color: #013483;
}
.action-card .action-icon {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.action-card .action-label {
  transition: color 0.18s;
}
.action-card .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.action-card .action-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.summary-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.summary-card .card-header h6 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.summary-card .list-item-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.summary-card .list-item-premium:last-child {
  border-bottom: none;
}
.summary-card .list-item-premium .item-info {
  flex: 1;
  min-width: 0;
}
.summary-card .list-item-premium .item-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-card .list-item-premium .item-subtitle {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.summary-card .list-item-premium .item-value {
  font-size: 0.78rem;
  font-weight: 700;
}

.text-primary-gm {
  color: #013483 !important;
}

.text-dark-gm {
  color: var(--text) !important;
}

.sidebar-gm {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  background: linear-gradient(180deg, var(--sidebar-from) 0%, var(--sidebar-to) 100%);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease;
  z-index: 100;
  overflow: hidden;
}
.sidebar-gm.collapsed {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
}
.sidebar-gm.collapsed .sidebar-workspace {
  padding: 0.75rem 0;
  justify-content: center;
}
.sidebar-gm.collapsed .sidebar-workspace .ws-info, .sidebar-gm.collapsed .sidebar-workspace .ws-badge, .sidebar-gm.collapsed .sidebar-workspace .ws-chevron {
  display: none !important;
}
.sidebar-gm.collapsed .sidebar-workspace .ws-logo {
  margin: 0 auto;
}
.sidebar-gm.collapsed .sidebar-new-btn {
  padding: 0.5rem;
  justify-content: center;
}
.sidebar-gm.collapsed .sidebar-new-btn span {
  display: none !important;
}
.sidebar-gm.collapsed .nav-link-gm {
  justify-content: center;
  padding: 0.55rem 0;
}
.sidebar-gm.collapsed .nav-link-gm .nav-label, .sidebar-gm.collapsed .nav-link-gm .nav-badge {
  display: none !important;
}
.sidebar-gm.collapsed .nav-link-gm .nav-icon {
  margin: 0 auto;
}
.sidebar-gm.collapsed .sidebar-section {
  padding: 0.125rem 0.375rem;
}
.sidebar-gm.collapsed .sidebar-group {
  padding: 0.125rem 0.375rem;
}
.sidebar-gm.collapsed .sidebar-group-header {
  display: none !important;
}
.sidebar-gm.collapsed .sidebar-submenu {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
}
.sidebar-gm.collapsed .sidebar-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-gm.collapsed .sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-workspace {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0.875rem 0.625rem;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.12s;
  min-height: 58px;
}
.sidebar-workspace:hover {
  background: var(--sidebar-hover-bg);
}
.sidebar-workspace .ws-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: var(--sidebar-logo-bg);
  background-image: url("../assets/icon-mecsa-proyectos.svg");
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
}
.sidebar-workspace .ws-info {
  flex: 1;
  min-width: 0;
}
.sidebar-workspace .ws-info .ws-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sidebar-name);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.sidebar-workspace .ws-info .ws-badge {
  font-size: 0.58rem;
  font-weight: 700;
  color: #f7941d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}
.sidebar-workspace .ws-chevron {
  color: var(--sidebar-group-text);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.sidebar-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.5rem 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1.5px dashed var(--sidebar-newbtn-border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sidebar-newbtn-text);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
  width: calc(100% - 1.5rem);
}
.sidebar-new-btn i {
  font-size: 0.72rem;
}
.sidebar-new-btn:hover {
  border-color: #f7941d;
  color: var(--sidebar-text-hover);
  background: rgba(247, 148, 29, 0.15);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.sidebar-scroll:hover {
  scrollbar-color: var(--scroll-thumb-hover) transparent;
}
.sidebar-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb-hover);
  background-clip: padding-box;
}

.sidebar-section {
  padding: 0.25rem 0.75rem;
}

.sidebar-group {
  padding: 0.125rem 0.75rem 0.25rem;
}

.sidebar-group-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  margin-top: 0.375rem;
  border-radius: 6px;
  color: var(--sidebar-group-text);
  text-decoration: none;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
}
.sidebar-group-header .group-chevron {
  width: 12px;
  flex-shrink: 0;
  font-size: 0.5rem;
  text-align: center;
  transition: transform 0.18s ease;
}
.sidebar-group-header .group-title {
  flex: 1;
}
.sidebar-group-header:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}
.sidebar-group-header[aria-expanded=true] .group-chevron {
  transform: rotate(90deg);
}
.sidebar-group-header.has-active {
  color: #f7941d;
}

.nav-link-gm {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.875rem;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  margin-bottom: 2px;
}
.nav-link-gm .nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.12s;
}
.nav-link-gm .nav-label {
  flex: 1;
  line-height: 1.3;
}
.nav-link-gm .nav-badge {
  background: rgba(1, 52, 131, 0.1);
  color: #013483;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.6;
}
.nav-link-gm:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}
.nav-link-gm:hover .nav-icon {
  opacity: 1;
}
.nav-link-gm.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  font-weight: 600;
  box-shadow: inset 3px 0 0 #f7941d;
}
.nav-link-gm.active .nav-icon {
  opacity: 1;
  color: #f7941d;
}
.nav-link-gm.nav-link-sub {
  padding-left: 0.9rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.78rem;
  color: var(--sidebar-group-text);
}
.nav-link-gm.nav-link-sub:hover {
  color: var(--sidebar-text-hover);
}
.nav-link-gm.nav-link-sub.active {
  color: var(--sidebar-text-active);
  background: var(--sidebar-active-bg);
  box-shadow: inset 3px 0 0 #f7941d;
}

.sidebar-submenu {
  padding: 0.15rem 0 0.1rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-user:hover {
  background: var(--sidebar-hover-bg);
}
.sidebar-user .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(1, 52, 131, 0.1);
  color: #013483;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user .user-details {
  flex: 1;
  min-width: 0;
}
.sidebar-user .user-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sidebar-name);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.sidebar-user .user-role {
  font-size: 0.63rem;
  color: var(--sidebar-group-text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}
.sidebar-user .user-settings {
  color: var(--sidebar-group-text);
  font-size: 0.75rem;
  transition: color 0.12s;
  padding: 0.25rem;
  border-radius: 5px;
}
.sidebar-user .user-settings:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

@media (max-width: 991.98px) {
  .sidebar-gm {
    position: fixed;
    left: -210px;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1060;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .sidebar-gm.show {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s;
  }
  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  body.sidebar-open {
    overflow: hidden;
  }
}
.search-pill-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.search-pill-container .input-group-pill {
  flex-grow: 1;
  display: flex;
  border-radius: 50rem;
  background-color: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  overflow: hidden;
  margin-right: 1rem;
}
.search-pill-container .input-group-pill .form-control {
  border: none;
  background: transparent;
  height: 48px;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  box-shadow: none !important;
}
.search-pill-container .input-group-pill .form-control::placeholder {
  color: #adb5bd;
}
.search-pill-container .input-group-pill .btn-search {
  background-color: #013483;
  color: white;
  border: none;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 50rem 50rem 0;
  transition: all 0.2s ease;
}
.search-pill-container .input-group-pill .btn-search:hover {
  background-color: rgb(0.6136363636, 31.9090909091, 80.3863636364);
  width: 80px;
}
.search-pill-container .input-group-pill .btn-search i {
  font-size: 1.1rem;
}
.search-pill-container .search-count {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 700;
  white-space: nowrap;
}

.table-gm-container {
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.table-gm-container .table {
  margin-bottom: 0;
  border-collapse: collapse;
}
.table-gm-container .table thead tr th {
  background-color: var(--bg-surface-2) !important;
  color: var(--text-2) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.7px;
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle;
  white-space: nowrap;
}
.table-gm-container .table tbody tr {
  transition: background-color 0.15s;
}
.table-gm-container .table tbody tr:hover {
  background-color: var(--bg-surface-2);
}
.table-gm-container .table tbody tr td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.855rem;
  line-height: 1.5;
}
.table-gm-container .table tbody tr td .text-id {
  font-weight: 600;
  color: #adb5bd;
}
.table-gm-container .table tbody tr td .table-thumb {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.table-gm-container .table tbody tr td .btn-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: var(--bg-surface-2);
  text-decoration: none;
}
.table-gm-container .table tbody tr td .btn-action i {
  font-size: 0.9rem;
}
.table-gm-container .table tbody tr td .btn-action.btn-view {
  color: #013483;
  background: rgba(1, 52, 131, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-view:hover {
  background: #013483;
  color: white;
  border-color: #013483;
}
.table-gm-container .table tbody tr td .btn-action.btn-edit {
  color: #012a6a;
  background: rgba(1, 42, 106, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-edit:hover {
  background: #012a6a;
  color: white;
  border-color: #012a6a;
}
.table-gm-container .table tbody tr td .btn-action.btn-delete {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-delete:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}
.table-gm-container .table tbody tr td .btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.table-gm-container .table tbody tr td .badge-gm {
  padding: 0.4rem 0.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.table-gm-container .table tbody tr td .badge-gm.badge-published {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.table-gm-container .table tbody tr td .badge-gm.badge-draft {
  background: rgba(1, 42, 106, 0.1);
  color: #012a6a;
}
.table-gm-container .table tbody tr:last-child td {
  border-bottom: none;
}

.table {
  --bs-table-hover-bg: var(--bg-surface-2);
  color: var(--text);
  margin-bottom: 0;
}
.table thead th {
  background-color: var(--bg-surface-2);
  color: var(--text-2) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle;
  white-space: nowrap;
}
.table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}
.table tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease;
  animation: gm-table-row-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.table tbody tr:hover {
  background-color: var(--bg-surface-2);
  transform: translateX(2px);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:nth-child(1) {
  animation-delay: 0s;
}
.table tbody tr:nth-child(2) {
  animation-delay: 0.05s;
}
.table tbody tr:nth-child(3) {
  animation-delay: 0.1s;
}
.table tbody tr:nth-child(4) {
  animation-delay: 0.15s;
}
.table tbody tr:nth-child(5) {
  animation-delay: 0.2s;
}
.table tbody tr:nth-child(6) {
  animation-delay: 0.25s;
}
.table tbody tr:nth-child(7) {
  animation-delay: 0.3s;
}
.table tbody tr:nth-child(8) {
  animation-delay: 0.35s;
}
.table tbody tr:nth-child(9) {
  animation-delay: 0.4s;
}
.table tbody tr:nth-child(10) {
  animation-delay: 0.45s;
}
.table tbody tr:nth-child(11) {
  animation-delay: 0.5s;
}
.table tbody tr:nth-child(12) {
  animation-delay: 0.55s;
}
.table tbody tr:nth-child(13) {
  animation-delay: 0.6s;
}
.table tbody tr:nth-child(14) {
  animation-delay: 0.65s;
}
.table tbody tr:nth-child(15) {
  animation-delay: 0.7s;
}
.table tbody tr:nth-child(16) {
  animation-delay: 0.75s;
}
.table tbody tr:nth-child(17) {
  animation-delay: 0.8s;
}
.table tbody tr:nth-child(18) {
  animation-delay: 0.85s;
}
.table tbody tr:nth-child(19) {
  animation-delay: 0.9s;
}
.table tbody tr:nth-child(20) {
  animation-delay: 0.95s;
}

@keyframes gm-table-row-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gm-avatar-table {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #013483, #012a6a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.gm-table-search {
  position: relative;
  width: 280px;
}
.gm-table-search i {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.gm-table-search input {
  width: 100%;
  padding: 9px 15px 9px 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
}
.gm-table-search input:focus {
  outline: none;
  border-color: #013483;
  box-shadow: 0 0 0 3px rgba(1, 52, 131, 0.1);
}

.gm-switch-premium {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.gm-switch-premium input {
  opacity: 0;
  width: 0;
  height: 0;
}
.gm-switch-premium .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--scroll-thumb);
  transition: 0.3s;
  border-radius: 24px;
}
.gm-switch-premium .slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-surface);
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.gm-switch-premium input:checked + .slider {
  background: #013483;
}
.gm-switch-premium input:checked + .slider::before {
  transform: translateX(20px);
}

.table-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.table-header-actions .table-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.table-header-actions .table-subtitle {
  font-size: 0.81rem;
  color: var(--text-2);
  margin: 0.2rem 0 0;
}
.table-header-actions .btn-gm-add {
  background-color: #013483;
  color: white;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 3px rgba(1, 52, 131, 0.25);
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.table-header-actions .btn-gm-add:hover {
  background-color: #012a6a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 52, 131, 0.3);
  color: white;
}
.table-header-actions .btn-gm-add i {
  font-size: 0.85rem;
}

.pagination-gm-wrap {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.pagination {
  gap: 2px;
}
.pagination .page-link {
  border-radius: 7px !important;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  line-height: 1.5;
  background: var(--bg-surface);
  transition: all 0.14s;
}
.pagination .page-link:hover {
  background: var(--bg-surface-2);
  color: #013483;
  border-color: var(--border);
}
.pagination .page-link:focus {
  box-shadow: none;
}
.pagination .page-item.active .page-link {
  background: #013483;
  border-color: #013483;
  color: white;
  font-weight: 700;
}
.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border-color: var(--border);
  opacity: 0.6;
}

.pagination-gm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}
.pagination-gm .pagination-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pagination-gm .pagination-info .page-indicator {
  color: #212529;
  font-weight: 400;
}
.pagination-gm .pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination-gm .pagination-nav .btn-page {
  text-decoration: none;
  color: #6c757d;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.pagination-gm .pagination-nav .btn-page:hover:not(.disabled):not(.active) {
  background: rgba(0, 0, 0, 0.05);
  color: #013483;
}
.pagination-gm .pagination-nav .btn-page.active {
  background: #013483;
  color: white !important;
  font-weight: 600;
}
.pagination-gm .pagination-nav .btn-page.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.pagination-gm .pagination-nav .btn-page.arrow {
  font-size: 1.1rem;
  padding-bottom: 2px;
}

.modal-backdrop {
  background-color: rgba(1, 14, 40, 0.55) !important;
}
.modal-backdrop.show {
  opacity: 1 !important;
}

.modal {
  --bs-modal-border-radius: 18px;
  --bs-modal-border-width: 0;
  --bs-modal-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.modal.fade .modal-dialog {
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.18s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--bs-modal-box-shadow, 0 24px 60px rgba(0, 0, 0, 0.18));
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-surface);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  align-items: center;
  gap: 0.75rem;
}
.modal-header .modal-title {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.3;
}
.modal-header.colors-gm-primary, .modal-header.bg-primary {
  background: #013483 !important;
  border-bottom: none;
  padding: 1.1rem 1.5rem;
}
.modal-header.colors-gm-primary .modal-title, .modal-header.bg-primary .modal-title {
  color: #fff;
  font-size: 1rem;
}
.modal-header.colors-gm-primary .btn-close, .modal-header.bg-primary .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.75;
}
.modal-header.colors-gm-primary .btn-close:hover, .modal-header.bg-primary .btn-close:hover {
  opacity: 1;
}

.modal-header .btn-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  background: var(--bg-surface-3) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/10px no-repeat;
  opacity: 0.6;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}
.modal-header .btn-close:hover {
  background-color: var(--bg-surface-3);
  opacity: 1;
}
.modal-header .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(1, 52, 131, 0.2);
  outline: none;
}
.modal-header .btn-close.btn-close-white {
  background: rgba(255, 255, 255, 0.15) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/10px no-repeat;
  opacity: 0.75;
  filter: none;
}
.modal-header .btn-close.btn-close-white:hover {
  background-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.modal-body .form-floating {
  margin-bottom: 1rem;
}
.modal-body .form-floating > .form-control,
.modal-body .form-floating > .form-select {
  min-height: calc(3.75rem + 2px);
  height: calc(3.75rem + 2px);
  line-height: 1.25;
  padding: 1rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid var(--bg-surface-3);
  font-size: 0.88rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--bg-surface);
}
.modal-body .form-floating > .form-control:focus,
.modal-body .form-floating > .form-select:focus {
  border-color: #013483;
  box-shadow: 0 0 0 3px rgba(1, 52, 131, 0.1);
  outline: none;
}
.modal-body .form-floating > .form-select {
  padding-top: 1.1rem !important;
  padding-bottom: 0.35rem !important;
}
.modal-body .form-floating > .form-control:focus,
.modal-body .form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.5rem !important;
  padding-bottom: 0.35rem !important;
}
.modal-body .form-floating > textarea.form-control,
.modal-body .form-floating > textarea.form-control:focus,
.modal-body .form-floating > textarea.form-control:not(:placeholder-shown) {
  padding-top: 1.5rem !important;
  padding-bottom: 0.5rem !important;
}
.modal-body .form-floating > label {
  padding: 1rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  transform-origin: 0 0;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
  pointer-events: none;
}
.modal-body .form-floating > .form-control:focus ~ label,
.modal-body .form-floating > .form-control:not(:placeholder-shown) ~ label,
.modal-body .form-floating > .form-select ~ label {
  opacity: 0.65;
  color: var(--text-2);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}
.modal-body .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}
.modal-body .form-control,
.modal-body .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--bg-surface-3);
  font-size: 0.88rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--bg-surface);
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: #013483;
  box-shadow: 0 0 0 3px rgba(1, 52, 131, 0.1);
  outline: none;
}
.modal-body textarea.form-control {
  resize: vertical;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border);
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-gm-primary,
.modal .btn-primary,
.btn-primary-gm {
  background: #013483;
  border-color: #013483;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1px;
  color: white;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(1, 52, 131, 0.25);
}
.btn-gm-primary:hover,
.modal .btn-primary:hover,
.btn-primary-gm:hover {
  background: #012a6a;
  border-color: #012a6a;
  box-shadow: 0 5px 14px rgba(1, 52, 131, 0.35);
  transform: translateY(-1px);
  color: white;
}
.btn-gm-primary:active,
.modal .btn-primary:active,
.btn-primary-gm:active {
  transform: translateY(0);
}
.btn-gm-primary i,
.modal .btn-primary i,
.btn-primary-gm i {
  margin-right: 6px;
}

.btn-gm-secondary,
.modal .btn-outline-secondary {
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-2);
  border-color: var(--border);
  transition: background 0.18s, color 0.18s;
}
.btn-gm-secondary:hover,
.modal .btn-outline-secondary:hover {
  background: var(--bg-surface-3);
  color: var(--text);
  border-color: var(--border);
}

.modal-header.bg-danger {
  border-bottom: none;
}
.modal-header.bg-danger .modal-title {
  color: #fff;
}
.modal-header.bg-danger .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.75;
}
.modal-header.bg-danger .btn-close:hover {
  opacity: 1;
}

.modal-body .alert {
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
}

.bill-detail-modal .modal-content {
  border-radius: 18px;
}
.bill-detail-modal .bd-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.bill-detail-modal .bd-summary-cell {
  min-width: 0;
}
.bill-detail-modal .bd-summary-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.35rem;
}
.bill-detail-modal .bd-summary-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bill-detail-modal .bd-summary-value.bd-number {
  color: #013483;
}
.bill-detail-modal .bd-summary-value.bd-amount {
  color: #22c55e;
}
.bill-detail-modal .bd-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.bill-detail-modal .bd-info-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 0.625rem;
}
@media (max-width: 575.98px) {
  .bill-detail-modal .bd-info-row {
    grid-template-columns: 1fr;
  }
}
.bill-detail-modal .bd-info-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.875rem;
  min-width: 0;
  transition: border-color 0.12s, background 0.12s;
}
.bill-detail-modal .bd-info-cell:hover {
  border-color: var(--border);
}
.bill-detail-modal .bd-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.bill-detail-modal .bd-info-label i {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.bill-detail-modal .bd-info-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.bill-detail-modal .bd-section + .bd-section {
  margin-top: 1.125rem;
}
.bill-detail-modal .bd-section .bd-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.bill-detail-modal .bd-section .bd-section-label i {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.bill-detail-modal .bd-section a, .bill-detail-modal .bd-section .bd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(1, 52, 131, 0.06);
  color: #013483;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(1, 52, 131, 0.15);
  transition: background 0.12s, border-color 0.12s;
}
.bill-detail-modal .bd-section a:hover, .bill-detail-modal .bd-section .bd-tag:hover {
  background: rgba(1, 52, 131, 0.1);
  border-color: rgba(1, 52, 131, 0.3);
  color: #013483;
}
.bill-detail-modal .bd-section a i, .bill-detail-modal .bd-section .bd-tag i {
  font-size: 0.72rem;
}
.bill-detail-modal .bd-section #detailDocuments a,
.bill-detail-modal .bd-section #detailDocuments .doc-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.bill-detail-modal .bd-section #detailDocuments a:hover,
.bill-detail-modal .bd-section #detailDocuments .doc-chip:hover {
  background: var(--bg-surface-2);
  border-color: var(--border);
  color: var(--text);
}
.bill-detail-modal .bd-section #detailDocuments a i,
.bill-detail-modal .bd-section #detailDocuments .doc-chip i {
  color: #013483;
}
.bill-detail-modal .modal-footer {
  gap: 0.5rem;
}
.bill-detail-modal .modal-footer .btn-saas-outline,
.bill-detail-modal .modal-footer .btn-saas-primary {
  padding: 0.55rem 1.1rem;
}
.bill-detail-modal .modal-footer .btn-saas-outline i,
.bill-detail-modal .modal-footer .btn-saas-primary i {
  font-size: 0.75rem;
}

.support-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: "Outfit", sans-serif;
}
.support-chat-widget .chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004e8d 0%, #00d2ff 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 78, 141, 0.3);
  transition: all 0.3s ease;
  border: none;
}
.support-chat-widget .chat-toggle:hover {
  transform: scale(1.1) rotate(5deg);
}
.support-chat-widget .chat-toggle:focus-visible {
  outline: 2px solid #004e8d;
  outline-offset: 3px;
}
.support-chat-widget .chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--bg-surface);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}
.support-chat-widget .chat-window.active {
  display: flex;
}
.support-chat-widget .chat-window .chat-header {
  background: #004e8d;
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.support-chat-widget .chat-window .chat-header .manager-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.support-chat-widget .chat-window .chat-header .manager-info {
  flex: 1;
}
.support-chat-widget .chat-window .chat-header .manager-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.support-chat-widget .chat-window .chat-header .manager-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}
.support-chat-widget .chat-window .chat-header .close-chat {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.support-chat-widget .chat-window .chat-header .close-chat:hover {
  opacity: 1;
}
.support-chat-widget .chat-window .chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--bg-surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.support-chat-widget .chat-window .chat-body .message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.support-chat-widget .chat-window .chat-body .message.received {
  background: var(--bg-surface);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.support-chat-widget .chat-window .chat-body .message.sent {
  background: #004e8d;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 78, 141, 0.2);
}
.support-chat-widget .chat-window .chat-footer {
  padding: 1rem;
  background: var(--bg-surface);
  border-top: 1px solid #f8f9fa;
  display: flex;
  gap: 0.5rem;
}
.support-chat-widget .chat-window .chat-footer input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.support-chat-widget .chat-window .chat-footer input:focus {
  outline: none;
  border-color: #004e8d;
  box-shadow: 0 0 0 3px rgba(0, 78, 141, 0.1);
}
.support-chat-widget .chat-window .chat-footer button {
  background: #004e8d;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.support-chat-widget .chat-window .chat-footer button:hover {
  background: rgb(0, 55.429787234, 100.2);
}
.support-chat-widget .chat-window .chat-footer button:focus-visible {
  outline: 2px solid #004e8d;
  outline-offset: 2px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-admin-container {
  height: calc(100vh - 120px);
  display: flex;
  background: var(--bg-surface);
  border-radius: 24px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.chat-admin-container .avatar-chat {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.chat-admin-container .contacts-sidebar {
  width: 360px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-2);
}
.chat-admin-container .contacts-sidebar .sidebar-header {
  padding: 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.chat-admin-container .contacts-sidebar .sidebar-header h5 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.chat-admin-container .contacts-sidebar .sidebar-header .search-wrapper {
  position: relative;
}
.chat-admin-container .contacts-sidebar .sidebar-header .search-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.chat-admin-container .contacts-sidebar .sidebar-header .search-wrapper input {
  padding-left: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  font-size: 0.9rem;
}
.chat-admin-container .contacts-sidebar .sidebar-header .search-wrapper input:focus {
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(0, 78, 141, 0.05);
  border-color: #004e8d;
}
.chat-admin-container .contacts-sidebar .contacts-scroll {
  flex: 1;
  overflow-y: auto;
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(241, 245, 249, 0.5);
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card:hover {
  background: var(--bg-surface-2);
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card.active {
  background: var(--bg-surface-2);
  border-left: 4px solid #004e8d;
  padding-left: calc(1.5rem - 4px);
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card .contact-info {
  flex: 1;
  min-width: 0;
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card .contact-info .name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card .contact-info .name-row strong {
  font-size: 0.9rem;
  color: var(--text-2);
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card .contact-info .name-row span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.chat-admin-container .contacts-sidebar .contacts-scroll .contact-card .contact-info p {
  font-size: 0.8rem;
  color: var(--text-2);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-admin-container .chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-2);
  position: relative;
}
.chat-admin-container .chat-view .view-header {
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.chat-admin-container .chat-view .view-header .user-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.chat-admin-container .chat-view .view-header .user-meta h6 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}
.chat-admin-container .chat-view .view-header .user-meta span {
  font-size: 0.8rem;
  color: var(--text-2);
}
.chat-admin-container .chat-view .messages-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}
.chat-admin-container .chat-view .messages-container .bubble {
  max-width: 65%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  animation: bubbleIn 0.3s ease-out;
}
.chat-admin-container .chat-view .messages-container .bubble.received {
  background: var(--bg-surface);
  color: var(--text-2);
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.chat-admin-container .chat-view .messages-container .bubble.sent {
  background: linear-gradient(135deg, #004e8d 0%, #0060ad 100%);
  color: #ffffff;
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 8px 20px rgba(0, 78, 141, 0.2);
}
.chat-admin-container .chat-view .messages-container .bubble .time {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  display: block;
  opacity: 0.6;
  text-align: right;
}
.chat-admin-container .chat-view .input-bar {
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.chat-admin-container .chat-view .input-bar .input-wrapper {
  background: var(--bg-surface-2);
  border-radius: 16px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}
.chat-admin-container .chat-view .input-bar .input-wrapper:focus-within {
  background: var(--bg-surface);
  box-shadow: 0 0 0 1px #004e8d, 0 10px 20px rgba(0, 0, 0, 0.05);
}
.chat-admin-container .chat-view .input-bar .input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
}
.chat-admin-container .chat-view .input-bar .input-wrapper .btn-send {
  width: 44px;
  height: 44px;
  background: #004e8d;
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.2s;
}
.chat-admin-container .chat-view .input-bar .input-wrapper .btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 78, 141, 0.3);
}
.chat-admin-container .chat-view .input-bar .input-wrapper .btn-send:active {
  transform: scale(0.95);
}
.chat-admin-container .empty-chat-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  text-align: center;
  padding: 2rem;
}
.chat-admin-container .empty-chat-state .illustration {
  width: 200px;
  margin-bottom: 2rem;
  opacity: 0.6;
}
.chat-admin-container .empty-chat-state h4 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.chat-admin-container .empty-chat-state p {
  color: var(--text-2);
  max-width: 300px;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.role-item-premium {
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.role-item-premium:hover {
  background: var(--bg-surface-2);
  border-color: var(--border);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.role-item-premium:hover .role-icon-box {
  transform: scale(1.05);
}
.role-item-premium.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1) !important;
}
.role-item-premium.active .role-icon-box {
  background: #dbeafe !important;
  color: #2563eb !important;
}
.role-item-premium.active .role-name {
  color: #1e3a8a !important;
}
.role-item-premium.active .active-indicator {
  opacity: 1;
  transform: scaleY(1);
}
.role-item-premium .active-indicator {
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 4px;
  background: #3b82f6;
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.role-item-premium .role-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--bg-surface-2);
  color: var(--text-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}
.role-item-premium .role-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.role-item-premium .role-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.role-item-premium .btn-delete-role {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none !important;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  opacity: 0;
  transform: translateX(10px);
  box-shadow: none !important;
  outline: none !important;
}
.role-item-premium .btn-delete-role:hover {
  background: #ef4444;
  color: #fff;
  opacity: 1 !important;
  transform: scale(1.1) !important;
}
.role-item-premium .btn-delete-role i {
  pointer-events: none;
}
.role-item-premium:hover .btn-delete-role {
  opacity: 0.7;
  transform: translateX(0);
}

.perm-group + .perm-group {
  margin-top: 1.25rem;
}

.perm-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.perm-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  border: 1px solid transparent;
  margin: 0;
}
.perm-row:hover {
  background: var(--bg-surface-2);
  border-color: var(--border);
}
.perm-row .perm-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(1, 52, 131, 0.06);
  color: #013483;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.perm-row .perm-name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.perm-row .gm-switch-premium {
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .perm-row {
    padding: 0.5rem;
    gap: 0.55rem;
  }
  .perm-row .perm-icon {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .perm-row .perm-name {
    font-size: 0.8rem;
  }
}
.billing-progress-container {
  background: var(--bg-surface-2);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.billing-progress-container .progress {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.billing-progress-container .progress .progress-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #0dcaf0, #0aa2c0);
}
.billing-progress-container .progress .progress-bar.bg-success {
  background: linear-gradient(90deg, #22c55e, #146c43);
}
.billing-progress-container #billing-percentage-label {
  font-weight: 700;
  color: var(--text);
}

#project-bills-table {
  font-size: 0.85rem;
}
#project-bills-table thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  border-bottom: 2px solid #eee;
}
#project-bills-table tbody tr {
  transition: background 0.2s ease;
}
#project-bills-table tbody tr:hover {
  background-color: rgba(13, 202, 240, 0.05);
}
#project-bills-table tbody tr td {
  vertical-align: middle;
}

#billing-summary-badge {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.text-orange {
  color: #fd7e14 !important;
}

.border-warning-opacity-25 {
  border-color: rgba(255, 193, 7, 0.25) !important;
}

@keyframes gm-skeleton-shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}
.skeleton-chart, .kanban-card-skeleton .kcs-foot > *, .kanban-card-skeleton .kcs-meta, .kanban-card-skeleton .kcs-title, .skeleton-content-block .scb-line, .skeleton-content-block .scb-line-3, .skeleton-content-block .scb-line-2, .skeleton-content-block .scb-line-1, .skeleton-content-block .scb-title, .skeleton-list-item .sli-meta, .skeleton-list-item .sli-line-2, .skeleton-list-item .sli-line-1, .table-skeleton .ts-cell, .kpi-skeleton .ks-value, .kpi-skeleton .ks-label, .kpi-skeleton .ks-icon, .skeleton-card, .skeleton-chip, .skeleton-btn, .skeleton-icon, .skeleton-avatar, .skeleton-list-item .sli-avatar, .skeleton-avatar-lg, .skeleton {
  background: linear-gradient(90deg, var(--bg-surface-3) 0%, var(--bg-surface-2) 50%, var(--bg-surface-3) 100%);
  background-size: 936px 100%;
  animation: gm-skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.skeleton {
  display: block;
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-sm {
  height: 10px;
}

.skeleton-md {
  height: 14px;
}

.skeleton-lg {
  height: 22px;
}

.skeleton-xl {
  height: 32px;
}

.skeleton-text {
  height: 14px;
}

.skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 12px;
  width: 90%;
}

.skeleton-line-short {
  height: 12px;
  width: 50%;
}

.skeleton-avatar, .skeleton-list-item .sli-avatar, .skeleton-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-avatar-lg {
  width: 56px;
  height: 56px;
}

.skeleton-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.skeleton-btn {
  height: 34px;
  width: 100px;
  border-radius: 8px;
  display: inline-block;
}

.skeleton-chip {
  height: 22px;
  width: 80px;
  border-radius: 20px;
  display: inline-block;
}

.skeleton-card {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.kpi-skeleton {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
}
.kpi-skeleton .ks-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}
.kpi-skeleton .ks-body {
  flex: 1;
}
.kpi-skeleton .ks-label {
  height: 10px;
  width: 60%;
  margin-bottom: 8px;
}
.kpi-skeleton .ks-value {
  height: 22px;
  width: 40%;
}

.table-skeleton {
  width: 100%;
  border-collapse: collapse;
}
.table-skeleton .ts-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.table-skeleton .ts-cell {
  height: 14px;
  flex: 1;
}
.table-skeleton .ts-cell-sm {
  flex: 0 0 60px;
}
.table-skeleton .ts-cell-md {
  flex: 0 0 120px;
}
.table-skeleton .ts-cell-avatar {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
}
.table-skeleton .ts-cell-action {
  flex: 0 0 80px;
  height: 28px;
  border-radius: 6px;
}

.skeleton-list-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.skeleton-list-item:last-child {
  border-bottom: none;
}
.skeleton-list-item .sli-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.skeleton-list-item .sli-body {
  flex: 1;
}
.skeleton-list-item .sli-line-1 {
  height: 14px;
  width: 70%;
  margin-bottom: 6px;
}
.skeleton-list-item .sli-line-2 {
  height: 11px;
  width: 40%;
}
.skeleton-list-item .sli-meta {
  height: 22px;
  width: 60px;
  border-radius: 20px;
  flex-shrink: 0;
}

.skeleton-content-block {
  padding: 1.25rem;
}
.skeleton-content-block .scb-title {
  height: 20px;
  width: 50%;
  margin-bottom: 14px;
}
.skeleton-content-block .scb-line, .skeleton-content-block .scb-line-3, .skeleton-content-block .scb-line-2, .skeleton-content-block .scb-line-1 {
  height: 13px;
  margin-bottom: 8px;
}
.skeleton-content-block .scb-line-1 {
  width: 95%;
}
.skeleton-content-block .scb-line-2 {
  width: 85%;
}
.skeleton-content-block .scb-line-3 {
  width: 70%;
}

.kanban-card-skeleton {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.kanban-card-skeleton .kcs-title {
  height: 14px;
  width: 80%;
  margin-bottom: 10px;
}
.kanban-card-skeleton .kcs-meta {
  height: 11px;
  width: 50%;
  margin-bottom: 12px;
}
.kanban-card-skeleton .kcs-foot {
  display: flex;
  gap: 8px;
}
.kanban-card-skeleton .kcs-foot > * {
  height: 18px;
  flex: 1;
  border-radius: 4px;
}

.skeleton-chart {
  width: 100%;
  height: 280px;
  border-radius: 12px;
}

[data-loading=true] .gm-when-loaded {
  display: none !important;
}

[data-loading=false] .gm-when-loading,
:not([data-loading]) .gm-when-loading {
  display: none !important;
}

.gm-fade-replace {
  animation: gm-fade-in-replace 0.35s ease-out both;
}

@keyframes gm-fade-in-replace {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.colors-gm-primary {
  background-color: #013483;
}

.colors-gm-secondary {
  background-color: #012a6a;
}

.colors-gm-light {
  background-color: #f8f9fa;
}

.colors-gm-dark {
  background-color: #1e293b;
}

.dashboard-premium .kpi-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.18s ease;
}

.dashboard-premium .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: var(--border);
}

.dashboard-premium .kpi-card .card-body {
  padding: 1.25rem 1.375rem;
}

.dashboard-premium .kpi-card .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .dashboard-premium .kpi-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }
  .dashboard-premium .kpi-card .card-body > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .dashboard-premium .kpi-card .icon-circle {
    margin: 0 auto 0.5rem auto !important;
    order: -1 !important;
  }
}
.dashboard-premium .kpi-card .kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dashboard-premium .kpi-card .kpi-label {
  font-size: 0.66rem;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.4rem;
}

.dashboard-premium .kpi-card .kpi-footer {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-premium .summary-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.dashboard-premium .summary-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.dashboard-premium .summary-card .card-header h6 {
  font-weight: 700;
  color: var(--text);
  font-size: 0.86rem;
  margin: 0;
}

.dashboard-premium .summary-card .card-body {
  padding: 0.5rem 0;
}

.dashboard-premium .list-item-premium {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.12s;
}

.dashboard-premium .list-item-premium:last-child {
  border-bottom: none;
}

.dashboard-premium .list-item-premium:hover {
  background: var(--bg-surface-2);
}

.dashboard-premium .list-item-premium .item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-premium .list-item-premium .item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-premium .list-item-premium .item-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-premium .list-item-premium .item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dashboard-premium .list-item-premium .item-meta .item-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
}

.dashboard-premium .list-item-premium .item-meta .item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-premium .action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid var(--border);
  min-height: 130px;
}

.dashboard-premium .action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-color: var(--border);
}

.dashboard-premium .action-card .action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.dashboard-premium .action-card .action-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.3;
}

.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #013483 0%, #012a6a 100%);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: white;
}

.dash-greeting::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.dash-greeting h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.dash-greeting p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  position: relative;
  z-index: 1;
}

.dash-greeting .btn-saas-primary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.dash-greeting .btn-saas-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-primary-soft {
  background-color: rgba(1, 52, 131, 0.1);
  color: #013483;
}

.bg-success-soft {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.bg-info-soft {
  background-color: rgba(13, 202, 240, 0.1);
  color: #0dcaf0;
}

.bg-warning-soft {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.bg-purple-gm-light {
  background-color: rgba(139, 92, 246, 0.1);
}

.text-purple-gm {
  color: #8b5cf6;
}

.status-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Kanban Page Styles */
/* Prevenir scroll horizontal en el body y contenedores principales */
body,
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.container-fluid {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Prevenir desbordamiento en el contenedor principal */
.d-flex.w-100 {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.flex-grow-1 {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Wrapper que contiene el scroll horizontal */
.kanban-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}

/* Contenedor principal del Kanban */
.kanban-board {
  display: flex;
  gap: 1.25rem;
  /* Scroll suave y estilizado */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Columnas del Kanban - ancho fijo para consistencia */
.kanban-col {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  background: var(--bg-surface-2);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.kanban-col:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Tarjetas de proyecto */
.kanban-card {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: grab;
  border-left: 3px solid var(--border);
  transition: all 0.2s ease;
}

.kanban-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.kanban-card:active {
  cursor: grabbing;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

/* Encabezado de cada columna */
.stage-header {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.stage-header > span:first-child {
  color: var(--text);
}

/* Contenedor de items con scroll interno si es necesario */
.kanban-items {
  max-height: calc(200vh - 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

/* =========================================
   Modal Detalles - Timeline Premium UI
   ========================================= */
.comments-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--bg-surface-2);
  /* Fondo ligeramente azulado/gris */
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  /* Scrollbar fino y elegante */
}

.timeline-item {
  display: flex !important;
  /* Forzar flex para alineación horizontal */
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item {
  /* Animación de entrada */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.timeline-item {
  /* Avatar del usuario */
}

.timeline-item .timeline-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #013483, rgb(0.4204545455, 21.8636363636, 55.0795454545));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 100, 165, 0.25);
  border: 2px solid var(--bg-surface);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-item {
  /* Burbuja de contenido */
}

.timeline-item .timeline-content {
  flex-grow: 1;
  background-color: var(--bg-surface);
  border-radius: 0 16px 16px 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item .timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.timeline-item .timeline-content {
  /* Flechita apuntando al avatar */
}

.timeline-item .timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 12px solid var(--bg-surface);
  border-left: 12px solid transparent;
  filter: drop-shadow(-1px 1px 0 rgba(0, 0, 0, 0.04));
}

.timeline-item .timeline-content {
  /* Encabezado del mensaje */
}

.timeline-item .timeline-content .timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.timeline-item .timeline-content .timeline-header .author-name {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.timeline-item .timeline-content .timeline-header .timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface-2);
  padding: 4px 10px;
  border-radius: 20px;
}

.timeline-item .timeline-content .timeline-header .timestamp i {
  font-size: 0.7rem;
  opacity: 0.8;
}

.timeline-item .timeline-content {
  /* Cuerpo del mensaje */
}

.timeline-item .timeline-content .timeline-body {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  font-weight: 400;
}

/* Cronograma Page Styles */
.timeline-day {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.timeline-time {
  width: 80px;
  font-weight: bold;
  color: #6c757d;
}

.timeline-content {
  flex-grow: 1;
}

.event-card {
  background: var(--bg-surface);
  border-left: 4px solid;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.event-card.event-proj {
  border-color: #013483;
}

.event-card {
  /* Primary */
}

.event-card.event-meet {
  border-color: #f59e0b;
}

.event-card {
  /* Warning */
}

.event-card.event-site {
  border-color: #22c55e;
}

.event-card {
  /* Success */
}

.worker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: -10px;
  border: 2px solid #fff;
}

.login-page {
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: #f8fafc;
}

.login-page .login-sidebar {
  flex: 1.2;
  background: linear-gradient(135deg, #013483 0%, rgb(0.4204545455, 21.8636363636, 55.0795454545) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .login-page .login-sidebar {
    display: none;
  }
}
.login-page .login-sidebar::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: rotate-slow 30s linear infinite;
}

.login-page .login-sidebar .logo-container {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInScale 0.8s ease-out;
}

.login-page .login-sidebar .logo-container img {
  max-width: 320px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

.login-page .login-sidebar .logo-container h4 {
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 1px;
}

.login-page .login-sidebar .logo-container p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.login-page .login-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 5;
}

@media (max-width: 991px) {
  .login-page .login-content {
    width: 100%;
    background: linear-gradient(135deg, #013483 0%, rgb(0.4204545455, 21.8636363636, 55.0795454545) 100%);
  }
}
.login-page .login-content .login-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 2.5rem;
  padding: 4rem 3.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 576px) {
  .login-page .login-content .login-card {
    padding: 2.5rem 2rem;
    border-radius: 2rem;
  }
}
.login-page .login-content .login-card .login-header {
  text-align: center;
  margin-bottom: 3rem;
}

.login-page .login-content .login-card .login-header img.brand-logo-mobile {
  display: none;
}

@media (max-width: 991px) {
  .login-page .login-content .login-card .login-header img.brand-logo-mobile {
    display: block;
    width: 140px;
    margin: 0 auto 2rem;
  }
}
.login-page .login-content .login-card .login-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.login-page .login-content .login-card .login-header p {
  color: #64748b;
  font-weight: 500;
  font-size: 1.05rem;
}

.login-page .login-content .login-card .form-floating {
  margin-bottom: 1.5rem;
}

.login-page .login-content .login-card .form-floating .form-control {
  border-radius: 1.25rem;
  border: 2px solid #e2e8f0;
  background-color: #f8fafc;
  height: 64px;
  padding-left: 1.25rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-page .login-content .login-card .form-floating .form-control:focus {
  background-color: #fff;
  border-color: #013483;
  box-shadow: 0 0 0 5px rgba(1, 52, 131, 0.1);
}

.login-page .login-content .login-card .form-floating label {
  padding-left: 1.25rem;
  color: #94a3b8;
  font-weight: 600;
}

.login-page .login-content .login-card .btn-login {
  height: 60px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #013483 0%, rgb(0.6136363636, 31.9090909091, 80.3863636364) 100%);
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  color: white;
  width: 100%;
  box-shadow: 0 12px 20px -5px rgba(1, 52, 131, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-page .login-content .login-card .btn-login:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 30px -8px rgba(1, 52, 131, 0.4);
  color: white;
}

.login-page .login-content .login-card .btn-login:active {
  transform: translateY(0) scale(1);
}

.login-page .login-content .login-card .forgot-password {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}

.login-page .login-content .login-card .forgot-password:hover {
  color: #013483;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Change Password Page Styles */
.change-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.logo-small {
  max-width: 140px;
  margin-bottom: 2rem;
}

.welcome-text h3 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.welcome-text p {
  color: #64748b;
  margin-bottom: 2rem;
}

.change-card .form-floating > .form-control {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.btn-primary-gm {
  background-color: #013483;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  margin-top: 1rem;
  transition: all 0.2s;
}

.btn-primary-gm:hover {
  background-color: #013483;
  transform: translateY(-2px);
}

/* Prospectos Page Styles */
.prospectos-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
}

.kanban-leads-wrapper {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-lead-col {
  min-width: 300px;
  max-width: 300px;
  background: var(--bg-surface-3);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}

.kanban-lead-col .col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.kanban-lead-col .col-header .col-title {
  font-weight: 700;
  color: var(--text-2);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.kanban-lead-col .col-header .count-badge {
  background: var(--bg-surface-3);
  color: var(--text-2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kanban-lead-col .col-body {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
  min-height: 50px;
}

/* Tarjeta de Lead */
.lead-card {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  cursor: grab;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.lead-card.priority {
  border-left-color: #ef4444;
}

.lead-card.new {
  border-left-color: #f59e0b;
}

.lead-card .lead-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.lead-card .lead-company {
  color: var(--text-2);
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lead-card .lead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Colores de encabezado por estado (opcional) */
.col-header[data-state="1"] .col-title {
  color: #f59e0b;
}

.col-header[data-state="2"] .col-title {
  color: #013483;
}

.col-header[data-state="3"] .col-title {
  color: #3b82f6;
}

.col-header[data-state="4"] .col-title {
  color: #8b5cf6;
}

.col-header[data-state="5"] .col-title {
  color: #22c55e;
}

.col-header[data-state="6"] .col-title {
  color: #ef4444;
}

.comparativa-container-mobile .project-report-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #f0f2f5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparativa-container-mobile .project-report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.comparativa-container-mobile .project-report-card .project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.comparativa-container-mobile .project-report-card .project-header .title-area {
  max-width: 70%;
}

.comparativa-container-mobile .project-report-card .project-header .title-area .project-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.comparativa-container-mobile .project-report-card .project-header .title-area .project-meta {
  font-size: 0.75rem;
  color: #718096;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comparativa-container-mobile .project-report-card .metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-surface-2);
  border-radius: 12px;
  text-align: center;
}

.comparativa-container-mobile .project-report-card .metrics-grid .metric-item .metric-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.comparativa-container-mobile .project-report-card .metrics-grid .metric-item .metric-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
}

.comparativa-container-mobile .project-report-card .metrics-grid .metric-item .metric-value.text-success {
  color: #10b981 !important;
}

.comparativa-container-mobile .project-report-card .metrics-grid .metric-item .metric-value.text-danger {
  color: #ef4444 !important;
}

.comparativa-container-mobile .project-report-card .progress-area .progress {
  height: 8px;
  border-radius: 4px;
  background-color: var(--bg-surface-3);
  margin-bottom: 0.5rem;
}

.comparativa-container-mobile .project-report-card .progress-area .progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comparativa-container-mobile .project-report-card .progress-area .progress-footer .percent-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a202c;
}

.comparativa-container-mobile .project-report-card .progress-area .progress-footer .action-link {
  font-size: 0.75rem;
  color: #013483;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comparativa-container-mobile .project-report-card .progress-area .progress-footer .action-link:hover {
  text-decoration: underline;
}

.totals-summary-mobile {
  background: linear-gradient(135deg, #013483 0%, rgb(0.4204545455, 21.8636363636, 55.0795454545) 100%);
  border-radius: 16px;
  padding: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
}

.totals-summary-mobile .total-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 600;
  margin-bottom: 1rem;
}

.totals-summary-mobile .totals-row {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .totals-summary-mobile .totals-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}
.totals-summary-mobile .totals-row .total-item .label {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.totals-summary-mobile .totals-row .total-item .value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .totals-summary-mobile .totals-row .total-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0.5rem;
  }
}
/* ===== Detalle de proyecto ===== */
.pd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.pd-head-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.pd-back {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  background: var(--bg-surface);
  transition: all 0.12s;
}

.pd-back:hover {
  border-color: #013483;
  color: #013483;
}

.pd-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.pd-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.125rem 0 0.5rem;
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.pd-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-surface-3);
  color: var(--text-2);
}

.pd-chip-state {
  background: #e0e7ff;
  color: #3730a3;
}

.pd-chip-ok {
  background: #dcfce7;
  color: #166534;
}

.pd-chip-warn {
  background: #fef3c7;
  color: #92400e;
}

.pd-head-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
}

.pd-btn:hover {
  border-color: var(--border);
  background: var(--bg-surface-2);
  color: var(--text);
}

.pd-btn-primary {
  background: #013483;
  border-color: #013483;
  color: #fff;
}

.pd-btn-primary:hover {
  background: #012a6b;
  border-color: #012a6b;
  color: #fff;
}

.pd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.pd-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
}

.pd-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.pd-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
}

.pd-stat-value.is-pending {
  color: #b45309;
}

.pd-stat-value.is-ok {
  color: #166534;
}

.pd-stat-foot {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.pd-progress {
  height: 5px;
  background: var(--bg-surface-3);
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.pd-progress > span {
  display: block;
  height: 100%;
  background: #013483;
  border-radius: 999px;
}

.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.875rem;
}

.pd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}

.pd-card-wide {
  grid-column: 1/-1;
}

.pd-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-soft);
}

.pd-card-title i {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pd-count {
  margin-left: auto;
  background: var(--bg-surface-3);
  color: var(--text-2);
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.pd-dl {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 0.5rem 0.875rem;
  margin: 0;
}

.pd-dl dt {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pd-dl dd {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0;
  word-break: break-word;
}

.pd-muted {
  color: var(--text-muted);
}

.pd-desc {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-soft);
}

.pd-desc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pd-desc p {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.pd-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.pd-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-2);
}

.pd-table tfoot td {
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.pd-table .pd-right {
  text-align: right;
}

.pd-table a {
  color: #013483;
  text-decoration: none;
  font-weight: 600;
}

.pd-table a:hover {
  text-decoration: underline;
}

.pd-empty {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-timeline li {
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.pd-timeline li:last-child {
  border-bottom: none;
}

.pd-tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.62rem;
}

.pd-tl-body {
  min-width: 0;
  flex: 1;
}

.pd-tl-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-2);
}

.pd-tl-body .pd-muted {
  font-size: 0.7rem;
}

.pd-tl-diff {
  font-size: 0.7rem;
  color: var(--text-2);
  margin-top: 0.2rem;
  background: var(--bg-surface-2);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  word-break: break-word;
}

.pd-notfound {
  text-align: center;
  padding: 4rem 1rem;
}

.pd-notfound i {
  font-size: 2.5rem;
  color: #d1d5db;
}

.pd-notfound h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.875rem 0 0.375rem;
}

.pd-notfound p {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

/* Los chips pastel funcionan sobre blanco; en oscuro se invierten a
   fondo translúcido con texto claro para no quedar como manchas. */
:root[data-theme=dark] .pd-chip {
  background: var(--bg-surface-3);
  color: var(--text-2);
}

:root[data-theme=dark] .pd-chip-state {
  background: rgba(91, 141, 239, 0.18);
  color: #b9cdff;
}

:root[data-theme=dark] .pd-chip-ok {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

:root[data-theme=dark] .pd-chip-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

:root[data-theme=dark] .pd-stat-value.is-pending {
  color: #fbbf24;
}

:root[data-theme=dark] .pd-stat-value.is-ok {
  color: #4ade80;
}

:root[data-theme=dark] .pd-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #06101f;
}

:root[data-theme=dark] .pd-btn-primary:hover {
  background: #7ba4f4;
  border-color: #7ba4f4;
  color: #06101f;
}

:root[data-theme=dark] .pd-back:hover {
  border-color: var(--brand);
  color: var(--brand);
}

:root[data-theme=dark] .pd-progress > span {
  background: var(--accent);
}

:root[data-theme=dark] .pd-notfound i {
  color: var(--border);
}

@media (max-width: 575.98px) {
  .pd-head-actions {
    width: 100%;
  }
  .pd-dl {
    grid-template-columns: 1fr;
    gap: 0.125rem 0.5rem;
  }
  .pd-dl dd {
    margin-bottom: 0.5rem;
  }
}

/*# sourceMappingURL=main-proyectos.css.map */
