/* ODC Titanium Mint — design system central */
:root {
  --odc-ink: #071820;
  --odc-petrol: #10343c;
  --odc-petrol-2: #12656a;
  --odc-titanium: #dce5e7;
  --odc-ivory: #f5f7f6;
  --odc-white: #fff;
  --odc-mint: #35e0b5;
  --odc-mint-dark: #128c73;
  --odc-champagne: #c7a96b;
  --odc-text: #14242a;
  --odc-muted: #66777c;
  --odc-critical: #e5485d;
  --odc-warning: #f2a93b;
  --odc-success: #29a879;
  --odc-info: #3686d9;
  --odc-border: #d9e2e4;
  --odc-border-strong: #c5d2d5;
  --odc-header-height: 78px;
  --odc-radius-xs: 6px;
  --odc-radius-sm: 9px;
  --odc-radius: 13px;
  --odc-radius-lg: 18px;
  --odc-shadow-sm: 0 4px 14px rgba(7,24,32,.05);
  --odc-shadow: 0 16px 40px rgba(7,24,32,.08);
  --odc-space-1: 4px;
  --odc-space-2: 8px;
  --odc-space-3: 12px;
  --odc-space-4: 16px;
  --odc-space-5: 24px;
  --odc-space-6: 32px;
  --odc-space-7: 48px;
}

html, body { min-height: 100%; }
body.ui-modern { margin: 0; color: var(--odc-text); background: var(--odc-ivory); font: 400 15px/1.55 Barlow, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.ui-modern * { box-sizing: border-box; }
body.ui-modern a { color: var(--odc-petrol-2); }
body.ui-modern a:hover { color: var(--odc-mint-dark); }
body.ui-modern .text-primary { color: var(--odc-petrol-2) !important; }
body.ui-modern .text-secondary { color: var(--odc-muted) !important; }
body.ui-modern .bg-primary { background-color: var(--odc-petrol) !important; }
body.ui-modern .border-primary { border-color: var(--odc-mint-dark) !important; }
body.ui-modern img { max-width: 100%; height: auto; }
body.ui-modern img:not(.odc-cover-image) { object-fit: contain; }
.odc-media-contain { width: 100%; height: auto; object-fit: contain; }
.odc-media-cover { width: 100%; height: 100%; object-fit: cover; }
.odc-avatar-image { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.odc-qr-image { display: block; width: min(190px, 55vw); height: auto; aspect-ratio: 1; margin: 12px auto; object-fit: contain; }
.odc-thumbnail { display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 10; background: #edf2f2; border: 1px solid var(--odc-border); border-radius: var(--odc-radius-sm); }
.odc-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.odc-app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--odc-ivory); }
.odc-header { position: sticky; top: 0; z-index: 1040; min-height: var(--odc-header-height); border-top: 3px solid var(--odc-mint); border-bottom: 1px solid var(--odc-border); background: rgba(255,255,255,.97); box-shadow: 0 8px 26px rgba(7,24,32,.04); backdrop-filter: blur(14px); }
.odc-topnav { width: 100%; max-width: 1720px; min-height: calc(var(--odc-header-height) - 3px); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 26px; }
.odc-brand { flex: 0 0 auto; display: flex; align-items: center; }
.odc-brand img { display: block; width: 112px; height: 42px; object-fit: contain; }
.odc-menu-toggle { display: none; width: 43px; height: 43px; margin-left: auto; padding: 0; border: 1px solid var(--odc-border); border-radius: var(--odc-radius-sm); color: var(--odc-ink); background: #fff; font-size: 23px; }
.odc-main-menu { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.odc-menu-links, .odc-header-tools { display: flex; align-items: center; gap: 4px; }
.odc-top-link { min-height: 43px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: var(--odc-radius-sm); color: #304249 !important; background: transparent; font: 600 14px/1 Barlow, sans-serif; white-space: nowrap; transition: color .16s ease, background .16s ease; }
.odc-top-link:hover, .odc-top-link.active, .odc-top-link[aria-current="page"], .odc-top-dropdown.show > .odc-top-link { color: var(--odc-ink) !important; text-decoration: none; background: #eaf4f1; }
.odc-top-link.active::after, .odc-top-link[aria-current="page"]::after { content: ""; position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; border-radius: 999px; background: var(--odc-mint-dark); }
.odc-top-link { position: relative; }
.odc-top-link i { color: var(--odc-petrol-2); font-size: 18px; }
.odc-menu-panel { width: 340px; margin-top: 10px; padding: 12px; border: 1px solid var(--odc-border); border-top: 3px solid var(--odc-mint); border-radius: var(--odc-radius); background: #fff; box-shadow: 0 22px 55px rgba(7,24,32,.16); }
.odc-menu-panel-wide { width: 680px; padding: 16px; display: none; grid-template-columns: 1fr 1fr; gap: 16px; }
.odc-top-dropdown.show > .odc-menu-panel-wide { display: grid; }
.odc-menu-heading { display: block; padding: 5px 10px 9px; color: var(--odc-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.odc-menu-panel .dropdown-item { min-height: 58px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 9px 10px; border-radius: var(--odc-radius-sm); color: var(--odc-text); white-space: normal; }
.odc-menu-panel .dropdown-item:hover, .odc-menu-panel .dropdown-item.active { color: var(--odc-ink); background: #eef5f3; }
.odc-menu-panel .dropdown-item i { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--odc-petrol-2); background: #e6f1ef; font-size: 19px; }
.odc-menu-panel .dropdown-item span { min-width: 0; display: grid; }
.odc-menu-panel .dropdown-item strong { font-size: 14px; font-weight: 600; }
.odc-menu-panel .dropdown-item small { color: var(--odc-muted); font-size: 12px; }
.odc-context-pill { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #b9d8d3; border-radius: 999px; color: var(--odc-petrol); background: #eff8f5; font-size: 12px; font-weight: 600; white-space: nowrap; }
.odc-context-pill i { color: var(--odc-mint-dark); font-size: 17px; }
.odc-user-button { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--odc-border); border-radius: 999px; color: var(--odc-text); background: #fff; font-weight: 600; }
.odc-user-avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--odc-ivory); background: var(--odc-petrol); font-size: 12px; }
.odc-page-wrapper { flex: 1; width: 100%; display: flex; flex-direction: column; padding-left: 0 !important; background: transparent; }

body.ui-modern .content-wrapper { flex: 1; width: 100%; padding: 30px 28px; background: transparent; }
body.ui-modern .content, body.ui-modern .content-wrapper > .content { width: 100%; max-width: 1480px; margin-inline: auto; }
body.ui-modern h1, body.ui-modern h2, body.ui-modern h3, body.ui-modern h4, body.ui-modern h5, body.ui-modern h6 { color: var(--odc-text); font-family: Barlow, Arial, sans-serif; font-weight: 600; letter-spacing: -.015em; }
body.ui-modern .content > .d-flex:first-child { margin-bottom: 24px !important; padding-bottom: 17px; border-bottom: 1px solid var(--odc-border); }
body.ui-modern .content > .d-flex:first-child::before { background: linear-gradient(90deg, var(--odc-petrol), var(--odc-mint)); }

body.ui-modern .card, body.ui-modern .modal-content, body.ui-modern .dropdown-menu { border: 1px solid var(--odc-border); border-radius: var(--odc-radius); background: var(--odc-white); box-shadow: var(--odc-shadow-sm); }
body.ui-modern .card { margin-bottom: 20px; }
body.ui-modern .card-header { min-height: 58px; padding: 17px 20px; border-bottom: 1px solid var(--odc-border); background: transparent; }
body.ui-modern .card-body { padding: 20px; }
body.ui-modern .card-footer { padding: 14px 20px; border-top: 1px solid var(--odc-border); background: #f7f9f8; }
.odc-card-summary { border-top: 3px solid var(--odc-petrol) !important; }
.odc-card-kpi { position: relative; overflow: hidden; }
.odc-card-kpi::after { content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 3px; background: var(--odc-mint); }
.odc-card-priority { border-left: 4px solid var(--odc-critical) !important; }
.odc-card-technical { background: #f8faf9 !important; }

body.ui-modern .btn { min-height: 40px; padding: 9px 15px; border-radius: var(--odc-radius-sm); font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; }
body.ui-modern .btn-primary { color: var(--odc-ink); border-color: var(--odc-mint); background: var(--odc-mint); }
body.ui-modern .btn-primary:hover, body.ui-modern .btn-primary:focus { color: #fff; border-color: var(--odc-petrol-2); background: var(--odc-petrol-2); }
body.ui-modern .btn-secondary { color: #fff; border-color: var(--odc-petrol); background: var(--odc-petrol); }
body.ui-modern .btn-outline-primary { color: var(--odc-petrol); border-color: #8eb9b5; background: #fff; }
body.ui-modern .btn-outline-primary:hover { color: #fff; border-color: var(--odc-petrol-2); background: var(--odc-petrol-2); }
body.ui-modern .btn-link { color: var(--odc-petrol-2); }
body.ui-modern .btn-link:hover { color: var(--odc-mint-dark); }
body.ui-modern .btn-light { color: var(--odc-text); border-color: var(--odc-border); background: #f2f5f4; }
body.ui-modern .btn-danger { color: #fff; border-color: var(--odc-critical); background: var(--odc-critical); }

body.ui-modern .badge { padding: 6px 9px; border-radius: 999px; font-weight: 600; }
body.ui-modern .badge-success, body.ui-modern .bg-success { background-color: var(--odc-success) !important; }
body.ui-modern .badge-warning, body.ui-modern .bg-warning { color: var(--odc-text); background-color: #fbe4b7 !important; }
body.ui-modern .badge-danger, body.ui-modern .bg-danger { background-color: var(--odc-critical) !important; }
body.ui-modern .badge-info, body.ui-modern .bg-info { background-color: var(--odc-info) !important; }

body.ui-modern label { margin-bottom: 7px; color: #34474d; font-weight: 600; }
body.ui-modern .form-control, body.ui-modern .custom-select { min-height: 43px; border: 1px solid var(--odc-border-strong); border-radius: var(--odc-radius-sm); color: var(--odc-text); background-color: #fff; }
body.ui-modern textarea.form-control { min-height: 105px; }
body.ui-modern .form-control:focus, body.ui-modern .custom-select:focus { border-color: var(--odc-petrol-2); box-shadow: 0 0 0 3px rgba(53,224,181,.18); }
body.ui-modern .form-control::placeholder { color: #8b999d; }

body.ui-modern table { color: var(--odc-text); }
body.ui-modern .table thead th { padding: 13px 14px; border-top: 0; border-bottom: 1px solid var(--odc-border-strong); color: #64757a; background: #edf2f2; font-size: 11px; letter-spacing: .075em; text-transform: uppercase; }
body.ui-modern .table td { padding: 15px 14px; border-top-color: var(--odc-border); vertical-align: middle; }
body.ui-modern .table tbody tr { transition: background .14s ease; }
body.ui-modern .table tbody tr:hover { background: #f0f8f6; }
body.ui-modern .dataTables_filter input, body.ui-modern .dataTables_length select { border-color: var(--odc-border-strong); border-radius: var(--odc-radius-sm); }
body.ui-modern .dataTables_wrapper { max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
body.ui-modern .dataTables_wrapper > .row { min-width: 0; }
body.ui-modern .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.ui-modern .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color: var(--odc-ink) !important; border-color: var(--odc-mint); background: var(--odc-mint); }

body.ui-modern .cyber-admin-kpi { overflow: hidden; border-top: 3px solid var(--odc-petrol-2) !important; }
body.ui-modern .cyber-admin-kpi::before { display: none; }
body.ui-modern .cyber-admin-kpi-icon { color: var(--odc-petrol-2) !important; background: #e8f3f1 !important; }

body.ui-modern .nav-tabs { gap: 4px; border-bottom-color: var(--odc-border); }
body.ui-modern .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: var(--odc-radius-sm) var(--odc-radius-sm) 0 0; color: var(--odc-muted); font-weight: 600; }
body.ui-modern .nav-tabs .nav-link.active { color: var(--odc-petrol); border-bottom-color: var(--odc-mint-dark); background: #edf5f3; }

body.ui-modern .modal { z-index: 1060; padding-top: calc(var(--odc-header-height) + 14px); }
body.ui-modern .modal-backdrop { z-index: 1050; }
body.ui-modern .modal-dialog { margin-top: 0; }
body.ui-modern .modal-content { overflow: hidden; box-shadow: 0 28px 80px rgba(7,24,32,.22); }
body.ui-modern .modal-header, body.ui-modern .modal-footer { border-color: var(--odc-border); }

.odc-empty-state { padding: 42px 24px; text-align: center; color: var(--odc-muted); }
.odc-empty-state i { display: block; margin-bottom: 10px; color: var(--odc-petrol-2); font-size: 32px; }
.odc-skeleton { position: relative; overflow: hidden; min-height: 18px; border-radius: 6px; background: #e8eeee; }
.odc-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: odcSkeleton 1.35s infinite; }
@keyframes odcSkeleton { to { transform: translateX(100%); } }

.odc-footer { width: 100%; margin-top: auto !important; padding: 0 28px 20px; background: transparent; }
.odc-footer .copyright { max-width: 1480px; margin: 0 auto; padding: 17px 20px; border-top: 1px solid var(--odc-border); color: var(--odc-muted); background: transparent; }
.odc-footer p { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; }
.odc-footer-links { display: flex; gap: 20px; }
.odc-toast-region { position: fixed; z-index: 2000; right: 22px; bottom: 22px; width: min(390px, calc(100vw - 32px)); display: grid; gap: 10px; }
.odc-inline-toast { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid var(--odc-border); border-left: 4px solid var(--odc-info); border-radius: var(--odc-radius-sm); color: var(--odc-text); background: #fff; box-shadow: var(--odc-shadow); }
.odc-inline-toast.is-success { border-left-color: var(--odc-success); }
.odc-inline-toast.is-error { border-left-color: var(--odc-critical); }
.odc-system-dialog .odc-dialog-message:empty { display: none; }

body.ui-auth { background: radial-gradient(circle at 15% 10%, rgba(53,224,181,.12), transparent 30%), var(--odc-ivory); }
.odc-auth-layout { min-height: 100vh; padding-block: 32px; }
body.ui-auth .card { overflow: hidden; border-top: 3px solid var(--odc-mint); box-shadow: 0 28px 70px rgba(7,24,32,.14); }
body.ui-auth .auth-brand-header { padding-top: 30px; background: #fff; }
body.ui-auth .auth-brand-logo { width: 132px; max-width: 42vw; height: auto; object-fit: contain; }
body.ui-auth .card-body { padding-top: 28px !important; }
body.ui-auth .card-body h4 { margin-bottom: 28px !important; color: var(--odc-ink) !important; font-size: 25px; }
body.ui-auth label { display: block; }
body.ui-auth .input-lg { min-height: 50px; }

@media (max-width: 1199.98px) {
  .odc-topnav { padding-inline: 20px; }
  .odc-menu-toggle { display: grid; place-items: center; }
  body.ui-modern .odc-main-menu { position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100vh - var(--odc-header-height)); overflow-y: auto; display: none; align-items: stretch; padding: 16px 20px 22px; border-bottom: 1px solid var(--odc-border); background: #fff; box-shadow: 0 22px 40px rgba(7,24,32,.13); }
  body.ui-modern.odc-menu-open .odc-main-menu { display: block; }
  .odc-menu-links { align-items: stretch; flex-direction: column; }
  .odc-top-link { width: 100%; justify-content: space-between; }
  .odc-top-dropdown { width: 100%; }
  .odc-menu-panel, .odc-menu-panel-wide { position: static !important; width: 100%; margin: 4px 0 8px; transform: none !important; box-shadow: none; }
  .odc-top-dropdown.show > .odc-menu-panel-wide { grid-template-columns: 1fr 1fr; }
  .odc-header-tools { justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--odc-border); }
}
@media (max-width: 767.98px) {
  .odc-header { --odc-header-height: 68px; }
  .odc-topnav { padding-inline: 14px; gap: 12px; }
  .odc-brand img { width: 94px; height: 36px; }
  .odc-main-menu { padding-inline: 14px; }
  .odc-top-dropdown.show > .odc-menu-panel-wide { display: block; }
  .odc-menu-column + .odc-menu-column { margin-top: 14px; }
  .odc-user-name { display: none; }
  body.ui-modern .content-wrapper { padding: 20px 14px; }
  body.ui-modern .card-body { padding: 16px; }
  body.ui-modern .table-responsive { border: 0; }
  body.ui-modern .dataTables_wrapper { padding-bottom: 4px; }
  body.ui-modern .modal { padding: 76px 8px 8px !important; }
  body.ui-modern .modal-dialog { margin: 0 auto; }
  .odc-footer { padding: 0 14px 14px; }
  .odc-footer p { align-items: flex-start; flex-direction: column; }
  .odc-footer-links { flex-wrap: wrap; gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
