:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hc-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hc-eyebrow {
  margin: 0 0 4px;
  color: #3478f6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.hc-link {
  color: #172033;
  text-decoration: none;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
}

.hc-panel {
  padding: 24px;
  border: 1px solid #e2e6ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38, 48, 72, .08);
}

#hc-workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.hc-toolbar,
.hc-control-toolbar,
.hc-detail,
.hc-metrics {
  grid-column: 1 / -1;
}

.hc-control-toolbar {
  display: grid;
  grid-template-columns: 140px 180px minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.hc-control-toolbar input,
.hc-control-toolbar select,
.hc-control-toolbar button,
.hc-payment-form input,
.hc-payment-form select,
.hc-payment-form button,
.hc-period-form input,
.hc-period-form select,
.hc-period-form button,
.hc-allocation-row input {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
}

.hc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hc-toolbar label {
  font-weight: 700;
}

.hc-toolbar input,
.hc-entry input,
.hc-entry select,
.hc-entry button,
.hc-settlement input,
.hc-settlement select,
.hc-settlement button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
}

.hc-entry {
  padding: 22px;
  border: 1px solid #dce6f2;
  border-radius: 16px;
  background: linear-gradient(145deg, #f9fcff, #fff);
}

.hc-section-kicker {
  color: #3478f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hc-muted {
  margin: -4px 0 18px;
  color: #667085;
}

.hc-entry-form {
  display: grid;
  gap: 14px;
}

.hc-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hc-field {
  display: grid;
  align-content: start;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.hc-field small {
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

.hc-entry select[multiple] {
  min-height: 92px;
}

.hc-primary {
  justify-self: start;
  color: #fff;
  border-color: #3478f6 !important;
  background: #3478f6 !important;
  cursor: pointer;
  font-weight: 800;
}

.hc-primary:disabled {
  cursor: wait;
  opacity: .65;
}

.hc-duplicate-warning {
  padding: 16px;
  border: 1px solid #f4c95d;
  border-radius: 12px;
  background: #fff9e8;
}

.hc-duplicate-warning strong {
  color: #9a6700;
}

.hc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hc-metric {
  padding: 16px;
  border-radius: 14px;
  background: #f6f8fb;
}

.hc-metric span,
.hc-metric strong {
  display: block;
}

.hc-metric span {
  color: #667085;
  font-size: 13px;
}

.hc-metric strong {
  margin-top: 6px;
  font-size: 18px;
}

.hc-detail {
  margin-top: 8px;
}

.hc-detail h2 {
  margin: 0 0 12px;
}

.hc-table-wrap {
  overflow-x: auto;
}

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

.hc-table-wrap th,
.hc-table-wrap td {
  padding: 10px;
  border-bottom: 1px solid #e7eaf0;
  text-align: left;
  white-space: nowrap;
}

.hc-table-wrap th {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
}

.hc-settlement form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr auto;
  gap: 10px;
}

.hc-payment-form,
.hc-period-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #f6f8fb;
}

.hc-payment-form .hc-allocation-box,
.hc-payment-form .hc-form-message {
  grid-column: 1 / -1;
}

.hc-period-form {
  grid-template-columns: 1fr 1fr 2fr auto auto;
  align-items: end;
}

.hc-period-form .hc-form-message {
  grid-column: 1 / -1;
}

.hc-report-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  align-items: end;
  gap: 12px;
  max-width: 760px;
}

.hc-report-form select,
.hc-report-form button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
}

.hc-allocation-box {
  display: grid;
  gap: 8px;
}

.hc-allocation-box h3 {
  margin: 0 0 4px;
}

.hc-allocation-row {
  display: grid;
  grid-template-columns: auto 1fr 130px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  background: #fff;
}

.hc-allocation-row input[type="checkbox"] {
  min-height: auto;
}

.hc-settlement button {
  color: #fff;
  border-color: #3478f6;
  background: #3478f6;
  cursor: pointer;
}

.hc-form-message {
  color: #3478f6;
}

.hc-card {
  padding: 20px;
  border-radius: 14px;
  background: #f6f8fb;
}

.hc-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hc-card p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.hc-subtitle,
.hc-login-intro {
  color: #667085;
  font-size: 17px;
}

.hc-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top left, rgba(52, 120, 246, .14), transparent 38%),
    #f4f6f8;
}

.hc-login-card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid #dfe5ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .12);
}

.hc-login-intro {
  margin: 14px 0 26px;
}

.hc-login-form {
  display: grid;
  gap: 18px;
}

.hc-login-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
}

.hc-login-form input {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cdd5df;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  font-size: 18px;
}

.hc-login-form input:focus {
  border-color: #3478f6;
  outline: 3px solid rgba(52, 120, 246, .16);
}

.hc-login-form button {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #3478f6;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.hc-login-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #b42318;
  font-size: 15px;
}

.hc-control-toolbar input,
.hc-control-toolbar select,
.hc-control-toolbar button,
.hc-payment-form input,
.hc-payment-form select,
.hc-payment-form button,
.hc-period-form input,
.hc-period-form select,
.hc-period-form button,
.hc-toolbar input,
.hc-entry input,
.hc-entry select,
.hc-entry button,
.hc-settlement input,
.hc-settlement select,
.hc-settlement button,
.hc-report-form select,
.hc-report-form button {
  min-height: 48px;
  font-size: 16px;
}

.hc-eyebrow {
  font-size: 15px;
}

.hc-section-kicker {
  font-size: 14px;
}

.hc-field {
  font-size: 15px;
}

.hc-field small {
  font-size: 13px;
}

.hc-metric span {
  font-size: 15px;
}

.hc-metric strong {
  font-size: 21px;
}

.hc-table-wrap table {
  font-size: 16px;
}

.hc-table-wrap th,
.hc-table-wrap td {
  padding: 12px;
}

.hc-table-wrap th {
  font-size: 14px;
}

.hc-card h2 {
  font-size: 21px;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hc-login-card {
    padding: 30px 24px;
  }

  #hc-workspace {
    grid-template-columns: 1fr;
  }

  .hc-metrics,
  .hc-entry-grid,
  .hc-settlement form,
  .hc-control-toolbar,
  .hc-payment-form,
  .hc-period-form,
  .hc-report-form,
  .hc-allocation-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hc-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-11 completion: tabs, row actions and tick lists sized for a 10" tablet (44px touch targets). */
#hc-workspace [hidden] {
  display: none !important;
}

.hc-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-tab,
.hc-secondary {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hc-tab[aria-selected="true"] {
  border-color: #3478f6;
  background: #eaf1ff;
  color: #1f5fd1;
}

.hc-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hc-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.hc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.hc-check input,
.hc-table-wrap input[type="checkbox"] {
  width: 24px;
  height: 24px;
}

.hc-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 12px 0;
}

.hc-inline-form input,
.hc-inline-form select,
.hc-detail .hc-field input,
.hc-detail .hc-field select,
.hc-table-wrap input[type="time"] {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
}

.hc-inline-form button,
.hc-detail > .hc-primary,
.hc-detail .hc-entry-form .hc-primary,
.hc-detail div > .hc-primary {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid;
  border-radius: 10px;
  margin: 8px 8px 8px 0;
}

.hc-help summary {
  min-height: 44px;
  padding: 10px 0;
  font-weight: 700;
  cursor: pointer;
}

.hc-help p {
  margin: 0 0 12px;
  color: #344054;
}

.hc-detail .hc-entry-grid input,
.hc-detail .hc-entry-grid select,
.hc-settlement form > * {
  width: 100%;
  min-width: 0;
}

/* Compact layout (owner 2026-11-20): each screen should fit on one screen; only lists scroll. */
body { font-size: 14px; line-height: 1.35; }
.hc-shell { width: min(1280px, calc(100% - 24px)); padding: 10px 0 24px; }
.hc-header { margin-bottom: 8px; }
h1 { font-size: 22px; }
.hc-eyebrow { font-size: 11px; margin: 0; }
.hc-subtitle { display: none; }
.hc-panel { padding: 12px 14px; border-radius: 12px; box-shadow: none; }
#hc-workspace { gap: 8px; margin-top: 8px; }
h2 { font-size: 17px; margin: 10px 0 6px; }
h3 { font-size: 15px; margin: 8px 0 4px; }
.hc-muted { margin: 0 0 8px; font-size: 13px; }
.hc-field { font-size: 12px; gap: 2px; }
.hc-field small { font-size: 11px; }
.hc-control-toolbar { grid-template-columns: 110px 140px minmax(200px, 1fr) auto; gap: 8px; }
.hc-control-toolbar input, .hc-control-toolbar select, .hc-control-toolbar button,
.hc-payment-form input, .hc-payment-form select, .hc-payment-form button,
.hc-period-form input, .hc-period-form select, .hc-period-form button,
.hc-toolbar input, .hc-entry input, .hc-entry select, .hc-entry button,
.hc-settlement input, .hc-settlement select, .hc-settlement button,
.hc-report-form select, .hc-report-form button,
.hc-inline-form input, .hc-inline-form select, .hc-inline-form button,
.hc-detail .hc-field input, .hc-detail .hc-field select,
.hc-table-wrap input[type="time"] {
  min-height: 36px; padding: 4px 10px; font-size: 14px; border-radius: 8px;
}
.hc-tabs { gap: 4px; }
.hc-tab, .hc-secondary { min-height: 36px; padding: 4px 10px; font-size: 14px; border-radius: 8px; }
.hc-check { min-height: 36px; padding: 2px 8px; font-size: 14px; }
.hc-check input, .hc-table-wrap input[type="checkbox"] { width: 20px; height: 20px; }
.hc-inline-form { gap: 8px; margin: 6px 0; }
.hc-inline-form button, .hc-detail > .hc-primary, .hc-detail .hc-entry-form .hc-primary,
.hc-detail div > .hc-primary { min-height: 36px; padding: 4px 12px; margin: 4px 6px 4px 0; }
.hc-entry { padding: 12px; border-radius: 12px; }
.hc-entry-form { gap: 8px; }
.hc-entry-grid { gap: 8px; }
.hc-metrics { gap: 8px; }
.hc-metric { padding: 8px 10px; }
.hc-metric span { font-size: 12px; }
.hc-metric strong { font-size: 17px; margin-top: 2px; }
.hc-card { padding: 10px 12px; }
.hc-card h2 { font-size: 16px; }
.hc-table-wrap table { font-size: 13px; }
.hc-table-wrap th, .hc-table-wrap td { padding: 5px 8px; }
.hc-table-wrap th { font-size: 11px; }
.hc-payment-form, .hc-period-form { gap: 8px; margin-bottom: 10px; padding: 10px; }
.hc-report-form { gap: 8px; }
.hc-help summary { min-height: 32px; padding: 4px 0; }
.hc-help p { margin: 0 0 6px; }
.hc-detail { margin-top: 0; }
.hc-detail h2 { margin: 4px 0 6px; }
/* Long lists scroll inside their own box so the rest of the screen stays in view. */
.hc-table-wrap { max-height: 60vh; overflow: auto; }
.hc-table-wrap th { position: sticky; top: 0; background: #fff; z-index: 1; }
/* Single-row header, tabs and metrics. */
.hc-header { gap: 12px; flex-wrap: nowrap; }
.hc-header > div:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hc-header #hc-status { margin: 0; font-size: 12px; color: #667085; }
.hc-header .hc-control-toolbar { display: flex; flex: 1; gap: 6px; justify-content: flex-end; margin: 0; grid-column: auto; }
.hc-header .hc-control-toolbar select:last-of-type { max-width: 240px; }
.hc-link { padding: 6px 12px; border-radius: 8px; }
.hc-panel > #hc-status:empty { display: none; }
.hc-tabs { flex-wrap: nowrap; overflow-x: auto; }
.hc-metrics, .hc-control-metrics { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.hc-inline-form, .hc-report-form, .hc-settlement form { flex-wrap: wrap; }
@media (max-width: 900px) { .hc-header { flex-wrap: wrap; } .hc-header .hc-control-toolbar { justify-content: flex-start; } }
.hc-form-message:empty { display: none; }
.hc-form-message { margin: 0; }
.hc-payment-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; }
.hc-payment-form > button { grid-column: 5; grid-row: 1; }
.hc-allocation-box h3 { margin: 0; font-size: 13px; }
.hc-allocation-box p { margin: 0; }
.hc-table-wrap button { min-height: 28px; padding: 2px 8px; font-size: 13px; }
.hc-table-wrap td .hc-row-actions { gap: 4px; flex-wrap: nowrap; }
/* Show/hide password button beside the field, same row. */
.hc-login-form label:has(.pw-toggle) { grid-template-columns: 1fr auto; column-gap: 8px; }
.hc-login-form label:has(.pw-toggle) > :first-child { grid-column: 1 / -1; }
.pw-toggle { min-height: 52px; padding: 0 14px; border: 1px solid #d7dce4; border-radius: 12px; background: #fff; color: #172033; font-weight: 700; cursor: pointer; }
/* Report controls stay on one row; each field shrinks instead of wrapping. */
.hc-one-row { flex-wrap: nowrap; }
.hc-one-row .hc-field { flex: 1 1 0; min-width: 0; }
.hc-one-row .hc-field:has(input[type="date"]) { flex: 0 0 132px; }
.hc-one-row select, .hc-one-row input { width: 100%; min-width: 0; }
.hc-one-row > button { flex: 0 0 auto; }
@media (max-width: 900px) { .hc-one-row { flex-wrap: wrap; } }

/* Owner 2026-11-21: few top buttons, each opens its own list; nothing hidden off-screen. */
.hc-tabs { flex-wrap: nowrap; overflow: visible; }
.hc-menu { position: relative; }
.hc-menu-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
  display: flex; flex-direction: column; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid #d7dce4; border-radius: 10px; box-shadow: 0 8px 24px rgba(23, 32, 51, .14);
}
.hc-menu-item {
  text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
  color: #172033; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.hc-menu-item:hover { background: #eef3fb; }
.hc-audit td:nth-child(6) { white-space: normal; min-width: 360px; word-break: break-word; }

/* Overview tables: denser rows; hotel rows open to their suppliers (owner 2026-11-21). */
.hc-compact td, .hc-compact th { padding: 3px 8px; }
.hc-toggle-row { cursor: pointer; font-weight: 700; }
.hc-toggle-row:hover { background: #eef3fb; }
.hc-sub-row td { background: #f7f9fc; font-size: 13px; }
.hc-sub-row td:first-child { padding-left: 24px; white-space: pre; }
/* «Dashboard» sheet: 3 × 2 charts on one screen. */
.hc-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-chart { border: 1px solid #e3e7ee; border-radius: 10px; padding: 8px 10px; background: #fff; min-width: 0; }
.hc-chart h3 { margin: 0; font-size: 14px; }
.hc-chart p { margin: 0 0 4px; font-size: 12px; }
.hc-svg { width: 100%; height: auto; max-height: 250px; display: block; }
.hc-svg-label { font-size: 11px; fill: #344054; }
.hc-svg-value { font-size: 10px; fill: #667085; }
@media (max-width: 1100px) { .hc-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .hc-chart-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hc-hotel-pick { max-width: 380px; }
.hc-chart .hc-table-wrap { max-height: none; }
.hc-chart table { font-size: 12px; }
.hc-chart td, .hc-chart th { padding: 3px 5px; }
.hc-chart td:not(:first-child), .hc-chart th:not(:first-child) { text-align: right; }
.hc-chart .hc-table-wrap table { min-width: 0; width: 100%; font-size: 12px; }
.hc-chart .hc-table-wrap th, .hc-chart .hc-table-wrap td { padding: 3px 5px; font-size: 12px; }
.hc-chart-wide { grid-column: span 2; }
.hc-chart-full { grid-column: 1 / -1; }
.hc-roles td { white-space: normal; vertical-align: top; } .hc-roles td:last-child { min-width: 320px; font-size: 12px; }

/* Settings → Προμηθευτές: three step cards (supplier, services, agreement). */
.hc-step-card { border: 1px solid #e4e7ec; border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: #fff; }
.hc-step-card > h3 { margin: 0 0 8px; font-size: 15px; }
.hc-step-card { padding: 8px 12px; margin: 6px 0; }
.hc-step-card > h3 { margin: 0 0 4px; font-size: 14px; }
.hc-service-list { flex: 2 1 0; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-hotel-row { flex-wrap: nowrap; align-items: center; }
.hc-hotel-row .hc-checklist { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.hc-hotel-row .hc-check { min-height: 28px; padding: 0 6px; font-size: 13px; }
.hc-hotel-row .hc-check input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; }
.hc-hotel-row .hc-check { gap: 5px; font-weight: 500; white-space: nowrap; }
.hc-hotel-row > button { flex: 0 0 auto; }

/* Christos 2026-11-12: number fields are typing only, no up/down arrows */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
