﻿/* ===================================================
   VVS ERP - Professional Business Theme
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 64px;
  --topbar-h: 56px;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --radius: 8px;
  --radius-sm: 4px;
  --transition: .2s ease;
}

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
}

/* ===================================================
   SIDEBAR
   =================================================== */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: 64px;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 16px; color: #f1f5f9; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  transform: none;
  box-shadow: none;
}

.nav-item.active-tab {
  background: var(--primary);
  color: #fff;
}

.nav-item svg { flex-shrink: 0; }

/* Sub-nav item — indented under a parent nav item */
.nav-sub-item {
  padding-left: 36px !important;
  font-size: 12px;
  opacity: 0.85;
  position: relative;
}
.nav-sub-item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.nav-sub-item.active-tab { opacity: 1; }

/* Projects toggle arrow */
#tab-projects { position: relative; }
#projects-arrow.open { transform: rotate(180deg); }

.sidebar-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-clock { text-align: center; }

/* Collapsed sidebar */
.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-w); }
.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .sidebar-clock { display: none; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 16px 0; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
.sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed-w); }

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ===================================================
   TOP BAR
   =================================================== */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sidebar-toggle:hover {
  background: var(--bg);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

/* KPI bar in topbar */
.kpi-bar { display: flex; gap: 20px; font-size: 12px; }

.kpi-bar .kpi-item { display: flex; align-items: center; gap: 6px; }
.kpi-bar .kpi-label { color: var(--text-muted); font-weight: 500; }
.kpi-bar .kpi-value { font-weight: 700; color: var(--text); }

/* ===================================================
   PAGE CONTENT
   =================================================== */
.page-content { padding: 24px; flex: 1; }

/* ===================================================
   CARDS
   =================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-header {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
}

.card-body { padding: 20px; }

.card.collapsed .card-body,
.card.collapsed .form-body { display: none; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover { transform: none; box-shadow: none; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: var(--text-muted); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #15803d; }

.btn-info { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-info:hover { background: #0284c7; }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; }

/* ─── RBAC tab buttons ─── */
.rbac-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}
.rbac-tab:hover { color: var(--text); }
.rbac-tab.rbac-tab-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===================================================
   FORMS
   =================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

input, select, textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-actions { display: flex; align-items: flex-end; }

.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { flex: 1; min-width: 160px; }

/* ===================================================
   TOOLBAR / FILTER BAR
   =================================================== */
.toolbar-card { margin-bottom: 12px; }
.toolbar-card .card-body { padding: 0; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex: 1;
  min-width: 200px;
}

.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.search-box input { border: none; padding: 8px 0; flex: 1; min-width: 0; }
.search-box input:focus { box-shadow: none; }

.toolbar select { min-width: 150px; }

/* ===================================================
   DATA TABLES
   =================================================== */
.table-wrapper { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.data-table th {
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  min-width: 60px;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: top;
  min-width: 50px;
  word-break: break-word;
}

/* Project Tracking table - support text wrapping and dynamic heights */
#page-project-tracking .data-table td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.4;
}

.data-table tbody tr:hover { background: #f0f7ff; }

.data-table .group-header td {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  font-size: 13px;
}

.data-table .edit-row {
  background: #fef3c7;
  border: 2px solid #fcd34d;
}

.data-table .edit-row td {
  padding: 6px 8px;
  border-bottom: 1px solid #fcd34d;
}

.data-table .edit-row input,
.data-table .edit-row select {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
}

.data-table .edit-row input:focus,
.data-table .edit-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ===================================================
   PROJECT NAME LINK
   =================================================== */
.project_name_link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.project_name_link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ===================================================
   PROGRESS BAR
   =================================================== */
.progress-bar-wrapper { display: flex; align-items: center; gap: 8px; }

.progress_bar {
  width: 80px; height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress_bar_fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width var(--transition);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 32px;
}

/* ===================================================
   BADGES
   =================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-primary { background: #dbeafe; color: #1d4ed8; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #dc2626; }

/* ===================================================
   STATUS BADGES
   =================================================== */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.status-waiting { background: #fef3c7; color: #b45309; }
.status-progress { background: #dbeafe; color: #1d4ed8; }
.status-closed { background: #dcfce7; color: #15803d; }
.status-current { background: #e9d5ff; color: #6d28d9; }
.status-locked { background: #e5e7eb; color: #4b5563; }
.status-canceled { background: #fee2e2; color: #b91c1c; }

/* ===================================================
   DASHBOARD
   =================================================== */
.dashboard-filters { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-end; }

.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.chart-card .card-body { padding: 16px; }
.chart-card canvas { max-height: 280px; width: 100% !important; }

/* ===================================================
   BRIGADE
   =================================================== */
.brigade-filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.brigade-filter-bar .search-box { max-width: 320px; }
.brigade-filter-bar select { min-width: 160px; }

.brigade-compact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
}

.brigade-compact-table thead {
  background: var(--surface-alt);
  border-bottom: 2px solid var(--border);
}

.brigade-compact-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}

.brigade-compact-table th:last-child {
  border-right: none;
}

.brigade-row {
  border-bottom: 1px solid var(--border);
  height: 40px;
}

.brigade-row:hover {
  background: rgba(37, 99, 235, 0.03);
}

.brigade-row td {
  padding: 8px 12px;
  border-right: 1px solid var(--border);
  vertical-align: middle;
}

.brigade-row td:last-child {
  border-right: none;
}

.brigade-toggle {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.brigade-name-cell {
  font-weight: 600;
  color: var(--primary);
}

.brigade-leader-cell {
  color: var(--text-secondary);
  font-size: 12px;
}

.brigade-expand-row {
  background: rgba(37, 99, 235, 0.02);
}

.brigade-expand-row td {
  padding: 12px;
  border-bottom: 2px solid var(--border);
}

.brigade-expanded-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brigade-add-person {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.brigade-add-person input {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
}

.brigade-add-person input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.brigade-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.brigade-members-table thead {
  background: var(--border-light);
}

.brigade-members-table th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.brigade-members-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.brigade-members-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.brigade-members-table tbody tr:last-child td {
  border-bottom: none;
}

.brigade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.brigade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.brigade-name { font-weight: 600; font-size: 15px; color: var(--text); }
.brigade-leader { font-size: 12px; color: var(--text-secondary); }

.brigade-actions { display: flex; gap: 6px; }

.brigade-actions button {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.brigade-actions button:hover { background: var(--bg); transform: none; box-shadow: none; }

.brigade-members {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.brigade-members::-webkit-scrollbar { width: 6px; }
.brigade-members::-webkit-scrollbar-track { background: transparent; }
.brigade-members::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.person-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}

.person-row:last-child { border-bottom: none; }
.person-row:hover { background: #f0f7ff; }

.person-name { font-weight: 500; color: var(--text); }
.person-role { color: var(--text-secondary); font-size: 11px; }

.person-actions { display: flex; gap: 4px; }

.person-actions button {
  padding: 2px 6px;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.person-actions button:hover { background: var(--bg); transform: none; box-shadow: none; }

.add-person-form {
  background: #f0f7ff;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid var(--primary);
}

.add-person-form h4 { color: var(--primary); margin: 0 0 6px; font-size: 13px; }

.brigade-pagination { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }

.brigade-pagination button {
  padding: 4px 8px;
  font-size: 11px;
  min-width: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.brigade-pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.brigade-pagination button:hover { transform: none; box-shadow: none; }

.brigade-count { font-size: 12px; color: var(--text-muted); }


/* ===================================================
   PROJECT DETAIL PAGE
   =================================================== */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-header-left { display: flex; align-items: center; gap: 16px; }

.detail-header h2 { font-size: 20px; font-weight: 700; color: var(--text); }

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-card .info-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--text-muted);
}

.info-card .info-value { font-size: 15px; font-weight: 700; color: var(--text); }
.info-card .info-value.text-success { color: var(--success); }
.info-card .info-value.text-danger { color: var(--danger); }

.info-tip {
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.6;
}

/* ===================================================
   TASKS SPREADSHEET
   =================================================== */
.tasks_spreadsheet {
  border-collapse: collapse;
  width: auto;
  min-width: 100%;
  font-size: 12px;
}

.tasks_spreadsheet th {
  background: #1e293b;
  color: #f1f5f9;
  padding: 8px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
  border: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.tasks_spreadsheet td {
  padding: 4px 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  vertical-align: middle;
}

.tasks_spreadsheet tbody tr:hover td { background: #f0f7ff; }

.tasks_spreadsheet input {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 12px;
}
.tasks_spreadsheet textarea {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 12px;
  min-height: 34px;
  overflow: hidden;
  resize: none;
  line-height: 1.4;
}

.tasks_spreadsheet input:focus,
.tasks_spreadsheet textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 2px rgba(37,99,235,.1);
}

.cell_input { 
  min-width: 50px; 
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.cell_input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.1);
}

/* Remove spinner arrows from number inputs */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.cell-center { text-align: center; vertical-align: middle; }
.row-num { color: var(--text-muted); font-weight: 600; font-size: 12px; }

/* SECTION HEADERS */
.section-header-row td {
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  padding: 0 !important;
}

.section-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  gap: 12px;
}

.section-toolbar {
  display: flex;
  gap: 6px;
}

.section-toolbar .btn {
  padding: 3px 8px;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid #c7d2fe;
  color: var(--primary);
  border-radius: 3px;
  cursor: pointer;
}

.section-toolbar .btn:hover {
  background: #f0f7ff;
}

.section-header-content strong {
  color: var(--primary-dark);
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex: 1;
}

.section-actions { display: flex; gap: 6px; }

.section-actions button {
  padding: 3px 8px;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid #c7d2fe;
  color: var(--primary);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}

.section-actions button:hover { background: #dbeafe; transform: none; box-shadow: none; }

.section-delete-btn {
  border-color: #fca5a5 !important;
  color: var(--danger) !important;
  background: #fef2f2 !important;
}

.section-delete-btn:hover { background: #fee2e2 !important; }

/* VARIANCE CELLS */
.cell-overbudget { background: #fef2f2 !important; color: var(--danger) !important; font-weight: 600; }
.cell-underbudget { background: #f0fdf4 !important; color: var(--success) !important; font-weight: 600; }

/* Task actions bar */
.task-actions-bar {
  display: none;
}

/* ===================================================
   PROGRESS BAR (task spreadsheet)
   =================================================== */
.progress_bar {
  width: 60px; height: 20px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
}

.progress_bar_fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 600;
}

/* ===================================================
   TASK ACTIONS
   =================================================== */
.task_delete {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fca5a5;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11px;
  transition: all var(--transition);
}

.task_delete:hover { background: #fee2e2; transform: none; box-shadow: none; }

.brigade_selector_btn {
  padding: 4px 10px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.brigade_selector_btn:hover { background: #e0e7ff; transform: none; box-shadow: none; }

.assigned_brigades { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.brigade_badge {
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #c7d2fe;
}

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  width: 92%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--text); }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover { color: var(--text); transform: none; box-shadow: none; }

.modal-body { padding: 20px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

/* Brigade checkboxes in modal */
.brigade_list { display: grid; gap: 6px; }

.brigade_checkbox {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.brigade_checkbox:hover { background: #f0f7ff; border-color: var(--primary); }

.brigade_checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 16px; height: 16px;
  accent-color: var(--primary);
}

.brigade_checkbox label {
  flex: 1;
  cursor: pointer;
  color: var(--text);
  margin: 0;
  font-size: 13px;
}

.brigade_checkbox label strong { color: var(--primary-dark); display: block; margin-bottom: 1px; }

/* ===================================================
   UTILITY
   =================================================== */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Sidebar backdrop — shown when mobile/tablet drawer is open */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

/* ── TABLET (≤1024px): icon-only sidebar ── */
@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-collapsed-w); }
  .sidebar .brand-text,
  .sidebar .nav-item span,
  .sidebar .sidebar-clock,
  .sidebar .sidebar-user-details { display: none; }
  .sidebar-brand { justify-content: center; padding: 16px 0; }
  .nav-item { justify-content: center; padding: 10px; }
  .sidebar-settings span, .sidebar-logout span { display: none; }
  .sidebar-settings, .sidebar-logout { justify-content: center; padding: 10px; }
  .main-content { margin-left: var(--sidebar-collapsed-w); }
  .chart-grid { grid-template-columns: 1fr; }

  /* Drawer open state — full sidebar slides over content */
  body.sidebar-open .sidebar {
    width: var(--sidebar-w);
    z-index: 500;
    overflow-y: auto;
  }
  body.sidebar-open .sidebar .brand-text,
  body.sidebar-open .sidebar .nav-item span,
  body.sidebar-open .sidebar .sidebar-clock,
  body.sidebar-open .sidebar .sidebar-user-details { display: block; }
  body.sidebar-open .sidebar .sidebar-brand { justify-content: flex-start; padding: 16px 18px; }
  body.sidebar-open .sidebar .nav-item { justify-content: flex-start; padding: 10px 14px; }
  body.sidebar-open .sidebar .sidebar-settings span,
  body.sidebar-open .sidebar .sidebar-logout span { display: inline; }
  body.sidebar-open .sidebar .sidebar-settings,
  body.sidebar-open .sidebar .sidebar-logout { justify-content: flex-start; padding: 8px 12px; }
  body.sidebar-open .sidebar-backdrop { display: block; }
}

/* ── MOBILE (≤767px): full-screen drawer ── */
@media (max-width: 767px) {
  html { font-size: 13px; }

  /* Sidebar hidden off-screen by default */
  .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform var(--transition), width var(--transition);
  }

  /* Main content: full width — no left gap */
  .main-content { margin-left: 0 !important; }

  /* Slide in when drawer is open */
  body.sidebar-open .sidebar { transform: translateX(0); }

  /* Topbar */
  .topbar { padding: 0 12px; gap: 8px; }
  .page-title { font-size: 15px; }

  /* KPI bar: scrollable row, never wraps */
  .topbar-right { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-shrink: 1; min-width: 0; }
  .kpi-bar { flex-wrap: nowrap; gap: 12px; font-size: 11px; }
  .kpi-bar .kpi-item { flex-shrink: 0; }
  .kpi-bar .kpi-label { display: none; } /* show only value on mobile to save space */

  /* Page content: less padding */
  .page-content { padding: 12px; }

  /* Form grid: single column */
  .form-grid { grid-template-columns: 1fr !important; }

  /* Dashboard filters: stack */
  .dashboard-filters { flex-direction: column; align-items: stretch; gap: 8px; }

  /* Toolbar: stack */
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .toolbar select, .toolbar input { width: 100%; min-width: 0; }

  /* Auth card */
  .auth-card { padding: 28px 18px; margin: 12px; max-width: none; border-radius: 12px; }

  /* Modal: nearly full screen */
  .modal-box { width: 96%; max-height: 90vh; }

  /* Timesheet controls */
  .timesheet-month-selector { flex-direction: column; gap: 10px; align-items: stretch; }
  .form-section input, .form-section select { width: 100%; }

  /* Brigade filter bar */
  .brigade-filter-bar { flex-direction: column; align-items: stretch; }
  .brigade-filter-bar .search-box { max-width: 100%; }
  .brigade-filter-bar select { min-width: 0; width: 100%; }

  /* Brigade person row: simpler on mobile */
  .person-row { grid-template-columns: 1fr 1fr auto; }

  /* Detail header */
  .detail-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Project info grid */
  .project-info-grid { grid-template-columns: repeat(2, 1fr); }

  /* Inline form */
  .inline-form { flex-direction: column; }
  .inline-form input, .inline-form select { min-width: 0; width: 100%; }
}

/* ===================================================
   TIMESHEET STYLES
   =================================================== */

.timesheet-month-selector {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-section label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.form-section input,
.form-section select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-section input:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.timesheet-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.timesheet-monthly-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.timesheet-monthly-table thead {
  background: var(--surface-alt);
  position: sticky;
  top: 0;
  z-index: 15;
}

.timesheet-monthly-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  min-width: 60px;
  background: var(--surface-alt);
}

.timesheet-monthly-table th:nth-child(1),
.timesheet-monthly-table th:nth-child(2),
.timesheet-monthly-table th:nth-child(3),
.timesheet-monthly-table th:nth-child(4) {
  background: var(--surface-alt);
  font-weight: 700;
}

.timesheet-monthly-table td {
  padding: 4px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  height: 40px;
}

.sticky-cell {
  background: var(--surface);
  font-weight: 500;
  color: var(--text);
  text-align: left;
  padding: 8px 6px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  border-right: 2px solid var(--border);
}

.brigade-cell {
  background: var(--surface-alt);
  text-align: center;
  padding: 4px 2px !important;
  vertical-align: middle;
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  height: 100%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding-bottom: 8px;
}

.date-cell {
  padding: 2px !important;
}

.date-cell.weekend-saturday {
  background-color: #fef3c7 !important;
}

.date-cell.weekend-sunday {
  background-color: #fee2e2 !important;
}

/* ══════════════════════════════════════════════
   AUTH OVERLAY
══════════════════════════════════════════════ */

/* Hide app shell until authenticated */
.app-hidden {
  display: none !important;
}

/* Auth overlay: covers the full viewport */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  align-items: center;
  justify-content: center;
}

.auth-overlay.auth-active {
  display: flex;
}

/* Auth card */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field.auth-field-hidden {
  display: none;
}

.auth-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.auth-field input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.auth-btn {
  padding: 12px;
  font-size: 15px;
  border-radius: 8px;
  margin-top: 4px;
  cursor: pointer;
}

.auth-toggle {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 20px 0 0;
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-toggle a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   SIDEBAR USER INFO + LOGOUT
══════════════════════════════════════════════ */

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}

.sidebar-user-avatar {
  font-size: 20px;
  width: 32px;
  text-align: center;
}

.sidebar-user-details {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.sidebar-logout,
.sidebar-settings {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-settings:hover {
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
}

.sidebar-logout:hover {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}

/* ===================================================
   USER SETTINGS MODAL
   =================================================== */
.settings-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.settings-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.settings-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.settings-msg.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.settings-msg.error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* desktop inline sidebar-collapsed: hide labels */
.sidebar-collapsed .sidebar-settings span,
.sidebar-collapsed .sidebar-logout span { display: none; }
.sidebar-collapsed .sidebar-settings,
.sidebar-collapsed .sidebar-logout { justify-content: center; padding: 10px; }

/* do not show collapsed state on tablet/mobile (drawer handles it) */
@media (max-width: 1024px) {
  .sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-w); }
  .sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed-w); }
}
@media (max-width: 767px) {
  .sidebar-collapsed .sidebar { transform: translateX(-100%); }
  .sidebar-collapsed .main-content { margin-left: 0 !important; }
}


.date-header.weekend-saturday {
  background: #fef3c7 !important;
  color: #92400e;
  font-weight: 700;
}

.date-header.weekend-sunday {
  background: #fee2e2 !important;
  color: #991b1b;
  font-weight: 700;
}

.hours-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  transition: var(--transition);
}

.hours-input:focus {
  outline: none;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.hours-input::placeholder {
  color: var(--border);
}

.date-header {
  font-size: 11px;
  min-width: 55px;
  line-height: 1.2;
}

.timesheet-monthly-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

.task-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--primary-light);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}

.hours-cell {
  font-weight: 600;
  color: var(--primary);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-xs:hover {
  background: var(--surface-alt);
  border-color: var(--border);
}

.clickable-cell {
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  padding: 4px !important;
}

.clickable-cell:hover {
  background: rgba(37, 99, 235, 0.15);
  box-shadow: inset 0 0 0 2px var(--primary-light);
}

.cell-content {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cell-edit-hint {
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
}

.clickable-cell:hover .cell-edit-hint {
  opacity: 1;
}

.timesheet-entry-form {
  background: var(--surface-alt);
  padding: 8px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.timesheet-entry-form select,
.timesheet-entry-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  transition: var(--transition);
}

.timesheet-entry-form select:focus,
.timesheet-entry-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.timesheet-entries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timesheet-entry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
  font-size: 12px;
}

.entry-info {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.entry-project {
  font-weight: 600;
  color: var(--primary);
  min-width: 80px;
}

.entry-task {
  background: #f0f7ff;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.entry-hours {
  font-weight: 600;
  color: var(--text);
  min-width: 50px;
  text-align: right;
}

@media (max-width: 1200px) {
  .timesheet-monthly-table th,
  .timesheet-monthly-table td {
    padding: 8px 4px;
    font-size: 11px;
    min-width: 50px;
  }
  
  .hours-input {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .timesheet-month-selector {
    flex-wrap: wrap;
  }
  
  .timesheet-table-wrapper {
    border-radius: var(--radius-sm);
  }
  
  .timesheet-monthly-table th {
    padding: 6px 3px;
    font-size: 10px;
    min-width: 40px;
  }
  
  .timesheet-monthly-table td {
    padding: 3px 1px;
    font-size: 10px;
    height: 35px;
  }
  
  .sticky-cell {
    padding: 6px 4px !important;
    font-size: 11px;
  }
  
  .date-header {
    min-width: 40px;
    font-size: 9px;
  }
}

/* ===================================================
   PRINT STYLES - A4 PROJECT REPORT
   =================================================== */
@media print {
  body {
    background: white !important;
    color: #1e293b;
    font-size: 11px;
    margin: 0;
    padding: 0;
  }
  
  * {
    box-shadow: none !important;
  }
  
  .sidebar,
  .topbar,
  .detail-header,
  .task-actions-bar,
  .modal-overlay,
  .btn,
  button,
  input[type="button"],
  input[type="submit"],
  .nav-item,
  .page-content > .card-header:first-child > button,
  #appShell > *:not(#printContainer) {
    display: none !important;
  }
  
  #printContainer {
    display: block !important;
    max-width: 210mm;
    width: 210mm;
    height: auto;
    margin: 0;
    padding: 0;
    background: white;
  }
  
  #printContainer * {
    margin: 0;
    padding: 0;
    background-color: transparent;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
    margin-bottom: 5mm;
  }
  
  th, td {
    border: 1px solid #cbd5e1;
    padding: 6px;
    text-align: left;
    vertical-align: middle;
  }
  
  th {
    background-color: #f1f5f9 !important;
    font-weight: bold;
    color: #1e293b;
  }
  
  tr {
    page-break-inside: avoid;
  }
  
  tr:nth-child(even) {
    background-color: #f8fafc;
  }
  
  tr:nth-child(odd) {
    background-color: #ffffff;
  }
  
  h1 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2mm;
  }
  
  h2 {
    font-size: 13px;
    font-weight: bold;
    margin-top: 8mm;
    margin-bottom: 4mm;
  }
  
  p {
    margin: 2mm 0;
  }
  
  .no-print {
    display: none !important;
  }
}

