:root{
  --bg:#eef3f8;
  --bg2:#e6eef6;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#dbe4ee;
  --line-strong:#c7d4e3;
  --primary:#0f6db7;
  --primary-2:#0a4f86;
  --primary-soft:#eaf5fe;
  --green:#16a34a;
  --green2:#15803d;
  --danger:#dc2626;
  --danger2:#b91c1c;
  --shadow:0 18px 48px rgba(15,23,42,.10);
  --shadow-soft:0 10px 24px rgba(15,23,42,.06);
  --radius:24px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,109,183,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(0,140,255,.08), transparent 22%),
    linear-gradient(180deg, #f4f8fc 0%, #edf2f7 100%);
}
.hidden{ display:none !important; }
.wrap{ max-width:1240px; margin:26px auto; padding:0 18px 28px; }
.appBoard{display:flex;flex-direction:column;gap:18px}
.heroSurface{
  position:relative;
  overflow:hidden;
  border-radius:36px;
  background:linear-gradient(135deg, #083b63 0%, #0e5f9c 42%, #0f6db7 100%);
  box-shadow:var(--shadow);
  border:1px solid rgba(15,23,42,.10);
}
.heroGlow{
  position:absolute;inset:auto -40px -80px auto;width:280px;height:280px;
  background:radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.heroTop{position:relative;padding:24px 24px 18px;align-items:flex-start}
.toolbarSurface{
  position:relative;
  margin:0 18px 18px;
  padding:18px;
  border-radius:28px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 30px rgba(2,22,48,.18);
  border:1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.card{background:transparent;border:0;box-shadow:none;padding:0}
.contentSurface{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.06);
  border-radius:30px;
  box-shadow:var(--shadow-soft);
  padding:22px;
}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.28em;text-transform:uppercase;color:rgba(224,242,254,.92);margin-bottom:8px}
.brandTitleWrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.brandMarkShell{
  display:flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:22px;
  background:#ffffff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}
.headerLogo{height:58px;width:auto;object-fit:contain;filter:none;}
.title{font-size:32px;letter-spacing:-.03em;margin:0;color:#fff;text-transform:none;font-weight:900}
.titleSub{font-size:13px;color:rgba(224,242,254,.88);font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-top:6px}
.row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.row-between{ display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.topActions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.userBadge{
  display:inline-flex; align-items:center; gap:8px; padding:12px 16px;
  background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.20);
  border-radius:999px; font-weight:800; box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.adminExportWrap{display:flex;flex-direction:column;gap:6px;min-width:150px}
.adminExportWrap label{font-size:12px;font-weight:800;color:#e0f2fe}
.adminExportWrap select{
  width:100%;border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:12px 14px;
  font:inherit;background:rgba(255,255,255,.12);color:#fff;backdrop-filter:blur(8px)
}
.adminExportWrap select option{color:#111827;background:#fff}
.btn{
  border:0; border-radius:16px; padding:13px 16px; font-weight:900; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; user-select:none; transition:.18s ease;
  white-space:nowrap; letter-spacing:.01em; box-shadow:0 10px 18px rgba(15,23,42,.06);
}
.btn:hover{transform:translateY(-1px)}
.btn-blue{ background:linear-gradient(180deg, #1776f4 0%, #0b63f6 100%); color:white; }
.btn-blue:hover{ filter:brightness(.96); }
.btn-green{ background:linear-gradient(180deg, #2fb566 0%, #16a34a 100%); color:white; }
.btn-green:hover{ filter:brightness(.96); }
.btn-ghost{ background:#f2f6fb; color:#0f6db7; border:1px solid #d8e6f4; }
.btn-ghost:hover{ background:#ebf3fb; }
.btn-danger{ background:linear-gradient(180deg, #ef4444 0%, #dc2626 100%); color:white; }
.btn-danger:hover{ filter:brightness(.97); }
.btn-soft{align-self:end;height:52px}
.btn-small{ padding:8px 10px; font-size:12px; }
.transparentBtn{ background:transparent !important; color:white !important; box-shadow:none }
.filtersBar{ display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
.filtersGrid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:14px}
.controlCard{
  display:flex;flex-direction:column;gap:8px;padding:14px 14px 12px;border-radius:20px;
  background:#f8fbfe;border:1px solid #dbe7f4;font-size:13px;color:#334155;font-weight:800
}
.controlCard select,.controlCard input{
  display:block; width:100%; min-width:0; border:1px solid #cfdae7; border-radius:14px; padding:12px 12px;
  margin:0; background:white; font:inherit; font-weight:700; color:#0f172a;
}
.smallNote{ color:#334155; font-size:14px; line-height:1.6; margin-top:14px; }
.noteCorporate{padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#f9fcff 0%,#f3f8fd 100%);border:1px solid #dbe9f7}
.meta{ color:#64748b; font-size:14px; font-weight:800; margin:0; }
.muted{ color:var(--muted); font-size:14px; }
.search{ display:flex; gap:10px; align-items:center; }
.searchCorporate .input{min-width:220px}
.sectionHead{margin-bottom:14px;gap:16px}
.sectionTitle{font-size:24px;font-weight:900;color:#0f172a;letter-spacing:-.02em}
.sectionText{font-size:14px;color:#64748b;margin-top:4px}
.contentTools{margin-bottom:10px}
.input, select, textarea{
  width:100%; border:1px solid #d4dee9; border-radius:16px; padding:12px 14px;
  font:inherit; background:#fff; color:#0f172a; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus, select:focus, textarea:focus{outline:none;border-color:#75b8ef;box-shadow:0 0 0 4px rgba(14,95,156,.12)}
textarea{ min-height:110px; resize:vertical; }
select{ appearance:auto; }
.tableCorporate{ width:100%; border-collapse:separate; border-spacing:0 12px; }
thead th{ text-align:left; font-size:13px; color:#64748b; padding:0 14px 2px; text-transform:uppercase; letter-spacing:.08em; }
tbody tr{
  background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:0 12px 22px rgba(15,23,42,.05);
  border:1px solid #e6edf5;
}
tbody td{ padding:16px 14px; vertical-align:middle; border-top:1px solid #edf2f7; border-bottom:1px solid #edf2f7; }
tbody tr td:first-child{ border-left:1px solid #edf2f7; border-top-left-radius:18px; border-bottom-left-radius:18px; }
tbody tr td:last-child{ border-right:1px solid #edf2f7; border-top-right-radius:18px; border-bottom-right-radius:18px; }
.linkBtn{ color:#0b63f6; font-weight:900; cursor:pointer; text-decoration:none; }
.linkBtn:hover{ text-decoration:underline; }
.badge{ display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border-radius:999px; background:#eef2ff; color:#1d4ed8; font-size:12px; font-weight:900; }
.badge-btn{border:none;cursor:pointer;box-shadow:none}
.badge-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.empty{ padding:18px; border:1px dashed #cbd5e1; border-radius:18px; color:#64748b; background:#f8fafc; }
.subheader{ display:flex; justify-content:space-between; gap:20px; align-items:flex-start; flex-wrap:wrap; margin-bottom:8px; }
.detailHeaderCard{padding:10px 6px 18px;border-bottom:1px solid #e9eff6}
.left p{ margin:4px 0; }
.backdrop{ position:fixed; inset:0; background:rgba(15,23,42,.45); display:none; align-items:center; justify-content:center; padding:14px; z-index:999; }
.backdrop.show{ display:flex; }
.modal{ width:min(980px,100%);max-height:min(92dvh,1000px);display:flex;flex-direction:column; background:#fff; border-radius:24px; overflow:hidden; box-shadow:0 24px 56px rgba(15,23,42,.28); }
.modalHeader{ background:linear-gradient(135deg,#0b63f6 0%,#0f6db7 100%); color:white; padding:18px 20px; display:flex; justify-content:space-between; align-items:center; font-weight:900; }
.modalBody{ padding:20px; overflow:auto; -webkit-overflow-scrolling:touch; background:linear-gradient(180deg,#fff 0%,#fbfdff 100%); }
.modalFooter{ padding:14px 20px; border-top:1px solid #e5e7eb; display:flex; justify-content:flex-end; gap:10px; background:#fff; position:sticky; bottom:0; }
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.field label{ display:block; color:#0f6db7; font-weight:900; margin-bottom:7px; }
.hint{ margin-top:6px; color:#64748b; font-size:12px; }
.msg{ margin-top:10px; padding:14px 16px; border-radius:18px; background:#fff1f2; border:1px solid #fecdd3; color:#be123c; font-weight:800; }
.msg.success{ background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }
.authScreen{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.authCard{ width:min(460px,100%); background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:26px; box-shadow:var(--shadow); padding:24px; }
.authCardCorporate{position:relative;overflow:hidden}
.authCardCorporate::before{content:"";position:absolute;inset:0 0 auto 0;height:8px;background:linear-gradient(90deg,#0f6db7 0%,#1fb7ff 100%)}
.authBrand{display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:10px}
.authBrandCorporate{margin-top:10px}
.authHeadingWrap{text-align:center}
.authLogo{width:min(320px,90%);height:auto;object-fit:contain;filter:drop-shadow(0 3px 10px rgba(0,0,0,.08))}
.authCard h1{margin:0 0 6px;font-size:28px;line-height:1.1}
.authSubline{margin:0;color:#0f6db7;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.authCard p{ color:#64748b; line-height:1.5; }
.authForm{ display:grid; gap:12px; margin-top:16px; }
.authForm label{ font-weight:700; color:#334155; }
.comboWrap{position:relative;}
.comboMenu{position:absolute;left:0;right:0;top:calc(100% + 6px);max-height:230px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:16px;box-shadow:0 12px 28px rgba(15,23,42,.18);z-index:30;}
.comboItem{padding:11px 12px;cursor:pointer;border-bottom:1px solid #eef2f7;font-size:14px;}
.comboItem:last-child{border-bottom:none;}
.comboItem:hover,.comboItem.active{background:#eff6ff;}
.comboEmpty{padding:10px 12px;color:#64748b;font-size:13px;}
.input[readonly], .input:disabled, select:disabled{background:#f8fafc;color:#334155;font-weight:700;}
.disabledBadge{opacity:.7;cursor:default;}
#btnLogout{margin-left:auto;box-shadow:0 16px 28px rgba(220,38,38,.25)}
@media (max-width:980px){
  .heroTop{padding:20px 18px 16px}
  .toolbarSurface{margin:0 14px 14px;padding:14px}
  .filtersGrid{grid-template-columns:repeat(2,minmax(140px,1fr))}
}
@media (max-width:800px){
  .wrap{padding:0 12px 20px;margin:14px auto}
  .heroSurface,.contentSurface{border-radius:24px}
  .grid,.grid-3{ grid-template-columns:1fr; }
  .heroTop{padding:18px 16px 14px}
  .brandTitleWrap{width:100%;justify-content:center;text-align:center}
  .brandMarkShell{width:100%;padding:12px;justify-content:center}
  .headerLogo{height:46px}
  .title{font-size:26px}
  .titleSub,.eyebrow{width:100%}
  .topActions{ width:100%; }
  .topActions .btn, .topActions .userBadge, .adminExportWrap{ width:100%; justify-content:center; }
  #btnLogout{margin-left:0;order:10}
  .toolbarSurface{margin:0 10px 10px;padding:12px;border-radius:20px}
  .filtersGrid{grid-template-columns:1fr}
  .btn-soft{height:auto}
  .sectionHead{align-items:stretch}
  .sectionHead .btn{width:100%;justify-content:center}
  .contentSurface{padding:16px}
  .searchCorporate{width:100%}
  .searchCorporate .input{min-width:0;width:100%}
  table{ display:block; overflow-x:auto; }
  .backdrop{align-items:flex-end;padding:0;background:rgba(15,23,42,.38)}
  .modal{width:100%;max-height:100dvh;border-radius:18px 18px 0 0}
  .modalHeader{padding:14px 16px}
  .modalBody{padding:16px 16px 100px}
  .modalFooter{padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}
  .modalFooter .btn{width:100%;justify-content:center}
  .comboMenu{max-height:40dvh}
}

.authLogoShell{
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid rgba(15,23,42,.08);
  border-radius:20px;padding:12px 18px;box-shadow:0 10px 24px rgba(15,23,42,.08);
}
