/* iOS "Liquid Glass" finish: see-through panels floating over a soft colour wash, capsule controls.
   Remove the <link> to this file (base.html, base_portal.html) to go back to the solid look.
   Blur is used only on bars, menus and pop-ups, so scrolling stays smooth. */
html[data-palette="iytech"] {
  --brand: #007aff; --brand-dark: #0a6ae0; --accent: #007aff; --accent-dark: #0a6ae0; --brand-rgb: 0,122,255; --brand-tint: rgba(0,122,255,.12);
  --glass: rgba(255,255,255,.58); --glass-strong: rgba(255,255,255,.74); --glass-edge: rgba(255,255,255,.85);
  --glass-shadow: 0 0 0 .5px rgba(30,60,110,.10), 0 8px 28px -14px rgba(30,60,110,.28);
  --mac-card: rgba(255,255,255,.66); --mac-line: rgba(30,60,110,.10); --mac-field: rgba(120,130,160,.14); --mac-focus: 0 0 0 3.5px rgba(0,122,255,.30);
  --text: #111827; --text-muted: #55607a; --r-sm: 10px; --r-md: 14px; --r-lg: 18px;
}
html[data-palette="iytech"] body {
  background:
    radial-gradient(55vmax 45vmax at 6% 4%, rgba(90,200,250,.38), transparent 62%),
    radial-gradient(50vmax 42vmax at 96% 8%, rgba(175,150,255,.30), transparent 62%),
    radial-gradient(60vmax 50vmax at 78% 102%, rgba(255,170,200,.26), transparent 62%),
    radial-gradient(55vmax 45vmax at 12% 100%, rgba(120,225,190,.24), transparent 62%),
    #eef2f9 !important;
  background-attachment: fixed;
}
html[data-palette="iytech"] .app-body, html[data-palette="iytech"] main { background: transparent !important; }

/* floating glass bars */
html[data-palette="iytech"] .lms-navbar, html[data-palette="iytech"] .nb-brand { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html[data-palette="iytech"] .lms-navbar { background: rgba(255,255,255,.42) !important; -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: inset 0 -.5px 0 rgba(30,60,110,.10) !important; }
@media (min-width: 769px) {
  html[data-palette="iytech"] #sidebar {
    margin: 10px 0 10px 10px; height: calc(100% - 20px); border-radius: 22px; border: 1px solid var(--glass-edge) !important;
    background: var(--glass) !important; box-shadow: var(--glass-shadow) !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  }
}
@media (max-width: 768px) { html[data-palette="iytech"] #sidebar { background: rgba(255,255,255,.9) !important; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); } }
html[data-palette="iytech"] .sb-section { color: #6b7694 !important; }
html[data-palette="iytech"] #sidebar .nav-link { color: #1f2a44 !important; border-radius: 999px !important; padding-left: 12px; }
html[data-palette="iytech"] #sidebar .nav-link .sb-icon { color: var(--brand) !important; }
html[data-palette="iytech"] #sidebar .nav-link:hover { background: rgba(255,255,255,.7) !important; color: #111827 !important; }
html[data-palette="iytech"] #sidebar .nav-link.active { background: rgba(0,122,255,.92) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px -4px rgba(0,122,255,.55) !important; }
html[data-palette="iytech"] #sidebar .nav-link.active .sb-icon { color: #fff !important; }
html[data-palette="iytech"] .sb-divider { background: rgba(30,60,110,.12) !important; border-color: rgba(30,60,110,.12) !important; }

/* glass cards */
html[data-palette="iytech"] .card, html[data-palette="iytech"] .form-card, html[data-palette="iytech"] .cls-block, html[data-palette="iytech"] .dash-hero {
  background: var(--glass) !important; border: 1px solid var(--glass-edge) !important; box-shadow: var(--glass-shadow) !important;
}
html[data-palette="iytech"] .card-header { background: transparent !important; }
html[data-palette="iytech"] .table { --bs-table-bg: transparent; background: transparent; }
html[data-palette="iytech"] .table > tbody > tr > td { background-color: transparent; }
html[data-palette="iytech"] .table > thead > tr > th { background: rgba(255,255,255,.35) !important; color: #3b4764; }
html[data-palette="iytech"] .table-responsive.fixed-list > .table > thead > tr > th { background: rgba(246,248,253,.96) !important; }
html[data-palette="iytech"] .table-hover > tbody > tr:hover > td { background: rgba(255,255,255,.65) !important; }
@media (max-width: 767.98px) { html[data-palette="iytech"] .table-search { background: rgba(246,248,253,.95); } }

/* capsule controls */
html[data-palette="iytech"] .btn, html[data-palette="iytech"] main .input-group > .form-control, html[data-palette="iytech"] .table-search input[type="search"],
html[data-palette="iytech"] main form[method="get"] .form-select, html[data-palette="iytech"] .table-search .form-select, html[data-palette="iytech"] .action-chip { border-radius: 999px !important; }
html[data-palette="iytech"] .btn-primary, html[data-palette="iytech"] .btn-primary:hover, html[data-palette="iytech"] .btn-primary:focus {
  background: rgba(0,122,255,.94) !important; border-color: transparent !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px rgba(0,122,255,.6) !important;
}
html[data-palette="iytech"] .btn-primary:hover { background: #006be0 !important; }
html[data-palette="iytech"] .btn-outline-secondary { background: var(--glass-strong) !important; box-shadow: inset 0 0 0 1px var(--glass-edge), 0 0 0 .5px rgba(30,60,110,.14), 0 2px 6px -2px rgba(30,60,110,.16) !important; }
html[data-palette="iytech"] .form-control, html[data-palette="iytech"] .form-select { background-color: var(--glass-strong); }

/* glass menus and pop-ups */
html[data-palette="iytech"] .dropdown-menu, html[data-palette="iytech"] .mcal, html[data-palette="iytech"] .modal-content, html[data-palette="iytech"] .mac-alert {
  background: rgba(255,255,255,.78) !important; border: 1px solid var(--glass-edge) !important; border-radius: 18px !important;
  -webkit-backdrop-filter: saturate(180%) blur(26px); backdrop-filter: saturate(180%) blur(26px);
}
html[data-palette="iytech"] select::picker(select) { background: rgba(255,255,255,.96); border-radius: 14px; }
html[data-palette="iytech"] .dropdown-item { border-radius: 10px; }

/* phone: floating tab bar */
@media (max-width: 768px) {
  html[data-palette="iytech"] .bottom-nav {
    left: 10px; right: 10px; bottom: 8px; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-edge) !important;
    background: rgba(255,255,255,.66) !important; box-shadow: var(--glass-shadow) !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  }
}

/* sign-in card */
html[data-palette="iytech"] .auth-v2 { background: transparent !important; --a-card: rgba(255,255,255,.64); --a-line: rgba(255,255,255,.9); --a-soft: rgba(120,130,160,.14); --a-main: #007aff; }
html[data-palette="iytech"] .auth-v2 .av-panel, html[data-palette="iytech"] body .auth-v2 > .av-hero { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
html[data-palette="iytech"] body .auth-v2 > .av-hero { border-radius: 26px 26px 0 0 !important; }
html[data-palette="iytech"] .auth-v2 .av-panel { border-radius: 0 0 26px 26px !important; box-shadow: 0 24px 50px -22px rgba(30,60,110,.35) !important; }
html[data-palette="iytech"] .auth-v2 .av-btn, html[data-palette="iytech"] .auth-v2 .av-roles, html[data-palette="iytech"] .auth-v2 .av-role { border-radius: 999px !important; }
html[data-palette="iytech"] .auth-v2 .av-input input { border-radius: 14px !important; }
/* the white glass edge is too faint around input boxes */
html[data-palette="iytech"] .auth-v2 .av-input input { border-color: rgba(30,60,110,.16) !important; background: rgba(255,255,255,.75) !important; }
html[data-palette="iytech"] .auth-v2 .av-input input:focus { border-color: #007aff !important; }
/* the sign-in card is two stacked pieces (logo, form): give them the same surface so no seam shows */
html[data-palette="iytech"] body .auth-v2 > .av-hero, html[data-palette="iytech"] body .auth-v2 > .av-panel {
  background: rgba(255,255,255,.82) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-palette="iytech"] body .auth-v2 > .av-hero { border: 1px solid #fff !important; border-bottom: 0 !important; box-shadow: none !important; }
html[data-palette="iytech"] body .auth-v2 > .av-panel { border: 1px solid #fff !important; border-top: 0 !important; margin: 0 !important; }
/* scrollbars inside rounded panels: stay clear of the corners */
@supports selector(::-webkit-scrollbar) {
  #sidebar::-webkit-scrollbar { width: 8px; }
  #sidebar::-webkit-scrollbar-track { margin: 20px 0; }
  #sidebar::-webkit-scrollbar-thumb { background: rgba(60,60,67,.18); border: 2px solid transparent; background-clip: padding-box; }
  #sidebar::-webkit-scrollbar-thumb:hover { background: rgba(60,60,67,.38); background-clip: padding-box; }
  .table-responsive.fixed-list::-webkit-scrollbar-track { margin: 36px 0 14px; }        /* below the headings, above the corner */
  .dropdown-menu::-webkit-scrollbar-track, select::picker(select)::-webkit-scrollbar-track { margin: 10px 0; }
}

/* ══════════ Colour: SKY & INK.
   Ink black = the logo and everything you read (headings, text, icons).  Sky blue = what you can click and where you are. ══════════ */
html[data-palette="iytech"] {
  --brand: #0284c7; --brand-dark: #0369a1; --brand-deep: #075985; --brand-light: #0ea5e9; --brand-ink: #0c4a6e; --brand-rgb: 2,132,199;
  --accent: #0284c7; --accent-dark: #0369a1; --accent-glow: rgba(2,132,199,.30);
  --brand-tint: rgba(14,165,233,.13); --glass: rgba(255,255,255,.62); --glass-strong: rgba(255,255,255,.78); --glass-edge: rgba(255,255,255,.92);
  --text: #0b0f14; --text-muted: #55606e; --mac-focus: 0 0 0 3.5px rgba(14,165,233,.32); --mac-field: rgba(100,116,139,.13);
  --glass-shadow: 0 0 0 .5px rgba(12,60,95,.11), 0 10px 30px -16px rgba(12,74,110,.30);
  --bs-primary: #0284c7; --bs-primary-rgb: 2,132,199; --bs-link-color: #0369a1; --bs-link-color-rgb: 3,105,161; --bs-link-hover-color-rgb: 7,89,133;
}
html[data-palette="iytech"] body {
  background:
    radial-gradient(55vmax 46vmax at 0% 0%, rgba(56,189,248,.26), transparent 64%),
    radial-gradient(50vmax 42vmax at 100% 6%, rgba(125,211,252,.24), transparent 64%),
    radial-gradient(60vmax 50vmax at 85% 104%, rgba(186,230,253,.34), transparent 64%),
    #f3f7fb !important;
  background-attachment: fixed;
}
/* sidebar: black words and icons, like the logo; the current page in sky blue */
html[data-palette="iytech"] #sidebar .nav-link, html[data-palette="iytech"] #sidebar .nav-link .sb-icon { color: #0b0f14 !important; }
html[data-palette="iytech"] .sb-section { color: #77818f !important; }
html[data-palette="iytech"] #sidebar .nav-link.active { background: #0284c7 !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -7px rgba(2,132,199,.7) !important; }
html[data-palette="iytech"] #sidebar .nav-link.active .sb-icon { color: #fff !important; }
html[data-palette="iytech"] .btn-primary, html[data-palette="iytech"] .btn-primary:focus { background: #0284c7 !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 7px 14px -8px rgba(2,132,199,.75) !important; }
html[data-palette="iytech"] .btn-primary:hover { background: #0369a1 !important; }
/* section tabs (payroll and the like) */
html[data-palette="iytech"] .nav-pills { --bs-nav-pills-link-active-bg: #0284c7; }
html[data-palette="iytech"] .nav-pills .nav-link { color: #0b0f14; border-radius: 999px; font-weight: 600; }
html[data-palette="iytech"] .nav-pills .nav-link:hover { background: rgba(255,255,255,.75); color: #0369a1; }
html[data-palette="iytech"] .nav-pills .nav-link.active, html[data-palette="iytech"] .nav-pills .nav-link.active:hover { background: #0284c7 !important; color: #fff !important; }
html[data-palette="iytech"] .nav-tabs .nav-link { color: #0b0f14; }
html[data-palette="iytech"] .nav-tabs .nav-link.active { color: #0369a1; }
/* icons in cards read like ink on a pale sky chip */
html[data-palette="iytech"] .card-icon, html[data-palette="iytech"] .stat-icon-wrap, html[data-palette="iytech"] .sh-icon { background: rgba(14,165,233,.13) !important; color: #0b0f14 !important; }
html[data-palette="iytech"] .row-avatar, html[data-palette="iytech"] .nb-avatar, html[data-palette="iytech"] .dash-hero .dh-ava { background: linear-gradient(135deg, #0b0f14, #27313d) !important; color: #fff !important; }
html[data-palette="iytech"] .table > thead > tr > th { color: #35414f; }
html[data-palette="iytech"] .bottom-nav a.active, html[data-palette="iytech"] .bottom-nav a.active i { color: #0284c7 !important; }
html[data-palette="iytech"] .dropdown-item:hover, html[data-palette="iytech"] .dropdown-item:focus, html[data-palette="iytech"] select option:hover, html[data-palette="iytech"] select option:focus-visible { background: #0284c7 !important; color: #fff !important; }
html[data-palette="iytech"] .row-menu .dropdown-item.text-danger:hover { background: #ff3b30 !important; }
html[data-palette="iytech"] .auth-v2 { --a-main: #0284c7; }
html[data-palette="iytech"] .auth-v2 .av-btn { background: #0284c7 !important; }
html[data-palette="iytech"] .auth-v2 .av-input input:focus { border-color: #0284c7 !important; }

/* ── top bar: the same floating white panel as the sidebar, with the logo in line with the menu ── */
@media (min-width: 769px) {
  html[data-palette="iytech"] .lms-navbar {
    margin: 10px 10px 0; border-radius: 22px; background: var(--glass) !important; border: 1px solid var(--glass-edge) !important; box-shadow: var(--glass-shadow) !important;
  }
  html[data-palette="iytech"] .app-body { height: calc(100vh - var(--nb-h) - 10px); height: calc(100dvh - var(--nb-h) - 10px); }
  html[data-palette="iytech"] .nb-brand { padding-left: 19px !important; gap: 10px; }          /* logo starts where the menu icons start */
}
html[data-palette="iytech"] .nb-user { background: transparent !important; border-color: transparent !important; }
html[data-palette="iytech"] .btn-nb-logout { border-radius: 999px; background: rgba(255,255,255,.8); border-color: rgba(12,60,95,.13); color: #0b0f14; }
html[data-palette="iytech"] .nb-role-badge { background: rgba(14,165,233,.13); border: 0; color: #075985; }
