/* ===== MAFAR DTS global skin Ã¢â‚¬â€ restyle Aurora components to the flat design =====
   Loaded last so it overrides theme.css. Only visual props (color/border/radius/type)
   are set; layout dimensions of the shell are left intact. */

body{background:#F7F9FB;color:#0F172A;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.page-wrapper,.page-container{background:#F7F9FB}

/* ---- top bar ---- */
.header-desktop{background:#FFFFFF !important;border-bottom:1px solid #E2E8F0;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.header-desktop .header-wrap > span{color:#475569 !important;font-weight:500}
.header-desktop .account-wrap a{color:#0F172A !important;font-weight:600}
.header-desktop .account-wrap a:hover{color:#0B6B3A !important}
.account-dropdown{background:#fff;border:1px solid #E2E8F0;border-radius:10px;box-shadow:0 10px 28px rgba(16,24,40,.12);overflow:hidden}
.account-dropdown__item a,.account-dropdown__footer a{color:#0F172A}
.account-dropdown__item a:hover,.account-dropdown__footer a:hover{background:#F1F5F9}

/* ---- mobile header bar ---- */
.header-mobile__bar .container-fluid{background:#0B6B3A !important}

/* ---- sidebar ---- */
.menu-sidebar{background:#FFFFFF;border-right:1px solid #E2E8F0}
.menu-sidebar .logo{background:#0B6B3A !important;border-bottom:1px solid #095A31}
.navbar-sidebar{background:#FFFFFF !important;color:#0F172A !important}
.navbar__list > li > a{color:#0F172A;font-weight:500;border-radius:8px;margin:2px 8px;padding:10px 12px;display:flex;align-items:center;gap:10px;transition:background .15s}
.navbar__list > li > a i{color:#64748B;width:18px;text-align:center}
.navbar__list > li > a:hover{background:#F1F5F9;color:#0F172A;text-decoration:none}
.navbar__list > li.active > a{background:#E7F3EC;color:#0B6B3A;font-weight:600}
.navbar__list > li.active > a i{color:#0B6B3A}

/* ---- content ---- */
.section__content--p30{padding:24px}
.title-1{font-size:22px;font-weight:600;color:#0F172A;letter-spacing:-.01em;margin-bottom:0}
.overview-wrap{margin-bottom:0}
.copyright p{color:#94A3B8;font-size:12px;margin:0}

/* ---- cards ---- */
.card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 1px 3px rgba(16,24,40,.06)}
.card-header{background:#fff;border-bottom:1px solid #EEF2F7;padding:16px 20px}
.card-header strong{font-weight:600;color:#0F172A}
.card-body{padding:20px}
.card-footer{background:#fff;border-top:1px solid #EEF2F7;padding:14px 20px}

/* ---- buttons ---- */
.btn{border-radius:8px;font-weight:500;border:1px solid #E2E8F0;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-primary{background:#0B6B3A !important;border-color:#0B6B3A !important;color:#fff !important}
.btn-primary:hover,.btn-primary:focus{background:#095A31 !important;border-color:#095A31 !important;color:#fff !important}
.btn-danger{background:#B91C1C !important;border-color:#B91C1C !important;color:#fff !important}
.btn-danger:hover{background:#991B1B !important;border-color:#991B1B !important}
.btn-success{background:#15803D !important;border-color:#15803D !important;color:#fff !important}
.btn-secondary{background:#fff !important;border-color:#E2E8F0 !important;color:#0F172A !important}
.btn-sm{height:32px;padding:0 12px;font-size:13px;border-radius:6px}

/* ---- forms ---- */
.form-control{border:1px solid #E2E8F0;border-radius:8px;color:#0F172A;background:#fff;min-height:40px;padding:8px 12px}
.form-control:focus{border-color:#0B6B3A;box-shadow:0 0 0 3px #E7F3EC}
select.form-control{height:40px}
label{color:#475569;font-weight:500}
.form-text,.help-block{color:#64748B;font-size:12px}
.form-group{margin-bottom:1rem}

/* ---- tables ---- */
.table{color:#0F172A;margin-bottom:0}
.table thead th{background:#F8FAFC;color:#64748B;font-weight:600;font-size:13px;border-bottom:1px solid #E2E8F0;white-space:nowrap}
.table td{border-top:1px solid #EEF2F7;font-size:13px;vertical-align:middle}
.table tbody tr:hover{background:#F8FAFC}
.table-bordered,.table-bordered td,.table-bordered th{border-color:#EEF2F7}

/* ---- alerts ---- */
.alert{border-radius:10px;border:1px solid transparent;padding:10px 14px}
.alert-danger{background:#FEE2E2;color:#B91C1C;border-color:#FECACA}
.alert-success{background:#DCFCE7;color:#15803D;border-color:#BBF7D0}
.alert-warning{background:#FEF3C7;color:#B45309;border-color:#FDE68A}
.alert-info{background:#DBEAFE;color:#1D4ED8;border-color:#BFDBFE}

/* ---- badges ---- */
.badge{border-radius:999px;font-weight:600;padding:.35em .7em}

/* ---- pagination (overrides the inline #pagination styles in header.php) ---- */
#pagination a,.pagination a{font-family:inherit !important;font-size:13px !important;color:#0F172A !important;
  background:#fff !important;border:1px solid #E2E8F0 !important;border-radius:6px !important;padding:6px 10px !important;text-decoration:none !important}
#pagination a:hover,.pagination a:hover{background:#F1F5F9 !important}

/* ---- sidebar refinements ---- */
.menu-sidebar .logo{display:flex;align-items:center;justify-content:center;height:72px;padding:0}
.menu-sidebar .logo img{max-height:36px;width:auto}
.navbar__list{padding:8px 0 16px}
.navbar__list > li > a br{display:none}
.navbar__list > li.has-sub > a::after{display:none !important}
.navbar__list > li.active > a{box-shadow:inset 3px 0 0 #0B6B3A}
.navbar__list > li > a sup{color:#B91C1C;font-weight:700}

/* ---- table refinements ---- */
.table-responsive{border-radius:12px}
.table td{vertical-align:middle}
.table th.text-right,.table td.text-right{text-align:right}
.card .table{margin-bottom:0}
.dts-card .table{margin-bottom:0}

/* ===== Sidebar header (real seal + wordmark) + collapsible ===== */
.header-desktop .header-wrap{display:flex;align-items:center;justify-content:space-between}
.dts-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.dts-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #E2E8F0;background:#fff;border-radius:8px;color:#0F172A;cursor:pointer;flex:none}
.dts-toggle:hover{background:#F1F5F9}
.menu-sidebar{transition:transform .18s ease}

.menu-sidebar .logo{background:#0B6B3A !important;height:auto;min-height:72px;padding:12px 16px;display:flex;align-items:center;
  box-shadow:none !important;border-right:0 !important;border-bottom:1px solid #095A31}
.dts-sidebar-brand{display:flex;align-items:center;gap:10px;text-decoration:none;width:100%;min-width:0}
.dts-sidebar-brand img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:8px;padding:2px;flex:none}
.dts-sidebar-brand__text{line-height:1.15;min-width:0}
.dts-sidebar-brand__text strong{display:block;color:#fff;font-size:15px;font-weight:700;letter-spacing:.02em}
.dts-sidebar-brand__text small{display:block;color:rgba(255,255,255,.85);font-size:10.5px;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.menu-sidebar .navbar-sidebar{padding:12px 0}
.menu-sidebar .navbar-sidebar .navbar__list > li > a{display:flex;align-items:center;gap:10px;color:#334155;font-size:14px;font-weight:500;padding:10px 12px;margin:2px 8px;border-radius:8px}
.menu-sidebar .navbar-sidebar .navbar__list > li > a i{margin-right:0;color:#64748B;width:18px;text-align:center;flex:none}
.menu-sidebar .navbar-sidebar .navbar__list > li > a:hover{background:#F1F5F9;color:#0F172A;text-decoration:none}
.menu-sidebar .navbar-sidebar .navbar__list > li.active > a{background:#E7F3EC;color:#0B6B3A;font-weight:600;box-shadow:inset 3px 0 0 #0B6B3A}
.menu-sidebar .navbar-sidebar .navbar__list > li.active > a i{color:#0B6B3A}

/* collapsed (off-canvas) state */
html.dts-collapsed .menu-sidebar{transform:translateX(-100%)}
html.dts-collapsed .page-container{padding-left:0}
html.dts-collapsed .header-desktop{left:0 !important}
@media(max-width:767px){.dts-toggle{display:none}}

/* ---- sidebar header/nav refinements (from visual review) ---- */
.menu-sidebar .logo{height:75px;min-height:75px;padding:0 12px 0 16px;justify-content:space-between;gap:10px;background:#0B6B3A !important;border-bottom:1px solid #095A31;box-shadow:none !important;border-right:0 !important}
.dts-sidebar-brand img{width:38px;height:38px;background:#fff;border-radius:50%;padding:2px}
.menu-sidebar .navbar-sidebar .navbar__list > li > a{position:relative;font-family:inherit;min-height:40px}
.menu-sidebar .navbar-sidebar .navbar__list > li > a i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:15px;line-height:1;transform:translateY(.5px)}
.menu-sidebar .navbar-sidebar .navbar__list > li.active > a{box-shadow:none}
.menu-sidebar .navbar-sidebar .navbar__list > li.active > a::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 2px 2px 0;background:#0B6B3A}
.dts-count{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 6px;border-radius:999px;background:#FEE2E2;color:#991B1B;font-size:11px;font-weight:700;line-height:1}
.menu-sidebar .navbar-sidebar .navbar__list > li.active .dts-count{background:#0B6B3A;color:#fff}
.dts-sidebar-toggle{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border:0;border-radius:6px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.dts-sidebar-toggle:hover{background:rgba(255,255,255,.24)}

/* ---- top bar composition ---- */
.header-desktop .header-wrap{height:100%}
.header-desktop .header-button{display:flex;align-items:center}
.dts-topbar-right{display:flex;align-items:center;gap:16px}
.dts-role{background:#E7F3EC;color:#0B6B3A;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;white-space:nowrap;line-height:1.4}
.header-desktop .account-wrap{line-height:1}
.header-desktop .account-wrap .js-acc-btn{color:#0F172A !important;font-weight:600}
.header-desktop .account-wrap .js-acc-btn:hover{color:#0B6B3A !important}

/* Show the top-bar Ã¢ËœÂ° only when the sidebar is collapsed */
html:not(.dts-collapsed) .header-desktop .dts-toggle{display:none !important}
html.dts-collapsed .header-desktop .dts-toggle{display:inline-flex !important}
@media(max-width:767px){ .header-desktop .dts-toggle{display:none !important} }

/* ---- avatars ---- */
.dts-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#E7F3EC;color:#0B6B3A;font-size:13px;font-weight:700;flex:none;border:1px solid #E2E8F0}
img.dts-avatar{background:#fff}
.dts-avatar--ini{background:#E7F3EC;color:#0B6B3A}
.header-desktop .account-item{display:flex;align-items:center}
.header-desktop .account-item .content{margin-left:0}
.header-desktop .js-acc-btn{display:inline-flex;align-items:center;gap:10px;min-height:40px}
.dts-acc-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #EEF2F7}
.dts-acc-head .dts-avatar{width:34px;height:34px}
.dts-acc-role{color:#64748B;font-size:12px;margin-top:2px}
.dts-avatar-img{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block;margin:4px auto 12px;border:1px solid #E2E8F0;background:#fff}
.dts-avatar-upload{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dts-avatar-upload .dts-avatar-lg{flex:none;margin:0}
.dts-avatar-picker{position:relative;width:72px;height:72px;flex:none}
.dts-avatar-picker .dts-avatar-img,.dts-avatar-picker .dts-avatar-lg{width:72px;height:72px;margin:0}
.dts-avatar-edit{position:absolute;right:-6px;bottom:-6px;width:28px;height:28px;border-radius:50%;background:#0B6B3A;color:#fff;display:grid;place-items:center;border:2px solid #fff;cursor:pointer;overflow:hidden;font-size:11px;line-height:1}
.dts-avatar-edit:hover{background:#095A31}
.dts-avatar-edit i{pointer-events:none}
.dts-avatar-edit input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.dts-avatar-side{display:flex;flex-direction:column;gap:6px;min-width:0;justify-content:center}

.dts-avatar-edit:focus-within{outline:2px solid #0B6B3A;outline-offset:2px}

/* center the profile-photo block */
.dts-avatar-upload{flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}
.dts-avatar-side{align-items:center;text-align:center;justify-content:center}

/* ===== mobile header brand + nav ===== */
.header-mobile__bar{padding:10px 0}
.header-mobile-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dts-mobile-brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.dts-mobile-brand img{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:50%;padding:2px;flex:none}
.dts-mobile-brand__text strong{display:block;color:#fff;font-size:14px;font-weight:700;letter-spacing:.03em;line-height:1.1}
.dts-mobile-brand__text small{display:block;color:rgba(255,255,255,.85);font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navbar-mobile .navbar__list{padding:6px 0}
.navbar-mobile .navbar__list > li > a{display:flex;align-items:center;gap:10px;color:#334155;font-size:14px;font-weight:500;padding:11px 16px;text-decoration:none}
.navbar-mobile .navbar__list > li > a i{width:18px;text-align:center;color:#64748B;margin:0;flex:none}
.navbar-mobile .navbar__list > li.active > a{background:#E7F3EC;color:#0B6B3A;font-weight:600}
.navbar-mobile .navbar__list > li.active > a i{color:#0B6B3A}

@media(max-width:767px){
  .header-desktop{display:none !important}
  .page-container{top:0 !important;padding-left:0 !important}
  .main-content{padding-top:70px !important;padding-bottom:32px !important}
  .header-mobile{position:absolute;top:0;left:0;right:0;z-index:5}
}

/* ===== mobile header: full-bleed green + clean burger ===== */
.header-mobile__bar{background:#0B6B3A !important;padding:8px 0 !important;box-shadow:none !important}
.header-mobile__bar .container-fluid{background:#0B6B3A !important;padding-left:14px !important;padding-right:8px !important}
.header-mobile-inner{padding:0 !important}
.header-mobile .hamburger{background:transparent !important;width:40px !important;height:40px !important;box-shadow:none !important;border:0 !important}
.header-mobile .hamburger .hamburger-box .hamburger-inner,
.header-mobile .hamburger .hamburger-box .hamburger-inner::before,
.header-mobile .hamburger .hamburger-box .hamburger-inner::after{background:#fff !important}
.header-mobile .navbar-mobile{top:56px !important}body{margin:0}

/* ===== fluid/compact content on small screens ===== */
@media(max-width:768px){
  .section__content--p30{padding:14px}
  .content{padding:14px}
  .dts-card{padding:18px}
  .dts-kpi{padding:14px}
  .dts-kpi__num{font-size:24px;margin-top:4px}
  .dts-pg-head{margin-bottom:12px}
  .dts-page{padding-bottom:12px}
  .table th,.table td{padding:8px 10px;font-size:12px}
  .card-body{padding:16px}
  .card-header,.card-footer{padding:12px 16px}
}

/* ===== collapsible sidebar: smooth mini-rail animation ===== */
@media (min-width:768px){
  .menu-sidebar{transition:width .24s cubic-bezier(.4,0,.2,1)}
  html.dts-collapsed .menu-sidebar{width:74px;transform:none}
  .page-container{transition:padding-left .24s cubic-bezier(.4,0,.2,1)}
  html.dts-collapsed .page-container{padding-left:74px}
  .header-desktop{transition:left .24s cubic-bezier(.4,0,.2,1)}
  html.dts-collapsed .header-desktop{left:74px !important}
  html.dts-collapsed .dts-sidebar-brand{justify-content:center}
  html.dts-collapsed .dts-sidebar-brand__text{display:none}
  html.dts-collapsed .menu-sidebar .logo{justify-content:center;padding:0 8px}
  html.dts-collapsed .dts-sidebar-toggle{display:none}
  html.dts-collapsed .menu-sidebar .navbar-sidebar .navbar__list > li > a{font-size:0;justify-content:center;gap:0;padding:10px 0}
  html.dts-collapsed .menu-sidebar .navbar-sidebar .navbar__list > li > a i{font-size:16px;width:auto}
  html.dts-collapsed .dts-count{display:none}
}
@media (prefers-reduced-motion: reduce){
  .menu-sidebar,.page-container,.header-desktop{transition:none !important}
}

/* ===== smoother collapse: fade/shrink instead of snapping ===== */
.menu-sidebar{overflow-x:hidden}
.menu-sidebar .navbar-sidebar .navbar__list > li > a{transition:font-size .2s ease, gap .2s ease, padding .24s ease}
.dts-sidebar-brand__text{max-width:220px;overflow:hidden;white-space:nowrap;transition:opacity .18s ease, max-width .26s cubic-bezier(.4,0,.2,1)}
html.dts-collapsed .dts-sidebar-brand__text{display:block !important;opacity:0;max-width:0}
.dts-sidebar-toggle{overflow:hidden;transition:opacity .18s ease, width .26s cubic-bezier(.4,0,.2,1), padding .26s ease}
html.dts-collapsed .dts-sidebar-toggle{display:inline-grid !important;opacity:0;width:0;padding:0;border:0}
.dts-count{transition:opacity .18s ease}
html.dts-collapsed .menu-sidebar .navbar-sidebar .navbar__list > li > a i{transition:none}

/* ===== shell stays desktop down to 768px ===== */
@media(min-width:768px){
  .header-mobile{display:none !important}
  .menu-sidebar{display:block !important}
  .header-desktop{display:block !important;position:fixed;top:0;left:300px;right:0;height:75px}
  html.dts-collapsed .header-desktop{left:74px !important}
  .page-container{position:relative;padding-left:300px !important;top:0 !important}
  html.dts-collapsed .page-container{padding-left:74px !important}
  .main-content{padding-top:100px !important;padding-bottom:30px !important}
}
/* keep the account trigger visible at tablet widths (theme hid it 992-1199) */
.header-desktop .account-item > .content{display:flex !important}

/* keep the fixed sidebar painted above the page container */
.menu-sidebar{z-index:10}
@media(min-width:768px){
  .page-container{position:static !important;top:auto !important}
}

/* keep the top bar in a row and account right-aligned at tablet widths (theme stacks it <=991) */
@media(min-width:768px){
  .header-desktop .header-wrap{flex-direction:row !important;align-items:center !important}
  .header-desktop .header-button{width:auto !important;margin-top:0 !important;margin-left:auto !important;justify-content:flex-end !important}
}

/* ===== modern data tables (all .table-responsive data tables) ===== */
.table-responsive{overflow:auto;max-height:70vh;-webkit-overflow-scrolling:touch;border:1px solid #EEF2F7;border-radius:12px;background:#fff}
.table-responsive > .table{margin-bottom:0}
.table.table-data3,.table.table-borderless{width:100%;border-collapse:separate;border-spacing:0}
.table.table-data3 > thead > tr > th,.table.table-borderless > thead > tr > th{background:#F8FAFC !important;color:#64748B !important;font-weight:600;font-size:13px;border:0 !important;border-bottom:1px solid #E2E8F0 !important;padding:11px 14px !important;position:sticky;top:0;z-index:2;white-space:nowrap}
.table.table-data3 > tbody > tr > td,.table.table-borderless > tbody > tr > td{background:transparent;border:0 !important;border-top:1px solid #EEF2F7 !important;padding:11px 14px !important;font-size:13px;color:#0F172A;vertical-align:middle}
.table.table-data3 > tbody > tr:first-child > td,.table.table-borderless > tbody > tr:first-child > td{border-top:0 !important}
.table.table-data3 > tbody > tr:hover > td,.table.table-borderless > tbody > tr:hover > td{background:#F8FAFC}
.table-responsive > .table.table-data3{min-width:600px}
.table-data-feature{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.table-data-feature .item{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#F1F5F9;color:#475569;text-decoration:none;font-size:15px}
.table-data-feature .item:hover{background:#E7F3EC;color:#0B6B3A;text-decoration:none}
@media(max-width:768px){.table-responsive{max-height:none}.table-responsive > .table.table-data3{min-width:560px}}

/* ===== modern pagination ===== */
.pagination{display:flex;flex-wrap:wrap;gap:4px;align-items:center;list-style:none;padding:0;margin:0}
.pagination .page-item{list-style:none}
.pagination .page-item > a,.pagination .page-item > span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid #E2E8F0;border-radius:8px;background:#fff;color:#475569;font-size:13px;font-weight:500;text-decoration:none;line-height:1}
.pagination .page-item > span > a{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center;color:inherit;text-decoration:none}
.pagination .page-item > a:hover,.pagination .page-item > span:hover{border-color:#CBD5E1;background:#F8FAFC;color:#0F172A}
.pagination .page-item.active > a{background:#0B6B3A;border-color:#0B6B3A;color:#fff;font-weight:600}
.pagination .page-item.disabled > a,.pagination .page-item.disabled > span{color:#CBD5E1;background:#F8FAFC}
/* ===== consistent flat action buttons ===== */
.btn{height:40px;padding:0 14px}
.btn-sm{height:32px;padding:0 12px}
.btn-success{background:#0B6B3A !important;border-color:#0B6B3A !important;color:#fff !important}
.btn-info{background:#fff !important;border-color:#E2E8F0 !important;color:#0F172A !important}
.btn-info:hover{background:#F1F5F9 !important;border-color:#CBD5E1 !important;color:#0F172A !important}
.btn-danger{background:#FEE2E2 !important;border-color:#FECACA !important;color:#B91C1C !important}
.btn-danger:hover{background:#FECACA !important;border-color:#FCA5A5 !important;color:#991B1B !important}
.btn i,.btn .zmdi{margin-right:6px}

/* ===== form/detail content pages (view/edit/add) ===== */
.overview-wrap{margin:0 0 10px}
.overview-wrap .title-1{font-size:22px;font-weight:600;color:#0F172A;letter-spacing:-.01em}
.card-header strong{font-size:15px;font-weight:600}
.card-body .row.form-group{margin-bottom:12px}
.card-body label{color:#475569;font-weight:500;text-align:left !important}
.card-body .form-control-static{margin:0;padding:2px 0;font-weight:500;color:#0F172A;word-break:break-word}
.card-footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.card-footer .btn{width:auto !important;min-width:96px}
@media(max-width:767px){.card-body .row.form-group > .col-md-3{text-align:left !important}}

/* ===== destructive POST forms (table row actions + inline) ===== */
.table-data-feature form{display:inline-flex;margin:0}
.table-data-feature button.item{border:0;cursor:pointer;padding:0;font-family:inherit;line-height:1}
.table-data-feature button.item:focus{outline:2px solid #0B6B3A;outline-offset:2px}
.dts-inline-form{display:inline-block;margin:0;vertical-align:middle}
.dts-inline-form .btn{padding:0 14px}

/* ===== document trail timeline ===== */
.dts-trail-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:22px}
.dts-stat{background:#F8FAFC;border:1px solid #EEF2F7;border-radius:12px;padding:14px 16px}
.dts-stat .label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748B;font-weight:700;margin-bottom:7px;display:flex;align-items:center;gap:6px}
.dts-stat .value{font-size:18px;font-weight:700;color:#0F172A;line-height:1.25;word-break:break-word}
.dts-stat .sub{font-size:12px;color:#64748B;margin-top:4px}
.dts-stat.is-code .value{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;letter-spacing:.02em}
.dts-office-summary{margin:4px 0 26px}
.dts-office-summary h4{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748B;font-weight:700;margin:0 0 10px;display:flex;align-items:center;gap:7px}
.dts-office-list{display:flex;flex-wrap:wrap;gap:10px}
.dts-office-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #E2E8F0;border-radius:10px;padding:10px 12px;min-width:210px}
.dts-office-chip .oc-ic{width:30px;height:30px;border-radius:8px;background:#E7F3EC;color:#0B6B3A;display:flex;align-items:center;justify-content:center;font-size:13px;flex:0 0 auto}
.dts-office-chip .oc-name{font-size:13px;font-weight:600;color:#0F172A;line-height:1.15}
.dts-office-chip .oc-meta{font-size:11px;color:#94A3B8}
.dts-office-chip .oc-time{margin-left:auto;font-size:13px;font-weight:700;color:#0B6B3A;white-space:nowrap}
.dts-timeline{position:relative;margin:0;padding:0;list-style:none}
.dts-tl-item{position:relative;padding:0 0 18px 46px}
.dts-tl-item:not(:last-child)::before{content:"";position:absolute;left:15px;top:30px;bottom:0;width:2px;background:#E2E8F0}
.dts-tl-marker{position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;z-index:1;box-shadow:0 0 0 3px #fff}
.dts-tl-created .dts-tl-marker{background:#0B6B3A}
.dts-tl-forwarded .dts-tl-marker{background:#2563EB}
.dts-tl-received .dts-tl-marker{background:#0EA5A4}
.dts-tl-body{background:#fff;border:1px solid #EEF2F7;border-radius:12px;padding:12px 14px;transition:border-color .15s ease,box-shadow .15s ease}
.dts-tl-body:hover{border-color:#DBE4EE;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.dts-tl-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.dts-tl-step{font-size:11px;font-weight:700;color:#94A3B8;border:1px solid #E2E8F0;border-radius:999px;padding:1px 8px}
.dts-tl-title{font-size:14px;font-weight:700;color:#0F172A}
.dts-tl-time{margin-left:auto;font-size:12px;color:#475569;font-variant-numeric:tabular-nums;white-space:nowrap}
.dts-tl-time i{color:#94A3B8;margin-right:2px}
.dts-tl-detail{margin-top:7px;font-size:13px;color:#334155;line-height:1.55}
.dts-tl-detail strong{color:#0F172A;font-weight:600}
.dts-tl-rem{display:block;margin-top:4px;color:#64748B;font-style:italic;font-size:12px}
.dts-tl-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.dts-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;background:#F1F5F9;color:#475569}
.dts-badge.is-gap{background:#EEF2FF;color:#3730A3}
.dts-badge.is-dwell{background:#E7F3EC;color:#0B6B3A}
.dts-badge.is-transit{background:#E0F2FE;color:#0369A1}
.dts-tl-attach{margin-top:9px;font-size:12px;color:#64748B}
.dts-tl-attach a{display:inline-flex;align-items:center;gap:5px;color:#0B6B3A;font-weight:600;margin-left:4px}
.dts-tl-empty{list-style:none;color:#64748B;font-size:13px;padding:8px 0}
@media(max-width:600px){
  .dts-tl-item{padding-left:40px}
  .dts-tl-time{margin-left:0;flex:0 0 100%}
  .dts-office-chip{min-width:0;width:100%}
}

/* ===== document trail polish (v2) ===== */
.dts-trail-header{display:flex;flex-direction:column;gap:3px;padding-top:14px;padding-bottom:14px}
.dts-trail-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:17px;font-weight:700;color:#0F172A;letter-spacing:.02em;display:flex;align-items:center;gap:8px;word-break:break-all;line-height:1.25}
.dts-trail-code i{color:#0B6B3A;font-size:14px;flex:0 0 auto}
.dts-trail-sub{font-size:12px;color:#5B6B7C;line-height:1.35}
.dts-trail-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.dts-stat .label{font-size:12px;color:#475569}
.dts-office-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;align-items:stretch}
.dts-office-chip{min-width:0;width:100%;height:100%}
.dts-office-chip .oc-meta{color:#64748B}
.dts-tl-item:not(:last-child)::before{background:#CBD5E1;width:2px}
.dts-tl-step{color:#64748B}
.dts-tl-time{color:#475569}
@media(max-width:1199px){.dts-trail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.dts-trail-summary{grid-template-columns:1fr}}

/* ===== document trail mobile stat tightening ===== */
.dts-stat .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){
  .dts-stat{padding:12px 12px}
  .dts-stat .value{font-size:15px}
  .dts-stat .label{font-size:11px;letter-spacing:.03em;gap:5px}
}

/* ===== document detail views: clean two-column layout ===== */
.card-body .row.form-group > [class*="col-"]:first-child { text-align: left !important; }
.card-body .row.form-group > [class*="col-"]:first-child label {
  display: block; text-align: left !important; font-weight: 600; color: #475569; margin-bottom: 2px;
}
.card-body .row.form-group { align-items: flex-start; }
.card-body .row.form-group span { text-decoration: none !important; }
.card-body .row.form-group img[src*="barcode.php/"] { display: block; width: 100%; max-width: 240px; height: auto; }
/* softer Edit (btn-warning) to match the palette */
.btn-warning { background: #FEF3C7 !important; border-color: #FDE68A !important; color: #92400E !important; }
.btn-warning:hover { background: #FDE68A !important; border-color: #FCD34D !important; color: #78350F !important; }

/* ===== collapsed mini-rail: truly center the seal (remove flex gap offsets) ===== */
@media (min-width:768px){
  html.dts-collapsed .menu-sidebar .logo{ gap: 0 !important; justify-content: center !important; }
  html.dts-collapsed .dts-sidebar-brand{ gap: 0 !important; justify-content: center !important; }
  html.dts-collapsed .dts-sidebar-brand__text{ width: 0 !important; min-width: 0 !important; max-width: 0 !important; margin: 0 !important; padding: 0 !important; }
  html.dts-collapsed .dts-sidebar-brand img{ margin: 0 auto !important; }
}

/* ===== topbar account: name on top, position below; role pill removed ===== */
.dts-acc-meta{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.dts-acc-meta .dts-acc-name{font-weight:600;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dts-acc-pos{font-size:11px;font-weight:500;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}

/* ============================================================
   Dashboard + auth refresh (appended)
   ============================================================ */

/* ---- shared dashboard bits ---- */
.dts-page > .dts-card{margin-top:18px}
.dts-dash-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin-top:18px;align-items:start}
.dts-dash-grid--even{grid-template-columns:repeat(2,minmax(0,1fr))}
.dts-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dts-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dts-card-head .dts-h2{margin:0}
.dts-link{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:#0B6B3A;text-decoration:none;white-space:nowrap}
.dts-link:hover{color:#095A31;text-decoration:underline}
.dts-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#E7F3EC;color:#0B6B3A;font-size:11.5px;font-weight:600;white-space:nowrap}
.dts-chip--warn{background:#FEF3C7;color:#92400E}
.dts-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:12.5px;font-weight:600;letter-spacing:.01em;color:#0F172A}
.dts-nowrap{white-space:nowrap}
.dts-tag{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;padding:3px 9px;border-radius:999px;background:#F1F5F9;border:1px solid #E2E8F0;color:#475569;font-size:11.5px;font-weight:600}
.dts-table td{padding-top:12px;padding-bottom:12px}
.dts-cell-title{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* KPI extras */
.dts-kpi__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dts-kpi__ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#EFF6F1;color:#0B6B3A;font-size:14px;flex:none}
.dts-kpi--attention .dts-kpi__ico{background:#FEF3C7;color:#B45309}
.dts-kpi--attention:hover{border-color:#FDE68A}
.dts-kpi--attention .dts-kpi__num{color:#92400E}

/* bars + shares */
.dts-bar{height:7px;border-radius:999px;background:#EEF2F0;overflow:hidden;flex:1;min-width:60px}
.dts-bar > span{display:block;height:100%;min-width:2px;border-radius:999px;background:#0B6B3A}
.dts-bar--sm{height:6px}
.dts-share{display:flex;align-items:center;gap:10px;min-width:120px}
.dts-share__pct{font-size:11.5px;font-weight:600;color:#64748B;min-width:34px;text-align:right;flex:none}

/* top offices */
.dts-ranklist{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.dts-ranklist li{display:flex;align-items:flex-start;gap:12px}
.dts-rank{width:24px;height:24px;border-radius:8px;background:#E7F3EC;color:#0B6B3A;font-size:12px;font-weight:700;display:grid;place-items:center;flex:none;margin-top:1px}
.dts-rank__body{flex:1;min-width:0}
.dts-rank__row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
.dts-rank__name{font-size:13px;font-weight:500;color:#0F172A;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dts-rank__num{font-size:12.5px;font-weight:600;color:#475569;flex:none}

/* quick actions */
.dts-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dts-quick__item{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 14px;border:1px solid #E9EEF1;border-radius:12px;background:#FCFDFD;color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.dts-quick__item:hover{text-decoration:none;border-color:#BBE3CB;background:#F7FBF8}
.dts-quick__ico{width:38px;height:38px;border-radius:10px;background:#E7F3EC;color:#0B6B3A;display:grid;place-items:center;font-size:15px;flex:none}
.dts-quick__text{flex:1;min-width:0}
.dts-quick__text strong{display:block;font-size:13.5px;font-weight:600;color:#0F172A}
.dts-quick__text small{display:block;margin-top:2px;font-size:11.5px;line-height:1.4;color:#64748B}
.dts-quick__arrow{color:#94A3B8;font-size:11px;flex:none}

/* activity feed */
.dts-feed{list-style:none;margin:0;padding:0}
.dts-feed__item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid #EEF2F7}
.dts-feed__item:first-child{padding-top:0}
.dts-feed__item:last-child{border-bottom:0;padding-bottom:0}
.dts-feed__ico{width:36px;height:36px;border-radius:10px;background:#EFF6F1;color:#0B6B3A;display:grid;place-items:center;font-size:14px;flex:none}
.dts-feed__ico--warn{background:#FEF3C7;color:#B45309}
.dts-feed__body{flex:1;min-width:0}
.dts-feed__toprow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dts-feed__code{color:#0F172A;text-decoration:none}
.dts-feed__code:hover{color:#0B6B3A;text-decoration:underline}
.dts-feed__title{margin:4px 0 6px;font-size:13.5px;font-weight:500;line-height:1.45;color:#1F2937;overflow-wrap:anywhere}
.dts-feed__meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;font-size:11.5px;color:#64748B}
.dts-feed__meta span{display:inline-flex;align-items:center;gap:5px;min-width:0}
.dts-feed__meta i{font-size:10.5px;color:#94A3B8}
.dts-feed__action{flex:none;align-self:center}

/* empty state */
.dts-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:26px 12px}
.dts-empty-state__ico{width:46px;height:46px;border-radius:50%;background:#E7F3EC;color:#0B6B3A;display:grid;place-items:center;font-size:18px;margin-bottom:6px}
.dts-empty-state strong{font-size:14px;font-weight:600;color:#0F172A}
.dts-empty-state p{margin:0;font-size:12.5px;line-height:1.5;color:#64748B;max-width:34ch}
.dts-empty-state .dts-btn{margin-top:10px}

@media(max-width:1100px){
  .dts-dash-grid,.dts-dash-grid--even{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .dts-head-actions{width:100%}
  .dts-head-actions .dts-btn{flex:1 1 auto}
  .dts-quick{grid-template-columns:minmax(0,1fr)}
  .dts-cell-title{max-width:220px}
  .dts-tag{max-width:140px}
}
@media(max-width:560px){
  .dts-feed__item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 10px}
  .dts-feed__ico{grid-row:1}
  .dts-feed__body{grid-column:2}
  .dts-feed__action{grid-column:2;justify-self:start;margin-top:8px;align-self:start}
  .dts-feed__item:first-child{padding-top:0}
}
@media(max-width:400px){
  .dts-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dts-kpi__num{font-size:22px}
  .dts-kpi__ico{width:30px;height:30px;font-size:12px}
  .dts-share{min-width:90px;gap:7px}
}

/* ============================================================
   Login page refresh (scoped to body.dts-auth-body)
   ============================================================ */
body.dts-auth-body{background:#F4F8F5;color:#0F172A;margin:0}
.dts-auth{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.dts-auth__brand{position:relative;overflow:hidden;background:#0B6B3A;color:#fff;padding:44px 48px;display:flex;flex-direction:column;justify-content:space-between;gap:34px}
.dts-auth__brand::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:46px 46px}
.dts-auth__glow{position:absolute;top:-180px;right:-150px;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle at center,rgba(255,255,255,.17),rgba(255,255,255,0) 66%);pointer-events:none;z-index:0}
.dts-auth__brandtop,.dts-auth__pitch,.dts-auth__brandfoot{position:relative;z-index:1}
.dts-auth__brandtop{display:flex;align-items:center;gap:13px;min-width:0}
.dts-brand-seal{width:64px;height:64px;border-radius:16px;background:transparent;display:grid;place-items:center;flex:none}
.dts-brand-seal img{width:54px;height:54px;object-fit:contain;display:block;filter:drop-shadow(0 2px 5px rgba(0,0,0,.28))}
.dts-brand-text{line-height:1.15;min-width:0}
.dts-brand-text strong{display:block;font-size:21px;font-weight:700;letter-spacing:.04em;color:#fff}
.dts-brand-text small{display:block;margin-top:2px;font-size:10px;font-weight:600;letter-spacing:.16em;color:rgba(255,255,255,.8)}
.dts-auth__pill{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:11.5px;font-weight:600;letter-spacing:.02em;color:#EAF7EF}
.dts-auth__pill i{font-size:11px}
.dts-auth__pitch h1{margin:18px 0 14px;font-size:clamp(32px,3.4vw,46px);line-height:1.08;font-weight:700;letter-spacing:-.02em;color:#fff}
.dts-auth__pitch h1 span{color:#A9E5C1}
.dts-auth__pitch > p{margin:0;max-width:42ch;font-size:15px;line-height:1.65;color:rgba(255,255,255,.82)}
.dts-auth__points{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:16px;max-width:460px}
.dts-auth__points li{display:flex;align-items:flex-start;gap:12px}
.dts-auth__point-ico{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;color:#fff;font-size:14px;flex:none}
.dts-auth__points strong{display:block;font-size:13.5px;font-weight:600;color:#fff}
.dts-auth__points small{display:block;margin-top:3px;font-size:12.5px;line-height:1.45;color:rgba(255,255,255,.72)}
.dts-auth__brandfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11.5px;color:rgba(255,255,255,.7)}
.dts-auth__brandfoot i{margin-right:5px}
.dts-auth__brandfoot a{color:#fff;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35);padding-bottom:1px}
.dts-auth__brandfoot a:hover{text-decoration:none;border-bottom-color:#fff}

.dts-auth__main{display:flex;align-items:center;justify-content:center;padding:40px 32px;min-width:0;
  background:radial-gradient(900px 480px at 88% -6%,#E7F3EC,rgba(231,243,236,0) 62%),#F6F9F7}
.dts-auth__card{width:100%;max-width:430px;background:#fff;border:1px solid #E4EBE6;border-radius:20px;padding:32px 32px 26px;
  box-shadow:0 26px 60px -30px rgba(9,52,30,.35),0 2px 6px rgba(16,24,40,.04)}
.dts-auth__cardtop{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.dts-auth__seal{width:54px;height:54px;border-radius:14px;background:#F3F8F5;border:1px solid #E4EBE6;display:grid;place-items:center;flex:none}
.dts-auth__seal img{width:44px;height:44px;object-fit:contain;display:block}
.dts-auth__eyebrow{display:block;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#0B6B3A}
.dts-auth__cardtop h2{margin:3px 0 3px;font-size:25px;line-height:1.15;font-weight:700;letter-spacing:-.02em;color:#0F172A}
.dts-auth__sub{margin:0;font-size:13px;line-height:1.45;color:#5B6B7C}
.dts-auth .dts-alert{display:flex;align-items:flex-start;gap:9px;border-radius:10px;padding:11px 13px;font-size:12.5px;line-height:1.5;margin-bottom:16px;overflow-wrap:anywhere}
.dts-auth .dts-alert > i{font-size:13px;margin-top:2px;flex:none}
.dts-auth .dts-alert > div > div{margin:0}
.dts-auth .dts-alert a{color:inherit;font-weight:600;text-decoration:underline}
.dts-auth .dts-field{gap:7px;margin-bottom:15px}
.dts-auth .dts-label{font-size:12.5px;font-weight:600;color:#334155}
.dts-input-wrap{position:relative;display:block}
.dts-input-ico{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:13px;color:#94A3B8;pointer-events:none;z-index:1}
.dts-auth .dts-input{height:46px;border:1px solid #DCE5DF;border-radius:10px;background:#FBFDFC;font-size:14px;padding:0 12px;transition:border-color .15s,box-shadow .15s,background .15s}
.dts-auth .dts-input--icon{padding-left:39px}
.dts-auth .dts-input--password{padding-right:46px}
.dts-auth .dts-input::placeholder{color:#9AA8B5}
.dts-auth .dts-input:hover{border-color:#C9D8CE}
.dts-auth .dts-input:focus{background:#fff;border-color:#0B6B3A;box-shadow:0 0 0 4px rgba(11,107,58,.1);outline:none}
.dts-auth .dts-icon-btn{right:7px;width:32px;height:32px;color:#64748B;border-radius:8px}
.dts-auth .dts-icon-btn:hover{background:#EFF6F1;color:#0B6B3A}
.dts-auth .dts-caps{display:flex;align-items:center;gap:6px;font-size:11.5px}
.dts-auth .dts-row{margin:2px 0 18px}
.dts-auth .dts-check{font-size:12.5px;color:#475569;gap:7px;cursor:pointer}
.dts-auth .dts-check input{margin:0;accent-color:#0B6B3A}
.dts-auth__link{color:#0B6B3A;font-size:12.5px;font-weight:600;text-decoration:none}
.dts-auth__link:hover{text-decoration:underline}
.dts-auth .dts-btn{height:46px;border-radius:10px;font-size:14px;font-weight:600}
.dts-auth .dts-btn-primary{background:#0B6B3A;border-color:#0B6B3A;box-shadow:0 12px 22px -14px rgba(11,107,58,.85)}
.dts-auth .dts-btn-primary:hover{background:#095A31;border-color:#095A31}
.dts-auth__submit{justify-content:space-between;padding:0 18px}
.dts-auth__submit i{font-size:12px;transition:transform .15s}
.dts-auth__submit:hover i{transform:translateX(2px)}
.dts-auth .dts-btn:focus-visible{outline:2px solid #0B6B3A;outline-offset:2px}
.dts-auth__divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#94A3B8;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.dts-auth__divider::before,.dts-auth__divider::after{content:"";flex:1;height:1px;background:#E8EEEA}
.dts-auth__alt{background:#F7FBF8;border-color:#CFE3D6;color:#0B6B3A;font-weight:600}
.dts-auth__alt:hover{background:#EFF7F2;border-color:#B7D8C3;color:#095A31}
.dts-auth__help{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding:12px 14px;border:1px dashed #D7E5DB;border-radius:12px;background:#F8FBF9;color:#5B6B7C;font-size:12px}
.dts-auth__help > i{color:#0B6B3A;font-size:13px;margin-top:2px;flex:none}
.dts-auth__help p{margin:0;line-height:1.55}
.dts-auth__help a{color:#0B6B3A;font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.dts-auth__help a:hover{text-decoration:underline}
.dts-auth .dts-legal{margin:16px 0 0;text-align:center;font-size:11.5px;line-height:1.6;color:#94A3B8}
.dts-auth .dts-legal a{color:#64748B;font-weight:500}
.dts-auth .dts-legal a:hover{color:#0B6B3A}

@media(max-width:1024px){
  .dts-auth{grid-template-columns:minmax(0,1fr)}
  .dts-auth__brand{padding:22px 22px 24px;gap:0}
  .dts-auth__glow{width:340px;height:340px;top:-190px;right:-120px}
  .dts-auth__pitch{margin-top:18px}
  .dts-auth__pitch h1{margin:10px 0 0;font-size:27px}
  .dts-auth__pitch h1 br{display:none}
  .dts-auth__pitch > p,.dts-auth__points,.dts-auth__brandfoot{display:none}
  .dts-auth__main{padding:24px 16px 40px}
  .dts-auth__card{max-width:440px;padding:27px 24px 24px;border-radius:18px}
}
@media(max-width:440px){
  .dts-auth__brand{padding:18px 16px 20px}
  .dts-brand-seal{width:40px;height:40px;border-radius:11px}
  .dts-brand-seal img{width:33px;height:33px}
  .dts-brand-text strong{font-size:19px}
  .dts-brand-text small{font-size:9px;letter-spacing:.13em}
  .dts-auth__pill{font-size:10.5px;padding:5px 10px}
  .dts-auth__pitch{margin-top:14px}
  .dts-auth__pitch h1{font-size:22px}
  .dts-auth__main{padding:18px 12px 32px}
  .dts-auth__card{padding:22px 16px 20px;border-radius:16px;box-shadow:0 16px 40px -28px rgba(9,52,30,.35)}
  .dts-auth__cardtop{gap:11px;margin-bottom:16px}
  .dts-auth__seal{width:46px;height:46px;border-radius:12px}
  .dts-auth__seal img{width:37px;height:37px}
  .dts-auth__cardtop h2{font-size:22px}
  .dts-auth__sub{font-size:12.5px}
  .dts-auth .dts-row{flex-wrap:wrap;gap:10px}
  .dts-auth__divider{margin:18px 0}
}

/* ---- dashboard grid balance (5/6 KPI cards) ---- */
.dts-kpis--5{grid-template-columns:repeat(5,minmax(0,1fr))}
.dts-kpis--6{grid-template-columns:repeat(6,minmax(0,1fr))}
.dts-card-head .dts-chip{margin-left:auto}
@media(max-width:1199px){
  .dts-kpis--5,.dts-kpis--6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .dts-kpis--5,.dts-kpis--6{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ---- six-KPI layout: keep labels on one line where possible ---- */
@media(min-width:768px){
  .dts-kpis--6 .dts-kpi{padding:16px}
  .dts-kpis--6 .dts-kpi__ico{width:30px;height:30px;font-size:12px}
  .dts-kpis--6 .dts-kpi__label{line-height:1.3}
  .dts-kpis--6 .dts-kpi__num{font-size:27px}
}
/* ---- align KPI numbers when labels wrap ---- */
.dts-kpis--5 .dts-kpi__label{line-height:1.35;min-height:2.7em}
/* ===== employee dashboard: stack cards to remove uneven-column dead space ===== */
@media (min-width:768px){
  .dts-dash-grid--even{ grid-template-columns: minmax(0, 1fr); }
}

/* ===== dashboard KPI balance: 3-up desktop, 5/6 only on very wide ===== */
@media(min-width:641px){
  .dts-kpis--5,.dts-kpis--6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1500px){
  .dts-kpis--5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .dts-kpis--6{grid-template-columns:repeat(6,minmax(0,1fr))}
}
.dts-kpis--5 .dts-kpi,.dts-kpis--6 .dts-kpi{display:flex;flex-direction:column;height:100%}
.dts-kpis--5 .dts-kpi__sub,.dts-kpis--6 .dts-kpi__sub{margin-top:auto}
/* ===== login mobile breathing room ===== */
@media(max-width:1024px){ .dts-auth__main{padding-bottom:40px} }
@media(max-width:600px){ .dts-legal{font-size:11px;line-height:1.8} }

/* mobile: the "N waiting" chip duplicates the To-receive KPI; hide it in the card head */
@media(max-width:600px){ .dts-card-head .dts-chip--warn{ display: none; } }

/* ===== custom centered confirmation modal ===== */
body.dts-confirm-open{overflow:hidden}
.dts-confirm{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:20px}
.dts-confirm.is-open{display:flex}
.dts-confirm__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.dts-confirm__card{position:relative;width:100%;max-width:420px;background:#fff;border-radius:16px;padding:24px;box-shadow:0 24px 60px rgba(15,23,42,.28);text-align:center;transform:translateY(10px) scale(.98);opacity:0;transition:transform .18s ease,opacity .18s ease}
.dts-confirm.is-open .dts-confirm__card{transform:none;opacity:1}
.dts-confirm__icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#FEF3C7;color:#B45309;font-size:20px}
.dts-confirm--danger .dts-confirm__icon{background:#FEE2E2;color:#B91C1C}
.dts-confirm--logout .dts-confirm__icon{background:#FEE2E2;color:#B91C1C}
.dts-confirm__title{margin:0 0 6px;font-size:18px;font-weight:700;color:#0F172A}
.dts-confirm__msg{margin:0 0 20px;font-size:14px;line-height:1.55;color:#475569}
.dts-confirm__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.dts-confirm__actions .dts-btn{min-width:120px;justify-content:center}
.dts-confirm__ok{background:#0B6B3A;border-color:#0B6B3A;color:#fff}
.dts-confirm__ok:hover{background:#095A31;border-color:#095A31}
.dts-confirm--danger .dts-confirm__ok{background:#B91C1C;border-color:#B91C1C;color:#fff}
.dts-confirm--danger .dts-confirm__ok:hover{background:#991B1B;border-color:#991B1B}
.dts-confirm--logout .dts-confirm__ok{background:#B91C1C;border-color:#B91C1C;color:#fff}
.dts-confirm--logout .dts-confirm__ok:hover{background:#991B1B;border-color:#991B1B}
@media(max-width:480px){.dts-confirm__card{padding:20px}.dts-confirm__actions .dts-btn{flex:1 1 120px}}

/* ===== pagination: single-box items (remove double border) ===== */
.pagination .page-item > span{
  display:inline-flex !important; align-items:center; justify-content:center;
  min-width:0 !important; height:auto !important;
  padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; margin:0 !important;
}
.pagination .page-item > a,
.pagination .page-item > span > a{
  display:inline-flex !important; align-items:center; justify-content:center;
  min-width:36px !important; height:36px !important;
  padding:0 10px !important;
  border:1px solid #E2E8F0 !important; border-radius:8px !important;
  background:#fff !important; color:#475569 !important;
  font-size:13px !important; font-weight:500 !important; line-height:1 !important;
  text-decoration:none !important; margin:0 !important;
}
.pagination .page-item > a:hover,
.pagination .page-item > span > a:hover{
  border-color:#CBD5E1 !important; background:#F8FAFC !important; color:#0F172A !important;
}
.pagination .page-item.active > a{
  background:#0B6B3A !important; border-color:#0B6B3A !important; color:#fff !important; font-weight:600 !important;
}
.pagination .page-item.disabled > a,
.pagination .page-item.disabled > span > a{
  color:#CBD5E1 !important; background:#F8FAFC !important;
}

/* ===== app footer pinned to the bottom of the viewport ===== */
.copyright{
  position:fixed !important;
  left:300px; right:0; bottom:0;
  z-index:9;
  margin:0 !important;
  padding:9px 18px !important;
  background:#F7F9FB;
  border-top:1px solid #E2E8F0;
  text-align:center;
}
.copyright p{color:#64748B;font-size:12px;margin:0}
html.dts-collapsed .copyright{left:74px}
.main-content{padding-bottom:80px !important}
@media(max-width:767px){
  .copyright{left:0}
  .main-content{padding-bottom:90px !important}
}
@media print{.copyright{display:none !important}}
