/* Dark theme: drop into /static/app.css (or a <style> block) */

:root{
  --bg: #0b1020;
  --panel: #0f172a;
  --panel-2: #0b1224;
  --text: #e5e7eb;
  --muted: #7b7d7b;
  --border: rgba(255,255,255,.10);
  --accent: #60a5fa;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(96,165,250,.15), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(52,211,153,.10), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
}

body{
  /*padding: 28px 16px 60px;*/
}

a{
  color: var(--accent);
  text-decoration: none;
}

a:hover{ text-decoration: underline; }

p{ margin: 0 0 14px; }

h1, h2, h3{
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: .2px;
}

h1{
  font-size: 22px;
}

/* Page width and centering */
.page {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 14px;
}
.page-email{
  max-width:2000px;
  margin:0 auto;
  padding:12px 16px 24px;
}

/* top nav line (your first <p>) */
body > p:first-of-type{
  max-width: 820px;
  margin: 0 auto 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* main content wrap without changing HTML */
body > h1,
body > form,
body > div{
/*  max-width: 820px;
  margin-left: auto;
  margin-right: auto;*/
}

/* alerts (overrides your inline colors nicely) */
div[style*="background:#e6f7e6"]{
  background: rgba(52,211,153,.12) !important;
  border-color: rgba(52,211,153,.35) !important;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

div[style*="background:#ffe6e6"]{
  background: rgba(251,113,133,.12) !important;
  border-color: rgba(251,113,133,.35) !important;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* form card */
form{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}

/* field blocks */
form > p{
  /*padding: 0px 12px 2px;
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;*/
}

/* labels (your "Trees (quantity)<br>") */
form > p br{
  line-height: 12px;
}

/* inputs */
input[type="text"],
input[type="number"],
select{
  width: 260px;
  max-width: 100%;
  padding: 10px 10px;
  margin-top: 8px;
  color: var(--text);
  background: #a5a5a5;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  outline: none;
}

select{
  width: 140px;
}

input::placeholder{
  color: rgba(156,163,175,.85);
}

input:focus,
select:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(96,165,250,.20);
}

/* buttons */
button{
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: #72a841;
  color: #000;
  font-weight: 500;
  padding: 10px 44px;
  border-radius: 0px;
  cursor: pointer;
}

button:hover{
  filter: brightness(1.05);
}

button:active{
  transform: translateY(1px);
}

/* tighten last paragraph (save button block) */
form > p:last-of-type{
  background: transparent;
  border: none;
  padding: 6px 0 2px;
}

/* small screens */
@media (max-width: 520px){
  body{ padding: 18px 12px 44px; }
  form{ padding: 14px 14px 6px; }
  select{ width: 100%; }
}

/* optional: code-ish fields */
.mono{
  font-family: var(--mono);
}

/* app.css: add these */

/* Top nav */
.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #0f1218;
  border-bottom: 1px solid #232a36;
}

.navbtn:active{
  transform: translateY(1px);
}

/* Centered 2x2 layout table */
.page-center{
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 16px;
}
.layout4{
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px;
  margin: 0 auto;
}
.layout4 .cell{
  vertical-align: top;
  background: #111620;
  border: 1px solid #232a36;
  border-radius: 12px;
  padding: 14px;
}

/* Head row inside cells */
.cellhead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.title{ font-size: 18px; font-weight: 700; color: #e7eaf0; }
.actions{ display: flex; gap: 8px; }
.linkbtn{
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #2b3444;
  background: #151b24;
  color: #e7eaf0;
  text-decoration: none;
}
.linkbtn:hover{ background: #1c2533; border-color: #3a4760; }

/* KV table */
.kv{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.kv th, .kv td{
  padding: 7px 8px;
  border-bottom: 1px solid #232a36;
  text-align: left;
}
.kv th{ width: 160px; color: #b9c0cc; font-weight: 600; }
.kv td{ color: #e7eaf0; }

/* Quotes table */
.quotes{
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.quotes th, .quotes td{
  padding: 8px;
  border-bottom: 1px solid #232a36;
  text-align: left;
}
.quotes th{ color: #b9c0cc; font-weight: 700; }
.quotes td{ color: #e7eaf0; }
.quotes a{ color: #9bd3ff; text-decoration: none; }
.quotes a:hover{ text-decoration: underline; }

/* Pre boxes */
.prebox{
  margin: 8px 0 0 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #232a36;
  background: #0c1017;
  color: #dbe2ee;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 420px;
}
.muted{ color: #7b7d7b; }

/* Flash */
.flash{
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2b3444;
}
.flash.ok{
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #d7fbe9;
}

/* app.css snippets */

/* Align widths */
.page-wrap,
.topnav-inner {
  width: min(1200px, 96vw);
  margin: 0 auto;
}

/* Cedar Ontario-ish palette (dark UI + your green/blue accents) */
:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --panel2: #0c131b;
  --text: #e7edf5;
  --muted: #7b7d7b;
  --line: rgba(255,255,255,0.10);
  --green: #72A841;
  --blue: #1E3A8A;

  /* Replace these after you inspect cedarontario.ca computed font-family */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

h1,h2,h3 { margin: 0 0 10px 0; }

/* Top nav */
.topnav {
  background: linear-gradient(180deg, rgba(30,58,138,0.25), rgba(114,168,65,0.10));
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0 0 14px 0;
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { flex: 0 0 auto; }
.brand-logo { height: 34px; width: auto; display: block; }

.navlinks {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex: 1 1 auto;
}





/* 2x2 layout table, forced 50/50 */
.layout-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 14px;
}

.layout-table td {
  width: 50%;
  vertical-align: top;
}

.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

/* T1 tighter to pull content up */
.t1 { padding: 10px; }
.t1 table { margin-top: 6px; }
.t1 td, .t1 th { padding: 6px 8px; }
.t1 .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* Raw panes */
.prebox {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 8px 0 0 0;
  color: var(--text);
}

/* Top nav */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px 0;
}

.nav-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px; /* about 20% smaller */
  width: auto;
}

/* Nav buttons */
.navbtn {
  display: inline-block;


}



/* 2x2 layout */
.grid2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr; /* forces 50/50 */
  grid-template-rows: auto auto;
  gap: 14px;
}

.cell {
  min-width: 0; /* prevents content forcing column wider */
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

/* Pull T1 up, less padding/margin */
.t1 {
  padding: 10px 12px;
}

.t1 table,
.t1 p,
.t1 h1,
.t1 h2,
.t1 h3 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.prebox {
  margin: 8px 0 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  overflow: auto;
  max-height: 420px;
}

:root{
  --co-green:#72A841;
  --bg:#0b0f0c;
  --panel:#0f1511;
  --panel2:#0c110d;
  --text:#eaf2ec;
  --muted:#7b7d7b;
  --border:#233128;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
}

.has-fixed-nav{ padding-top:64px; }

.topnav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background: linear-gradient(90deg, var(--co-green), #000);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.topnav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:6px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-left{ display:flex; gap:8px; }

.navbtn{
  display:inline-block;

  background: rgba(0,0,0,0.55);

  color:#fff;
  text-decoration:none;

  letter-spacing:0.2px;
}

.navbtn:hover{
  /*background: var(--co-green);
  color:#0b0f0c;
  border-color: rgba(0,0,0,0.35);
  text-decoration:none;*/
}

.nav-right{ display:flex; align-items:center; }

.brandlink{ display:inline-flex; align-items:center; text-decoration:none; }
.brandlogo{
  height:32px;           /* ~20% smaller than a typical 40px header mark */
  width:auto;
  display:block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

.page{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px 24px;
}

.page-title{ margin:8px 0 12px; }

.lead-grid{
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:12px;
}

.lead-grid .cell{ width:50%; vertical-align:top; }

.panel{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.panel-title{ font-size:18px; font-weight:800; margin:0; }
.panel-title-sm{ font-size:14px; font-weight:800; margin:0 0 8px; color:var(--muted); }

.panel-actions{ display:flex; gap:8px; }

.linkbtn{
  padding:6px 9px;
  border-radius:6px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}

.linkbtn:hover{
  background: rgba(114,168,65,0.18);
  border-color: rgba(114,168,65,0.45);
  text-decoration:none;
}

.kv{
  width:100%;
  border-collapse:collapse;
  margin:0 0 8px;
}

.kv td{
  padding:5px 7px;      /* less vertical space in T1 */
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.kv td:first-child{
  width:38%;
  color:var(--muted);
}

.subhead{
  margin:6px 0 6px;     /* pull Notes up */
  font-weight:800;
  color:var(--muted);
}

.notesbox{
  margin:0;
  padding:8px;
  border-radius:10px;
  background: rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.08);
  white-space:pre-wrap;
}

.quotelist{ margin:0; padding-left:18px; }
.quotelist li{ margin:6px 0; }

.muted{ color:var(--muted); }

.notice.ok{
  padding:10px;
  border-radius:10px;
  background: rgba(114,168,65,0.14);
  border:1px solid rgba(114,168,65,0.35);
}

/* add at VERY BOTTOM of app.css (overrides earlier duplicates) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root{
  --co-green: #72A841;
  --bg: #07090b;
  --panel: #0f1410;
  --text: #e9f0e9;
  --muted: #7b7d7b;
  --line: rgba(255,255,255,0.10);
}

/* Global font */
html, body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Fixed full-width nav w centered inner */
.topnav{
  /*position: fixed;*/
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  margin: 0;
  padding: 6px 0; /* less vertical padding */
  border-bottom: 1px solid rgba(0,0,0,0.35);

  /* bottom green -> top black */
  background: linear-gradient(to top, var(--co-green) 0%, #000 100%);
}

.topnav-inner{
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* buttons left, logo right */
  gap: 12px;
}

/* push page down so nav doesn't overlap */
.page-wrap{
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding-top: 64px; /* adjust if your nav height changes */
}

/* Nav buttons: sharp corners, no glow, no underline */
.nav-left{ display:flex; gap:10px; align-items:center; }

.navbtn{
  display:inline-block;
  padding: 8px 12px;           /* less vertical padding */
  border-radius: 0;            /* sharp corners */
  /*border: 1px solid rgba(0,0,0,0.55);*/
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-decoration: none;
}

.navbtn:hover{
  background: var(--co-green); /* full-colour rollover */
  border-color: rgba(0,0,0,0.65);
  color: #071007;
  box-shadow: none;            /* remove glow */
}

.navbtn:focus,
.navbtn:active{
  outline: none;
  box-shadow: none;
}

/* Logo on right, ~20% smaller, linkable */
.nav-right a{ display:block; }
.nav-logo{ height: 32px; width:auto; display:block; }

/* Force 50/50 top panes even if content wants more */
.grid2x2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cell{
  min-width: 0;
  border-radius: 0;                  /* sharp corners */
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

/* Pull T1 content up a bit */
.t1{
  padding: 10px 12px;
}
.t1 .kv th, .t1 .kv td{
  padding-top: 5px;
  padding-bottom: 5px;
}

/* add near your other .kv rules */
.meta-kv{ margin-top: 10px; }

.topnav{
  background: linear-gradient(to bottom, #0b0f0c, #2f4f1f);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbtn{
  background: none;
  border: none;
  padding: 8px 12px;
  color: #eaf2ec;
  opacity: 0.75;
}

.navbtn:hover{
  color: #72A841;
  opacity: 0.75;
}

.navbtn.active{
  border-bottom: 2px solid #72A841;
}

.nav-logo{
  height: 32px;
}

/* full-width green bar */
.topnav{
  width: 100%;
  background: linear-gradient(to bottom, #000 0%, #72A841 100%);
  border-bottom: 1px solid rgba(0,0,0,0.35);
}

/* centered content inside bar */
.topnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* left buttons */
.nav-left{
  display: flex;
  gap: 10px;
  margin-left: 15px;
}

/* buttons */
.navbtn{
  padding: 8px 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-decoration: none;
}

.navbtn:hover{
  background: #72A841;
  color: #071007;
  text-decoration: none;
}

/* right logo */
.nav-logo{
  height: 30px;   /* smaller, cleaner */
  width: auto;
}

/* FORCE centered nav content */
.topnav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #f4f5f7;
  z-index: 999;
}

.topnav-inner{
  width: min(1200px, 96vw);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ensure nothing forces left */
.nav-left,
.nav-right{
  flex: 0 0 auto;
}

/* smaller logo */
.nav-logo{
  height: 36px;
  width: auto;
}

.topnav-inner{
  width: min(820px, 96vw);
}

.app-wrap{
  width: min(820px, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.app-wrap-email{
  width: min(2500px, 95vw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}


.topnav-inner{
  width: min(820px, 96vw);
  margin-left: auto !important;
  margin-right: auto !important;
}

input,
textarea,
select {
  background-color: #a5a5a5;
  border: 1px solid #5f656c;
  border-radius: 4px;
  padding: 4px 6px;
  color: #000;
}

/* Flash message overlay */
.flash.ok{
  position: fixed;
  top: 72px;                /* just below navbar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  background: #c8f3c8;      /* light green */
  color: #0b1a0b;
  border: 1px solid #69c169;
  border-radius: 0;

  padding: 8px 12px;
  white-space: nowrap;

  opacity: 1;
  animation: flashFade 2s ease forwards;
}

/* hold 1s, fade 1s */
@keyframes flashFade{
  0%, 66% { opacity: 1; }
  100%    { opacity: 0; }
}

/*REmove up down arrows from snippet selection fields*/
/* snippet order only */
input.snippet-order[type="number"]::-webkit-outer-spin-button,
input.snippet-order[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.snippet-order[type="number"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  -moz-appearance: textfield;
}

.snippet-item {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px;
  margin-bottom:8px;
  background:#111;
  border:1px solid #333;
  cursor:move;
}

.drag-handle {
  font-size:18px;
  cursor:grab;
  user-select:none;
}

.snippet-body {
  flex:1;
}

.snippet-block {
  padding: 10px;
  margin-bottom: 8px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  cursor: grab;
  user-select: none;
}

.snippet-block:active {
  cursor: grabbing;
}

/* ===== Quote Email page polish ===== */

.app-wrap-email{
  max-width: 1500px;
  margin: 18px auto;
  padding: 0 14px;
}

.page-email{
  color: var(--text);
}

/* 2-column layout table on quote_email.html */
.page-email > table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px;
}

.page-email > table > tbody > tr > td{
  vertical-align: top;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px;
}

/* Headings in cells */
.page-email h1{ margin: 0 0 10px 0; }
.page-email h2{ margin: 0 0 10px 0; }
.page-email h3{ margin: 12px 0 8px 0; color: var(--muted); font-weight: 650; }
.page-email p{margin: 0 0 4px 0; padding: 0;}

/* Form fields on this page */
.page-email textarea{
    min-height: 175px;
  }

.page-email select,
.page-email textarea,
.page-email input,
.page-email input[type="text"],
.page-email input[type="number"]{
  width: 100% !important;
  color: #000;
  background: #a5a5a5;
  border: 1px solid #5f656c;
  border-radius: 4px;
  padding: 10px 10px;
  outline: none;
  white-space: pre-wrap;
  font-family: var(--mono);
  line-height: 1.1;
  text-align: left;
  font-size: 15px;
}


/* Make disabled To field match */
.page-email input[disabled]{
  opacity: 0.85;
}

/* Snippet list readability */
.page-email .snippet-block,
.page-email .snippet-item,
.page-email label{
  color: var(--text);
}

.page-email form div[style*="border:1px solid #ccc"]{
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.10) !important;
  border-radius: 12px;
}

/* Snippet order inputs (left column) */
.page-email .snippet-order{
  width: 44px !important;
  text-align: center;
  padding: 6px 6px !important;
  background: rgba(2,6,23,.65);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
}

/* Remove number spinners where supported */
.page-email .snippet-order::-webkit-outer-spin-button,
.page-email .snippet-order::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.page-email .snippet-order{
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Buttons on this page (keep your theme) */
.page-email button{
  min-width: 160px;
}

/* ===== Quote Email: FORCE snippets pane dark ===== */


/* any of those inline “border:1px solid #ccc” boxes */
.page-email table td:first-child div[style*="border:1px solid"]{
  background: rgba(2,6,23,.65) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* snippet rows/labels */
.page-email table td:first-child label{
  background: transparent !important;
}

/* if any snippet blocks/items are still getting white bg */
.page-email .snippet-item,
.page-email .snippet-body,
.page-email .snippet-block{
  background: rgba(2,6,23,.65) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: var(--text) !important;
}

/* titles inside snippets */
.page-email .snippet-body strong{
  color: var(--text) !important;
}

/* Snippets column rows */
.snippet-row{
  display:grid;
  grid-template-columns: 42px 1fr;
  align-items:center;
  gap:10px;
  margin:0;
}

.snippet-order{
  width:42px;
  padding:6px 6px;
  border-radius:0;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(120,120,120,0.35);
  color:#fff;
  text-align:center;
}

/* stop wrapping, keep titles readable */
.snippet-title{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.2;
}

/* make the scroll area feel consistent */
.snippets-panel{
  padding:10px;
}


/* Snippet list minimal text style */
.snippets-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snippet-link {
  all: unset;
  cursor: pointer;
  display: block;
  color: #c2c6c3;
  font-size: 14px;
  padding: 2px 0;
}

.snippet-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.quote-edit select,
.quote-edit textarea,
.quote-edit input:not(.snippet-order),
.quote-edit input[type="text"]:not(.snippet-order),
.quote-edit input[type="number"]:not(.snippet-order){
  color: #000;
  font-size: 18px;
  background-color: #a5a5a5;
  border: 1px solid #5f656c;
  border-radius: 2px;
  padding: 4px 6px;
  text-align: center;
}

.topnav form{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.topnav form{
  display: inline;
}

/* Force nav button styling */
.topnav .navbtn,
.topnav button.navbtn{
  all: unset;
  display: inline-block;
  padding: 8px 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.topnav .navbtn:hover{
  background: #72A841;
  color: #071007;
}

/* Force snippet order field styling */
input.snippet-order{
  background: rgba(2,6,23,.65) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 0 !important;
  width: 120px !important;
  text-align: left !important;
}

.quote-edit input.snippet-order{
  text-align: left !important;
  font-size: 14px !important;
  background: rgba(2,6,23,.65) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}