/* =========================================================
   G-Load WCS UI (Putwall-dashboard inspired, LIGHT)
   - Scope: this css is intended for G-Load pages only.
   - Key: simple, readable, high-contrast, consistent spacing.
   ========================================================= */

:root{
  --g-bg:#f6f8fc;
  --g-surface:#ffffff;
  --g-surface-2:#f1f5f9;
  --g-border:rgba(2,6,23,.10);
  --g-text:#0f172a;
  --g-muted:#64748b;

  --g-primary:#2563eb;
  --g-primary-2:#1d4ed8;

  --g-good:#16a34a;
  --g-warn:#f59e0b;
  --g-bad:#ef4444;

  --g-shadow:0 10px 30px rgba(2,6,23,.08);
  --g-radius:14px;
}

/* --- baseline reset (safe) --- */
html, body{ height:100%; }
body{
  background:var(--g-bg);
  color:var(--g-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* UI scale (A-/A+) */
body{
  --ui: 1;
  font-size: calc(16px * var(--ui));
}

/* avoid theme wrappers pushing layout */
.page-content{ padding-top: 8px !important; margin-top:0 !important; }

/* =========================================================
   Topbar
   ========================================================= */
.gload-topbar{
  position:sticky;
  top:0;
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--g-border);
      max-width: 1180px;
    margin: 0 auto;
}

.gload-topbar__left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.gload-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--g-text);
  font-weight:900;
  letter-spacing:-0.3px;
  padding:6px 8px;
  border-radius:12px;
  border:1px solid #374151;
}
.gload-brand:hover{ background:rgba(2,6,23,.04); }
.gload-brand__mark{ color:var(--g-primary); font-size:16px; }
.gload-brand__text{ font-size:18px; }

.gload-nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}
.gload-nav_item{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  text-decoration:none;
  color:var(--g-text);
  font-weight:800;
  font-size:14px;
}
.gload-nav_item:hover{
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.18);
}
.gload-nav_item.active{
  background:rgba(37,99,235,.12);
  border-color:rgba(37,99,235,.30);
  color:var(--g-primary-2);
}

.gload-topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.gload-user{
  font-weight:900;
  color:var(--g-text);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(2,6,23,.04);
  border:1px solid var(--g-border);
}

.gload-link{
  text-decoration:none;
  font-weight:900;
  color:var(--g-text);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--g-border);
  background:#fff;
}
.gload-link:hover{
  border-color:rgba(37,99,235,.25);
  box-shadow:0 10px 20px rgba(2,6,23,.06);
}

/* zoom controls */
.gload-zoom{
  display:flex;
  align-items:center;
  gap:6px;
}
.gload-zoom button{
  height:34px;
  min-width:34px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid var(--g-border);
  background:#fff;
  color:var(--g-text);
  cursor:pointer;
  font-weight:900;
}
.gload-zoom button:hover{
  border-color:rgba(37,99,235,.25);
}
.gload-zoom .gload-zoom__value{
  font-weight:900;
  color:var(--g-primary-2);
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.18);
}

/* =========================================================
   Layout wrapper
   ========================================================= */
.gload{
  padding: 14px 14px 30px;
}
.gload-wrap{
  max-width: 1180px;
  margin: 0 auto;
}

/* Hide Gnuboard title blocks inside gload pages (optional) */
body:has(.gload-topbar) .div-title-underline-bold,
body:has(.gload-topbar) .div-title,
body:has(.gload-topbar) h1,
body:has(.gload-topbar) h2{
  display:none !important;
}

/* =========================================================
   Notice / note
   ========================================================= */
.gload-note{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: var(--g-radius);
  border: 1px solid rgba(37,99,235,.20);
  background: rgba(37,99,235,.06);
  color: #0b2f2f;
  font-weight: 700;
  line-height:50px
}

/* =========================================================
   Card
   ========================================================= */
.card{
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}
.card.pad{ padding: 16px; }

.card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.card-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 2px;
}
.card-desc{
  margin:0;
  font-size: 13px;
  color: var(--g-muted);
  font-weight: 700;
}

/* Pill */
.pill{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--g-border);
  background: var(--g-surface-2);
  font-weight: 900;
  font-size: 12px;
  color: var(--g-text);
}
.pill.status{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  color: var(--g-primary-2);
}

/* =========================================================
   Grid / KPI
   ========================================================= */
.grid{ display:grid; gap:12px; }
.grid.metrics{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.two{ grid-template-columns: 1.2fr .8fr; }
@media (max-width: 980px){
  .grid.metrics{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.two{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid.metrics{ grid-template-columns: 1fr; }
}

.kpi{
  padding: 14px 14px;
  border-radius: 12px;
  border:1px solid rgba(2,6,23,.08);
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.kpi .label{ margin:0 0 6px; font-size: 13px; font-weight: 900; color: var(--g-muted); }
.kpi .value{ margin:0; font-size: 30px; font-weight: 950; letter-spacing:-0.6px; color: var(--g-text); }
.kpi .meta{ margin:6px 0 0; font-size: 12px; font-weight: 800; color: var(--g-muted); }

/* =========================================================
   Forms / Buttons
   ========================================================= */
.form-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

select, input[type="text"], input[type="number"], input[type="date"]{
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(2,6,23,.14);
  background: #fff;
  color: var(--g-text);
  font-weight: 800;
  font-size: 14px;
}
input::placeholder{ color: rgba(100,116,139,.8); font-weight:700; }

.btn{
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(2,6,23,.14);
  background: #fff;
  color: var(--g-text);
  cursor:pointer;
  font-weight: 900;
  font-size: 14px;
}
.btn:hover{
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
}
.btn.primary{
  background: var(--g-primary);
  border-color: var(--g-primary-2);
  color:#fff;
}
.btn.primary:hover{ background: var(--g-primary-2); }

/* =========================================================
   Table
   ========================================================= */
.table-wrap{ overflow:auto; border-radius: 12px; border: 1px solid rgba(2,6,23,.08); }
table{ width:100%; border-collapse: collapse; font-size: 14px; background:#fff; }
thead{ background: #f1f5f9; }
th, td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(2,6,23,.06);
  text-align:left;
  white-space:nowrap;
}
th{ font-weight: 900; color: var(--g-text); }
td{ font-weight: 800; color: #111827; }
td.num, th.num{ text-align:right; }
tbody tr:hover td{ background: rgba(37,99,235,.04); }

/* =========================================================
   Badges
   ========================================================= */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.10);
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
}
.badge.ok{ border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.10); color: #166534; }
.badge.warn{ border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.12); color: #92400e; }
.badge.bad{ border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.10); color: #991b1b; }

/* =========================================================
   Progress bar (진척율)
   - Use: <div class="progress"><span style="width:80%"></span></div>
   ========================================================= */
.progress{
  width:100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow:hidden;
  border:1px solid rgba(2,6,23,.08);
}
.progress > span{
  display:block;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--g-primary), #60a5fa);
  border-radius: 999px;
  transition: width .25s ease;
}

/* =========================================================
   Small helpers
   ========================================================= */
.h30{ height:30px; }
.text-center{ text-align:center; }

/* Responsive topbar */
@media (max-width: 860px){
  .gload-nav{ display:none; } /* keep it simple; if needed add hamburger later */
}


/* Backward compatibility: 기존 마크업(class=progress-bar) */
.progress-bar{
  width:100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow:hidden;
  border:1px solid rgba(2,6,23,.08);
}
.progress-bar-inner{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--g-primary), #60a5fa);
  border-radius: 999px;
  transition: width .25s ease;
}


/* ===== Page Top Title Bar ===== */
.gload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
      max-width: 1180px;
    margin: 0 auto;
        padding-top: 30px;
}

.gload-title {
  font-size: calc(36px * var(--ui-scale, 1));
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* ===== Zoom Buttons ===== */
.gload-zoom {
  display: flex;
  gap: 6px;
}

.gload-zoom .zbtn {
  min-width: 44px;
  padding: 6px 10px;
  font-size: calc(13px * var(--ui-scale, 1));
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

.gload-zoom .zbtn:hover {
  background: #f3f4f6;
}

.gload-zoom .zbtn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
