/* Element base of the doctor app (Web W18; it replaces the pre-W0 app.css / modules.css). Element selectors only, so the
   kit (kit.css) and the scoped component styles always win. Colours and sizes from tokens.css. The patient site (.pt) has
   its own base in patient.css, which is why every rule here is scoped away from it. */

* {
    box-sizing: border-box;
}

:where(body:not(:has(.pt))) :where(button, input, select, textarea) {
    font: inherit;
    font-family: var(--font-family);
}

:where(body:not(:has(.pt))) button {
    padding: 11px 17px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color var(--motion), border-color var(--motion), filter var(--motion);
}

:where(body:not(:has(.pt))) button:hover {
    filter: brightness(.96);
}

:where(body:not(:has(.pt))) button:disabled {
    cursor: default;
    opacity: .5;
}

:where(body:not(:has(.pt))) :where(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    width: 100%;
}

:where(body:not(:has(.pt))) input,
:where(body:not(:has(.pt))) select,
:where(body:not(:has(.pt))) textarea {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    outline: 0;
}

:where(body:not(:has(.pt))) input:focus,
:where(body:not(:has(.pt))) textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

:where(body:not(:has(.pt))) input[readonly] {
    background: var(--surface-alt);
}

:where(body:not(:has(.pt))) label {
    display: block;
    line-height: 2;
}

:where(body:not(:has(.pt))) small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

:where(body:not(:has(.pt))) :where(h1, h2, h3, p) {
    margin-top: 0;
}

:where(body:not(:has(.pt))) h1 {
    font-size: 29px;
}

:where(body:not(:has(.pt))) h2 {
    font-size: 23px;
}

:where(body:not(:has(.pt))) h3 {
    font-size: 17px;
}

:where(body:not(:has(.pt))) p {
    line-height: 2;
}

:where(body:not(:has(.pt))) table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
    white-space: nowrap;
}

:where(body:not(:has(.pt))) td {
    font-size: var(--font-small);
}

:where(body:not(:has(.pt))) tr:hover {
    background: var(--hover);
}

@media print {
    :where(body:not(:has(.pt))) button {
        border: 0 !important;
    }
}
