/* backend-min — reset, typography, form element defaults. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Without this, toggling an element's `hidden` attribute via JS (e.g. show/hide the Lost Reason
   dropdown based on Status) silently does nothing whenever that same element also has a class
   that sets an explicit `display` (e.g. `.row { display: flex }`, components.css) -- an author
   stylesheet rule of equal specificity to the browser's built-in `[hidden]` default wins by
   source order, keeping the element visible despite `hidden` being set. */
[hidden] { display: none !important; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* Form elements */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
input, select, textarea {
    display: block;
    width: 100%;
    padding: 0.3rem 0.625rem;
    color: var(--ink);
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    appearance: none;
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15);
}
input::placeholder { color: var(--muted-soft); }
textarea { resize: vertical; min-height: 80px; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
    padding-right: 2rem;
}
label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.8125rem; color: var(--ink); }
label.required::after { content: ' *'; color: var(--danger); }
