@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --clinic-ink: #0f1b27;
    --clinic-muted: #5b6770;
    --clinic-line: #e7eaee;
    --clinic-soft: #f6f8fb;
    --clinic-surface: #ffffff;
    --clinic-accent: #037aad;
    --clinic-radius: 16px;
}

html.dark {
    --clinic-ink: #eef4fa;
    --clinic-muted: #9fb0c0;
    --clinic-line: #22323f;
    --clinic-soft: #0f2433;
    --clinic-surface: #0f2433;
}

body,
.font-sans,
input,
select,
textarea,
button {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, sans-serif;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
.text-important {
    font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rounded-default {
    border-radius: var(--clinic-radius);
}

#content .border,
#content .border-base-200 {
    border-color: var(--clinic-line);
}

.dash-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 32px;
}

.dash-row {
    display: grid;
    gap: 20px;
}

.dash-row-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-row-halves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-row-split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.dash-kpi-label {
    color: var(--clinic-muted);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px;
}

.dash-kpi-value {
    color: var(--clinic-ink);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
}

.dash-hint {
    color: var(--clinic-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.dash-empty {
    color: var(--clinic-muted);
    font-size: 14px;
    margin: 0;
    padding: 48px 0;
    text-align: center;
}

.dash-slice {
    height: 260px;
    position: relative;
    width: 100%;
}

.dash-stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-stats li + li {
    border-top: 1px solid var(--clinic-line);
}

.dash-stats a {
    align-items: baseline;
    color: inherit;
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dash-stats a:hover .dash-stat-label {
    color: var(--clinic-accent);
}

.dash-stat-label {
    color: var(--clinic-muted);
    font-size: 13.5px;
    transition: color 0.15s ease;
}

.dash-stat-value {
    color: var(--clinic-ink);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dash-progress {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dash-col-wide,
.dash-col-narrow {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 1280px) {
    .dash-row-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .dash-row-split,
    .dash-row-halves {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .dash-row-kpi {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-kpi-value {
        font-size: 26px;
    }
}

:root {
    --clinic-radius-sm: 12px;
    --clinic-shadow: 0 4px 16px rgba(15, 27, 39, 0.06);
}

#content > div > .bg-white,
#content form > div > .bg-white,
fieldset.module,
.unfold-card {
    border-radius: var(--clinic-radius);
    border-color: var(--clinic-line);
    box-shadow: var(--clinic-shadow);
}

html.dark #content > div > .bg-white,
html.dark fieldset.module {
    border-color: rgb(var(--color-base-800));
    box-shadow: none;
}

button,
input[type="submit"],
.button,
a.button,
.unfold-button {
    border-radius: 9999px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    border-radius: var(--clinic-radius-sm);
    border-color: var(--clinic-line);
}

html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark select,
html.dark textarea {
    border-color: rgb(var(--color-base-800));
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clinic-accent);
    box-shadow: 0 0 0 3px rgba(3, 122, 173, 0.14);
}

#content table {
    border-radius: var(--clinic-radius-sm);
    overflow: hidden;
}

#content thead th {
    font-weight: 600;
    letter-spacing: 0.01em;
}

#nav-sidebar a,
.unfold-sidebar a {
    border-radius: var(--clinic-radius-sm);
}

.unfold-login-container,
.unfold-login-container form,
.unfold-login-container > div {
    border-radius: var(--clinic-radius);
}

.vos-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border: 1px solid var(--clinic-line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--clinic-accent);
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.vos-btn:hover {
    background: var(--clinic-accent);
    border-color: var(--clinic-accent);
    color: #fff;
}

.vos-btn .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

html.dark .vos-btn {
    background: transparent;
    border-color: rgb(var(--color-base-700));
}

.vos-none {
    color: var(--clinic-muted);
    font-size: 12.5px;
}

.vos-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.rq-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.rq-pending { background: #fff4d6; color: #8a5b00; }
.rq-ok      { background: #dcf5e6; color: #14663a; }
.rq-no      { background: #fde2e2; color: #8a1c1c; }
.rq-wait    { background: #e3edfb; color: #1c4b8a; }

.rq-actions { display: inline-flex; gap: 6px; }
.rq-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 12px; border-radius: 999px; border: 1px solid var(--clinic-line);
    font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
    color: var(--clinic-ink); background: #fff; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rq-btn:hover { background: var(--clinic-soft); }
.rq-btn-ok  { border-color: #1f9d5c; color: #14663a; }
.rq-btn-ok:hover  { background: #1f9d5c; border-color: #1f9d5c; color: #fff; }
.rq-btn-alt { border-color: var(--clinic-accent); color: var(--clinic-accent); }
.rq-btn-alt:hover { background: var(--clinic-accent); border-color: var(--clinic-accent); color: #fff; }
.rq-btn-no  { border-color: #d05353; color: #8a1c1c; }
.rq-btn-no:hover  { background: #d05353; border-color: #d05353; color: #fff; }
.rq-muted { color: var(--clinic-muted); }

.rq-reschedule { max-width: 640px; }
.rq-reschedule h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.rq-current {
    background: var(--clinic-soft); border: 1px solid var(--clinic-line);
    border-radius: var(--clinic-radius); padding: 16px 18px; margin-bottom: 22px;
}
.rq-current p { margin: 0 0 6px; font-size: 14px; }
.rq-current .rq-note { color: var(--clinic-muted); font-size: 13.5px; }
.rq-reschedule form p { margin: 0 0 16px; }
.rq-reschedule label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.rq-reschedule input, .rq-reschedule textarea {
    width: 100%; max-width: 320px; border: 1px solid var(--clinic-line);
    border-radius: var(--clinic-radius-sm); padding: 9px 12px;
}
.rq-reschedule textarea { max-width: 100%; }
.rq-reschedule .helptext { display: block; font-size: 12px; color: var(--clinic-muted); margin-top: 4px; }
.rq-buttons { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rq-hint { margin-top: 18px; font-size: 12.5px; color: var(--clinic-muted); }

html.dark .rq-btn { background: transparent; border-color: rgb(var(--color-base-700)); color: rgb(var(--color-base-200)); }
html.dark .rq-current { background: rgb(var(--color-base-900)); border-color: rgb(var(--color-base-800)); }
