*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #F5A800;
  --orange-dark: #D98F00;
  --white:       #FFFFFF;
  --light:       #FAFAFA;
  --border:      #E5E5E5;
  --text:        #333333;
  --text-light:  #777777;
  --green:       #2e9e5b;
  --blue:        #2672c8;
  --red:         #c0392b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand   { font-size: 20px; font-weight: 600; color: var(--text-light); letter-spacing: -0.3px; }
.navbar-company { font-size: 15px; font-weight: 500; color: var(--text-light); }

/* ── Hero ── */
.hero { background: var(--orange); padding: 28px 32px; }
.hero h1 { color: var(--white); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.hero p  { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 4px; }

/* ── Layout ── */
.container { max-width: 720px; margin: 32px auto; padding: 0 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ── Drop zone ── */
.file-area {
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 14px;
}

.file-area:hover,
.file-area.drag-over { border-color: var(--orange); background: #FFF8E8; }

.file-area input[type="file"] { display: none; }

.file-area-label { font-size: 13px; color: var(--text-light); }
.file-area-label span { color: var(--orange); font-weight: 600; }

#fileList { margin-top: 10px; font-size: 13px; color: var(--text); line-height: 1.7; }

/* ── Buttons ── */
.btn-row { display: flex; gap: 10px; margin-top: 4px; }

button {
  padding: 9px 22px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

#uploadBtn { background: var(--orange); color: var(--white); }
#uploadBtn:hover:not(:disabled) { background: var(--orange-dark); }
#uploadBtn:disabled { opacity: 0.4; cursor: not-allowed; }

#statusMsg { font-size: 13px; font-weight: 500; min-height: 20px; margin-top: 10px; }

/* ── Status tables ── */
.status-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 8px;
  margin-top: 16px;
}

.status-label:first-child { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
}

td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-sending { background: #cfe2ff; color: var(--blue); }
.badge-printed { background: #d1e7dd; color: var(--green); }

.empty-note { font-size: 13px; color: var(--text-light); font-style: italic; }

.refresh-note {
  font-size: 11px;
  color: var(--text-light);
  text-align: right;
  margin-top: 12px;
}
