/* NMT Προσφορές — styles for the admin app, the customer page and the A4 document. */
.nmt-app {
  --bg: #e8ecf0; --panel: #ffffff; --ink: #17202a; --muted: #5b6876; --line: #d3dae1; --field: #f5f7f9;
  --brand: #1d5c63; --brand-ink: #ffffff; --danger: #b3261e; --ok: #2e7d4f; --warn: #b8860b;
  --font: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
.nmt-app, .nmt-app *, .nmt-app *::before, .nmt-app *::after { box-sizing: border-box; }
.nmt-app button, .nmt-app input, .nmt-app textarea, .nmt-app select { font: inherit; color: inherit; }
.nmt-app :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nmt-app h1, .nmt-app h2, .nmt-app h3 { color: var(--ink); padding: 0; }

/* admin page frame */
.nmt-wrap { margin: 0 0 0 -20px; }
@media (max-width: 782px) { .nmt-wrap { margin-left: -10px; } }
.nmt-wrap .nmt-app { background: var(--bg); min-height: calc(100vh - 32px); }
.nmt-top { position: sticky; top: 32px; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
@media (max-width: 782px) { .nmt-top { position: static; } }
.nmt-top-in { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap; }
.nmt-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nmt-mark .sq { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-size: 14px; }
.nmt-tabs { display: flex; gap: 2px; background: var(--field); padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.nmt-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; }
.nmt-tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.nmt-app .spacer { flex: 1; }
.nmt-save { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nmt-save .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.nmt-save.saving .dot { background: var(--warn); }
.nmt-save.error .dot { background: var(--danger); }
.nmt-main { max-width: 1500px; margin: 0 auto; padding: 20px; }
.nmt-view { display: none; } .nmt-view.on { display: block; }

.nmt-app .btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); line-height: 1.3; font-size: 14px; }
.nmt-app .btn:hover { border-color: var(--muted); color: var(--ink); }
.nmt-app .btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.nmt-app .btn.primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.nmt-app .btn.ghost { border-color: transparent; background: transparent; }
.nmt-app .btn.danger { color: var(--danger); }
.nmt-app .btn.sm { padding: 5px 10px; font-size: 13px; }
.nmt-app .btn:disabled { opacity: .6; cursor: progress; }
.nmt-app .icon-btn { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 6px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); padding: 0; }
.nmt-app .icon-btn:hover { background: var(--field); color: var(--ink); }
.nmt-app .icon-btn.danger:hover { color: var(--danger); }
.nmt-app .icon-btn:disabled { opacity: .35; cursor: default; }
.nmt-app .icon-btn svg { width: 17px; height: 17px; }

.nmt-split { display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); gap: 24px; align-items: start; }
.nmt-viewtoggle { display: none !important; }
@media (max-width: 1100px) {
  .nmt-split { grid-template-columns: minmax(0, 1fr); }
  .nmt-viewtoggle { display: inline-flex !important; margin-bottom: 14px; }
  .nmt-split[data-show="edit"] .nmt-preview-col { display: none; }
  .nmt-split[data-show="preview"] .nmt-editor-col { display: none; }
}
.nmt-qbar, .nmt-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.nmt-qbar h1, .nmt-toolbar h1 { font-size: 22px; margin: 0; letter-spacing: -0.015em; font-weight: 700; line-height: 1.2; }
.nmt-qbar .num { color: var(--muted); font-weight: 500; }
.nmt-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0 0 14px; max-width: none; min-width: 0; }
.nmt-card h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nmt-card h2 .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.nmt-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nmt-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .nmt-grid { grid-template-columns: minmax(0, 1fr); } }
.nmt-app label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin: 0; }
.nmt-app .f input, .nmt-app .f textarea, .nmt-app .f select, .nmt-app .inp {
  background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--ink);
  font-size: 14.5px; width: 100%; min-width: 0; max-width: none; box-shadow: none; line-height: 1.4; min-height: 38px; margin: 0;
}
.nmt-app .f textarea, .nmt-app textarea.inp { resize: vertical; min-height: 70px; line-height: 1.5; }
.nmt-app .f input:focus, .nmt-app .f textarea:focus, .nmt-app .inp:focus { outline: none; border-color: var(--brand); background: var(--panel); box-shadow: none; }
.nmt-app .f input:disabled { opacity: .75; }
.nmt-app .help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.nmt-app .check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); }
.nmt-app .check input { margin: 0; }
.nmt-app fieldset.nmt-lock { border: 0; padding: 0; margin: 0; min-width: 0; }

.nmt-line { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--panel); }
.nmt-line[data-kind="service"] { border-left: 3px solid var(--muted); }
.nmt-line[data-kind="goods"] { border-left: 3px solid var(--brand); }
.nmt-line-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nmt-line-top .no { font-size: 13px; color: var(--muted); }
.nmt-line-tools { margin-left: auto; display: flex; gap: 2px; }
.nmt-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--panel); }
.nmt-seg button { border: 0; background: transparent; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--muted); }
.nmt-seg button.on { background: var(--brand); color: var(--brand-ink); }
.nmt-line-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.nmt-line-body.noimg { grid-template-columns: minmax(0, 1fr); }
.nmt-photo { width: 92px; height: 92px; border: 1px dashed var(--line); border-radius: 8px; background: var(--field); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; padding: 4px; }
.nmt-photo img { max-width: 100%; max-height: 100%; display: block; }
.nmt-photo:hover { border-color: var(--brand); }
.nmt-photo-wrap { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.nmt-app .linkbtn { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px; text-decoration: underline; }
.nmt-app .linkbtn:hover { color: var(--danger); }
.nmt-lf { display: flex; flex-direction: column; gap: 8px; }
.nmt-lf textarea { min-height: 52px; }
.nmt-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.nmt-nums.cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .nmt-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nmt-nums .ltotal { grid-column: 1 / -1; text-align: left; } }
.nmt-app .ltotal { font-weight: 600; text-align: right; padding-bottom: 9px; white-space: nowrap; }
.nmt-app .ltotal small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.nmt-addrow { display: flex; gap: 8px; flex-wrap: wrap; }
.nmt-empty { border: 1px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); margin-bottom: 10px; }
.nmt-totals { position: sticky; bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; box-shadow: 0 6px 18px rgba(0,0,0,.08); margin-bottom: 14px; z-index: 5; }
.nmt-totals div { font-size: 13px; color: var(--muted); }
.nmt-totals b { display: block; color: var(--ink); font-size: 16px; }
.nmt-totals .grand b { font-size: 20px; color: var(--brand); }
.nmt-preview-col { position: sticky; top: 96px; }
.nmt-preview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.nmt-pwrap { width: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px rgba(20,30,40,.14); background: #fff; }
.nmt-pwrap .doc { transform-origin: top left; }
.nmt-app .search { max-width: 320px; }
.nmt-tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.nmt-qtable { width: 100%; border-collapse: collapse; background: var(--panel); }
.nmt-qtable th { font-size: 12.5px; text-align: left; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--field); }
.nmt-qtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nmt-qtable tr:last-child td { border-bottom: 0; }
.nmt-qtable tr.cur td { background: var(--field); }
.nmt-qtable .r { text-align: right; } .nmt-qtable .nw { white-space: nowrap; }
.nmt-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--field); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.nmt-badge.sent { color: #8a6508; border-color: #e6cf8f; background: #fbf5e3; }
.nmt-badge.accepted { color: var(--ok); border-color: #a9d3b9; background: #ebf6ef; }
.nmt-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.nmt-catgrid .nmt-line { margin: 0; }
.nmt-settings { max-width: 860px; }
.nmt-logo-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nmt-logo-prev { width: 300px; height: 130px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; overflow: hidden; color: #7a8692; font-size: 13px; padding: 8px; }
.nmt-logo-prev img { max-width: 100%; max-height: 100%; }
.nmt-colorrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nmt-app .swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.nmt-app .swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.nmt-app input[type="color"] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.nmt-modal-back { position: fixed; inset: 0; background: rgba(10,15,20,.45); z-index: 100050; display: grid; place-items: center; padding: 16px; }
.nmt-modal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(560px, 100%); max-height: 82vh; display: flex; flex-direction: column; }
.nmt-modal-h { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.nmt-modal-h h3 { margin: 0; font-size: 16px; flex: 1; }
.nmt-modal-b { padding: 12px 18px; overflow: auto; }
.nmt-pick { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nmt-pick:hover { background: var(--field); }
.nmt-pick .th { width: 44px; height: 44px; border-radius: 6px; background: var(--field); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 11px; color: var(--muted); }
.nmt-pick .th img { max-width: 100%; max-height: 100%; }
.nmt-pick .meta { flex: 1; min-width: 0; }
.nmt-pick .meta b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmt-pick .meta span { font-size: 12.5px; color: var(--muted); }
.nmt-pick .pr { font-weight: 600; }
.nmt-share { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--field); }
.nmt-share .link { display: flex; gap: 8px; margin-top: 10px; }
.nmt-share .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.nmt-note { border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; border: 1px solid var(--line); background: var(--field); }
.nmt-note.ok { border-color: #a9d3b9; background: #ebf6ef; }
.nmt-note.warn { border-color: #e6cf8f; background: #fbf5e3; }
.nmt-note.err { border-color: #e7b3ae; background: #fbeceb; color: var(--danger); }
.nmt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #17202a; color: #fff; padding: 10px 16px; border-radius: 8px; font: 14px/1.4 "Commissioner", sans-serif; z-index: 100060; max-width: 90vw; }
.nmt-loading { padding: 60px 20px; text-align: center; color: var(--muted); }

/* customer page */
body.nmt-public { margin: 0; background: #e8ecf0; }
.nmt-sign-page { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.nmt-sign-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.nmt-sign-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 18px; }
.nmt-sign-panel h2 { margin: 0 0 6px; font-size: 18px; }
.nmt-sigpad { width: 100%; height: 190px; border: 1px dashed var(--muted); border-radius: 8px; background: #fff; touch-action: none; display: block; cursor: crosshair; }
.nmt-center { min-height: 70vh; display: grid; place-items: center; padding: 20px; }
.nmt-msg { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.nmt-msg h1 { font-size: 21px; margin: 0 0 8px; }
.nmt-msg p { margin: 0; color: var(--muted); }

/* ================= A4 document (always paper-white) ================= */
.doc { --b: #1d5c63; width: 794px; background: #fff; color: #1c2530; font: 12.5px/1.5 "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif; padding: 46px 56px 50px; position: relative; text-align: left; letter-spacing: normal; }
.doc, .doc * { box-sizing: border-box; }
.doc p { margin: 0 0 6px; font-size: inherit; line-height: inherit; }
.doc b { font-weight: 600; }
.d-head { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--b); margin-bottom: 22px; }
.d-logo { max-width: 340px; max-height: 140px; display: flex; align-items: center; }
.d-logo img { max-width: 340px; max-height: 140px; display: block; }
.d-logo .ph { font-size: 24px; font-weight: 700; color: var(--b); letter-spacing: -0.01em; }
.d-headr { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.d-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; color: #1c2530; }
.d-meta { display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 2px; font-size: 11.5px; }
.d-meta span { color: #6a7684; }
.d-meta b { text-align: right; }
.d-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.d-box { background: #f4f6f8; border-radius: 6px; padding: 12px 14px; font-size: 11.5px; color: #4a5664; line-height: 1.55; }
.d-box .lbl { font-size: 10.5px; color: #7a8692; margin-bottom: 3px; }
.d-box b { color: #1c2530; font-size: 13px; font-weight: 700; }
.d-subject { font-size: 13px; margin: 0 0 14px; }
.d-subject span { color: #6a7684; }
.d-sec { font-size: 14px; font-weight: 700; color: var(--b); margin: 20px 0 8px; }
.d-text p { color: #2e3a47; }
.d-li { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 5px; color: #2e3a47; }
.d-dot { width: 5px; height: 5px; background: var(--b); margin-top: 7px; flex: none; border-radius: 1px; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: 2px; }
.d-tr { display: grid; grid-template-columns: var(--cols); column-gap: 10px; padding: 9px 0; border-bottom: 1px solid #e3e7eb; align-items: start; }
.d-th { font-size: 10.5px; color: #6a7684; padding: 6px 0; border-bottom: 1.5px solid #1c2530; }
.d-tr .n { text-align: right; white-space: nowrap; }
.d-tr .c { text-align: center; }
.d-tr .ix { color: #7a8692; }
.d-name { font-weight: 600; color: #1c2530; }
.d-desc { color: #5a6674; font-size: 11.5px; white-space: pre-line; margin-top: 2px; }
.d-img { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid #e3e7eb; border-radius: 4px; background: #fff; overflow: hidden; }
.d-img img { max-width: 62px; max-height: 62px; display: block; }
.d-sub { display: flex; justify-content: flex-end; gap: 16px; padding: 7px 0 0; font-size: 11.5px; color: #4a5664; }
.d-sub b { color: #1c2530; min-width: 90px; text-align: right; }
.d-totals { margin: 22px 0 4px auto; width: 310px; }
.d-totals .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid #e3e7eb; }
.d-totals .disc b { color: #b3261e; }
.d-totals .grand { background: var(--b); color: #fff; border: 0; padding: 10px 12px; margin-top: 8px; border-radius: 5px; font-size: 14px; }
.d-totals .grand b { font-weight: 700; }
.d-bank { white-space: pre-line; font-size: 11.5px; color: #2e3a47; }
.d-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 34px; align-items: start; }
.d-sigimg { height: 96px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: -14px; }
.d-sigimg img { max-height: 110px; max-width: 240px; display: block; }
.d-sigline { border-top: 1px solid #1c2530; padding-top: 6px; font-size: 11px; color: #4a5664; }
.d-foot { margin-top: 28px; font-size: 11px; color: #7a8692; text-align: center; }
.doc.exporting { padding-top: 0; padding-bottom: 0; }
.nmt-export-host { position: absolute; left: -12000px; top: 0; width: 794px; }

/* accept call-to-action on the customer page */
.nmt-accept-cta { text-align: center; margin: 26px 0 6px; }
.nmt-app .btn.nmt-cta { font-size: 17px; padding: 14px 26px; border-radius: 8px; white-space: normal; }
.nmt-sign-panel[hidden] { display: none; }

/* company portal */
body.nmt-portal { background: #e8ecf0; }
.nmt-portal .nmt-top { top: 0; }
.nmt-portal .nmt-preview-col { top: 70px; }
.nmt-portal-bar { position: relative; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nmt-portal-home { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.nmt-portal-logo { max-height: 38px; max-width: 160px; display: block; }
.nmt-portal-name { font-weight: 700; font-size: 16px; color: var(--brand); }
.nmt-portal-title { font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.nmt-portal-user { color: var(--muted); font-size: 14px; }
.nmt-portal-main { max-width: 960px; margin: 0 auto; padding: 36px 20px 60px; }
.nmt-portal-main h1 { font-size: 26px; margin: 0; letter-spacing: -0.015em; }
.nmt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.nmt-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.nmt-tile:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(20,30,40,.08); color: var(--ink); }
.nmt-tile .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--field); color: var(--brand); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.nmt-tile b { font-size: 17px; }
.nmt-tile span:last-child { color: var(--muted); font-size: 14px; }
.nmt-tile.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.nmt-tile.primary .ic { background: rgba(255,255,255,.18); color: #fff; }
.nmt-tile.primary span:last-child { color: rgba(255,255,255,.85); }
.nmt-tile.primary:hover { color: #fff; filter: brightness(1.06); }
.nmt-login { text-align: left; }
.nmt-login-logo { margin-bottom: 14px; }
.nmt-login .nmt-portal-logo { max-height: 56px; max-width: 220px; }
.nmt-login a { color: var(--brand); }

/* multiple proposals — document */
.d-optband { margin: 28px 0 2px; padding: 9px 14px; background: #f4f6f8; border-left: 4px solid var(--b); font-weight: 700; font-size: 14.5px; color: #1c2530; display: flex; align-items: center; gap: 10px; }
.d-optband.chosen { background: #ebf6ef; border-left-color: #2e7d4f; }
.d-chosen { font-size: 11px; font-weight: 600; color: #fff; background: #2e7d4f; border-radius: 99px; padding: 2px 9px; }
.d-optnote { font-size: 11px; color: #7a8692; text-align: right; margin-top: 8px; }
.d-cmp { border: 1px solid #e3e7eb; border-radius: 6px; overflow: hidden; }
.d-cmprow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px 110px; gap: 10px; padding: 9px 12px; border-top: 1px solid #e3e7eb; font-size: 12.5px; }
.d-cmprow > :not(:first-child) { text-align: right; white-space: nowrap; }
.d-cmprow.d-cmph { border-top: 0; background: #f4f6f8; font-size: 10.5px; color: #6a7684; }
.d-cmprow.chosen { background: #ebf6ef; font-weight: 600; }

/* multiple proposals — editor */
.nmt-optgroup { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 14px; background: var(--field); }
.nmt-optgroup.common { background: transparent; border-style: dashed; }
.nmt-opthead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.nmt-opthead b { font-size: 15px; white-space: nowrap; }
.nmt-opthead .inp { flex: 1; min-width: 160px; }
.nmt-optgroup .nmt-line { background: var(--panel); }
.nmt-multi-toggle { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--field); margin-bottom: 12px; font-size: 14px; }
.nmt-multi-toggle input { margin-top: 3px; }
.nmt-totals .opt b { font-size: 16px; color: var(--brand); }
/* proposal choice on customer page */
.nmt-opts { display: grid; gap: 8px; margin: 4px 0 14px; }
.nmt-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: #fff; }
.nmt-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.nmt-opt b { flex: 1; }
.nmt-opt span { white-space: nowrap; font-weight: 600; }

/* ===== portal: folders, calendar, users ===== */
.nmt-portal-main.wide { max-width: 1400px; }
.nmt-portal-main h2 { font-size: 19px; margin: 0; }
.nmt-tile .ic.svg svg { width: 22px; height: 22px; }
.nmt-sec-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.nmt-sec-head h2 { flex: 1; }
.nmt-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nmt-folder { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: var(--ink); }
.nmt-folder:hover { border-color: var(--brand); color: var(--ink); }
.nmt-folder .fi { width: 40px; height: 40px; border-radius: 9px; background: var(--field); color: var(--brand); display: grid; place-items: center; flex: none; }
.nmt-folder .fi svg { width: 22px; height: 22px; }
.nmt-folder .fm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nmt-folder .fm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmt-folder .fm span { font-size: 13px; color: var(--muted); }
.nmt-folder .fa { display: flex; gap: 2px; }
.nmt-app .nmt-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.nmt-app .nmt-back:hover { color: var(--brand); }
.nmt-hicon { color: var(--brand); display: grid; }
.nmt-hicon svg { width: 26px; height: 26px; }
.nmt-drop { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); margin-bottom: 14px; background: #fff; font-size: 14px; }
.nmt-drop.on { border-color: var(--brand); background: var(--field); }
.nmt-drop [data-progress] { margin-top: 6px; color: var(--ink); font-weight: 600; }
.nmt-app .nmt-filelink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nmt-app .nmt-filelink:hover { color: var(--brand); }
.nmt-filelink .fi svg { width: 18px; height: 18px; color: var(--muted); display: block; }
.nmt-pickusers { display: grid; gap: 6px; margin: 8px 0 4px 26px; max-height: 260px; overflow: auto; }
.nmt-modal.wide { width: min(680px, 100%); }
.nmt-modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* status colours */
.st-scheduled { --st: #4f6b8a; --stbg: #eef3f8; }
.st-in_progress { --st: #a8760b; --stbg: #fbf5e3; }
.st-done { --st: #2e7d4f; --stbg: #ebf6ef; }
.st-not_done { --st: #b3261e; --stbg: #fbeceb; }
.nmt-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -4px 0 12px; align-items: center; }
.nmt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nmt-legend i, .nmt-stpick i { width: 10px; height: 10px; border-radius: 3px; background: var(--st); display: inline-block; }
.nmt-caltool h1 { margin-right: 6px; }
.nmt-calnav { display: flex; align-items: center; gap: 6px; }
.nmt-calnav b { min-width: 150px; text-align: center; font-size: 16px; }
.nmt-calnav .icon-btn { font-size: 22px; }
.nmt-app .nmt-who { width: auto; min-width: 160px; }
.nmt-month { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nmt-mhead, .nmt-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nmt-mhead span { padding: 8px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--field); }
.nmt-day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.nmt-day:nth-child(7n) { border-right: 0; }
.nmt-day:hover { background: #fafbfc; }
.nmt-day.other { background: #f8f9fa; }
.nmt-day.other .dn { color: #a5aeb8; }
.nmt-day .dn { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.nmt-day.today .dn { background: var(--brand); color: #fff; border-radius: 99px; width: 24px; height: 24px; display: grid; place-items: center; }
.nmt-chip { border: 0; border-left: 3px solid var(--st); background: var(--stbg); color: var(--ink); text-align: left; font-size: 12px; padding: 3px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.nmt-chip .who { color: var(--muted); }
.nmt-more { border: 0; background: none; color: var(--brand); font-size: 12px; text-align: left; cursor: pointer; padding: 2px 4px; }
.nmt-lday { margin-bottom: 16px; }
.nmt-ldh { font-weight: 700; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.nmt-lday.today .nmt-ldh { color: var(--brand); }
.nmt-tcard { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--st); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--ink); }
.nmt-tcard:hover { border-color: var(--st); }
.nmt-tcard .tt { font-weight: 600; min-width: 90px; font-size: 14px; }
.nmt-tcard .tb { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nmt-tcard .tb span { font-size: 13px; color: var(--muted); }
.nmt-st { font-size: 12px; font-weight: 600; color: var(--st); background: var(--stbg); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
@media (max-width: 560px) { .nmt-tcard { flex-wrap: wrap; } .nmt-tcard .tt { min-width: 0; } }
.nmt-stpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.nmt-stpick button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.nmt-stpick button.on { border-color: var(--st); background: var(--stbg); box-shadow: 0 0 0 1px var(--st); font-weight: 600; }
.nmt-noteitem { background: var(--field); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.nmt-noteitem div span { color: var(--muted); font-size: 12px; }
.nmt-noteitem p { margin: 4px 0 0; white-space: normal; }
.nmt-notes textarea { margin-top: 6px; }
@media (max-width: 760px) { .nmt-day { min-height: 70px; } .nmt-chip .who { display: none; } }
.nmt-grouppick { display: grid; gap: 8px; margin-top: 8px; }
.nmt-grouppick .check { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.nmt-grouppick .check:has(input:checked) { border-color: var(--brand); background: var(--field); }
.nmt-grouppick .is-on { opacity: .8; }

/* ===== reseller apps: trial, paywall ===== */
.nmt-saas { position: relative; width: min(600px, 100%); }
.nmt-saas-b { padding: 26px 26px 10px; overflow: auto; }
.nmt-saas-b h2 { font-size: 22px; margin: 6px 0 10px; letter-spacing: -0.01em; }
.nmt-saas-b p { margin: 0 0 10px; line-height: 1.55; }
.nmt-saas-x { position: absolute; top: 10px; right: 10px; }
.nmt-saas-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--field); border-radius: 99px; padding: 3px 10px; }
.nmt-saas-box { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; line-height: 1.55; }
.nmt-plans { display: grid; gap: 8px; margin-top: 14px; }
.nmt-plan { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; background: #fff; }
.nmt-plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.nmt-plan input { margin-top: 4px; }
.nmt-plan span { display: flex; flex-direction: column; gap: 3px; }
.nmt-plan em { font-style: normal; color: var(--muted); font-size: 14px; }
.nmt-plan strong { color: var(--ink); }
.nmt-paym { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.nmt-licbar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; background: #fbf5e3; border-bottom: 1px solid #e6cf8f; font-size: 14px; color: #5c4708; flex-wrap: wrap; }
.nmt-licbadge { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; background: rgba(255,255,255,.2); align-self: flex-start; }
.nmt-tile:not(.primary) .nmt-licbadge { background: var(--field); color: var(--brand); }
.nmt-licbadge.st-locked, .nmt-licbadge.st-trial_done { background: #fbeceb !important; color: #b3261e !important; }

/* v1.7.0: επιλογή γλώσσας στη σελίδα του πελάτη */
.nmt-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.nmt-lang select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, #fff); color: inherit; }
