/* ============================================================
   NMT CRM - Brand Stylesheet
   Brand: Orange #D2691E, Dark Green #1B4332
   ============================================================ */

:root {
  --brand-orange: #D2691E;
  --brand-orange-dark: #B5571A;
  --brand-orange-light: #FFE8D6;
  --brand-green: #1B4332;
  --brand-green-dark: #0F2E22;
  --brand-green-light: #2D5F3F;
  --brand-green-bg: #E8F2EC;
  --bg: #F4F6F8;
  --card-bg: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 250px;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-orange); text-decoration: none; }
a:hover { color: var(--brand-orange-dark); }

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  color: #fff;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform .25s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.sidebar-brand {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand img { height: 38px; width: auto; }
.sidebar-brand .brand-text { font-weight: 700; font-size: 14px; line-height: 1.15; }
.sidebar-brand .brand-text small { display: block; font-weight: 400; font-size: 10.5px; opacity: .75; }

.nav-section { padding: 8px 0; }
.nav-section-title {
  padding: 14px 18px 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-link.active {
  background: rgba(210,105,30,0.18);
  color: #fff;
  border-left-color: var(--brand-orange);
  font-weight: 600;
}
.nav-link i { width: 18px; text-align: center; font-size: 14px; }
.nav-collapse { padding-left: 18px; }
.nav-collapse .nav-link { padding-left: 36px; font-size: 13px; }
.nav-toggle::after {
  content: "▾"; margin-left: auto; font-size: 11px; opacity: .65;
  transition: transform .2s;
}
.nav-toggle.open::after { transform: rotate(180deg); }

/* ===== MAIN ===== */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-weight: 600; font-size: 16px; color: var(--brand-green); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-clock {
  font-family: 'SF Mono', Monaco, monospace;
  background: var(--brand-green-bg);
  color: var(--brand-green);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}
.topbar-clock small { font-weight: 400; opacity: .75; margin-right: 6px; }
.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text);
}
.user-menu-btn:hover { background: var(--bg); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 4px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 6px 0; display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: block; padding: 9px 16px; color: var(--text); font-size: 13.5px;
}
.user-dropdown a:hover { background: var(--bg); }
.user-dropdown hr { margin: 6px 0; border: none; border-top: 1px solid var(--border); }

.content { padding: 24px; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.page-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand-green); }
.page-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-weight: 600; font-size: 15px; color: var(--brand-green); margin: 0; }
.card-body { padding: 18px; }

/* ===== KPI CARDS ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--brand-orange);
}
.kpi.kpi-green::before { background: var(--brand-green); }
.kpi.kpi-info::before { background: var(--info); }
.kpi.kpi-warn::before { background: var(--warning); }
.kpi.kpi-danger::before { background: var(--danger); }
.kpi.kpi-success::before { background: var(--success); }
.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.kpi-value { font-size: 24px; font-weight: 700; color: var(--brand-green); margin-top: 4px; }
.kpi-foot { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.kpi-icon {
  position: absolute; right: 14px; top: 14px;
  font-size: 22px; opacity: .15; color: var(--brand-orange);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all .15s; line-height: 1.3; white-space: nowrap;
}
.btn-primary { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.btn-primary:hover { background: var(--brand-orange-dark); border-color: var(--brand-orange-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #D97706; color: #fff; }
.btn-info { background: var(--info); color: #fff; border-color: var(--info); }
.btn-info:hover { background: #2563EB; color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: #d1d5db; color: var(--text); }
.btn-green { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.btn-green:hover { background: var(--brand-green-dark); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== FORMS ===== */
.form-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-label .req { color: var(--danger); }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(210,105,30,.12);
}
textarea.form-control { resize: vertical; min-height: 70px; }
.form-help { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.form-check input { margin: 0; }

.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append {
  display: inline-flex; align-items: center; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--border); border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--text-muted);
}

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.table th, .table td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  background: var(--brand-green-bg);
  color: var(--brand-green);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
}
.table tbody tr:hover { background: #FAFBFC; }
.table .text-end { text-align: right; }
.table .text-center { text-align: center; }
.table-sm th, .table-sm td { padding: 6px 9px; font-size: 12.5px; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.4;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-muted   { background: #E5E7EB; color: #374151; }
.badge-orange  { background: var(--brand-orange-light); color: var(--brand-orange-dark); }
.badge-green   { background: var(--brand-green-bg); color: var(--brand-green); }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.alert-success { background: #D1FAE5; border-color: var(--success); color: #065F46; }
.alert-danger  { background: #FEE2E2; border-color: var(--danger); color: #991B1B; }
.alert-warning { background: #FEF3C7; border-color: var(--warning); color: #92400E; }
.alert-info    { background: #DBEAFE; border-color: var(--info); color: #1E40AF; }

/* ===== LOGIN ===== */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  padding: 20px;
}
.login-box {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 32px; text-align: center;
}
.login-logo { height: 80px; margin: 0 auto 12px; }
.login-title { font-weight: 700; color: var(--brand-green); margin: 0 0 4px; font-size: 18px; }
.login-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-form .form-group { text-align: left; }
.login-foot { margin-top: 18px; font-size: 11.5px; color: var(--text-muted); }

/* ===== UTILITIES ===== */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); }
.text-warning { color: var(--warning); } .text-orange { color: var(--brand-orange); }
.text-green { color: var(--brand-green); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.w-100 { width: 100%; }
.text-nowrap { white-space: nowrap; }
.small { font-size: 12px; }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 16px;
}
.filter-bar .form-row { margin-bottom: 0; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  padding: 10px 18px; cursor: pointer; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; font-size: 13.5px;
}
.tab.active { color: var(--brand-orange); border-bottom-color: var(--brand-orange); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-weight: 600; color: var(--brand-green); margin: 0; font-size: 15px; }
.modal-close {
  background: none; border: none; cursor: pointer; font-size: 20px;
  color: var(--text-muted); width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 4px; justify-content: flex-end; padding: 10px 0;
}
.pagination a, .pagination span {
  padding: 6px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 13px;
  color: var(--text); background: #fff;
}
.pagination a:hover { background: var(--bg); }
.pagination .active { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.pagination .disabled { color: var(--text-muted); pointer-events: none; opacity: .5; }

/* ===== PRINT ===== */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff !important; }
}

/* ===== RESPONSIVE ===== */
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--brand-green); }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .topbar-clock small { display: none; }
}

/* ===== INVOICE / TICKET / VISA prints ===== */
.print-wrap { max-width: 820px; margin: 20px auto; background: #fff; padding: 30px; box-shadow: var(--shadow); }
.print-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 3px solid var(--brand-orange); margin-bottom: 18px; }
.print-header img { max-height: 80px; }
.print-header .company-info { text-align: right; font-size: 12px; color: var(--text); }
.print-header .company-info .ar { color: var(--brand-green); font-weight: 600; margin-bottom: 4px; }
.print-header .company-info .name { color: var(--brand-green); font-weight: 700; font-size: 16px; }

.print-meta { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 13px; }
.print-meta .col { flex: 1; }
.print-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.print-table th { background: var(--brand-green-bg); color: var(--brand-green); padding: 8px 10px; border: 1px solid #c8d4cd; text-align: left; }
.print-table td { padding: 8px 10px; border: 1px solid #d8dee5; }
.print-table .text-end { text-align: right; }

.print-stamp {
  position: relative; opacity: .85;
}
.print-stamp img { max-width: 130px; }

.totals-table { width: 280px; margin-left: auto; }
.totals-table td { padding: 6px 10px; }
.totals-table .total-row td {
  border-top: 2px solid var(--brand-green); font-weight: 700; color: var(--brand-green);
  background: var(--brand-green-bg);
}

.signature-block {
  display: flex; justify-content: space-between; gap: 30px;
  margin-top: 50px; padding-top: 16px; border-top: 1px dashed #b8c1c8;
  font-size: 12px;
}
.signature-block .sig-col { flex: 1; }
.signature-block .sig-col .line { border-bottom: 1px solid var(--text); height: 30px; margin-bottom: 4px; }

/* DataTables override */
table.dataTable thead th { background: var(--brand-green-bg) !important; color: var(--brand-green) !important; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--brand-orange) !important; color: #fff !important; border-color: var(--brand-orange) !important;
}

/* Loading spinner */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.1); border-left-color: var(--brand-orange);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === v2 additions === */
.topbar-clock-wrap { display: flex; gap: 10px; align-items: center; margin-right: 14px; flex-wrap: wrap; }
.topbar-clock { display:flex; align-items:center; gap:6px; font-size:12px; color:#374151; padding:5px 10px; background:#f5f5f5; border-radius:6px; line-height:1.2; white-space:nowrap; }
.topbar-clock small { font-size:11px; opacity:.75; font-weight:600; }
.topbar-clock .clock-time { font-family: monospace; font-weight:600; color:#1B4332; }
.topbar-clock .clock-bs { font-size:10px; color:#D2691E; font-weight:600; padding-left:4px; border-left:1px solid #ddd; }
@media (max-width: 760px) {
  .topbar-clock-wrap { display:none; }
}

/* Dashboard KPI cards v2 */
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; margin-bottom:20px; }
.kpi-card { background:#fff; border-radius:10px; padding:18px 20px; border-left:4px solid var(--brand-orange); box-shadow:0 1px 3px rgba(0,0,0,.04); }
.kpi-card.green { border-left-color: var(--brand-green); }
.kpi-card.blue  { border-left-color: #2563eb; }
.kpi-card.red   { border-left-color: #dc2626; }
.kpi-card.purple{ border-left-color: #7c3aed; }
.kpi-label { font-size:12px; color:#6B7280; text-transform:uppercase; letter-spacing:.5px; font-weight:600; }
.kpi-value { font-size:28px; font-weight:700; color:#1B4332; margin:6px 0 2px; }
.kpi-trend { font-size:12px; color:#6B7280; }
.kpi-trend.up   { color:#059669; }
.kpi-trend.down { color:#dc2626; }
.kpi-icon { float:right; font-size:22px; opacity:.25; margin-top:-6px; }

/* === Clean Topbar Clock v3 === */
.topbar-clock-wrap { display: flex; gap: 10px; align-items: stretch; margin-right: 14px; }
.topbar-clock {
  display: inline-flex !important; align-items: center; gap: 8px;
  font-size: 13px; color: #374151;
  padding: 7px 14px; background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px; line-height: 1; white-space: nowrap;
  border: 1px solid #dee2e6; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.topbar-clock .cc-flag { font-size: 16px; }
.topbar-clock .cc-lbl {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #6B7280;
}
.topbar-clock .clock-time {
  font-family: 'Courier New', monospace; font-weight: 700;
  color: #1B4332; font-size: 14px; padding: 0 4px;
  background: #fff; border-radius: 4px; padding: 2px 8px;
}
.topbar-clock .clock-bs {
  font-size: 11px; color: #fff; font-weight: 700;
  padding: 3px 8px; background: #D2691E; border-radius: 4px;
}
@media (max-width: 900px) {
  .topbar-clock .cc-lbl { display: none; }
  .topbar-clock { padding: 6px 10px; }
}
@media (max-width: 760px) {
  .topbar-clock-wrap { display: none; }
}

/* ============================================
   WORLD CLOCK v4 — single unified compact card
   ============================================ */
.world-clock {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1B4332, #2d6a4f);
  color: #fff; padding: 6px 12px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(27,67,50,.18);
  margin-right: 14px; font-family: 'Inter', sans-serif;
}
.world-clock .wc-row {
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
}
.world-clock .wc-flag { font-size: 15px; }
.world-clock .wc-lbl {
  font-size: 9px; font-weight: 800; letter-spacing: .8px;
  color: rgba(255,255,255,.7); text-transform: uppercase;
}
.world-clock .wc-time {
  font-family: 'Courier New', monospace; font-weight: 700;
  background: rgba(255,255,255,.18); padding: 4px 8px;
  border-radius: 6px; font-size: 13px; min-width: 70px; text-align: center;
}
.world-clock .wc-divider {
  width: 1px; height: 22px; background: rgba(255,255,255,.25);
}
.world-clock .wc-bs {
  background: #D2691E; color: #fff; font-weight: 700;
  font-size: 11px; padding: 4px 9px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 1100px) { .world-clock .wc-lbl { display: none; } }
@media (max-width: 820px)  { .world-clock .wc-bs  { display: none; } }
@media (max-width: 720px)  { .world-clock { display: none; } }

/* ============================================
   DASHBOARD KPI CARDS v4 — compact, fits 100% zoom
   ============================================ */
.kpi-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.kpi-card-c {
  background: #fff; border-radius: 10px; padding: 12px 14px;
  border-left: 3px solid var(--brand-orange);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: all .15s; text-decoration: none; color: inherit;
  display: block; min-height: 70px;
}
.kpi-card-c:hover {
  transform: translateY(-2px); box-shadow: 0 6px 14px rgba(27,67,50,.1);
  text-decoration: none; color: inherit;
}
.kpi-card-c .kpi-label-c {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px;
  color: #6B7280; font-weight: 700; margin-bottom: 4px;
}
.kpi-card-c .kpi-value-c {
  font-size: 18px; font-weight: 800; color: #1B4332; line-height: 1.15;
}
.kpi-card-c .kpi-sub-c {
  font-size: 10px; color: #6B7280; margin-top: 2px;
}
.kpi-card-c.green { border-left-color: #15803d; }
.kpi-card-c.red   { border-left-color: #dc2626; }
.kpi-card-c.blue  { border-left-color: #2563eb; }
.kpi-card-c.cyan  { border-left-color: #0891b2; }
.kpi-card-c.purple { border-left-color: #7c3aed; }
.kpi-card-c.orange { border-left-color: #D2691E; }

/* ============================================
   Twemoji flag rendering — cross-platform fix
   Sizes emoji-img replacements correctly
   ============================================ */
img.emoji {
  height: 1em; width: auto; max-width: 1.4em;
  vertical-align: -0.15em; display: inline-block;
  margin: 0 .05em;
}
/* Big flags inside dashboard dual-clock cards */
.dcb-flag img.emoji { width: 44px; height: auto; max-width: none; vertical-align: middle; }
.dcb-flag { font-size: 38px; line-height: 1; }
/* Topbar world-clock flag */
.world-clock img.emoji { width: 18px; height: auto; max-width: none; vertical-align: middle; }
.world-clock .wc-flag { font-size: 16px; line-height: 1; }
/* Other places using flags */
.btn img.emoji { width: 1.1em; vertical-align: -0.2em; }
