/* Sugar Box by Ina – colours taken from the logo (mint circle, white lettering, deep teal outline) */
:root {
    --mint: #95cfc5;        /* logo background */
    --mint-soft: #e3f3f0;
    --teal: #3d8b80;        /* buttons, active nav (white text stays readable) */
    --teal-dark: #2c6b62;
    --navy: #1f4743;        /* sidebar */
    --navy-2: #2b5b55;
    --bg: #f4faf8;
    --border: #d5e9e5;
    --text: #1d2f2c;
    --muted: #5f7a75;
    --info-bg: #e3f3f0;
    --info: #2c6b62;
}
.brand-mark {
    width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 19px;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--mint);
}
.brand strong { font-family: "Dancing Script", cursive; font-size: 22px; font-weight: 700; letter-spacing: .3px; line-height: 1; }
.brand small { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.sidebar .nav-group { color: #8fb8b1; }
.sidebar .nav-item { color: #d6ebe7; }
.sidebar .nav-item.active { background: var(--mint); color: var(--navy); font-weight: 600; }
.sidebar .nav-item:hover { background: var(--navy-2); color: #fff; }
.sidebar .nav-item.active:hover { background: var(--mint); color: var(--navy); }
h1 { color: var(--teal-dark); }
.card { border-color: var(--border); }
input:focus, select:focus, textarea:focus { outline-color: var(--mint); }

.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: var(--mint-soft); display: block; }
.thumb.lg { width: 140px; height: 140px; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
input[type=date], input[type=email], input[type=search] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font: inherit; background: #fff; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs .btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.pre { white-space: pre-wrap; }
.report { white-space: pre-wrap; line-height: 1.5; background: var(--mint-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.attention a { text-decoration: none; }
.attention .card:hover { border-color: var(--mint); }

/* Closed-days calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 11px; text-transform: uppercase; color: var(--muted); text-align: center; font-weight: 600; }
.cal .day { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px 6px; min-height: 76px; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal .day:hover { border-color: var(--teal); }
.cal .day .num { font-weight: 700; font-size: 15px; }
.cal .day .mon { font-size: 11px; color: var(--muted); }
.cal .day .tag { font-size: 11px; margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .day.closed { background: var(--bad-bg); border-color: #fca5a5; color: var(--bad); }
.cal .day.busy { background: var(--mint-soft); }
.cal .day.busy .tag { color: var(--teal-dark); font-weight: 600; }
.cal .day.today { outline: 2px solid var(--teal); outline-offset: -2px; }
.cal .day.selected { box-shadow: 0 0 0 3px var(--mint); }
.cal .blank { visibility: hidden; }
@media (max-width: 600px) { .cal { gap: 4px; } .cal .day { min-height: 54px; padding: 5px 4px; } .cal .day .tag { display: none; } }

/* Chat (conversations + simulator) */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow-y: auto; padding: 12px; background: #e9f2ef; border-radius: 10px; }
.bubble { max-width: 80%; padding: 8px 11px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.in { align-self: flex-end; background: #d9fdd3; }
.bubble.out { align-self: flex-start; background: #fff; }
.bubble .meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.bubble .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.bubble .btns button { border: 1px solid var(--border); background: var(--mint-soft); color: var(--teal-dark); border-radius: 16px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.bubble .btns button:hover:not(:disabled) { background: var(--mint); color: var(--navy); }
.bubble .btns button:disabled { cursor: default; opacity: .7; }
.bubble img { max-width: 220px; width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.bubble.failed { border: 1px solid #fca5a5; }
.chat > * { flex-shrink: 0; } /* otherwise the scrolling chat squashes the card rows to zero height */
.cards { display: flex; gap: 8px; overflow-x: auto; align-self: stretch; padding-bottom: 4px; }
.cards .bubble { min-width: 200px; max-width: 240px; flex-shrink: 0; }
.composer { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.composer input[type=text] { flex: 1; }

/* Automatic slip check on the order page */
.slipcheck { border-radius: 10px; padding: 8px 12px; border: 1px solid var(--border); }
.slipcheck.ok { background: var(--ok-bg); }
.slipcheck.warn { background: #fff8e6; border-color: #f1dca4; }
.slipcheck details { margin-top: 4px; }
