/* /softa_acc/tourism/assets/css/tourism_dashboard.css (FULLSCREEN + NO PAGE SCROLL) */
:root{
  --bg1:#2e66ad;
  --bg2:#265a9a;

  --side1:#173a66;
  --side2:#244a7a;

  --main:#eef2f8;
  --top:#e2e9f4;

  --card:#f7f9fd;
  --border:#d7dfec;

  --text:#0f172a;
  --muted:#6b7280;

  --primary:#2c67d8;
  --primary2:#1f56c8;

  --ok:#35b276;
  --warn:#f0b429;
  --bad:#e45b5b;

  --shadow2: 0 8px 20px rgba(15, 23, 42, .08);

  /* ✅ compact spacing */
  --r:0px;
  --r2:14px;
  --gap:12px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%; width:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: linear-gradient(145deg, var(--bg1), var(--bg2));
  overflow:hidden; /* ✅ disable page scroll */
}

/* ✅ Fullscreen shell */
.app-shell{
  padding:0;
  height:100vh;
  width:100vw;
}

.app{
  height:100vh;
  width:100vw;
  margin:0;
  background: rgba(255,255,255,.12);
  border-radius: var(--r);
  overflow:hidden;
  display:flex;
}

/* sidebar */
.sidebar{
  width:270px;
  padding:14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
              linear-gradient(180deg, var(--side2), var(--side1));
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.brand{display:flex;align-items:center;gap:10px;padding:2px 4px}
.brand-mark{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.15);
  font-weight:900;
}
.brand-name{font-size:26px;font-weight:900;letter-spacing:.2px}

.profile{
  display:flex;align-items:center;gap:12px;
  padding:10px;border-radius:16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.profile-avatar{
  width:44px;height:44px;border-radius:14px;
  background:
    radial-gradient(circle at 45% 40%, #ffe4c6 0 22%, transparent 23%),
    radial-gradient(circle at 55% 42%, #101827 0 18%, transparent 19%),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.35) 0 28%, transparent 29%),
    rgba(255,255,255,.14);
}
.profile-name{font-weight:800}
.profile-email{font-size:12px;opacity:.85}

.nav{display:flex;flex-direction:column;gap:2px}
.nav-item{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;border-radius:14px;
  color:#fff;text-decoration:none;opacity:.94;
}
.nav-item:hover{background: rgba(255,255,255,.10)}
.nav-item.active{
  background: rgba(44, 103, 216, .35);
  border: 1px solid rgba(255,255,255,.18);
}
.nav-ico{width:18px;height:18px;display:inline-flex}
.nav-ico svg{width:18px;height:18px;fill:#fff;opacity:.95}
.has-drop .chev{margin-left:auto;opacity:.85}

.side-actions{display:flex;gap:10px;margin-top:4px}
.btn{
  border:0;border-radius:14px;
  padding:9px 12px;font-weight:900;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;line-height:1;
}
.btn-soft{
  background: rgba(255,255,255,.14);
  color:#fff;flex:1;border:1px solid rgba(255,255,255,.16);
}
.btn-upgrade{
  background: rgba(44, 178, 118, .22);
  color:#d7ffe9;border:1px solid rgba(44, 178, 118, .35);
}
.btn-soft:hover,.btn-upgrade:hover{filter:brightness(1.05)}
.plus{font-weight:900}

/* ✅ sidebar upcoming: keep but compact */
.side-card{
  padding:10px;border-radius:16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.side-card-title{font-weight:900;margin-bottom:8px}
.side-dep{
  display:flex;gap:10px;
  padding:8px 10px;border-radius:14px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:8px;
}
.dep-ico{width:26px;height:26px;border-radius:10px;background: rgba(255,255,255,.12)}
.dep-name{font-weight:800;font-size:13px}
.dep-sub{font-size:12px;opacity:.85;margin-top:2px}

.side-footer{margin-top:auto;display:flex;gap:12px;padding:6px 4px}
.foot-link{color:rgba(255,255,255,.9);text-decoration:none;font-size:13px;opacity:.9}
.foot-link:hover{opacity:1}

/* main */
.main{
  flex:1;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.12)),
              linear-gradient(180deg, var(--main), #e9eef7);
  padding:14px;
  overflow:hidden; /* ✅ NO page scroll */
  display:flex;
  flex-direction:column;
  gap: var(--gap);
}

/* topbar */
.topbar{
  background: var(--top);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding:12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  box-shadow: var(--shadow2);
}
.top-filters{display:flex;gap:10px;flex-wrap:wrap}
.filter{
  min-width:210px;
  background: rgba(255,255,255,.55);
  border:1px solid var(--border);
  border-radius:16px;
  padding:8px 10px;
}
.filter-label{font-size:12px;color:var(--muted);margin-bottom:6px}
.filter-select{
  width:100%;border:0;background:transparent;outline:none;
  font-weight:900;font-size:14px;color:#0b1220;
}

.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;padding:11px 14px;border-radius:16px;
  box-shadow: 0 14px 24px rgba(44, 103, 216, .22);
}
.btn-primary:hover{filter:brightness(1.05)}

/* cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  overflow:hidden; /* ✅ avoid card overflow */
}

/* ✅ compact metrics */
.metrics{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.metric{padding:12px 14px}
.metric-title{color:var(--muted);font-weight:900;font-size:12px}
.metric-row{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:6px}
.metric-value{font-size:30px;font-weight:950;letter-spacing:.2px}
.metric-delta{
  font-weight:950;
  padding:7px 10px;border-radius:999px;font-size:12px;
  border:1px solid transparent;
}
.metric-delta.up{color:#0d6b3a;background: rgba(53, 178, 118, .18);border-color: rgba(53, 178, 118, .25)}
.metric-delta.down{color:#8c1f1f;background: rgba(228, 91, 91, .16);border-color: rgba(228, 91, 91, .22)}

/* grid */
.grid12{
  flex:1;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  min-height:0; /* ✅ allow children to fit */
}
.span-6{grid-column: span 6}
.span-3{grid-column: span 3}

/* headers */
.card-head{
  padding:12px 14px 8px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.card-title{font-weight:950}
.card-sub{color:var(--muted);font-size:12px;margin-top:4px}
.card-tools{display:flex;gap:8px;align-items:center}
.tool-pill{
  padding:7px 9px;border-radius:999px;
  background: rgba(15, 23, 42, .06);
  border:1px solid rgba(15, 23, 42, .10);
  font-weight:900;font-size:12px;color:#334155;
}
.icon-btn{
  width:32px;height:32px;border-radius:12px;
  border:1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.6);
  cursor:pointer;
}
.icon-btn:hover{filter:brightness(1.05)}

.card-foot{padding:8px 14px 12px;display:flex;justify-content:flex-end}
.viewall{color:#1f56c8;text-decoration:none;font-weight:950}
.viewall:hover{text-decoration:underline}

/* ✅ chart height fixed to fit screen */
.chart-wrap{
  padding:4px 12px 6px;
  height:170px;           /* important */
}
.chart-wrap canvas{
  width:100% !important;
  height:100% !important; /* important */
}

/* mini table */
.mini-table{padding:0 10px 8px}
.mini-row{
  display:grid;
  grid-template-columns: 18px 1fr 44px 44px;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
}
.mini-row:not(.mini-head){
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.06);
  margin-bottom:8px;
}
.mini-name{font-weight:900;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-num{text-align:right;font-weight:950;color:#334155}
.dot{width:10px;height:10px;border-radius:999px}
.dot-green{background:#35b276}
.dot-orange{background:#f0b429}
.dot-blue{background:#2c67d8}
.dot-teal{background:#29b6d8}

/* donut */
.donut-wrap{
  position:relative;
  padding:8px 12px 6px;
  height:250px;           /* compact */
  display:grid;place-items:center;
}
.donut-wrap canvas{width:100% !important; height:220px !important}
.donut-center{position:absolute;text-align:center}
.donut-big{font-weight:950;font-size:26px}
.donut-small{color:var(--muted);font-size:12px;margin-top:4px}
.donut-pct{position:absolute;font-weight:950;color:#64748b;font-size:12px;pointer-events:none}
.pct-1{top:32px;left:18px}
.pct-2{top:46px;right:22px}
.pct-3{top:124px;right:14px}
.pct-4{bottom:54px;left:22px}
.pct-5{bottom:38px;left:100px}

/* tables compact */
.table{padding:0 12px 12px}
.tr{
  display:grid;
  grid-template-columns: 110px 1.2fr 1fr 110px;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  align-items:center;
}
.tr.th{
  color:#64748b;
  font-weight:950;
  font-size:12px;
  padding-top:0;
  padding-bottom:6px;
}
.tr:not(.th){
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.06);
  margin-bottom:8px;
}
.right{text-align:right}
.center{text-align:center}
.compact .tr{grid-template-columns: 1fr 110px}
.row-ico{display:flex;align-items:center;gap:10px}
.row-ico::before{
  content:'';
  width:18px;height:18px;border-radius:8px;
  background: rgba(44,103,216,.16);
  border:1px solid rgba(44,103,216,.22);
}
.row-check{display:flex;align-items:center;gap:10px;font-weight:900}
.check{
  width:13px;height:13px;border-radius:4px;
  background: rgba(44,103,216,.20);
  border:1px solid rgba(44,103,216,.30);
}

/* tags */
.tag{
  display:inline-flex;align-items:center;justify-content:center;
  padding:5px 10px;border-radius:10px;
  font-weight:950;font-size:12px;border:1px solid transparent;
}
.tag.ok{background: rgba(53,178,118,.18);color:#0d6b3a;border-color: rgba(53,178,118,.22)}
.tag.paid{background: rgba(44,103,216,.18);color:#1f56c8;border-color: rgba(44,103,216,.24)}
.tag.due{background: rgba(240,180,41,.20);color:#7a5300;border-color: rgba(240,180,41,.26)}

/* responsive */
@media (max-width:1200px){
  body{overflow:auto} /* allow scroll on small screens */
  .main{overflow:auto}
  .metrics{grid-template-columns: repeat(2, 1fr)}
  .span-6{grid-column: span 12}
  .span-3{grid-column: span 12}
  .sidebar{display:none}
}
