/* =============================================
   Technoclean CRM — Main Stylesheet
   ============================================= */

:root {
  /* Colours taken from technoclean.ae: navy #00226F, cyan #00B4D8, mist #E7F1F3 */
  --brand: #00226f;
  --brand-dark: #000710;
  --brand-light: #e7f1f3;
  --cyan: #00b4d8;
  --cyan-dark: #0090ad;
  --accent: #00a86b;
  --accent-dark: #007a4e;
  --danger: #dc3545;
  --warning: #f59e0b;
  --text: #000710;
  --text-muted: #55696f;
  --bg: #f1f8fa;
  --card-bg: #ffffff;
  --border: #d5e4e8;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(0,34,111,.08), 0 4px 16px rgba(0,34,111,.05);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Archivo', 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-btn: 'Nunito', 'Poppins', -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar ---- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 56px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.nav-brand { flex: 0 0 auto; margin-right: 8px; }
.brand-link { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand-icon { font-size: 20px; }
.brand-name { font-weight: 700; font-size: 17px; color: var(--brand); letter-spacing: -.3px; }
.brand-sub { font-size: 11px; font-weight: 600; background: var(--brand); color: #fff; padding: 1px 5px; border-radius: 4px; letter-spacing: .5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all .15s; }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-user { display: flex; align-items: center; gap: 6px; }
.user-label { font-size: 13px; color: var(--text-muted); }
.nav-icon-link { font-size: 17px; padding: 4px 6px; border-radius: 6px; color: var(--text-muted); transition: .15s; }
.nav-icon-link:hover, .nav-icon-link.active { background: var(--brand-light); color: var(--brand); text-decoration: none; }

/* ---- Main ---- */
.main-content { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }

/* ---- Flash ---- */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: 14px; font-weight: 500;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 18px; opacity: .6; line-height: 1; }

/* ---- Page header ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header-actions { display: flex; gap: 8px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); width: 100%; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span { color: var(--text-muted); }

/* ---- Cards ---- */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 15px; font-weight: 600; }
.card-body, .card-section { padding: 14px 20px; }
.card-section + .card-section { border-top: 1px solid var(--border); }

.form-card { max-width: 760px; }
.form-card form { padding: 20px; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 20px; }

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead { background: #f8fafc; border-bottom: 1px solid var(--border); }
.table th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.table td { padding: 11px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-hover tr:hover td { background: #fafbfc; }
.text-right { text-align: right; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: #f1f5f9; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline-1  { border: 1px solid var(--brand);    color: var(--brand);    background: transparent; }
.btn-outline-2  { border: 1px solid var(--warning);  color: var(--warning);  background: transparent; }
.btn-outline-3  { border: 1px solid var(--accent);   color: var(--accent);   background: transparent; }
.btn-outline-4  { border: 1px solid #7c3aed;         color: #7c3aed;         background: transparent; }
.btn-outline-5  { border: 1px solid #0891b2;         color: #0891b2;         background: transparent; }
.btn-outline-6  { border: 1px solid #059669;         color: #059669;         background: transparent; }
.btn-outline-7  { border: 1px solid #16a34a;         color: #16a34a;         background: transparent; }
.inline { display: inline; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,180,216,.22); }
textarea.form-control { resize: vertical; }
.form-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-col-2 { grid-column: span 2; }
.form-col-1 { grid-column: span 1; }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.required { color: var(--danger); }

/* ---- Badges / Status ---- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-New-Lead    { background: #ede9fe; color: #5b21b6; }
.badge-Quoted      { background: #fef3c7; color: #92400e; }
.badge-Booked      { background: #dbeafe; color: #1e40af; }
.badge-In-Progress { background: #fce7f3; color: #9d174d; }
.badge-Done        { background: #d1fae5; color: #065f46; }
.badge-Invoiced    { background: #e0f2fe; color: #0c4a6e; }
.badge-Paid        { background: #dcfce7; color: #14532d; }

/* ---- Status Pipeline ---- */
.status-pipeline { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.status-card { flex: 1 1 100px; min-width: 90px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.status-count { font-size: 28px; font-weight: 700; color: var(--brand); line-height: 1; }
.status-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; }
.status-card:nth-child(1) .status-count { color: #5b21b6; }
.status-card:nth-child(2) .status-count { color: #92400e; }
.status-card:nth-child(3) .status-count { color: #1e40af; }
.status-card:nth-child(4) .status-count { color: #9d174d; }
.status-card:nth-child(5) .status-count { color: #065f46; }
.status-card:nth-child(6) .status-count { color: #0c4a6e; }
.status-card:nth-child(7) .status-count { color: #14532d; }

/* ---- Pipeline step bar (job detail) ---- */
.status-pipeline-sm { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.pipeline-step { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #f1f5f9; color: var(--text-muted); }
.pipeline-step-done { background: #dbeafe; color: #1e40af; }
.pipeline-step-current { background: var(--brand); color: #fff; font-weight: 700; }

/* ---- Detail List ---- */
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 14px 20px; font-size: 14px; }
.detail-list dt { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; padding-top: 2px; white-space: nowrap; }
.detail-list dd { color: var(--text); }

/* ---- Stats ---- */
.stat-big { padding: 20px; text-align: center; }
.stat-number { display: block; font-size: 48px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- Search bar ---- */
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search-input { flex: 1; min-width: 200px; }
.select-sm { max-width: 200px; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 16px; font-size: 15px; }
.error-code { font-size: 72px; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 12px; }

/* ---- Misc ---- */
.text-sm   { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }
.label-sm { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.link-sm { font-size: 13px; color: var(--brand); }
.pad { padding: 20px; }
.inline-status-form { display: inline; }
.status-select {
  border: none; outline: none; cursor: pointer; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; appearance: none; -webkit-appearance: none;
}
.status-btn-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; }

/* ---- Login page ---- */
body.login-page { background: linear-gradient(135deg, #0a1628 0%, #0d2444 60%, #0a1628 100%); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-container { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 48px 40px; width: 100%; max-width: 380px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-icon { font-size: 42px; display: block; margin-bottom: 8px; }
.login-brand { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.login-tagline { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.login-form .form-group { margin-bottom: 18px; }
.login-form .btn { margin-top: 8px; padding: 11px; font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .navbar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .nav-links { order: 3; flex: 1 1 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .nav-link { flex: 0 0 auto; }
  .nav-right .btn { display: none; }
  .navbar { padding: 0 14px; }
  .main-content { padding: 16px 14px 48px; }
  .form-row { grid-template-columns: 1fr; }
  .form-col-2 { grid-column: span 1; }
  .table th:nth-child(4), .table td:nth-child(4),
  .table th:nth-child(5), .table td:nth-child(5) { display: none; }
  .status-pipeline { gap: 8px; }
  .status-card { min-width: 70px; padding: 10px 6px; }
  .status-count { font-size: 22px; }
  .login-container { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Modules (quotes, invoices, calendar, staff, inventory, reports, messages) ---- */
.navbar { height: auto; min-height: 56px; flex-wrap: wrap; }
.nav-links { flex-wrap: wrap; }
.nav-link { padding: 6px 9px; }
.nav-badge { display: inline-block; margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.table-scroll { overflow-x: auto; }
.table-all th, .table-all td { display: table-cell !important; }
.check-label { display: flex !important; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; color: var(--text) !important; }
.check-label input { width: 18px; height: 18px; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; }
.status-draft, .status-unpaid { background: #f1f5f9; color: #475569; }
.status-sent, .status-part-paid { background: #fef3c7; color: #92400e; }
.status-accepted, .status-paid, .status-booked, .status-in { background: #d1fae5; color: #065f46; }
.status-rejected, .status-overdue, .status-new-lead, .status-out, .status-low { background: #fee2e2; color: #991b1b; }
.status-adjust { background: #dbeafe; color: #1e40af; }
.row-low td { background: #fff7ed; }
.totals-box { margin-left: auto; max-width: 320px; padding: 14px 20px; font-size: 14px; }
.totals-box div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals-box .grand { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 16px; }
.num { text-align: right; white-space: nowrap; }
.item-row { display: grid; grid-template-columns: 1fr 90px 120px 36px; gap: 8px; margin-bottom: 8px; }
.item-row-head { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-group { margin-bottom: 0; }
.doc { max-width: 820px; margin: 0 auto; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px; }
.doc-title { font-size: 26px; font-weight: 800; color: var(--brand); }
.bar-cell { width: 40%; }
.bar { height: 12px; border-radius: 6px; background: var(--brand); min-width: 2px; }
.bar-green { background: var(--accent); }
.cal-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav .cal-title { font-size: 18px; font-weight: 700; margin: 0 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: #f8fafc; padding: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: center; }
.cal-day { background: #fff; min-height: 96px; padding: 4px; min-width: 0; }
.cal-day.cal-out { background: #f8fafc; }
.cal-day.cal-today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-week .cal-day { min-height: 260px; }
.cal-date { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.cal-ev { display: block; font-size: 11px; line-height: 1.3; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { text-decoration: none; filter: brightness(.95); }
.cal-shift { background: #e0f2fe; color: #0c4a6e; border-left: 3px solid #0891b2; }
.msg-unread td { font-weight: 700; }
.msg-body { white-space: pre-wrap; padding: 14px 20px; }
@media (max-width: 700px) {
  .item-row { grid-template-columns: 1fr 70px 90px 32px; }
  .cal-day { min-height: 64px; padding: 2px; }
  .cal-week .cal-day { min-height: 120px; }
  .cal-ev { font-size: 10px; }
}
@media print {
  .navbar, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .main-content { max-width: none; padding: 0; }
  .card { box-shadow: none; border: none; }
}

/* =============================================
   Website look and feel (technoclean.ae)
   Navy + cyan palette, pill buttons, Archivo / Poppins / Nunito
   ============================================= */
a { color: #0b7da0; }
h1, h2, h3, .page-header h2, .card-header h3, .login-brand { font-family: var(--font-head); color: var(--brand); letter-spacing: -.2px; }

/* Navbar: white, with the website's cyan accent line */
.navbar { border-bottom: 3px solid var(--cyan); box-shadow: 0 2px 10px rgba(0,34,111,.07); }
.nav-link { border-radius: 50px; padding: 6px 14px; }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); }
.nav-link.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-icon-link:hover, .nav-icon-link.active { background: var(--brand-light); color: var(--brand); }

/* Buttons: pill shape. Primary is cyan and turns into an outline on hover, like the site. */
.btn { border-radius: 50px; font-family: var(--font-btn); font-weight: 700; padding: 8px 20px; }
.btn-sm { padding: 5px 14px; }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn-primary:hover { background: transparent; border-color: var(--cyan); color: var(--cyan-dark); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: transparent; color: var(--danger); }

/* Tables and cards */
.table thead { background: #ebf9fc; border-bottom: 2px solid var(--cyan); }
.table th { color: var(--brand); }
.table-hover tr:hover td { background: #f1f8fa; }
.card { border-radius: var(--radius); }
.card-header { background: #ebf9fc; }
.status-card:hover { border-color: var(--cyan); }
.breadcrumb a { color: #0b7da0; }

/* Sign-in page: navy background like the website's header, cyan button */
body.login-page { background: linear-gradient(135deg, #000710 0%, #00226f 60%, #000710 100%); }
.login-container { border-radius: 20px; border-top: 5px solid var(--cyan); }
.login-tagline { color: var(--text-muted); font-family: var(--font-head); letter-spacing: .3px; }

/* ---- Leads ---- */
.lead-score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #475569; }
.lead-score.hi { background: #d1fae5; color: #065f46; }
.lead-score.mid { background: #fef3c7; color: #92400e; }
.lead-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; }
.lead-status-new { background: #ede9fe; color: #5b21b6; }
.lead-status-contacted { background: #dbeafe; color: #1e40af; }
.lead-status-qualified { background: #e0f2fe; color: #0c4a6e; }
.lead-status-quote_sent { background: #fef3c7; color: #92400e; }
.lead-status-won { background: #d1fae5; color: #065f46; }
.lead-status-lost { background: #fee2e2; color: #991b1b; }
.lead-dnc { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fee2e2; color: #991b1b; }
.lead-contact a { margin-right: 6px; }
.lead-notice { background: var(--brand-light); border: 1px solid var(--border); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.lead-warn { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin: 10px 0; }
.lead-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.lead-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; font-size: 14px; }
.lead-progress { height: 10px; background: var(--brand-light); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.lead-progress > span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .4s; }
.lead-timeline { list-style: none; margin: 0; padding: 0; }
.lead-timeline li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lead-timeline li:last-child { border-bottom: 0; }
.lead-timeline .when { color: var(--text-muted); font-size: 12px; }
.lead-timeline .kind { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--brand); margin-right: 6px; }
.lead-timeline .body { white-space: pre-wrap; word-break: break-word; }
.lead-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.lead-quick textarea { flex: 1 1 260px; }
.lead-filters .form-control { max-width: 170px; }
.lead-filters input[type=number] { max-width: 90px; }
.lead-hint { color: var(--text-muted); font-size: 13px; }

/* Timesheet (v14): Punch page, mobile first */
.ts-app { max-width: 560px; margin: 0 auto; }
.ts-main { padding: 20px; text-align: center; }
.ts-status { font-size: 18px; font-weight: 600; color: var(--brand); }
.ts-timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); min-height: 52px; margin: 6px 0 14px; }
.ts-job { text-align: left; }
.ts-btn { width: 100%; min-height: 96px; border: 0; border-radius: 16px; font-size: 28px; font-weight: 800; color: #fff; cursor: pointer; background: var(--brand); touch-action: manipulation; }
.ts-btn.ts-in { background: #00a86b; }
.ts-btn.ts-out { background: #dc3545; }
.ts-btn:disabled { opacity: .55; cursor: wait; }
.ts-msg { min-height: 24px; margin-top: 12px; font-size: 15px; }
.ts-msg.ts-ok { color: #065f46; }
.ts-msg.ts-warn { color: #92400e; }
.ts-msg.ts-err { color: #991b1b; }
.ts-rejected { color: #991b1b; margin-top: 6px; }
.ts-flag { display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fef3c7; color: #92400e; }
.audit-details summary { cursor: pointer; color: var(--brand); font-size: 12px; margin-top: 4px; }
.audit-details pre { margin: 6px 0; padding: 8px; background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-width: 560px; }
