/* ========================================================================
   SECRETERIAT — Global Theme CSS (site-wide) — CLEANED
   (No UI changes — keeps the FINAL winning rules)
   ======================================================================== */


/* ========================================================================
   1) Variables
   ======================================================================== */
:root{
  --font: Verdana, Geneva, Tahoma, sans-serif;

  --blue: #1d77e8;
  --blue-600:#2563eb;
  --cyan:#06b6d4;
  --green:#00c48c;
  --purple:#9b6bff;
  --orange:#ffa94d;
  --red:#e53935;

  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e4e9ef;

  --radius:12px;
  --shadow:0 4px 12px rgba(0,0,0,.08);
  --shadow-sm:0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:0 10px 30px rgba(0,0,0,.1);

  --tr:all .25s ease;

  /* unified secr palette (your later rules depend on these) */
  --secr-blue: #00aaff;
  --secr-green: #00c48c;
  --secr-gray: #f8fafc;
  --secr-text: #1f2937;
}


/* ========================================================================
   2) Reset / Base
   ======================================================================== */
*{ box-sizing:border-box; }

html,body{
  margin:0 !important;
  padding:0 !important;
  height:100vh !important;
  overflow:hidden !important;
  background:var(--bg, #f7f9fc) !important;
  color:var(--text);
  font:12px/1.5 var(--font);
}

a{ color:var(--blue); text-decoration:none; transition:var(--tr); }
a:hover{ color:var(--cyan); }

h1,h2,h3,h4{ margin:0 0 8px; font-weight:700; }
h1{ font-size:22px; }
h2{ font-size:20px; }
h3{ font-size:16px; }


/* ========================================================================
   3) WordPress wrappers hide (as you had it)
   ⚠️ If this CSS is truly site-wide, it will hide WP everywhere.
   ======================================================================== */
header,
.site-header,
#masthead,
nav,
#site-navigation,
.menu,
.main-navigation,
footer,
.site-footer,
#colophon{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
}

/* Keep sidebar nav visible */
#secr-app .secr-sidebar nav{
  display:flex !important;
  visibility:visible !important;
  height:auto !important;
  overflow:visible !important;
  opacity:1 !important;
}


/* ========================================================================
   4) App Layout — Fullscreen Standalone Mode (FINAL WINNING)
   ======================================================================== */
#secr-app{
  display:flex !important;
  flex-direction:row !important;
  width:100vw !important;
  height:100vh !important;
  overflow:hidden !important;
  background:var(--bg, #f7f9fc) !important;
  font-family:'Inter','Segoe UI',sans-serif !important;
  color:var(--text,#1e293b) !important;
}

/* Sidebar */
.secr-sidebar{
  flex:0 0 240px !important;
  height:100vh !important;
  position:sticky !important;
  top:0 !important;
  overflow:hidden !important;
  background:#fff !important;
  border-right:1px solid var(--border,#e5e7eb) !important;
  box-shadow:2px 0 10px rgba(0,0,0,0.05) !important;
  z-index:10 !important;

  display:flex !important;
  flex-direction:column !important;
}

/* Sidebar header */
.secr-sidebar-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:20px 16px;
  background:linear-gradient(to bottom right, rgba(59,130,246,0.15), rgba(6,182,212,0.10));
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.secr-logo{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:contain;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
  transition:all 0.25s ease;
}
.secr-logo:hover{
  transform:scale(1.05);
  filter:drop-shadow(0 0 8px rgba(6,182,212,0.3));
}

.secr-sidebar-title{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.secr-sidebar-title h2{
  font-size:15px;
  font-weight:600;
  margin:0;
  line-height:1.1;
  color:#0f172a;
}
.secr-sidebar-title p{
  font-size:12px;
  margin:2px 0 0;
  color:#64748b;
  opacity:0.9;
}

/* Sidebar dividers */
.sidebar-divider{
  height:1px;
  background:#e5e7eb;
  margin:6px 0;
}

/* Scrollable sidebar area */
.secr-sidebar-scroll{
  flex:1 1 auto;
  overflow-y:auto;
  padding-right:6px;
  scrollbar-width:none;       /* Firefox */
  -ms-overflow-style:none;    /* old Edge/IE */
}
.secr-sidebar-scroll::-webkit-scrollbar{ width:0; height:0; }

/* Sidebar section title */
.secr-sidebar-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:14px 16px 10px 18px;
  padding:4px 6px;
  font-size:12.5px;
  font-weight:600;
  color:var(--secr-blue);
  letter-spacing:0.5px;
  box-shadow:inset 0 0 4px rgba(0,0,0,0.03);
}

/* Main area */
.secr-main{
  flex:1 1 auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  height:100vh !important;
  padding:25px 25px 50px 15px !important;
  background:linear-gradient(180deg,#f8fbff 0%,#f3f8f8 100%) !important;
  scroll-behavior:smooth !important;
}
.secr-main::-webkit-scrollbar{ width:8px; }
.secr-main::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.15); border-radius:4px; }
.secr-main::-webkit-scrollbar-thumb:hover{ background:rgba(0,0,0,0.3); }

/* Responsive */
@media (max-width:900px){
  #secr-app{ flex-direction:column !important; }
  .secr-sidebar{
    flex:none !important;
    width:100% !important;
    height:auto !important;
    position:relative !important;
    box-shadow:none !important;
    border-right:none !important;
    border-bottom:1px solid var(--border,#e5e7eb) !important;
  }
  .secr-main{
    height:calc(100vh - 60px) !important;
    padding:20px !important;
  }
}


/* ========================================================================
   5) Tabs / Menu (FINAL WINNING)
   ======================================================================== */
.secr-sidebar nav{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Menu divider inside nav */
.menu-divider{
  height:1px;
  width:20px;                 /* ✅ fixed typo from 20x */
  background-color:#ccc;
  margin:3px 0;
}

/* Tabs */
.secr-tab{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  margin:1px 0;
  font-size:13px;
  color:var(--secr-text);
  background:transparent;
  border:none;
  border-left:3px solid transparent;
  border-radius:6px;
  cursor:pointer;
  transition:all 0.25s ease;
}
.secr-tab i{
  font-size:14px;
  width:16px;
  text-align:center;
  opacity:0.8;
}
.secr-tab:hover{
  background:#f3f4f6;
  color:#000;
}
.secr-tab.active{
  background:linear-gradient(90deg, var(--secr-blue), var(--secr-green));
  color:#fff;
  border-left-color:var(--secr-green);
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
  font-weight:normal;
}
.secr-tab.active i{
  color:#fff;
  opacity:1;
}


/* ========================================================================
   6) Sections (tabs content)
   ======================================================================== */
.secr-section{ display:none; }
.secr-section.active{ display:block; }

/* You had custom width/margins in some places.
   Keep minimal to avoid UI drift: */
.secr-section{
  position:relative;
  width:calc(80% - 10px) !important;
  margin-left:10px !important;
}


/* ========================================================================
   7) Dashboard header
   ======================================================================== */
.secr-dashboard-header{
  margin:0 0 20px 6px;
  text-align:left;
}
.secr-dashboard-header h2{
  font-size:22px;
  background:linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.secr-dashboard-header p{ color:#475569; }


/* ========================================================================
   8) Cards — FINAL WINNING (one definition)
   ======================================================================== */
.secr-card{
  flex:0 0 140px;
  padding:16px;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  text-align:left;
  position:relative;
  color:#3c5b8e;
  background:linear-gradient(
    145deg,
    rgba(255,255,255,1) 0%,
    rgba(235,245,255,0.95) 40%,
    rgba(225,250,245,0.9) 100%
  ) !important;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:all 0.25s ease;
}
.secr-card:hover{
  transform:translateY(-4px);
  background:linear-gradient(
    145deg,
    rgba(245,250,255,1) 0%,
    rgba(220,240,250,1) 40%,
    rgba(215,250,240,1) 100%
  );
  box-shadow:0 6px 20px rgba(0,0,0,0.12);
}
.secr-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  border-radius:14px 14px 0 0;
  background:linear-gradient(90deg, var(--blue), var(--green));
}

/* card accent variants (as in your HTML data-color) */
.secr-card[data-color="blue"]{ background:linear-gradient(160deg, rgba(29,119,232,0.2), rgba(0,174,255,0.1)); }
.secr-card[data-color="green"]{ background:linear-gradient(160deg, rgba(0,196,140,0.2), rgba(0,230,150,0.1)); }
.secr-card[data-color="purple"]{ background:linear-gradient(160deg, rgba(155,107,255,0.2), rgba(200,150,255,0.1)); }
.secr-card[data-color="orange"]{ background:linear-gradient(160deg, rgba(255,169,77,0.2), rgba(255,210,150,0.1)); }

/* dashboard stats row */
.secr-stats{
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  justify-content:flex-start;
  align-items:stretch;
  overflow-x:auto;
  padding:8px 5px 25px;
  margin-top:20px;
  scrollbar-width:thin;
  scroll-behavior:smooth;
}
.secr-stats::-webkit-scrollbar{ height:6px; }
.secr-stats::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.15); border-radius:4px; }
.secr-stats::-webkit-scrollbar-thumb:hover{ background:rgba(0,0,0,0.3); }


/* ========================================================================
   9) Forms (generic)
   ======================================================================== */
.secr-form label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:#374151;
  margin:6px 0 4px;
}

.secr-form input[type=text],
.secr-form input[type=number],
.secr-form input[type=email],
.secr-form input[type=date],
.secr-form input[type=file],
.secr-form textarea,
.secr-form select{
  width:100%;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  transition:var(--tr);
  box-shadow:inset 0 0 0 rgba(0,0,0,0);
  font:14px var(--font);
}

.secr-form textarea{ min-height:90px; resize:vertical; }

.secr-form input:focus,
.secr-form select:focus,
.secr-form textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(29,119,232,.12);
}

.inline-checkbox{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.currency-input{ display:flex; align-items:center; gap:6px; }
.currency-label{ background:#f3f4f6; padding:4px 8px; border-radius:6px; font-size:12px; color:#374151; }
.form-actions{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }


/* ========================================================================
   10) Buttons
   ======================================================================== */
.btn, .log-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg, var(--blue), var(--green));
  box-shadow:var(--shadow-sm);
  transition:var(--tr);
}
.btn:hover,.log-btn:hover{
  opacity:.95;
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}
.btn.secondary{ background:#e2e8f0; color:#334155; }
.btn.danger{ background:linear-gradient(135deg, #f43f5e, #ef4444); }
.clear-btn{
  background:none;
  border:0;
  color:#64748b;
  cursor:pointer;
  font-size:12px;
  padding:0 6px;
}
.clear-btn:hover{ color:var(--blue); }


/* ========================================================================
   11) Tables (generic)
   ======================================================================== */
.secr-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,0.04);
}

.secr-table th{
  background:#0099ff;
  color:#fff;
  font-weight:600;
  text-align:left;
  padding:9px 10px;
  border-bottom:2px solid #007fd4;
}

.secr-table td{
  padding:8px 10px;
  border-bottom:1px solid #f1f5f9;
  color:#1f2937;
}

.secr-table tr:nth-child(even){ background:#fafafa; }
.secr-table tr:hover{ background:#e8f4ff; transition:background 0.2s; }


/* ========================================================================
   12) DataTables
   ======================================================================== */
.dataTables_wrapper{
  margin-top:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:8px;
  box-shadow:var(--shadow-sm);
  overflow-x:auto;
}
table.dataTable{
  font-size: 12px;       /* ήταν 13px */
}


/* πιο compact rows */
table.dataTable tbody td{
  padding: 4px 6px;
  line-height: 1.15;     /* ↓ ύψος γραμμής */
  vertical-align: middle;
}
table.dataTable td{
  
}

/* αν θες και header πιο compact */
table.dataTable thead th{
  padding: 6px 8px;      /* ήταν 8px */
}

/* προαιρετικά: πιο tight wrapper */
.dataTables_wrapper{
  padding: 6px;          /* ήταν 8px */
  margin-top: 6px;       /* ήταν 10px */
}

table.dataTable tbody tr:nth-child(even){ background:#f8fbff; }
table.dataTable tbody tr:hover{ background:#eaf5ff; }

.dt-buttons .dt-button{
  background:linear-gradient(135deg, var(--blue), var(--green))!important;
  color:#fff!important;
  border:none!important;
  border-radius:8px!important;
  padding:6px 12px!important;
  font-weight:700!important;
  margin-right:6px;
  box-shadow:var(--shadow-sm);
}
.dt-buttons .dt-button:hover{ opacity:.95; transform:translateY(-1px); }
.dataTables_filter input{ border:1px solid var(--border); border-radius:8px; padding:6px 10px; }


/* ========================================================================
   13) Select2
   ======================================================================== */
.select2-container{ width:100%!important; font-family:var(--font)!important; }
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple{
  min-height:38px;
  border:1px solid var(--border)!important;
  border-radius:8px!important;
  padding:4px 6px;
  transition:var(--tr);
  outline:none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{ line-height:28px; }
.select2-container--default .select2-selection--single .select2-selection__arrow{ height:36px; right:8px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus{
  border-color:var(--blue)!important;
  box-shadow:0 0 0 3px rgba(29,119,232,.12);
}
.select2-dropdown{ border-color:var(--border)!important; }


/* ========================================================================
   14) Notes (as in your old CSS)
   ======================================================================== */
.notes-container{
  background: var(--secr-gray);
  border-radius:12px;
  padding:24px 28px;
  box-shadow:0 3px 10px rgba(0,0,0,0.06);
  margin-top:25px;
  overflow-y:auto;
  max-height:70vh;
}

.notes-wall{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:flex-start;
  align-items:flex-start;
}

.sticky-note{
  position:relative;
  border-radius:10px;
  padding:14px 16px 28px;
  width:200px;
  min-height:150px;
  background: var(--note-color, #fff8b3);
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  color:#1f2937;
  font-family: Verdana, sans-serif;
  font-size:13px;
  line-height:1.4;
  transition:all 0.25s ease;
  word-break:break-word;
}
.sticky-note:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,0.15);
}
.sticky-note::after{
  content:"";
  position:absolute;
  bottom:0;
  right:0;
  width:26px;
  height:26px;
  background:linear-gradient(135deg, rgba(0,0,0,0.1), transparent 70%);
  clip-path:polygon(100% 0, 0 100%, 100% 100%);
  border-radius:0 0 10px 0;
}
.sticky-yellow{ --note-color:#fff9c4; }
.sticky-red{ --note-color:#fca5a5; }
.sticky-blue{ --note-color:#bbdefb; }
.sticky-green{ --note-color:#c8e6c9; }
.sticky-orange{ --note-color:#ffe0b2; }

.note-small{ width:160px; min-height:120px; }
.note-medium{ width:200px; min-height:150px; }
.note-large{ width:260px; min-height:190px; }

.sticky-note .delete-btn{
  position:absolute;
  top:6px;
  right:10px;
  font-size:14px;
  color:#666;
  cursor:pointer;
  transition:color 0.2s;
}
.sticky-note .delete-btn:hover{ color:#e11d48; }

.note-footer{
  position:absolute;
  bottom:6px;
  right:10px;
  font-size:11px;
  color:#555;
  opacity:0.7;
}

/* Scroll χωρίς ορατό scrollbar (notes container version you had) */
.secr-notes-container{
  overflow-y:scroll;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.secr-notes-container::-webkit-scrollbar{ display:none; }


/* ========================================================================
   15) Equipment (as in your old CSS)
   ======================================================================== */
.secr-equipment{
  background:#fff;
  color:#1f2937;
  font-family: Verdana, sans-serif;
  font-size:13px;
  border-radius:12px;
  padding:22px 26px;
  margin:0 auto 40px auto;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  max-height:75vh;
  overflow-y:auto;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 #f8fafc;
  transition:all 0.3s ease;
  width:100%;
  display:block;
}
.secr-equipment::-webkit-scrollbar{ width:8px; height:8px; }
.secr-equipment::-webkit-scrollbar-track{ background:#f8fafc; border-radius:8px; }
.secr-equipment::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:8px; }
.secr-equipment::-webkit-scrollbar-thumb:hover{ background:#94a3b8; }

.secr-equipment h3{
  font-size:15px;
  font-weight:500;
  margin:0 0 16px;
  background:linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.secr-equipment label{
  font-size:12px;
  font-weight:500;
  display:block;
  margin-bottom:4px;
  color:#475569;
}
.secr-equipment input,
.secr-equipment select,
.secr-equipment textarea{
  width:100%;
  padding:5px 8px;
  border:1px solid #e2e8f0;
  border-radius:6px;
  background:#fff;
  font-family: Verdana, sans-serif;
  font-size:13px;
  color:#1f2937;
  box-shadow:0 1px 2px rgba(0,0,0,0.03);
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.secr-equipment input:focus,
.secr-equipment select:focus,
.secr-equipment textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 2px rgba(59,130,246,0.1);
  outline:none;
}
.secr-equipment textarea{ resize:vertical; min-height:70px; }

.secr-equipment button{
  background:linear-gradient(135deg, var(--blue), var(--green));
  color:white;
  border:none;
  border-radius:6px;
  padding:6px 14px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  box-shadow:0 2px 5px rgba(0,0,0,0.1);
  transition:all 0.2s ease;
}
.secr-equipment button:hover{
  opacity:0.9;
  transform:translateY(-1px);
}

.secr-equipment table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,0.03);
  border-radius:6px;
  overflow:hidden;
}
.secr-equipment th,
.secr-equipment td{
  padding:8px 10px;
  text-align:left;
  border-bottom:1px solid #f1f5f9;
}
.secr-equipment th{
  background:#f8fafc;
  font-weight:600;
  font-size:12px;
  color:#334155;
}
.secr-equipment tr:hover{ background:#f9fafb; }

.section-divider{
  border:0;
  border-top:1px solid #f1f5f9;
  margin:22px 0;
}

@media (max-width:700px){
  .secr-equipment{ padding:16px; font-size:12px; }
  .secr-equipment th,
  .secr-equipment td{ padding:6px 8px; }
}


/* ========================================================================
   16) Language switcher (carousel in sidebar) — FIXED selector
   ======================================================================== */
.secr-lang-switcher{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:10px 0 20px;
  position:static;
}
.secr-lang-switcher a{ display:inline-block; }
.secr-lang-switcher img{
  width:28px !important;
  height:18px !important;
  border-radius:4px;
  cursor:pointer;
  object-fit:cover;
  box-shadow:0 1px 3px rgba(0,0,0,0.2);
  transition:transform .2s ease, opacity .2s ease;
}
.secr-lang-switcher img:hover{
  transform:scale(1.1);
  opacity:0.9;
}

/* ✅ fixed: you had #lang-carousel but actual id is #secr-lang-carousel */
#secr-lang-carousel:hover{
  transform:scale(1.08) rotate(5deg);
  transition:all .2s ease;
}


/* ========================================================================
   17) Fancy Theme Toggle
   ======================================================================== */
.secr-theme-toggle{
  display:flex;
  justify-content:center;
  margin:20px;
}
.theme-slider{
  position:relative;
  width:90px;
  height:44px;
  background:linear-gradient(145deg, #f3f4f6, #e5e7eb);
  border-radius:30px;
  cursor:pointer;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  color:#333;
  font-size:18px;
  transition:background .3s ease;
}
.theme-slider .icon{ opacity:.7; pointer-events:none; transition:.3s; }
.theme-slider::after{
  content:'';
  position:absolute;
  top:4px;
  left:4px;
  width:36px;
  height:36px;
  background:white;
  border-radius:50%;
  box-shadow:0 2px 6px rgba(0,0,0,0.2);
  transition:all .4s cubic-bezier(0.77, 0, 0.175, 1);
}
#theme-switch:checked + .theme-slider{
  background:linear-gradient(145deg, #1e293b, #334155);
  color:#fff;
}
#theme-switch:checked + .theme-slider::after{
  left:calc(100% - 40px);
  background:#111827;
  box-shadow:0 2px 8px rgba(0,0,0,0.4);
}
#theme-switch:checked + .theme-slider .sun{ opacity:.3; }
#theme-switch:checked + .theme-slider .moon{ opacity:1; color:#facc15; }


/* ========================================================================
   18) Dark Mode — keep your current “dark bg + light panels” UI
   ======================================================================== */
body.dark-mode{
  --bg: linear-gradient(180deg, #151b29 0%, #1e2536 100%);
  --panel: #232b3e;
  --panel-light: #2b3347;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #374151;
  --blue: #3b82f6;
  --green: #22c55e;
  --cyan: #06b6d4;
  --shadow: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
}

body.dark-mode,
body.dark-mode #secr-app,
body.dark-mode .secr-main{
  background:linear-gradient(180deg, #1a1a1f 0%, #1e232d 100%) !important;
  color:#e5e7eb !important;
}

/* Panels, tables, forms (your current UI uses light panels even in dark-mode) */
body.dark-mode .secr-main,
body.dark-mode .secr-card,
body.dark-mode .secr-section,
body.dark-mode .secr-form,
body.dark-mode table.dataTable,
body.dark-mode .dataTables_wrapper{
  background:#f0f2f5;
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}

/* Sidebar in dark-mode (light panel) */
body.dark-mode .secr-sidebar{
  background:#f0f2f5;
  color:#000;
  border-color:#d1d5db;
}
body.dark-mode .secr-sidebar-header{
  background:linear-gradient(90deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
}
body.dark-mode .secr-tab{ background:#f0f2f5; }
body.dark-mode .secr-tab:hover{ background:rgba(255,255,255,0.05); color:#fff; }
body.dark-mode .secr-tab.active{
  background:linear-gradient(90deg, var(--blue), var(--green));
  color:#fff;
}

/* Inputs in dark-mode */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea{
  background:#f1f3f6;
  color:#1e293b;
  border-color:#cbd5e1;
  box-shadow:inset 0 1px 2px rgba(0,0,0,0.05);
}
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,0.25);
  outline:none;
}

/* Tables in dark-mode */
body.dark-mode .secr-table{
  background:#f0f2f5;
  color:#2b3347;
  border-color:#d1d5db;
}
body.dark-mode .secr-table th{
  background:#d9e0e7;
  color:#111827;
  border-bottom:2px solid #cbd5e1;
}
body.dark-mode .secr-table tr:nth-child(even){ background:#eceff3; }
body.dark-mode .secr-table tr:hover{ background:#dde3eb; }

/* DataTables export buttons in dark-mode (keep your current coloring) */
body.dark-mode .dt-buttons .dt-button{
  background:linear-gradient(135deg, var(--blue), var(--green)) !important;
  color:rgb(54, 48, 48) !important;
  border:none !important;
}

/* Scrollbars in dark-mode */
body.dark-mode ::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.15); }
body.dark-mode ::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,0.25); }


/* ========================================================================
   19) Utility
   ======================================================================== */
.secr-subtitle{ font-weight:700; margin:10px 0; }
.small{ width:1%; white-space:nowrap; }
.toggle-cell{ width:28px; }
.toggle-participants{
  border:0;
  background:#eef2ff;
  color:#1d4ed8;
  border-radius:6px;
  padding:2px 6px;
  cursor:pointer;
}
.toggle-participants:hover{ background:#dbeafe; }
.empty{ color:#9ca3af; font-style:italic; }
.note{ font-size:12px; color:#6b7280; }

/* =====================================================
   PAYMENTS — Force 1 column (stack fields vertically)
   ===================================================== */

/* Στόχευση μόνο στη σελίδα πληρωμών */
#payments,
#payments #paymentForm,
#payments .secr-form{
  max-width: 980px;       /* προαιρετικό: να μη γίνεται “τεράστιο” */
}

/* Οτιδήποτε grid/row που σου το κάνει 2 στήλες -> 1 στήλη */
#payments .secr-row.cols-2,
#payments .secr-row.cols-3,
#payments .form-row,
#payments .form-grid,
#payments .grid,
#payments .row,
#payments .two-col,
#payments .secr-inline,
#payments .inline-fields{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

/* Αν κάπου είναι flex για 2 στήλες */
#payments .form-row,
#payments .row,
#payments .two-col,
#payments .inline-fields{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* Inputs/selects να πιάνουν full width (για να μην “σπάνε” περίεργα) */
#payments input:not([type="checkbox"]):not([type="radio"]),
#payments select,
#payments textarea,
#payments .select2-container{
  width: 100% !important;
}
/* =====================================================
   PAYMENTS — Fix "Καθαρισμός" buttons position (by ID)
   ===================================================== */

#payments #clear-parent-btn,
#payments #clear-incomecat-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 6px 0 !important;     /* να μην κολλάει στο label */
  padding: 2px 8px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

/* Κάνε το να “κάθεται” μόνο του πάνω από το input, όχι δίπλα στο label */
#payments #clear-parent-btn,
#payments #clear-incomecat-btn{
  float: right !important;          /* ✅ το πετάει δεξιά χωρίς να χαλάσει DOM */
}

/* Καθάρισε το float ώστε το input να ξεκινάει από κάτω */
#payments #clear-parent-btn::after,
#payments #clear-incomecat-btn::after{
  content: "" !important;
  display: block !important;
  clear: both !important;
}
/* =====================================================
   PAYMENTS — More spacing between fields
   ===================================================== */

/* Απόσταση μεταξύ blocks πεδίων */
#payments .secr-form > div,
#payments .secr-form .form-section,
#payments .secr-form .field,
#payments .secr-form .form-row{
  margin-bottom: 12px !important;
}

/* Απόσταση label → input */
#payments .secr-form label{
  margin-bottom: 6px !important;
  display: block;
}

/* Inputs λίγο πιο “αέρινα” */
#payments input:not([type="checkbox"]):not([type="radio"]),
#payments select,
#payments textarea{
  margin-top: 2px;
}

/* Buttons area */
#payments .form-actions{
  margin-top: 18px !important;
}
#payments .secr-form{
  gap: 14px;
}
/* ========================================================================
   PINAKAS (Grid.js) — match DataTables look + fix overflow
   ======================================================================== */

#pinakas-table .gridjs-container{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  background:#fff;
  overflow:hidden;
}

/* search bar like the others */
#pinakas-table .gridjs-head{
  padding:10px 12px !important;
  border-bottom:1px solid var(--border) !important;
  background:#fff !important;
}

#pinakas-table .gridjs-search-input{
  border:1px solid var(--border) !important;
  border-radius:10px !important;
  padding:6px 10px !important;
  font-size:13px !important;
}

/* table base */
#pinakas-table .gridjs-wrapper{
  overflow:auto; /* horizontal scroll when needed */
}

#pinakas-table table.gridjs-table{
  width:100%;
  border-collapse:separate !important;
  border-spacing:0 !important;
  font-size:13px;
  table-layout:fixed; /* 🔥 σημαντικό για να δουλέψουν τα widths/ellipsis */
}

/* header: κάν’το ίδιο “ήπιο” σαν DataTables */
#pinakas-table th.gridjs-th{
  background:#f3f6fb !important;         /* αντί για μπλε */
  color:#4b5563 !important;
  font-weight:700 !important;
  text-transform:uppercase;
  font-size:12px !important;
  letter-spacing:.02em;
  text-align:center;
  padding:10px 10px !important;
  border-bottom:1px solid var(--border) !important;
  white-space:nowrap;
}

/* cells */
#pinakas-table td.gridjs-td{
  padding:10px 10px !important;
  border-bottom:1px solid #eef2f7 !important;
  vertical-align:middle;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap; /* default compact */
}

/* zebra + hover */
#pinakas-table tbody tr:nth-child(even) td.gridjs-td{ background:#fafcff; }
#pinakas-table tbody tr:hover td.gridjs-td{ background:#eef6ff; }

/* pagination footer */
#pinakas-table .gridjs-footer{
  padding:10px 12px !important;
  border-top:1px solid var(--border) !important;
  background:#fff !important;
}

/* =========================
   Column widths (σταθερά)
   1:ID 2:Date 3:Category 4:Payer 5:Desc 6:Analysis 7:Amount 8:Actions
   ========================= */

#pinakas-table td.gridjs-td:nth-child(1),
#pinakas-table th.gridjs-th:nth-child(1){ width:70px; }

#pinakas-table td.gridjs-td:nth-child(2),
#pinakas-table th.gridjs-th:nth-child(2){ width:120px; }

#pinakas-table td.gridjs-td:nth-child(7),
#pinakas-table th.gridjs-th:nth-child(7){ width:120px; text-align:right; }

#pinakas-table td.gridjs-td:nth-child(8),
#pinakas-table th.gridjs-th:nth-child(8){ width:120px; text-align:center; }

/* ✅ Αυτά τα 2 columns θες να “αναπνέουν” (wrap) για να μη πατάνε */
#pinakas-table td.gridjs-td:nth-child(5),
#pinakas-table td.gridjs-td:nth-child(6){
  white-space:normal !important;
  overflow:visible;
  text-overflow:clip;
  line-height:1.25;
}

/* Προαιρετικά: λίγο μικρότερα action buttons μέσα στο grid */
#pinakas-table .secr-btn{
  padding:6px 10px;
  font-size:13px;
}


.secr-table {
  background:#fff;
  border-radius:16px !important;
  box-shadow:0 3px 12px rgba(0,0,0,0.08);
  padding:14px;
  margin-top:25px;
  overflow:hidden;
}

#parents-table_wrapper {
  margin-top: 20px;
}

#parents-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

#parents-table thead th {
  background:#f0f4fa !important;
  color:#222;
  font-weight:600;
  text-transform:uppercase;
  border-bottom:2px solid #d8e1f0 !important;
}

#parents-table tbody td {
  padding:10px 12px !important;
  border-bottom:1px solid #edf1f6;
  vertical-align:middle;
}

#parents-table tbody tr:hover td {
  background:#f8fbff !important;
  cursor:pointer;
}

#parents-table_wrapper .dataTables_filter input,
#parents-table_wrapper .dataTables_length select {
  border-radius:10px !important;
  border:1px solid #d0dae8 !important;
  padding:6px 8px !important;
}

#parents-table_wrapper .dt-buttons {
  margin-bottom: 12px;
}

#parents-table_wrapper .dt-button {
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  background:linear-gradient(135deg,#0078d7 0%,#009ee2 100%) !important;
  border:none !important;
  color:#fff !important;
  border-radius:10px !important;
  padding:7px 14px !important;
  cursor:pointer;
  font-size:14px !important;
  font-weight:500;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

#parents-table_wrapper .dt-button:hover {
  background:linear-gradient(135deg,#0088ee 0%,#00b4ff 100%) !important;
}

/* Toolbar buttons */
.secr-toolbar {
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.secr-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:linear-gradient(135deg,#0078d7 0%,#009ee2 100%);
  border:none;
  color:#fff;
  border-radius:10px;
  padding:7px 14px;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  transition:all 0.2s ease-in-out;
}
.secr-btn:hover {
  transform:translateY(-1px);
  box-shadow:0 4px 8px rgba(0,0,0,0.2);
  background:linear-gradient(135deg,#0088ee 0%,#00b4ff 100%);
}
.secr-btn:active {
  transform:translateY(1px);
  box-shadow:0 2px 4px rgba(0,0,0,0.15);
}

/* Inputs - Modern UI */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="tel"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9e1ec;
  padding: 10px 12px;
  background: #f9fbfd;
  font-size: 14px;
  color: #1f2937;
  transition: all 0.25s ease;
}

/* Placeholder πιο soft */
form input::placeholder,
form textarea::placeholder {
  color: #9aa6b2;
}

/* Hover (για να φαίνεται ζωντανό) */
form input:hover,
form select:hover,
form textarea:hover {
  border-color: #b8c6db;
  background: #ffffff;
}

/* Focus state (εκεί κρίνεται όλο το UI) */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #0078d7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,120,215,0.15);
}

/* Disabled */
form input:disabled,
form select:disabled {
  background: #eef2f7;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Error state */
form input.error,
form select.error {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229,57,53,0.15);
}

/* Success state */
form input.success {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}
form {
  display: grid;
  gap: 12px;
}


/* Delete button */
.delete-btn {
  background:#fee2e2;
  color:#b91c1c;
  border:none;
  padding:4px 8px;
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
}
.delete-btn:hover {
  background:#fecaca;
}


/* Χώρος πριν από τα "Εξαρτώμενα" */
.secr-card hr {
    margin: 25px 0;
}

/* Ο τίτλος και το helper text */
.secr-card h4 {
    margin: 0 0 5px 0;
}

.secr-card .hint {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
}
.form-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}
form input,
form select {
  border-radius: 12px;
  border: 1px solid #d1d9e6;
  padding: 10px 12px;
  background: #f9fafc;
  transition: all 0.25s ease;
}

form input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}


/* ======================================================
   Secreteriat 2.1 — Documentation Center & System Health
====================================================== */
.secr-docs,.secr-health{max-width:1180px;margin:0 auto;padding:4px 2px 36px;color:#0f172a}
.secr-docs-hero,.secr-health-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:24px;border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#f8fafc 55%,#ecfeff);margin:10px 0 18px}
.secr-docs-hero h2,.secr-health-hero h2{margin:3px 0 8px;font-size:25px;color:#0f3d78}.secr-docs-hero p,.secr-health-hero p{margin:0;color:#475569;max-width:760px}
.secr-docs-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#2563eb}.secr-docs-badge{min-width:170px;text-align:center;border:1px solid #bfdbfe;background:#fff;padding:12px 14px;border-radius:12px;color:#475569;font-size:12px}.secr-docs-badge strong{display:block;margin-top:3px;color:#0f172a;font-size:14px}
.secr-docs-search-row{display:flex;gap:10px;margin:0 0 18px}.secr-docs-search-row input{flex:1;padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:14px}.secr-docs-search-row button,.secr-health-actions button,.secr-health-actions a{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:10px 13px;border-radius:9px;cursor:pointer;text-decoration:none;font-weight:600}
.secr-docs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.secr-doc-card{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:17px;box-shadow:0 6px 20px rgba(15,23,42,.04)}.secr-doc-card[hidden]{display:none!important}.secr-doc-card h3{margin:8px 0 7px;font-size:16px;color:#0f172a}.secr-doc-card p,.secr-doc-card li{font-size:13px;line-height:1.55;color:#475569}.secr-doc-card details{margin-top:10px;border-top:1px dashed #e2e8f0;padding-top:9px}.secr-doc-card summary{cursor:pointer;font-size:12.5px;font-weight:700;color:#2563eb}.secr-doc-icon{font-size:24px}.secr-doc-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.secr-doc-links a,.secr-doc-action{font-size:12px;font-weight:700;color:#1d4ed8;text-decoration:none;border:1px solid #bfdbfe;border-radius:8px;padding:6px 8px;background:#eff6ff}.secr-doc-empty{padding:30px;text-align:center;color:#64748b}.secr-docs-footer-card,.secr-health-note{margin-top:16px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.secr-docs-footer-card h3{margin:0 0 7px}.secr-docs-footer-card p{color:#475569;font-size:13px}
.secr-health-score{min-width:170px;text-align:center;padding:14px;border-radius:12px;border:1px solid}.secr-health-score strong{display:block;font-size:16px}.secr-health-score span{display:block;font-size:11px;margin-top:3px}.secr-health-score.is-ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.secr-health-score.has-warnings{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.secr-health-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.secr-health-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.secr-health-row{display:flex;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:13px}.secr-health-row>div:last-child>div{font-size:12px;color:#64748b;margin-top:2px;word-break:break-word}.secr-health-state{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;font-weight:800}.secr-health-row.ok .secr-health-state{background:#dcfce7;color:#166534}.secr-health-row.warn .secr-health-state{background:#ffedd5;color:#9a3412}.secr-health-note{font-size:12.5px;color:#475569}
body.dark-mode .secr-docs,body.dark-mode .secr-health{color:#e5e7eb}body.dark-mode .secr-docs-hero,body.dark-mode .secr-health-hero,body.dark-mode .secr-doc-card,body.dark-mode .secr-docs-badge,body.dark-mode .secr-health-row,body.dark-mode .secr-docs-search-row input,body.dark-mode .secr-docs-search-row button,body.dark-mode .secr-health-actions button,body.dark-mode .secr-health-actions a,body.dark-mode .secr-docs-footer-card,body.dark-mode .secr-health-note{background:#111827;color:#e5e7eb;border-color:#334155}body.dark-mode .secr-docs-hero h2,body.dark-mode .secr-health-hero h2,body.dark-mode .secr-doc-card h3{color:#f8fafc}body.dark-mode .secr-doc-card p,body.dark-mode .secr-doc-card li,body.dark-mode .secr-docs-hero p,body.dark-mode .secr-health-hero p,body.dark-mode .secr-health-row>div:last-child>div,body.dark-mode .secr-docs-footer-card p,body.dark-mode .secr-health-note{color:#cbd5e1}
@media(max-width:980px){.secr-docs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.secr-health-list{grid-template-columns:1fr}}
@media(max-width:680px){.secr-docs-hero,.secr-health-hero{align-items:flex-start;flex-direction:column}.secr-docs-grid{grid-template-columns:1fr}.secr-docs-search-row{flex-direction:column}.secr-docs-badge,.secr-health-score{width:100%}}


/* ========================================================================
   21) Responsive UI — Secreteriat 2.1.5
   Mobile drawer + fluid forms/cards + safe horizontal tables
   ======================================================================== */

/* Small utility layer used by several partials (Tailwind-like class names). */
#secr-app .grid{display:grid !important;}
#secr-app .grid-cols-1{grid-template-columns:minmax(0,1fr) !important;}
#secr-app .flex{display:flex !important;}
#secr-app .flex-wrap{flex-wrap:wrap !important;}
#secr-app .items-center{align-items:center !important;}
#secr-app .items-end{align-items:flex-end !important;}
#secr-app .justify-end{justify-content:flex-end !important;}
#secr-app .justify-between{justify-content:space-between !important;}
#secr-app .gap-2{gap:.5rem !important;}
#secr-app .gap-4{gap:1rem !important;}
#secr-app .mb-2{margin-bottom:.5rem !important;}
#secr-app .mb-4{margin-bottom:1rem !important;}
#secr-app .mb-6{margin-bottom:1.5rem !important;}
#secr-app .mt-6{margin-top:1.5rem !important;}
#secr-app .col-span-full{grid-column:1 / -1 !important;}
#secr-app .secr-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

@media (min-width:768px){
  #secr-app .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #secr-app .md\:col-span-2{grid-column:span 2 / span 2 !important;}
}

/* Make all primary content genuinely fluid. */
#secr-app,
#secr-app .secr-main,
#secr-app .secr-section,
#secr-app .secr-card,
#secr-app .dataTables_wrapper,
#secr-app .gridjs-container{
  min-width:0;
}

#secr-app .secr-section{
  width:100% !important;
  max-width:1600px;
  margin:0 auto !important;
}

/* settings.php uses .secr-main inside the real main; it must behave as content, not as another viewport. */
#secr-app .secr-section .secr-main{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
  background:transparent !important;
}

#secr-app img,
#secr-app video,
#secr-app canvas{
  max-width:100%;
}

#secr-app input,
#secr-app select,
#secr-app textarea{
  max-width:100%;
}

/* Mobile controls are dormant on desktop. */
.secr-mobile-menu-toggle,
.secr-mobile-menu-close,
.secr-mobile-backdrop{
  display:none;
}

/* DataTables controls can wrap instead of colliding at medium widths. */
#secr-app .dataTables_wrapper .dt-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
#secr-app .dataTables_wrapper .dt-buttons .dt-button{
  margin:0 !important;
}

/* Plain table helpers. */
#secr-app .table-wrapper,
#secr-app .secr-year-scroll,
#secr-app .gridjs-wrapper{
  max-width:100%;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
}

@media (max-width:1100px){
  #secr-app .secr-main{
    padding-right:18px !important;
    padding-left:18px !important;
  }
  #secr-app .secr-section{max-width:none;}
}

@media (max-width:900px){
  html,body{
    width:100% !important;
    min-width:0 !important;
    height:100% !important;
    min-height:100% !important;
    overflow:hidden !important;
  }

  #secr-app{
    display:block !important;
    width:100% !important;
    height:100vh !important;
    height:100dvh !important;
    min-height:100vh !important;
    min-height:100dvh !important;
    overflow:hidden !important;
  }

  /* Off-canvas sidebar: the menu no longer consumes the whole phone screen. */
  #secr-app .secr-sidebar{
    display:flex !important;
    position:fixed !important;
    inset:0 auto 0 0 !important;
    top:0 !important;
    left:0 !important;
    width:min(86vw, 320px) !important;
    max-width:320px !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    flex:none !important;
    transform:translate3d(-104%,0,0);
    transition:transform .24s ease;
    border-right:1px solid #dbe4ee !important;
    border-bottom:0 !important;
    box-shadow:8px 0 30px rgba(15,23,42,.18) !important;
    overflow:hidden !important;
    z-index:10050 !important;
  }

  #secr-app.secr-mobile-menu-open .secr-sidebar{
    transform:translate3d(0,0,0);
  }

  #secr-app .secr-sidebar-header{
    position:relative;
    flex:0 0 auto;
    padding:16px 54px 14px 14px;
  }

  #secr-app .secr-sidebar-scroll{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding-bottom:10px;
    overscroll-behavior:contain;
  }

  #secr-app .secr-sidebar nav{
    padding:8px 10px 12px;
  }

  #secr-app .secr-tab{
    width:100%;
    min-height:40px;
    padding:8px 10px;
    font-size:13px;
    text-align:left;
  }

  .secr-mobile-menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    position:fixed;
    top:calc(10px + env(safe-area-inset-top));
    left:calc(10px + env(safe-area-inset-left));
    min-height:42px;
    padding:8px 12px;
    border:1px solid #dbe4ee;
    border-radius:12px;
    background:rgba(255,255,255,.96);
    color:#0f3d78;
    box-shadow:0 4px 16px rgba(15,23,42,.14);
    font:700 13px/1 'Inter','Segoe UI',sans-serif;
    cursor:pointer;
    z-index:10020;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  .secr-mobile-menu-icon{font-size:20px;line-height:1;}

  .secr-mobile-menu-close{
    display:grid !important;
    place-items:center;
    position:absolute;
    top:14px;
    right:12px;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:9px;
    background:#eef4fb;
    color:#334155;
    font-size:25px;
    line-height:1;
    cursor:pointer;
  }

  .secr-mobile-backdrop{
    display:block !important;
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    background:rgba(15,23,42,.38);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:10040;
  }
  #secr-app.secr-mobile-menu-open .secr-mobile-backdrop{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  body.secr-mobile-menu-open{overflow:hidden !important;}

  /* Main content gets its own vertical scroll and leaves room for the menu button. */
  #secr-app .secr-main{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:100vh !important;
    height:100dvh !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:
      calc(68px + env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      calc(76px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)) !important;
    scroll-padding-top:76px;
    -webkit-overflow-scrolling:touch;
  }

  #secr-app .secr-section{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    min-width:0 !important;
    overflow-x:auto;
    overflow-y:visible;
    overscroll-behavior-x:contain;
  }

  /* Headers/toolbars wrap instead of running off screen. */
  #secr-app .secr-dashboard-header,
  #secr-app .secr-section > h2,
  #secr-app .secr-section > h3{
    margin-left:0 !important;
  }
  #secr-app .secr-dashboard-header h2,
  #secr-app .secr-section > h2{
    font-size:20px;
  }
  #secr-app .secr-toolbar,
  #secr-app .form-actions,
  #secr-app .secr-health-actions,
  #secr-app .secr-doc-links{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    width:100%;
  }
  #secr-app .secr-section > div[style*="display:flex"],
  #secr-app .secr-section > div[style*="display: flex"]{
    flex-wrap:wrap !important;
    max-width:100%;
  }
  #secr-app #secr-settings [style*="display:flex"],
  #secr-app #secr-settings [style*="display: flex"]{
    flex-wrap:wrap !important;
    max-width:100%;
  }

  /* Dashboard cards: two fluid columns on phones/tablets. */
  #secr-app .secr-stats{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    overflow:visible;
    padding:6px 0 18px;
    margin-top:14px;
  }
  #secr-app .secr-stats .secr-card{
    width:auto !important;
    min-width:0 !important;
    flex:none !important;
    padding:13px !important;
  }
  #secr-app .secr-stats .secr-card strong{
    font-size:18px;
    overflow-wrap:anywhere;
  }

  #secr-app .secr-dashboard-widgets{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
    margin-top:18px !important;
  }
  #secr-app .secr-dashboard-widgets > .secr-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:none !important;
    padding:15px !important;
  }
  #secr-app .secr-mini-agenda-datetime{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 110px;
  }

  /* Forms and intended two-column layouts collapse safely. */
  #secr-app .secr-grid-2,
  #secr-app .secr-eq-grid,
  #secr-app .secr-inline-form{
    grid-template-columns:minmax(0,1fr) !important;
  }
  #secr-app .secr-form,
  #secr-app .form-card,
  #secr-app form.grid{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  #secr-app .secr-form input,
  #secr-app .secr-form select,
  #secr-app .secr-form textarea,
  #secr-app .form-card input,
  #secr-app .form-card select,
  #secr-app .form-card textarea,
  #secr-app .select2-container{
    width:100% !important;
    min-width:0 !important;
  }

  /* DataTables: controls stack, table itself scrolls horizontally. */
  #secr-app .dataTables_wrapper{
    width:100% !important;
    max-width:100% !important;
    padding:7px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  #secr-app .dataTables_wrapper .dataTables_length,
  #secr-app .dataTables_wrapper .dataTables_filter,
  #secr-app .dataTables_wrapper .dataTables_info,
  #secr-app .dataTables_wrapper .dataTables_paginate{
    float:none !important;
    clear:both !important;
    width:100% !important;
    max-width:100%;
    margin:6px 0 !important;
    text-align:left !important;
  }
  #secr-app .dataTables_wrapper .dataTables_filter label{
    display:flex;
    flex-direction:column;
    gap:5px;
    width:100%;
  }
  #secr-app .dataTables_wrapper .dataTables_filter input{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
  }
  #secr-app .dataTables_wrapper .dt-buttons{
    width:100%;
    margin:4px 0 8px !important;
  }
  #secr-app .dataTables_wrapper .dt-button{
    flex:0 1 auto;
    white-space:normal !important;
  }
  #secr-app table.dataTable,
  #secr-app table.secr-table,
  #secr-app table.widefat,
  #secr-app table.display{
    min-width:680px;
  }
  #secr-app #attendanceTable{min-width:920px;}

  /* Grid.js financial table. */
  #secr-app #pinakas-table .gridjs-container,
  #secr-app #pinakas-table .gridjs-wrapper{
    width:100% !important;
    max-width:100% !important;
  }
  #secr-app #pinakas-table table.gridjs-table{
    min-width:760px;
  }
  #secr-app #pinakas-table .gridjs-head,
  #secr-app #pinakas-table .gridjs-footer{
    padding:8px !important;
  }
  #secr-app #pinakas-table .gridjs-search,
  #secr-app #pinakas-table .gridjs-search-input{
    width:100% !important;
    max-width:100% !important;
  }

  /* Profiles / cards with side panels. */
  #secr-app .secr-profile-wrapper{
    padding:16px !important;
    gap:16px !important;
  }
  #secr-app .secr-profile-hero{
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }
  #secr-app .secr-profile-sidebox{
    width:100% !important;
    max-width:none !important;
  }

  /* Sticky notes use available width and never force an overflow. */
  #secr-app .notes-container{
    padding:14px !important;
    max-width:100%;
  }
  #secr-app .notes-wall{gap:10px;}
  #secr-app .sticky-note,
  #secr-app .note-small,
  #secr-app .note-medium,
  #secr-app .note-large{
    width:min(100%, 260px) !important;
    max-width:100% !important;
  }

  /* School-year selector. */
  #secr-app .secr-year-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:8px !important;
    padding:10px 12px !important;
  }
  #secr-app .secr-year-toolbar select,
  #secr-app .secr-year-toolbar a,
  #secr-app .secr-year-toolbar strong{
    width:100%;
    max-width:100%;
    margin-left:0 !important;
  }
  #secr-app .secr-year-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  /* Documentation and health panels. */
  #secr-app .secr-docs-hero,
  #secr-app .secr-health-hero{
    padding:16px !important;
  }

  /* FullCalendar-like custom calendar: keep seven columns, scroll safely. */
  #secr-app .cq-calendar-container{
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  #secr-app .cq-calendar-nav,
  #secr-app .cq-calendar-header,
  #secr-app .cq-calendar-grid{
    min-width:560px;
  }
  #secr-app .cq-modal{
    width:calc(100vw - 28px) !important;
    max-width:400px !important;
  }

  /* Floating controls do not overlap phone content. */
  #secr-app .secr-theme-toggle{
    position:static !important;
    right:auto !important;
    bottom:auto !important;
    margin:8px auto 4px !important;
    z-index:auto !important;
  }
  #secr-bug-container{
    right:14px !important;
    bottom:calc(12px + env(safe-area-inset-bottom)) !important;
    z-index:9001 !important;
  }
  #secr-bug-box form{
    width:min(92vw, 420px) !important;
    max-height:86vh;
    overflow-y:auto;
  }
}

@media (max-width:600px){
  #secr-app .secr-main{
    padding-left:max(10px, env(safe-area-inset-left)) !important;
    padding-right:max(10px, env(safe-area-inset-right)) !important;
  }

  #secr-app .secr-card,
  #secr-app .form-card{
    border-radius:12px;
  }

  #secr-app .secr-mini-agenda-datetime{
    grid-template-columns:minmax(0,1fr) !important;
  }
  #secr-app .secr-mini-agenda-datetime input[type="time"]{
    width:100% !important;
  }

  #secr-app .form-actions > .btn,
  #secr-app .form-actions > .secr-btn,
  #secr-app .form-actions > button,
  #secr-app .form-actions > a{
    flex:1 1 100%;
    justify-content:center;
    text-align:center;
  }

  #secr-app .dataTables_wrapper .dt-buttons .dt-button{
    flex:1 1 calc(50% - 6px);
    text-align:center !important;
  }

  #secr-app .secr-docs-search-row{
    flex-direction:column !important;
  }
  #secr-app .secr-docs-search-row button{
    width:100%;
  }

  #secr-app .secr-year-metrics{
    grid-template-columns:minmax(0,1fr) !important;
  }

  #secr-app .secr-sidebar-title h2{font-size:14px;}
  #secr-app .secr-logo{width:42px;height:42px;}
}

@media (max-width:420px){
  .secr-mobile-menu-text{display:none;}
  .secr-mobile-menu-toggle{
    width:44px;
    padding:7px;
  }

  #secr-app .secr-stats{
    grid-template-columns:minmax(0,1fr) !important;
  }

  #secr-app table.dataTable,
  #secr-app table.secr-table,
  #secr-app table.widefat,
  #secr-app table.display{
    min-width:620px;
  }

  #secr-app .dataTables_wrapper .dt-buttons .dt-button{
    flex:1 1 100%;
  }
}

/* Desktop-only safeguard: if a phone menu was open before an orientation/resize change. */
@media (min-width:901px){
  body.secr-mobile-menu-open{overflow:hidden !important;}
  #secr-app .secr-sidebar{transform:none !important;}
}

/* ========================================================================
   29) Secreteriat 2.1.6 — APP-LIKE MOBILE EXPERIENCE
   Native-style app bar, bottom navigation, touch-friendly controls and cards.
   ======================================================================== */

/* Dormant outside mobile/tablet. Required because the theme reset hides header/nav globally. */
#secr-app > .secr-mobile-appbar,
#secr-app > .secr-bottom-nav{
  display:none !important;
  visibility:hidden !important;
}

@media (max-width:900px){
  :root{
    --secr-appbar-h:64px;
    --secr-bottom-h:72px;
    --secr-mobile-bg:#f2f6fb;
    --secr-mobile-surface:rgba(255,255,255,.94);
    --secr-mobile-border:rgba(148,163,184,.24);
    --secr-mobile-shadow:0 8px 30px rgba(15,23,42,.10);
  }

  html{
    background:var(--secr-mobile-bg) !important;
  }

  body{
    background:var(--secr-mobile-bg) !important;
    -webkit-tap-highlight-color:transparent;
    overscroll-behavior:none;
  }

  #secr-app{
    background:var(--secr-mobile-bg) !important;
  }

  /* ---------- Top app bar ---------- */
  #secr-app > .secr-mobile-appbar{
    display:flex !important;
    visibility:visible !important;
    position:fixed !important;
    inset:0 0 auto 0 !important;
    z-index:10030 !important;
    height:calc(var(--secr-appbar-h) + env(safe-area-inset-top)) !important;
    min-height:calc(var(--secr-appbar-h) + env(safe-area-inset-top)) !important;
    padding:env(safe-area-inset-top) 14px 0 !important;
    margin:0 !important;
    overflow:visible !important;
    align-items:center !important;
    gap:11px !important;
    background:rgba(248,251,255,.88) !important;
    border:0 !important;
    border-bottom:1px solid rgba(148,163,184,.18) !important;
    box-shadow:0 1px 0 rgba(255,255,255,.7),0 8px 28px rgba(15,23,42,.06) !important;
    backdrop-filter:blur(18px) saturate(160%);
    -webkit-backdrop-filter:blur(18px) saturate(160%);
  }

  #secr-app .secr-mobile-menu-toggle{
    display:grid !important;
    place-items:center;
    position:static !important;
    flex:0 0 44px;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid rgba(148,163,184,.20) !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.78) !important;
    color:#0f3d78 !important;
    box-shadow:0 4px 14px rgba(15,23,42,.06) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    cursor:pointer;
  }
  #secr-app .secr-mobile-menu-toggle:active{transform:scale(.94);}
  #secr-app .secr-mobile-menu-icon{font-size:20px;line-height:1;}

  #secr-app .secr-mobile-appbar-title{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1.08;
  }
  #secr-app .secr-mobile-appbar-title > span{
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#64748b;
    margin-bottom:4px;
  }
  #secr-app .secr-mobile-appbar-title > strong{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:16px;
    font-weight:800;
    color:#0f172a;
  }
  #secr-app .secr-mobile-appbar-logo{
    flex:0 0 38px;
    width:38px !important;
    height:38px !important;
    padding:3px;
    object-fit:contain;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 14px rgba(15,23,42,.08);
  }

  /* ---------- Main app viewport ---------- */
  #secr-app > .secr-main{
    background:
      radial-gradient(circle at 92% 0%, rgba(0,170,255,.10), transparent 32%),
      linear-gradient(180deg,#f8fbff 0%,var(--secr-mobile-bg) 38%,#eef4f9 100%) !important;
    padding:
      calc(var(--secr-appbar-h) + env(safe-area-inset-top) + 14px)
      max(12px, env(safe-area-inset-right))
      calc(var(--secr-bottom-h) + env(safe-area-inset-bottom) + 24px)
      max(12px, env(safe-area-inset-left)) !important;
    scroll-padding-top:calc(var(--secr-appbar-h) + 16px) !important;
    overscroll-behavior-y:contain;
  }

  #secr-app .secr-section{
    overflow-x:visible !important;
  }

  /* ---------- Bottom tab bar ---------- */
  #secr-app > .secr-bottom-nav{
    display:grid !important;
    visibility:visible !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    align-items:center !important;
    gap:3px !important;
    position:fixed !important;
    left:max(8px, env(safe-area-inset-left)) !important;
    right:max(8px, env(safe-area-inset-right)) !important;
    bottom:max(8px, env(safe-area-inset-bottom)) !important;
    z-index:10025 !important;
    width:auto !important;
    height:64px !important;
    min-height:64px !important;
    padding:5px !important;
    margin:0 !important;
    overflow:visible !important;
    border:1px solid rgba(148,163,184,.20) !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.92) !important;
    box-shadow:0 12px 34px rgba(15,23,42,.18) !important;
    backdrop-filter:blur(20px) saturate(170%);
    -webkit-backdrop-filter:blur(20px) saturate(170%);
  }

  #secr-app .secr-bottom-tab{
    appearance:none;
    -webkit-appearance:none;
    border:0 !important;
    outline:0;
    height:52px !important;
    min-width:0 !important;
    margin:0 !important;
    padding:5px 2px 4px !important;
    border-radius:17px !important;
    background:transparent !important;
    color:#64748b !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    font-family:'Inter','Segoe UI',sans-serif !important;
    font-size:9.5px !important;
    font-weight:700 !important;
    line-height:1 !important;
    cursor:pointer;
    transition:transform .16s ease,background .18s ease,color .18s ease;
  }
  #secr-app .secr-bottom-tab i{
    font-size:18px;
    line-height:1;
  }
  #secr-app .secr-bottom-tab span{
    display:block;
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
  }
  #secr-app .secr-bottom-tab.active{
    color:#0866c6 !important;
    background:linear-gradient(145deg,rgba(29,119,232,.13),rgba(6,182,212,.09)) !important;
  }
  #secr-app .secr-bottom-tab:active{transform:scale(.92);}

  /* ---------- Drawer becomes a polished mobile sheet ---------- */
  #secr-app .secr-sidebar{
    width:min(89vw,350px) !important;
    max-width:350px !important;
    border-radius:0 26px 26px 0 !important;
    border-right:1px solid rgba(148,163,184,.20) !important;
    box-shadow:14px 0 45px rgba(15,23,42,.24) !important;
    background:rgba(255,255,255,.98) !important;
  }
  #secr-app .secr-sidebar-header{
    min-height:78px;
    padding-top:calc(14px + env(safe-area-inset-top)) !important;
    background:linear-gradient(145deg,rgba(29,119,232,.12),rgba(6,182,212,.07)) !important;
  }
  #secr-app .secr-mobile-menu-close{
    width:40px;
    height:40px;
    border-radius:14px;
    font-size:24px;
  }
  #secr-app .secr-sidebar-scroll{
    padding-bottom:calc(18px + env(safe-area-inset-bottom)) !important;
  }
  #secr-app .secr-sidebar nav{
    gap:3px !important;
  }
  #secr-app .secr-tab{
    min-height:46px !important;
    padding:10px 12px !important;
    border-radius:13px !important;
    font-size:13.5px !important;
    gap:11px !important;
  }
  #secr-app .secr-tab i{
    width:20px;
    text-align:center;
    font-size:15px;
  }
  #secr-app .secr-tab.active{
    background:linear-gradient(135deg,rgba(29,119,232,.13),rgba(0,196,140,.10)) !important;
    color:#0759aa !important;
    box-shadow:inset 3px 0 0 #1d77e8 !important;
  }
  #secr-app .secr-mobile-backdrop{
    background:rgba(15,23,42,.44) !important;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }

  /* ---------- App cards ---------- */
  #secr-app .secr-card,
  #secr-app .form-card,
  #secr-app .secr-profile-wrapper,
  #secr-app .dataTables_wrapper,
  #secr-app .gridjs-container,
  #secr-app .cq-calendar-container,
  #secr-app .secr-doc-card,
  #secr-app .secr-health-row{
    border-radius:18px !important;
    border:1px solid var(--secr-mobile-border) !important;
    background:var(--secr-mobile-surface) !important;
    box-shadow:var(--secr-mobile-shadow) !important;
  }

  #secr-app .secr-stats{
    gap:11px !important;
  }
  #secr-app .secr-stats .secr-card{
    min-height:116px;
    padding:14px !important;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    position:relative;
    overflow:hidden;
  }
  #secr-app .secr-stats .secr-card::after{
    content:"";
    position:absolute;
    width:70px;
    height:70px;
    border-radius:50%;
    right:-22px;
    top:-22px;
    background:currentColor;
    opacity:.055;
    pointer-events:none;
  }
  #secr-app .secr-stats .secr-card .icon{
    font-size:21px;
    margin-bottom:8px;
  }
  #secr-app .secr-stats .secr-card h4{
    margin:0 0 4px !important;
    font-size:11px !important;
    line-height:1.25;
    color:#64748b !important;
  }
  #secr-app .secr-stats .secr-card strong{
    margin-top:auto;
    font-size:20px !important;
    line-height:1.1;
    letter-spacing:-.02em;
  }
  #secr-app .secr-stats .secr-card:active,
  #secr-app .secr-card[data-target]:active{
    transform:scale(.985);
  }

  #secr-app .secr-dashboard-widgets{
    gap:13px !important;
    margin-top:18px !important;
  }

  /* ---------- Section typography ---------- */
  #secr-app .secr-section > h2:first-child,
  #secr-app .secr-section > h3:first-child{
    font-size:22px !important;
    line-height:1.18 !important;
    letter-spacing:-.025em;
    color:#0f172a !important;
    margin:3px 2px 5px !important;
  }
  #secr-app .secr-section > h2:first-child + p{
    margin:0 2px 16px !important;
    color:#64748b !important;
    font-size:13px !important;
  }

  /* ---------- Touch-friendly controls ---------- */
  #secr-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  #secr-app select,
  #secr-app textarea{
    min-height:44px;
    border-radius:12px !important;
    border:1px solid #d9e2ec !important;
    background:#fff !important;
    padding:10px 12px !important;
    font-size:16px !important; /* prevents iOS input zoom */
    line-height:1.25;
    box-shadow:0 1px 2px rgba(15,23,42,.02);
  }
  #secr-app textarea{min-height:90px;}
  #secr-app input:focus,
  #secr-app select:focus,
  #secr-app textarea:focus{
    outline:none !important;
    border-color:rgba(29,119,232,.65) !important;
    box-shadow:0 0 0 4px rgba(29,119,232,.10) !important;
  }

  #secr-app button:not(.secr-bottom-tab):not(.secr-mobile-menu-toggle):not(.secr-mobile-menu-close):not(.secr-mobile-backdrop),
  #secr-app .btn,
  #secr-app .secr-btn,
  #secr-app a.button,
  #secr-app input[type="submit"]{
    min-height:42px;
    border-radius:12px !important;
    touch-action:manipulation;
  }
  #secr-app button:active,
  #secr-app .btn:active,
  #secr-app .secr-btn:active,
  #secr-app a.button:active{
    transform:scale(.98);
  }

  /* Checkbox/radio sized for thumbs without destroying native semantics. */
  #secr-app input[type="checkbox"],
  #secr-app input[type="radio"]{
    width:20px;
    height:20px;
    min-width:20px;
    accent-color:#1d77e8;
  }

  /* ---------- Data-heavy screens look like app panels ---------- */
  #secr-app .dataTables_wrapper{
    padding:10px !important;
    overflow-x:auto !important;
    scrollbar-width:thin;
  }
  #secr-app .dataTables_wrapper .dataTables_filter input,
  #secr-app .gridjs-search-input{
    min-height:42px !important;
    border-radius:12px !important;
  }
  #secr-app table.dataTable,
  #secr-app table.secr-table,
  #secr-app table.widefat,
  #secr-app table.display,
  #secr-app table.gridjs-table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    background:#fff;
    border-radius:13px;
    overflow:hidden;
  }
  #secr-app table th{
    position:sticky;
    top:0;
    z-index:2;
    background:#f8fafc !important;
    color:#475569 !important;
    font-size:11px !important;
    letter-spacing:.02em;
  }
  #secr-app table td{
    font-size:12px !important;
    vertical-align:middle;
  }
  #secr-app table td,
  #secr-app table th{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  /* ---------- Modals / popovers feel like bottom sheets on a phone ---------- */
  #secr-app .cq-modal,
  #secr-bug-box form{
    border-radius:22px !important;
    box-shadow:0 24px 70px rgba(15,23,42,.25) !important;
  }

  /* ---------- Reduce visual clutter on tiny screens ---------- */
  #secr-app .menu-divider{
    width:auto !important;
    margin:5px 10px !important;
    opacity:.5;
  }
  #secr-app .secr-sidebar-section-title{
    margin-top:12px !important;
    font-size:11px !important;
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  /* Dark mode app shell. */
  body.dark-mode{
    --secr-mobile-bg:#0b1220;
    --secr-mobile-surface:rgba(17,24,39,.94);
    --secr-mobile-border:rgba(148,163,184,.18);
    --secr-mobile-shadow:0 10px 32px rgba(0,0,0,.24);
  }
  body.dark-mode #secr-app > .secr-mobile-appbar{
    background:rgba(11,18,32,.88) !important;
    border-bottom-color:rgba(148,163,184,.13) !important;
  }
  body.dark-mode #secr-app .secr-mobile-appbar-title > span{color:#94a3b8;}
  body.dark-mode #secr-app .secr-mobile-appbar-title > strong{color:#f8fafc;}
  body.dark-mode #secr-app .secr-mobile-menu-toggle,
  body.dark-mode #secr-app .secr-mobile-appbar-logo,
  body.dark-mode #secr-app > .secr-bottom-nav{
    background:rgba(17,24,39,.92) !important;
    border-color:rgba(148,163,184,.18) !important;
  }
  body.dark-mode #secr-app .secr-bottom-tab{color:#94a3b8 !important;}
  body.dark-mode #secr-app .secr-bottom-tab.active{
    color:#7dd3fc !important;
    background:rgba(14,165,233,.12) !important;
  }
  body.dark-mode #secr-app .secr-section > h2:first-child,
  body.dark-mode #secr-app .secr-section > h3:first-child{color:#f8fafc !important;}
  body.dark-mode #secr-app .secr-section > h2:first-child + p{color:#94a3b8 !important;}
}

@media (max-width:420px){
  #secr-app > .secr-bottom-nav{
    left:max(5px,env(safe-area-inset-left)) !important;
    right:max(5px,env(safe-area-inset-right)) !important;
    border-radius:19px !important;
  }
  #secr-app .secr-bottom-tab{
    font-size:8.5px !important;
  }
  #secr-app .secr-bottom-tab i{font-size:17px;}
  #secr-app .secr-mobile-appbar-title > strong{font-size:15px;}
}

@media (max-width:900px){
  /* Keep the bug/report floating control above the native-style tab bar. */
  #secr-bug-container{
    right:max(12px,env(safe-area-inset-right)) !important;
    bottom:calc(var(--secr-bottom-h) + 20px + env(safe-area-inset-bottom)) !important;
    z-index:10010 !important;
  }
}

/* ========================================================================
   30) Secreteriat 2.1.7 — TRUE APP SHELL
   The [tools] page is now rendered without the WordPress theme chrome.
   This layer also turns ordinary data tables into mobile record cards.
   ======================================================================== */

html:has(body.secr-standalone-app),
body.secr-standalone-app{
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  min-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#eef4f9 !important;
}

body.secr-standalone-app{
  font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.secr-standalone-app #wpadminbar{display:none !important;}
html:has(body.secr-standalone-app){margin-top:0 !important;}

#secr-standalone-root{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
  background:#eef4f9 !important;
  z-index:1;
}

#secr-standalone-root > #secr-app{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
}

/* Login also feels like an app entry screen rather than a page inside a site. */
body.secr-standalone-app .secr-login-box{
  width:min(calc(100vw - 28px),430px) !important;
  margin:clamp(28px,10vh,92px) auto !important;
  border:1px solid rgba(148,163,184,.22) !important;
  border-radius:24px !important;
  box-shadow:0 24px 70px rgba(15,23,42,.14) !important;
}

@media (max-width:900px){
  body.secr-standalone-app{
    background:#eef4f9 !important;
  }

  /* Make every screen feel like a native screen, not a web page. */
  #secr-app > .secr-main{
    background:#eef4f9 !important;
  }

  #secr-app .secr-section{
    padding:0 !important;
  }

  /* The app bar already carries the current screen title. */
  #secr-app .secr-section > h2:first-child{
    display:none !important;
  }

  #secr-app .secr-section > h2:first-child + p{
    margin:2px 4px 14px !important;
    font-size:13px !important;
    line-height:1.45 !important;
  }

  /* Native-like grouped content. */
  #secr-app .secr-card,
  #secr-app .form-card,
  #secr-app .secr-profile-wrapper,
  #secr-app .secr-doc-card,
  #secr-app .secr-health-row,
  #secr-app fieldset{
    border-radius:20px !important;
  }

  #secr-app form:not(.dataTables_filter):not(.secr-inline-form){
    max-width:100% !important;
  }

  #secr-app label{
    font-size:12px;
    font-weight:700;
    color:#475569;
  }

  /* Buttons look like app actions. */
  #secr-app .btn,
  #secr-app .secr-btn,
  #secr-app a.button,
  #secr-app button:not(.secr-bottom-tab):not(.secr-mobile-menu-toggle):not(.secr-mobile-menu-close):not(.secr-mobile-backdrop){
    min-height:44px !important;
    padding:10px 14px !important;
    border-radius:14px !important;
    font-weight:700 !important;
  }

  /* MOBILE RECORD CARDS -------------------------------------------------- */
  #secr-app table.secr-mobile-card-table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    display:block !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  #secr-app table.secr-mobile-card-table thead{
    display:none !important;
  }

  #secr-app table.secr-mobile-card-table tbody{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    width:100% !important;
  }

  #secr-app table.secr-mobile-card-table tbody tr{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:7px 12px !important;
    border:1px solid rgba(148,163,184,.22) !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.96) !important;
    box-shadow:0 7px 24px rgba(15,23,42,.07) !important;
    overflow:hidden !important;
  }

  #secr-app table.secr-mobile-card-table tbody td{
    display:grid !important;
    grid-template-columns:minmax(96px,38%) minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    min-height:42px !important;
    padding:9px 2px !important;
    border:0 !important;
    border-bottom:1px solid #edf2f7 !important;
    background:transparent !important;
    text-align:right !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    font-size:13px !important;
  }

  #secr-app table.secr-mobile-card-table tbody td:last-child{
    border-bottom:0 !important;
  }

  #secr-app table.secr-mobile-card-table tbody td::before{
    content:attr(data-secr-label);
    display:block;
    min-width:0;
    color:#64748b;
    font-size:11px;
    font-weight:800;
    line-height:1.25;
    text-align:left;
    text-transform:none;
  }

  #secr-app table.secr-mobile-card-table tbody td[data-secr-label=""]{
    grid-template-columns:minmax(0,1fr) !important;
    text-align:left !important;
  }
  #secr-app table.secr-mobile-card-table tbody td[data-secr-label=""]::before{
    display:none !important;
  }

  #secr-app table.secr-mobile-card-table tbody td[colspan]{
    display:block !important;
    text-align:left !important;
  }
  #secr-app table.secr-mobile-card-table tbody td[colspan]::before{display:none !important;}

  #secr-app table.secr-mobile-card-table tbody td .btn,
  #secr-app table.secr-mobile-card-table tbody td .secr-btn,
  #secr-app table.secr-mobile-card-table tbody td button,
  #secr-app table.secr-mobile-card-table tbody td a.button{
    margin:2px !important;
  }

  /* Once a DataTable is cardified it no longer needs horizontal scrolling. */
  #secr-app .dataTables_wrapper:has(table.secr-mobile-card-table){
    overflow-x:visible !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* Search, filters and paging resemble compact app controls. */
  #secr-app .dataTables_wrapper .dataTables_filter,
  #secr-app .dataTables_wrapper .dataTables_length{
    padding:0 2px;
  }
  #secr-app .dataTables_wrapper .dataTables_info{
    color:#64748b !important;
    font-size:11px !important;
  }
  #secr-app .dataTables_wrapper .dataTables_paginate{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:4px !important;
  }

  /* Dashboard: larger, glanceable tiles. */
  #secr-app .secr-stats .secr-card{
    min-height:124px !important;
    border-radius:22px !important;
    box-shadow:0 10px 26px rgba(15,23,42,.08) !important;
  }

  /* Bottom bar is attached to the viewport like a native tab bar. */
  #secr-app > .secr-bottom-nav{
    bottom:calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width:640px){
  #secr-app > .secr-main{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  #secr-app .secr-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  #secr-app .secr-stats .secr-card strong{
    font-size:22px !important;
  }
}

@media (max-width:380px){
  #secr-app .secr-bottom-tab span{font-size:8.5px !important;}
  #secr-app .secr-mobile-appbar-logo{display:none !important;}
}

/* ========================================================================
   30) Secreteriat 2.1.12 — Sidebar visual refinement
   Final scoped layer: cleaner hierarchy, compact utilities and stronger
   desktop/mobile states without changing navigation behaviour.
   ======================================================================== */

#secr-app .secr-sidebar{
  flex-basis:264px !important;
  width:264px !important;
  background:
    radial-gradient(circle at 12% 4%, rgba(29,119,232,.085), transparent 25%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 56%,#f7fafc 100%) !important;
  border-right:1px solid rgba(148,163,184,.22) !important;
  box-shadow:8px 0 28px rgba(15,23,42,.055) !important;
}

#secr-app .secr-sidebar-header{
  min-height:82px;
  gap:12px;
  padding:15px 16px !important;
  background:transparent !important;
  border-bottom:0 !important;
}

#secr-app .secr-logo{
  width:46px !important;
  height:46px !important;
  padding:3px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px !important;
  background:rgba(255,255,255,.86);
  box-shadow:0 7px 20px rgba(15,23,42,.09) !important;
}

#secr-app .secr-logo:hover{
  transform:translateY(-1px) scale(1.02);
  filter:none;
}

#secr-app .secr-sidebar-title{
  min-width:0;
}

#secr-app .secr-sidebar-title h2{
  margin:0 !important;
  color:#0f172a !important;
  font-size:16px !important;
  font-weight:800 !important;
  letter-spacing:-.025em;
}

#secr-app .secr-sidebar-title p{
  margin:4px 0 0 !important;
  color:#64748b !important;
  font-size:11px !important;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

#secr-app .sidebar-divider{
  width:auto !important;
  height:1px !important;
  margin:0 16px !important;
  background:linear-gradient(90deg,transparent,rgba(148,163,184,.32),transparent) !important;
}

#secr-app #secr-lang-carousel.secr-lang-carousel{
  position:relative;
  width:auto !important;
  height:58px !important;
  min-height:58px;
  margin:10px 12px 8px !important;
  padding:7px 42px 7px 8px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(148,163,184,.18);
  border-radius:15px;
  background:rgba(255,255,255,.76);
  box-shadow:0 4px 16px rgba(15,23,42,.045);
  overflow:hidden;
  transform:none !important;
}

#secr-app #secr-lang-carousel:hover{
  transform:none !important;
  box-shadow:0 6px 18px rgba(15,23,42,.07);
}

#secr-app #flag-wheel.secr-flag-wheel{
  position:relative !important;
  width:154px !important;
  height:40px !important;
  flex:0 0 154px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  transform-style:preserve-3d;
  transition:transform .35s ease;
}

#secr-app #flag-wheel .flag-item{
  position:absolute !important;
  width:31px !important;
  height:31px !important;
  border:2px solid rgba(255,255,255,.92);
  border-radius:50% !important;
  object-fit:cover;
  cursor:pointer;
  transition:transform .25s ease,opacity .25s ease,filter .25s ease !important;
  box-shadow:0 2px 6px rgba(15,23,42,.12);
}

#secr-app #flag-wheel .flag-item:hover{
  filter:brightness(1.04) drop-shadow(0 3px 6px rgba(15,23,42,.16));
}

#secr-app .secr-lang-code{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  min-width:30px;
  padding:4px 6px;
  border:1px solid rgba(29,119,232,.14);
  border-radius:8px;
  background:rgba(29,119,232,.08);
  color:#0b5cab;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1.2;
  text-align:center;
}

#secr-app .secr-theme-toggle{
  position:static !important;
  right:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  display:flex !important;
  justify-content:center !important;
  margin:8px 0 10px !important;
}

#secr-app .theme-slider{
  width:72px !important;
  height:34px !important;
  padding:0 9px !important;
  border:1px solid rgba(148,163,184,.20);
  border-radius:999px !important;
  background:#f1f5f9 !important;
  box-shadow:inset 0 1px 3px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.04) !important;
  font-size:14px !important;
}

#secr-app .theme-slider::after{
  top:3px !important;
  left:3px !important;
  width:26px !important;
  height:26px !important;
  box-shadow:0 2px 7px rgba(15,23,42,.14) !important;
}

#secr-app #theme-switch:checked + .theme-slider::after{
  transform:translateX(38px) !important;
}

#secr-app .secr-sidebar-scroll{
  min-height:0;
  padding:0 5px 8px 0 !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(100,116,139,.25) transparent !important;
}

#secr-app .secr-sidebar-scroll::-webkit-scrollbar{
  width:5px !important;
  height:5px !important;
}

#secr-app .secr-sidebar-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#secr-app .secr-sidebar-scroll::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(100,116,139,.22);
}

#secr-app .secr-sidebar-section-title{
  margin:10px 14px 5px 16px !important;
  padding:5px 7px !important;
  color:#64748b !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.105em !important;
  text-transform:uppercase;
  box-shadow:none !important;
}

#secr-app .secr-sidebar nav{
  padding:3px 10px 10px !important;
  gap:3px !important;
}

#secr-app .secr-tab{
  position:relative;
  width:100%;
  min-height:42px;
  margin:0 !important;
  padding:6px 10px 6px 8px !important;
  gap:10px !important;
  justify-content:flex-start;
  border:1px solid transparent !important;
  border-left:0 !important;
  border-radius:11px !important;
  background:transparent !important;
  color:#334155 !important;
  font-size:12.5px !important;
  font-weight:650 !important;
  line-height:1.2;
  text-align:left;
  box-shadow:none !important;
  transition:background .16s ease,color .16s ease,transform .16s ease,border-color .16s ease,box-shadow .16s ease !important;
}

#secr-app .secr-tab i{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px !important;
  height:28px;
  border-radius:9px;
  background:#f1f5f9;
  color:#64748b;
  font-size:13px !important;
  opacity:1 !important;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}

#secr-app .secr-tab:hover{
  transform:translateX(2px);
  border-color:rgba(148,163,184,.16) !important;
  background:rgba(241,245,249,.82) !important;
  color:#0f172a !important;
}

#secr-app .secr-tab:hover i{
  background:#e8f2ff;
  color:#1769c2;
}

#secr-app .secr-tab.active{
  transform:none;
  border-color:rgba(29,119,232,.16) !important;
  background:linear-gradient(90deg,rgba(29,119,232,.115),rgba(0,196,140,.065)) !important;
  color:#0759aa !important;
  font-weight:800 !important;
  box-shadow:0 4px 14px rgba(29,119,232,.075) !important;
}

#secr-app .secr-tab.active::before{
  content:"";
  position:absolute;
  left:-1px;
  top:9px;
  bottom:9px;
  width:3px;
  border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,#1d77e8,#00c48c);
}

#secr-app .secr-tab.active i{
  background:linear-gradient(145deg,#1d77e8,#00a8d8) !important;
  color:#fff !important;
  box-shadow:0 4px 10px rgba(29,119,232,.20);
}

#secr-app .menu-divider{
  width:auto !important;
  height:1px !important;
  margin:5px 10px !important;
  background:linear-gradient(90deg,transparent,rgba(148,163,184,.27),transparent) !important;
}

#secr-app .secr-sidebar > .secr-face{
  flex:0 0 auto;
  width:58px !important;
  height:58px !important;
  margin:8px auto !important;
  border:1px solid rgba(148,163,184,.22) !important;
  background:#fff !important;
  box-shadow:0 5px 14px rgba(15,23,42,.07) !important;
}

#secr-app .secr-sidebar > .secr-face .secr-tick{
  transform:translate(-50%,-100%) rotate(calc(var(--i) * 6deg)) translateY(-25px);
}

#secr-app .secr-sidebar > .secr-face .secr-tick.is-hour{
  transform:translate(-50%,-100%) rotate(calc(var(--i) * 6deg)) translateY(-23px);
}

#secr-app .secr-sidebar > .secr-face .secr-hand.hour{height:16px;}
#secr-app .secr-sidebar > .secr-face .secr-hand.minute{height:23px;}
#secr-app .secr-sidebar > .secr-face .secr-hand.second{height:26px;}

#secr-app .secr-sidebar .secr-sidebar-footer{
  flex:0 0 auto;
  margin-top:0 !important;
  padding:10px 12px 12px !important;
  border-top:1px solid rgba(148,163,184,.13) !important;
  border-radius:0 !important;
  background:rgba(248,250,252,.72) !important;
  text-align:center !important;
}

#secr-app .secr-sidebar .footer-divider{
  display:none !important;
}

#secr-app .secr-sidebar .footer-user{
  margin-bottom:2px !important;
  color:#475569 !important;
  font-size:11.5px !important;
  font-weight:700 !important;
}

#secr-app .secr-sidebar .footer-user i{
  color:#64748b !important;
  font-size:11px !important;
}

#secr-app .secr-sidebar .footer-text{
  color:#94a3b8 !important;
  font-size:10px !important;
  letter-spacing:.02em !important;
}

/* A real dark sidebar instead of white text on a light hover state. */
body.dark-mode #secr-app .secr-sidebar{
  background:
    radial-gradient(circle at 10% 2%, rgba(56,189,248,.12), transparent 24%),
    linear-gradient(180deg,#111827 0%,#0f172a 100%) !important;
  border-right-color:rgba(148,163,184,.14) !important;
  color:#e5e7eb !important;
}

body.dark-mode #secr-app .secr-sidebar-title h2{color:#f8fafc !important;}
body.dark-mode #secr-app .secr-sidebar-title p,
body.dark-mode #secr-app .secr-sidebar-section-title{color:#94a3b8 !important;}

body.dark-mode #secr-app #secr-lang-carousel.secr-lang-carousel{
  border-color:rgba(148,163,184,.13);
  background:rgba(30,41,59,.70);
}

body.dark-mode #secr-app .secr-lang-code{
  border-color:rgba(56,189,248,.18);
  background:rgba(14,165,233,.11);
  color:#7dd3fc;
}

body.dark-mode #secr-app .theme-slider{
  border-color:rgba(148,163,184,.14) !important;
  background:#1e293b !important;
}

body.dark-mode #secr-app .secr-tab{
  background:transparent !important;
  color:#cbd5e1 !important;
}

body.dark-mode #secr-app .secr-tab i{
  background:rgba(51,65,85,.72);
  color:#94a3b8;
}

body.dark-mode #secr-app .secr-tab:hover{
  border-color:rgba(148,163,184,.10) !important;
  background:rgba(51,65,85,.48) !important;
  color:#f8fafc !important;
}

body.dark-mode #secr-app .secr-tab:hover i{
  background:rgba(14,165,233,.15);
  color:#7dd3fc;
}

body.dark-mode #secr-app .secr-tab.active{
  border-color:rgba(56,189,248,.18) !important;
  background:linear-gradient(90deg,rgba(29,119,232,.19),rgba(0,196,140,.10)) !important;
  color:#bae6fd !important;
}

body.dark-mode #secr-app .secr-sidebar > .secr-face{
  background:#111827 !important;
  border-color:rgba(148,163,184,.17) !important;
}

body.dark-mode #secr-app .secr-sidebar .secr-sidebar-footer{
  border-top-color:rgba(148,163,184,.11) !important;
  background:rgba(15,23,42,.72) !important;
}

body.dark-mode #secr-app .secr-sidebar .footer-user{color:#cbd5e1 !important;}
body.dark-mode #secr-app .secr-sidebar .footer-user i{color:#94a3b8 !important;}
body.dark-mode #secr-app .secr-sidebar .footer-text{color:#64748b !important;}

@media (max-width:900px){
  #secr-app .secr-sidebar{
    width:min(90vw,340px) !important;
    max-width:340px !important;
    flex-basis:auto !important;
    border-radius:0 24px 24px 0 !important;
    box-shadow:16px 0 48px rgba(15,23,42,.24) !important;
  }

  #secr-app .secr-sidebar-header{
    min-height:76px;
    padding:calc(12px + env(safe-area-inset-top)) 56px 12px 14px !important;
  }

  #secr-app #secr-lang-carousel.secr-lang-carousel{
    margin-top:8px !important;
  }

  #secr-app .secr-sidebar-scroll{
    scrollbar-width:none !important;
  }

  #secr-app .secr-sidebar-scroll::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
  }

  #secr-app .secr-tab{
    min-height:45px !important;
    padding:7px 10px 7px 8px !important;
    border-radius:12px !important;
    font-size:13px !important;
  }

  #secr-app .secr-tab i{
    flex-basis:30px;
    width:30px !important;
    height:30px;
    border-radius:10px;
    font-size:14px !important;
  }

  #secr-app .secr-tab:hover{
    transform:none;
  }

  #secr-app .secr-sidebar > .secr-face{
    width:52px !important;
    height:52px !important;
    margin:6px auto !important;
  }

  #secr-app .secr-sidebar > .secr-face .secr-tick{
    transform:translate(-50%,-100%) rotate(calc(var(--i) * 6deg)) translateY(-22px);
  }

  #secr-app .secr-sidebar > .secr-face .secr-tick.is-hour{
    transform:translate(-50%,-100%) rotate(calc(var(--i) * 6deg)) translateY(-20px);
  }

  #secr-app .secr-sidebar > .secr-face .secr-hand.hour{height:14px;}
  #secr-app .secr-sidebar > .secr-face .secr-hand.minute{height:20px;}
  #secr-app .secr-sidebar > .secr-face .secr-hand.second{height:23px;}
}

/* Locale direction is scoped to the application; financial input values stay LTR. */
#secr-app[dir="rtl"]{direction:rtl}
#secr-app[dir="rtl"] input[type="email"],#secr-app[dir="rtl"] input[type="url"],#secr-app[dir="rtl"] input[inputmode="decimal"]{direction:ltr;text-align:left}
#secr-app[dir="rtl"] #secr-pos .pos-category{text-align:right}
#secr-app[dir="rtl"] .secr-sidebar-title,#secr-app[dir="rtl"] .secr-mobile-appbar-title{text-align:right}
