* {
    box-sizing: border-box;
}

:root {
    --bg: #2a2b31;
    --ink: #f5f7fb;
    --muted: #b7bdc9;
    --card: #2f3138;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #ff4e42;
    --primary-2: #ff6a2a;
    --primary-3: #ff8a3d;
    --danger: #dc2626;
    --success: #10b981;
    --shadow: 0 18px 42px rgba(11, 13, 18, 0.28);
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background: #2c2d34;
    color: var(--ink);
}

.login-page-body {
    min-height: 100vh;
    background: #2c2d34;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 8%, rgba(124, 92, 255, 0.12), transparent 14%),
        radial-gradient(circle at 82% 18%, rgba(247, 181, 0, 0.1), transparent 16%),
        radial-gradient(circle at 50% 70%, rgba(91, 123, 255, 0.08), transparent 18%),
        linear-gradient(180deg, #3a3b42 0%, #33343b 44%, #2b2c33 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.65) 0 1.2px, transparent 1.4px),
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.2px),
        radial-gradient(circle at 84% 64%, rgba(255, 255, 255, 0.36) 0 1.1px, transparent 1.3px),
        radial-gradient(circle at 28% 74%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.2px),
        radial-gradient(circle at 56% 38%, rgba(255, 255, 255, 0.18) 0 0.9px, transparent 1.1px);
    background-repeat: no-repeat;
}

a {
    color: #ff9bb5;
    text-decoration: none;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2) 58%, var(--primary-3));
    color: #fff;
    padding: 0.72rem 1.12rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.2);
}

button.danger,
.danger-link,
.danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.85rem;
    padding: 0.72rem 0.82rem;
    margin-top: 0.35rem;
    font: inherit;
    background: rgba(15, 23, 42, 0.82);
    color: #e5eefc;
}

input::placeholder,
textarea::placeholder {
    color: rgba(151, 166, 200, 0.78);
}

textarea {
    resize: vertical;
}

pre {
    white-space: pre-wrap;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    padding: 1rem;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    vertical-align: top;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(19, 28, 56, 0.94), rgba(48, 38, 107, 0.9)),
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 26%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.brand-logo {
    width: 50px;
    height: 50px;
}

.nav {
    display: flex;
    gap: 0.95rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a,
.nav span {
    color: #fff;
    font-size: 0.94rem;
}

.nav a {
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.page {
    max-width: min(1920px, calc(100vw - 0.35rem));
    margin: 0 auto;
    padding: 1.35rem 0.35rem 1.85rem;
}

.page-header,
.antibiotic-header,
.note-header,
.login-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-title,
.board-title {
    margin: 0;
    color: #eef4ff;
}

.card {
    background:
        linear-gradient(180deg, rgba(19, 33, 59, 0.96), rgba(14, 24, 45, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.card h2,
.card h3 {
    margin-top: 0;
    color: #f8fbff;
}

.narrow {
    max-width: 460px;
    margin: 4rem auto;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.two-top {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stack {
    display: grid;
    gap: 1rem;
}

.compact-stack {
    gap: 0.35rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.actions form {
    margin: 0;
}

.muted {
    color: var(--muted);
}

.error {
    color: #b42318;
    font-weight: 700;
}

.checkbox-row {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.checkbox-row input,
.culture-chip input,
.maintenance-toggle input {
    width: auto;
    margin: 0;
}

.patient-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.patient-list-card {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.45rem;
}

.patient-list-table thead th {
    background: linear-gradient(180deg, rgba(61, 74, 122, 0.72), rgba(33, 48, 86, 0.78));
    color: #eef4ff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.patient-list-table tbody tr:nth-child(odd) {
    background: linear-gradient(90deg, rgba(22, 34, 61, 0.84), rgba(18, 42, 67, 0.72));
}

.patient-list-table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, rgba(18, 28, 52, 0.86), rgba(20, 37, 64, 0.74));
}

.patient-list-table tbody tr {
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -4px 0 rgba(255, 214, 221, 0.08);
}

.patient-list-table tbody tr td {
    border-bottom: 0;
    vertical-align: top;
}

.patient-list-table thead th:nth-child(1),
.patient-list-table tbody td:nth-child(1) {
    width: 2.5rem;
}

.patient-list-table thead th:nth-child(2),
.patient-list-table tbody td:nth-child(2) {
    min-width: 10.5rem;
    max-width: 16rem;
    width: 18%;
}

.patient-list-table thead th:nth-child(3),
.patient-list-table tbody td:nth-child(3) {
    width: 5.75rem;
    white-space: nowrap;
}

.patient-list-row:hover {
    background: linear-gradient(90deg, rgba(224, 231, 255, 0.92), rgba(224, 242, 254, 0.72)) !important;
}

.patient-list-row td:first-child {
    font-weight: 700;
    color: #f8fbff;
}

.patient-list-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.patient-open-link {
    min-width: 62px;
    padding: 0.45rem 0.85rem;
}

.patient-edit-link {
    color: #d9deea !important;
    font-weight: 600;
}

.patient-delete-link {
    min-width: 50px;
    padding: 0.42rem 0.72rem;
    opacity: 0.92;
}

.antibiotic-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
}

.antibiotics-management-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-bottom: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) rgba(148, 163, 184, 0.1);
}

.antibiotics-management-grid::-webkit-scrollbar {
    height: 8px;
}

.antibiotics-management-grid::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
}

.antibiotics-management-grid::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.antibiotics-management-grid .antibiotic-card {
    flex: 0 0 clamp(240px, 72vw, 280px);
    max-width: 280px;
    scroll-snap-align: start;
}

.antibiotics-management-card .antibiotic-card {
    margin-bottom: 0;
}

.antibiotic-card--compact {
    padding: 0.75rem 0.85rem;
}

.antibiotic-card--compact .antibiotic-header {
    margin-bottom: 0.35rem;
}

.antibiotic-card--compact .antibiotic-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.antibiotic-card--compact .mini-form {
    padding: 0.55rem 0.65rem;
}

.antibiotic-card--compact .mini-form textarea {
    min-height: 2.25rem;
}

.antibiotic-delete-form .mini-form-title {
    margin-bottom: 0.35rem;
}

.antibiotic-delete-form .danger {
    width: 100%;
    margin-top: 0.35rem;
}

.ab-add-manage-row {
    display: grid;
    grid-template-columns: minmax(200px, 26%) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.ab-add-manage-row > :only-child {
    grid-column: 1 / -1;
}

@media (max-width: 960px) {
    .ab-add-manage-row {
        grid-template-columns: 1fr;
    }
}

.side-editor-card.ab-add-compact .stack {
    gap: 0.5rem;
}

.side-editor-card.ab-add-compact label {
    font-size: 0.88rem;
}

.side-editor-card.ab-add-compact input,
.side-editor-card.ab-add-compact select,
.side-editor-card.ab-add-compact textarea {
    margin-top: 0.2rem;
}

.side-editor-card.ab-add-compact .ab-add-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

@media (max-width: 520px) {
    .side-editor-card.ab-add-compact .ab-add-form-grid {
        grid-template-columns: 1fr;
    }
}

.side-editor-card.ab-add-compact button[type="submit"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

.observation-inline-charts {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.observation-inline-charts .mini-chart-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.7rem;
    padding: 0.45rem 0.55rem;
    background: rgba(15, 23, 42, 0.1);
}

.observation-inline-charts .mini-chart-panel > .section-head-with-action,
.observation-inline-charts .mini-chart-panel > h4 {
    margin: 0 0 0.35rem;
}

.observation-inline-charts .mini-chart-panel h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.observation-inline-charts .section-head-with-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.observation-inline-charts .section-head-with-action h3,
.observation-inline-charts .section-head-with-action h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
}

.observation-inline-charts .inline-filter-form select {
    min-width: 7.5rem;
    max-width: 100%;
    font-size: 0.78rem;
    padding: 0.28rem 0.4rem;
    margin-top: 0;
}

.observation-inline-charts .lab-trend-chart {
    display: flex !important;
    align-items: flex-end !important;
    gap: 0.35rem !important;
    min-height: 104px !important;
    padding: 1.35rem 0.2rem 0.15rem !important;
    overflow-x: auto !important;
    box-sizing: border-box;
}

.observation-inline-charts .lab-chart-group {
    min-width: 52px;
    gap: 0.2rem;
    display: grid !important;
    justify-items: center;
    align-items: end;
}

.observation-inline-charts .lab-chart-bars {
    /* Sabit yukseklik: cocuklardaki height: N% yuzdesinin hesaplanmasi icin gerekli */
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    width: 100%;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    box-sizing: border-box;
}

.observation-inline-charts .lab-chart-bar,
.observation-inline-charts .lab-chart-bar.generic {
    width: 11px !important;
    min-height: 3px !important;
    max-height: 100% !important;
    flex: 0 0 auto !important;
    align-self: flex-end !important;
    border-radius: 5px 5px 3px 3px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(15, 23, 42, 0.2) !important;
    position: relative !important;
    box-sizing: border-box;
}

.observation-inline-charts .lab-chart-bar::after {
    font-size: 0.62rem !important;
    bottom: calc(100% + 0.12rem) !important;
}

.observation-inline-charts .lab-value-chip,
.observation-inline-charts .lab-value-chip.generic {
    display: none !important;
}

.observation-inline-charts .lab-chart-legend {
    margin-top: 0.25rem;
}

.observation-inline-charts .legend-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
}

.observation-inline-charts .antibiotic-bar-chart {
    gap: 0.4rem;
}

.observation-inline-charts .antibiotic-bar-row {
    gap: 0.15rem;
}

.observation-inline-charts .antibiotic-bar-head {
    gap: 0.35rem;
}

.observation-inline-charts .antibiotic-bar-meta {
    font-size: 0.72rem;
    line-height: 1.25;
}

.observation-inline-charts .antibiotic-bar-track {
    min-height: 18px;
}

.observation-inline-charts .antibiotic-bar-fill {
    min-height: 18px;
    padding: 0 0.4rem;
}

.observation-inline-charts .antibiotic-bar-day-label {
    font-size: 0.62rem;
}

.observation-inline-charts .timeline-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
}

.observation-inline-charts .mini-lab-add {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.observation-inline-charts .mini-lab-add h5 {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.observation-inline-charts .mini-lab-add .grid.two {
    gap: 0.4rem;
}

.observation-inline-charts .mini-lab-add button {
    margin-top: 0.25rem;
    width: auto;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
}

.charts-shell-card.charts-shell-card--labs-only h2 {
    margin-top: 0;
}

.charts-shell-card--labs-only .labs-table-heading {
    margin: 0.65rem 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.antibiotic-card--compact .mini-form button[type="submit"] {
    width: 100%;
    margin-top: 0.25rem;
}

.mini-form {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(30, 41, 59, 0.72));
    padding: 1rem;
    border-radius: 0.8rem;
}

.danger-box {
    border: 1px solid #fecaca;
}

.note-card {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.login-shell {
    min-height: calc(100vh - 40px);
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 1.25rem;
}

.login-hero,
.login-side {
    flex: 1;
}

.login-hero {
    display: grid;
    gap: 1rem;
    align-content: center;
    padding: 2.4rem 2.2rem;
    border-radius: 1.7rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.14), transparent 24%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.12);
}

.login-badge {
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #312e81;
    font-weight: 700;
}

.login-hero h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
    color: #111827;
    letter-spacing: -0.03em;
}

.login-hero-animation {
    width: min(420px, 100%);
    height: 320px;
    filter: drop-shadow(0 16px 24px rgba(79, 70, 229, 0.14));
}

.login-side {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.login-card,
.login-promo-card {
    overflow: hidden;
}

.login-card {
    padding: 1.4rem;
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.93)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 22%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.login-card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.login-card-logo {
    width: 72px;
    height: 72px;
}

.login-card-brand {
    display: grid;
    gap: 0.12rem;
}

.login-card-brand strong {
    color: #0f172a;
    font-size: 1.08rem;
}

.login-card-brand span {
    color: var(--muted);
    font-size: 0.92rem;
}

.signature-badge {
    margin: 0.15rem 0 0.65rem;
    display: block;
    color: #a61d0f;
    font-size: 1.55rem;
    font-weight: 700;
    font-style: italic;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 10px rgba(255, 214, 102, 0.16);
}

.login-submit {
    width: 100%;
}

.login-promo-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.84));
}

.login-promo-preview {
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a, #312e81);
    color: #fff;
    overflow: hidden;
}

.promo-preview-header {
    display: flex;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
}

.promo-preview-header span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
}

.promo-preview-body {
    padding: 0.75rem;
    display: grid;
    gap: 0.35rem;
}

.promo-preview-line {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.promo-preview-line.short {
    width: 70%;
}

.login-promo-content {
    display: grid;
    gap: 0.3rem;
}

.summary-print-shell {
    padding: 1rem;
}

.summary-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
}

.summary-print-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 0.8rem 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.88));
}

.summary-print-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px double rgba(79, 70, 229, 0.22);
}

.summary-print-body {
    display: grid;
    gap: 0.28rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.summary-print-body p {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.detail-hero-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.88)),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 28%);
}

.detail-hero-header {
    margin-bottom: 0.9rem;
}

.detail-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.detail-chip {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(99, 102, 241, 0.16);
    color: #334155;
    font-size: 0.88rem;
}

.generated-notes-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.92));
}

.patient-profile-card,
.note-generator-card,
.editor-card,
.side-editor-card,
.records-card,
.antibiotics-management-card,
.cultures-card,
.charts-shell-card {
    border-radius: 1.35rem;
}

.patient-profile-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.detail-field-label {
    margin: 0.9rem 0 0.4rem;
    color: #312e81;
}

.section-head-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.note-generator-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.9));
}

.editor-card,
.side-editor-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.88));
}

.records-card,
.cultures-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.92));
}

.charts-shell-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.88));
}

.antibiotics-management-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.88));
}

.records-card table,
.cultures-card table {
    overflow: hidden;
    border-radius: 1rem;
}

.records-card thead th,
.cultures-card thead th {
    background: linear-gradient(180deg, rgba(61, 74, 122, 0.74), rgba(33, 48, 86, 0.78));
    color: #eef4ff;
    font-size: 0.85rem;
}

.lab-chart-card,
.antibiotic-timeline-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(17, 27, 50, 0.96), rgba(20, 33, 60, 0.84));
}

.lab-trend-chart {
    height: 180px;
    display: flex;
    gap: 0.9rem;
    align-items: end;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.lab-chart-group {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    min-width: 78px;
}

.lab-chart-bars {
    display: flex;
    gap: 0.3rem;
    align-items: end;
    min-height: 140px;
}

.lab-chart-values {
    display: grid;
    gap: 0.24rem;
    justify-items: center;
}

.lab-value-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.lab-value-chip.crp {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.lab-value-chip.pct {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.lab-value-chip.generic {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.lab-chart-bar.generic {
    background: linear-gradient(180deg, #f97316, #ef4444);
}

.legend-chip.generic {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.lab-trend-caption {
    font-size: 0.68rem;
    color: #cbd5e1;
}

.inline-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-filter-form select {
    width: auto;
    min-width: 12rem;
    margin-top: 0;
}

.lab-chart-bar {
    width: 18px;
    border-radius: 999px 999px 8px 8px;
    transition: height 0.5s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 20px rgba(15, 23, 42, 0.12);
}

.lab-chart-bar:hover {
    transform: translateY(-2px);
}

.lab-chart-bar.crp {
    background: linear-gradient(180deg, #0ea5e9, #2563eb);
}

.lab-chart-bar.pct {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

.lab-chart-legend {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.legend-chip {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
}

.legend-chip.crp {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.legend-chip.pct {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.antibiotic-bar-chart {
    display: grid;
    gap: 1rem;
}

.mini-form-title {
    margin: 0;
    font-weight: 700;
    color: #e5e7eb;
}

.antibiotic-bar-row {
    display: grid;
    gap: 0.38rem;
}

.antibiotic-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.antibiotic-bar-label {
    font-weight: 700;
    color: #f8fbff;
}

.antibiotic-bar-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.antibiotic-bar-meta {
    color: var(--muted);
    font-size: 0.84rem;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.timeline-badge-days {
    background: rgba(125, 211, 252, 0.16);
    color: #c6f1ff;
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.timeline-badge-active {
    background: rgba(16, 185, 129, 0.16);
    color: #b7f7da;
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.timeline-badge-ended {
    background: rgba(249, 115, 22, 0.18);
    color: #ffd8bf;
    border: 1px solid rgba(249, 115, 22, 0.24);
}

.timeline-badge-changed {
    background: rgba(234, 179, 8, 0.18);
    color: #ffe7a3;
    border: 1px solid rgba(234, 179, 8, 0.24);
}

.antibiotic-bar-track {
    width: 100%;
    min-height: 28px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(116, 137, 176, 0.18),
        rgba(116, 137, 176, 0.18) 18px,
        rgba(35, 48, 78, 0.64) 18px,
        rgba(35, 48, 78, 0.64) 36px
    );
    overflow: hidden;
    position: relative;
}

.antibiotic-bar-fill {
    min-height: 28px;
    border-radius: 999px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.7rem;
}

.antibiotic-bar-day-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.antibiotic-bar-status-active,
.antibiotic-bar-fill.antibiotic-bar-status-active {
    background: linear-gradient(90deg, #10b981, #14b8a6);
}

.antibiotic-bar-status-ended,
.antibiotic-bar-fill.antibiotic-bar-status-ended {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.antibiotic-bar-status-changed,
.antibiotic-bar-fill.antibiotic-bar-status-changed {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.print-toolbar {
    position: sticky;
    top: 76px;
    z-index: 5;
}

.board-hero-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.9)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26%);
    color: #0f172a;
}

.board-hero-card .board-title {
    color: #0f172a;
}

.save-all-button {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.board-shell {
    padding: 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
    border-radius: 1.4rem;
    /* Govde rengi acik oldugu icin beyaz zeminde metin okunakli olsun */
    color: #0f172a;
}

.board-shell .muted,
.board-shell .board-empty-note {
    color: #475569;
}

.board-shell label {
    color: #1e293b;
}

.board-shell .board-links a {
    color: #1d4ed8;
}

.board-shell textarea::placeholder,
.board-shell input::placeholder {
    color: #64748b;
}

.board-scroll {
    overflow-x: auto;
}

.board-table {
    min-width: 1180px;
    width: 100%;
    table-layout: fixed;
}

.board-table th:nth-child(1),
.board-table td:nth-child(1) {
    width: 14%;
}

.board-table th:nth-child(2),
.board-table td:nth-child(2) {
    width: 25%;
}

.board-table th:nth-child(3),
.board-table td:nth-child(3) {
    width: 22%;
}

.board-table th:nth-child(4),
.board-table td:nth-child(4) {
    width: 24%;
    min-width: 280px;
}

.board-table th:nth-child(5),
.board-table td:nth-child(5) {
    width: 16%;
    min-width: 200px;
}

.board-table thead th {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.88), rgba(219, 234, 254, 0.8));
    color: #312e81;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.board-table input,
.board-table textarea,
.board-table select {
    font-size: 0.8rem;
    padding: 0.5rem 0.58rem;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.board-table td,
.board-table th {
    vertical-align: top;
    padding: 0.45rem;
    font-size: 0.82rem;
    border-bottom: 0;
}

.board-table tbody tr:nth-child(odd):not(.row-divider) td {
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.9), rgba(239, 246, 255, 0.42));
}

.board-table tbody tr:nth-child(even):not(.row-divider) td {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.36));
}

.patient-col {
    min-width: 140px;
    width: 140px;
}

.board-links {
    margin-top: 0.6rem;
}

.patient-col strong {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.25;
}

.board-table textarea {
    min-height: 34px;
}

.hidden-followup-form {
    display: none;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.22rem;
}

.culture-details,
.trend-grid,
.culture-entry-list,
.antibiotic-mini-list {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.culture-group {
    display: grid;
    gap: 0.18rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.culture-group[hidden] {
    display: none !important;
}

.culture-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.08rem;
}

.culture-group-header strong {
    font-size: 0.72rem;
}

.culture-chip {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
    color: #1e293b;
}

.culture-chip.selected {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.4);
}

.tiny-add-button,
.tiny-delete-button {
    padding: 0.28rem 0.52rem;
    font-size: 0.7rem;
    border-radius: 999px;
}

.tiny-delete-button {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.culture-entry {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) 52px;
    gap: 0.2rem;
    align-items: start;
}

.trend-note {
    font-size: 0.66rem;
    color: #475569;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    padding: 0.18rem 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.trend-up {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.trend-down {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.trend-same {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
}

.lab-row,
.mini-inline-actions {
    display: grid;
    gap: 0.35rem;
}

.lab-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.antibiotic-mini-pill {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.9rem;
    padding: 0.5rem 0.62rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.antibiotic-mini-pill span,
.antibiotic-mini-pill small {
    display: block;
}

.antibiotic-mini-pill span {
    font-weight: 700;
    margin-bottom: 0.16rem;
    color: #0f172a;
}

.antibiotic-mini-pill small {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    color: #334155;
}

.maintenance-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
}

.maintenance-toggle-strong {
    padding: 0.3rem 0.4rem;
    border-radius: 0.8rem;
    background: rgba(14, 165, 233, 0.08);
}

.maintenance-dose[hidden] {
    display: none !important;
}

.mini-inline-form-add {
    min-width: 0;
    padding: 0.42rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.mini-inline-form-add input[type="text"] {
    max-width: 100%;
}

.mini-inline-form-stop {
    padding: 0.34rem 0.42rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.mini-inline-form select,
.mini-inline-form input,
.mini-inline-form button {
    width: 100%;
    margin: 0;
}

.mini-inline-form {
    display: grid;
    gap: 0.4rem;
}

.mini-inline-actions {
    margin-top: 0.12rem;
}

.mini-inline-form-stop select,
.mini-inline-form-add input,
.mini-inline-form-add button,
.mini-inline-form-stop button {
    min-height: 34px;
}

.mini-inline-form-stop,
.mini-inline-form-add {
    border-radius: 1rem !important;
}

.compact-print-entry strong {
    font-weight: 700;
}

.stop-divider {
    height: 0;
    border-top: 3px double rgba(239, 68, 68, 0.45);
    margin: 0.1rem 0;
}

.row-divider td {
    padding: 0 !important;
    height: 8px;
    border-bottom: 3px double rgba(79, 70, 229, 0.58);
}

.vitals-table thead th {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.88), rgba(219, 234, 254, 0.8));
    color: #312e81;
}

.print-only {
    display: none !important;
}

.infection-board-filter-form .infection-board-filter-grid {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(200px, 2fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .infection-board-filter-form .infection-board-filter-grid {
        grid-template-columns: 1fr;
    }
}

.infection-board-pager-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: none;
}

.infection-board-pager-status {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: rgba(226, 232, 240, 0.88);
}

.infection-board-pager-status strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
}

.infection-board-pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.infection-board-pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.32em 0.75em;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(79, 70, 229, 0.25);
    color: rgba(224, 231, 255, 0.95) !important;
    border: 1px solid rgba(129, 140, 248, 0.45);
}

.infection-board-pager-btn:hover {
    background: rgba(79, 70, 229, 0.4);
    border-color: rgba(165, 180, 252, 0.55);
}

.detail-chip.infection-board-page-chip {
    border-width: 1px;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.55);
    font-weight: 500;
}

.patient-list-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.patient-list-search-label {
    flex: 1 1 220px;
    min-width: 0;
}

.patient-list-search-label input {
    width: 100%;
}

.clinical-izlem-print-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.clinical-izlem-print-toolbar h3 {
    margin: 0;
}

.daily-entry-print-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.daily-entry-print-section-label {
    margin: 0.5rem 0 0.2rem;
    font-size: 0.82rem;
}

.daily-entry-print-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1.35;
}

.daily-entry-print-vitals-line {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
}

.daily-entry-print-full {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.board-empty-note {
    font-size: 0.68rem;
    color: rgba(100, 116, 139, 0.9);
}

.compact-print-block,
.culture-print-list,
.compact-print-note {
    display: grid;
    gap: 0.08rem;
}

.compact-print-entry,
.compact-print-note {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

/* Webtekno-inspired cohesive theme overrides */
.topbar,
.board-shell,
.detail-hero-card,
.generated-notes-card,
.patient-profile-card,
.note-generator-card,
.editor-card,
.side-editor-card,
.records-card,
.antibiotics-management-card,
.cultures-card,
.charts-shell-card,
.login-card,
.login-promo-card,
.login-hero,
.summary-print-card,
.lab-chart-card,
.antibiotic-timeline-card,
.antibiotic-card,
.mini-form,
.culture-group,
.antibiotic-mini-pill,
.mini-inline-form-stop,
.mini-inline-form-add {
    background:
        linear-gradient(180deg, rgba(44, 46, 54, 0.92), rgba(37, 39, 46, 0.94)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 30%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--ink);
    backdrop-filter: blur(18px);
}

.page-title,
.board-title,
.card h2,
.card h3,
.login-card-brand strong,
.patient-col strong,
.antibiotic-bar-label,
.brand,
.nav a,
.nav span {
    color: #f8fafc !important;
}

.muted,
.antibiotic-bar-meta,
.login-card-brand span,
.board-empty-note,
.summary-print-body,
.summary-print-body p {
    color: var(--muted) !important;
}

.topbar {
    background:
        linear-gradient(180deg, rgba(46, 47, 55, 0.9), rgba(38, 39, 46, 0.92)),
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.08), transparent 28%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(20, 22, 27, 0.22);
}

.nav a {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.login-badge,
.detail-chip,
.timeline-badge-days {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.16), rgba(255, 126, 182, 0.14)) !important;
    color: #ffd8e4 !important;
    border: 1px solid rgba(255, 170, 194, 0.24) !important;
}

.timeline-badge-active {
    background: rgba(34, 197, 94, 0.14) !important;
    color: #c7f9d6 !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.timeline-badge-ended {
    background: rgba(255, 104, 84, 0.16) !important;
    color: #ffe0da !important;
    border-color: rgba(255, 122, 24, 0.22) !important;
}

.login-hero h1,
.login-badge,
.signature-badge,
.detail-field-label,
.records-card thead th,
.cultures-card thead th,
.board-table thead th,
.vitals-table thead th,
.patient-list-table thead th {
    color: #f8fafc !important;
}

.signature-badge {
    text-shadow: none !important;
    color: #ffb2c8 !important;
}

.login-hero,
.login-card,
.login-promo-card {
    box-shadow: 0 18px 40px rgba(74, 18, 33, 0.18) !important;
}

.patient-list-table thead th,
.records-card thead th,
.cultures-card thead th,
.board-table thead th,
.vitals-table thead th {
    background: linear-gradient(180deg, rgba(57, 59, 68, 0.96), rgba(46, 48, 56, 0.96)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.patient-list-table tbody tr:nth-child(odd),
.board-table tbody tr:nth-child(odd):not(.row-divider) td {
    background: linear-gradient(180deg, rgba(49, 51, 59, 0.84), rgba(43, 44, 52, 0.88)) !important;
}

.patient-list-table tbody tr:nth-child(even),
.board-table tbody tr:nth-child(even):not(.row-divider) td {
    background: linear-gradient(180deg, rgba(44, 45, 53, 0.84), rgba(38, 39, 47, 0.88)) !important;
}

.patient-list-row:hover {
    background: linear-gradient(180deg, rgba(60, 62, 72, 0.88), rgba(46, 48, 58, 0.92)) !important;
}

input,
textarea,
select,
.board-table input,
.board-table textarea,
.board-table select {
    background: rgba(241, 245, 249, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #111827 !important;
}

pre,
.culture-chip,
.trend-note,
.promo-preview-header span,
.promo-preview-line {
    background: rgba(40, 42, 49, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f5f7fb !important;
}

.culture-chip.selected,
.maintenance-toggle-strong,
.trend-same {
    background: rgba(255, 126, 182, 0.16) !important;
    border-color: rgba(255, 170, 194, 0.22) !important;
    color: #ffd8e4 !important;
}

.trend-up {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #c7f9d6 !important;
}

.trend-down {
    background: rgba(255, 59, 48, 0.12) !important;
    color: #ffd2ce !important;
}

.detail-field-label,
.patient-col strong {
    color: #f8fafc !important;
}

.antibiotic-bar-track {
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 214, 221, 0.09),
        rgba(255, 214, 221, 0.09) 18px,
        rgba(255, 214, 221, 0.03) 18px,
        rgba(255, 214, 221, 0.03) 36px
    ) !important;
}

.antibiotic-bar-fill.antibiotic-bar-status-active,
.antibiotic-bar-status-active,
.save-all-button,
button,
.button-link {
    background: linear-gradient(135deg, #ff4e42, #ff6a2a 58%, #ff8a3d) !important;
}

.antibiotic-bar-fill.antibiotic-bar-status-ended,
.antibiotic-bar-status-ended,
button.danger,
.danger-link,
.danger,
.tiny-delete-button {
    background: linear-gradient(135deg, #ff5e57, #e03131) !important;
}

.antibiotic-bar-fill.antibiotic-bar-status-changed,
.antibiotic-bar-status-changed {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
}

.lab-value-chip.crp,
.legend-chip.crp,
.lab-chart-bar.crp {
    background: linear-gradient(180deg, #ff8a3d, #ff4e42) !important;
}

.lab-value-chip.pct,
.legend-chip.pct,
.lab-chart-bar.pct {
    background: linear-gradient(180deg, #ff7eb6, #ff5e57) !important;
}

.board-links a,
a {
    color: #ff9bb5;
}

hr,
.note-card,
.summary-print-header,
.patient-list-table tbody tr td,
.row-divider td {
    border-color: rgba(255, 214, 221, 0.1) !important;
}

/* Unified screen theme: remove patchy white surfaces */
body,
.login-page-body {
    background: #2c2d34 !important;
}

.card,
.detail-hero-card,
.generated-notes-card,
.patient-profile-card,
.note-generator-card,
.editor-card,
.side-editor-card,
.records-card,
.antibiotics-management-card,
.cultures-card,
.charts-shell-card,
.summary-print-card,
.login-card,
.login-promo-card,
.login-hero,
.board-shell,
.lab-chart-card,
.antibiotic-timeline-card,
.antibiotic-card,
.mini-form,
.culture-group,
.antibiotic-mini-pill,
.mini-inline-form-stop,
.mini-inline-form-add {
    background:
        linear-gradient(180deg, rgba(47, 49, 57, 0.94), rgba(38, 40, 48, 0.96)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 30%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 14px 34px rgba(14, 16, 22, 0.22) !important;
    backdrop-filter: blur(18px);
}

.detail-hero-card,
.generated-notes-card,
.patient-profile-card,
.note-generator-card,
.editor-card,
.side-editor-card,
.records-card,
.antibiotics-management-card,
.cultures-card,
.charts-shell-card {
    border-radius: 1.4rem !important;
}

.login-hero,
.login-card,
.login-promo-card {
    border-radius: 1.45rem !important;
}

.login-hero h1,
.login-card h2,
.login-card-brand strong,
.page-title,
.board-title,
.card h2,
.card h3,
.detail-field-label,
.patient-col strong,
.brand,
.nav a,
.nav span {
    color: #f8fafc !important;
}

.muted,
.login-card-brand span,
.antibiotic-bar-meta,
.board-empty-note,
.summary-print-body,
.summary-print-body p {
    color: #b8bfcc !important;
}

.topbar {
    background:
        linear-gradient(180deg, rgba(45, 47, 55, 0.9), rgba(38, 40, 47, 0.94)),
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.08), transparent 28%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 26px rgba(16, 18, 24, 0.2) !important;
}

.nav a {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.patient-list-table thead th,
.records-card thead th,
.cultures-card thead th,
.board-table thead th,
.vitals-table thead th {
    background: linear-gradient(180deg, rgba(59, 61, 71, 0.96), rgba(47, 49, 58, 0.96)) !important;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.patient-list-table tbody tr:nth-child(odd),
.board-table tbody tr:nth-child(odd):not(.row-divider) td {
    background: linear-gradient(180deg, rgba(50, 52, 60, 0.86), rgba(43, 45, 53, 0.88)) !important;
}

.patient-list-table tbody tr:nth-child(even),
.board-table tbody tr:nth-child(even):not(.row-divider) td {
    background: linear-gradient(180deg, rgba(44, 46, 54, 0.86), rgba(39, 41, 48, 0.88)) !important;
}

.patient-list-row:hover {
    background: linear-gradient(180deg, rgba(66, 68, 78, 0.9), rgba(52, 54, 63, 0.92)) !important;
}

input,
textarea,
select,
.board-table input,
.board-table textarea,
.board-table select {
    background: linear-gradient(180deg, rgba(35, 37, 44, 0.96), rgba(29, 31, 38, 0.96)) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: rgba(184, 191, 204, 0.72) !important;
}

input[type="date"] {
    padding-right: 2.2rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.9) brightness(1.2);
    opacity: 0.9;
    cursor: pointer;
}

select option,
select optgroup {
    background: #f8fafc !important;
    color: #111827 !important;
}

pre,
.culture-chip,
.trend-note,
.antibiotic-mini-pill,
.detail-chip,
.timeline-badge,
.promo-preview-header span,
.promo-preview-line {
    background: linear-gradient(180deg, rgba(39, 41, 48, 0.9), rgba(32, 34, 41, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #eef2f8 !important;
}

.detail-chip,
.timeline-badge-days,
.culture-chip.selected,
.maintenance-toggle-strong,
.trend-same {
    background: linear-gradient(135deg, rgba(255, 96, 72, 0.2), rgba(255, 143, 63, 0.16)) !important;
    color: #ffe1d3 !important;
    border-color: rgba(255, 154, 102, 0.22) !important;
}

.timeline-badge-active,
.trend-up {
    background: rgba(34, 197, 94, 0.14) !important;
    color: #cff7dd !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.timeline-badge-ended,
.trend-down {
    background: rgba(255, 94, 87, 0.16) !important;
    color: #ffd9d6 !important;
    border-color: rgba(255, 94, 87, 0.2) !important;
}

.timeline-badge-changed {
    background: rgba(250, 204, 21, 0.18) !important;
    color: #fff0b3 !important;
    border-color: rgba(250, 204, 21, 0.22) !important;
}

.board-hero-card,
.summary-print-card,
.detail-hero-card,
.generated-notes-card {
    overflow: hidden;
}

.board-shell {
    padding: 1rem !important;
}

.board-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1220px;
}

.board-table td,
.board-table th {
    padding: 0.55rem !important;
}

.board-table tbody tr:not(.row-divider) td {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.board-table td {
    background-clip: padding-box;
}

.board-table thead th:first-child {
    border-top-left-radius: 0.9rem;
}

.board-table thead th:last-child {
    border-top-right-radius: 0.9rem;
}

.culture-grid {
    gap: 0.35rem;
}

.culture-chip {
    min-height: 30px;
    justify-content: center;
}

.culture-group-header strong,
.antibiotic-mini-pill span {
    letter-spacing: 0.01em;
}

.culture-entry {
    grid-template-columns: 96px minmax(0, 1fr) 66px;
    gap: 0.38rem;
}

.culture-entry textarea {
    min-height: 44px;
    resize: none;
    overflow-y: auto;
    line-height: 1.25;
    padding-right: 0.45rem;
}

.culture-entry textarea::-webkit-scrollbar {
    width: 8px;
}

.culture-entry textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.culture-entry textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 96, 72, 0.65), rgba(255, 143, 63, 0.55));
    border-radius: 999px;
}

.culture-entry textarea::-webkit-resizer {
    display: none;
}

.antibiotic-mini-list,
.mini-inline-actions,
.trend-grid,
.culture-entry-list {
    gap: 0.32rem;
}

.mini-inline-form-add,
.mini-inline-form-stop {
    padding: 0.55rem !important;
}

.mini-inline-form {
    gap: 0.45rem;
}

.mini-inline-actions {
    margin-top: 0.16rem;
}

.mini-inline-form-stop,
.mini-inline-form-add {
    border-radius: 1rem !important;
}

.mini-inline-form-stop select {
    color: #f8fafc !important;
}

.mini-inline-form-stop select option {
    color: #111827 !important;
}

/* Beyaz pano satirinda acik renkli select okunmaz */
.board-shell .mini-inline-form-stop select,
.board-shell .mini-inline-form-add select {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}

.board-links a {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.board-hero-card .actions,
.print-toolbar .actions {
    gap: 0.5rem;
}

.print-toolbar label {
    display: grid;
    gap: 0.3rem;
    min-width: 180px;
}

.patient-col .muted {
    font-size: 0.76rem;
}

.lab-row input {
    text-align: center;
}

.vitals-board-scroll {
    overflow-x: visible !important;
}

.vitals-table {
    min-width: 0 !important;
    table-layout: fixed;
}

.vitals-table th:nth-child(1),
.vitals-table td:nth-child(1) {
    width: 24%;
}

.vitals-table th:nth-child(2),
.vitals-table td:nth-child(2),
.vitals-table th:nth-child(3),
.vitals-table td:nth-child(3),
.vitals-table th:nth-child(4),
.vitals-table td:nth-child(4),
.vitals-table th:nth-child(5),
.vitals-table td:nth-child(5) {
    width: 19%;
}

.vitals-table input {
    min-height: 38px;
}

.summary-print-shell {
    background: linear-gradient(180deg, rgba(47, 49, 57, 0.94), rgba(38, 40, 48, 0.96)) !important;
}

@page {
    size: A4 landscape;
    margin: 6mm;
}

@media print {
    body::before {
        content: none !important;
        display: none !important;
    }

    body::after {
        content: none !important;
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .topbar,
    .page-header,
    .print-toolbar,
    .no-print {
        display: none !important;
    }

    .page {
        max-width: none;
        padding: 0;
    }

    .card,
    .board-shell {
        box-shadow: none !important;
        background: #fff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;
        padding: 0.35rem !important;
        margin: 0 0 0.4rem !important;
        color: #000 !important;
        backdrop-filter: none !important;
    }

    .board-hero-card,
    .detail-hero-card,
    .generated-notes-card,
    .patient-profile-card,
    .note-generator-card,
    .editor-card,
    .side-editor-card,
    .records-card,
    .antibiotics-management-card,
    .cultures-card,
    .charts-shell-card,
    .lab-chart-card,
    .antibiotic-timeline-card,
    .summary-print-card,
    .antibiotic-card,
    .mini-form,
    .culture-group,
    .antibiotic-mini-pill,
    .mini-inline-form-stop,
    .mini-inline-form-add,
    pre,
    .detail-chip,
    .timeline-badge,
    .culture-chip,
    .trend-note {
        background: #fff !important;
        color: #000 !important;
        border-color: #cbd5e1 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .page-title,
    .board-title,
    .card h2,
    .card h3,
    .detail-field-label,
    .muted,
    .board-empty-note,
    .patient-col strong,
    .summary-print-body,
    .summary-print-body p,
    .antibiotic-bar-meta,
    .compact-print-entry,
    .compact-print-note,
    .print-only,
    .print-only *,
    .board-table,
    .board-table * {
        color: #000 !important;
    }

    .board-scroll {
        overflow: visible;
    }

    .board-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .print-only {
        display: inline-block !important;
    }

    .board-table td,
    .board-table th {
        padding: 0.15rem;
        font-size: 0.66rem;
        background: #fff !important;
        color: #000 !important;
        border-color: #cbd5e1 !important;
    }

    .board-table textarea,
    .board-table input,
    .board-table select {
        font-size: 0.68rem;
        padding: 0.18rem;
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #cbd5e1 !important;
    }

    .culture-grid,
    .culture-details,
    .trend-grid,
    .mini-inline-actions {
        display: none !important;
    }

    .summary-print-grid {
        display: block !important;
    }

    .summary-print-card {
        display: block !important;
        border-radius: 8px;
        padding: 0.4rem 0.45rem;
        margin: 0 0 0.35rem !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary-print-header {
        margin-bottom: 0.25rem !important;
        padding-bottom: 0.2rem !important;
    }

    .summary-print-body {
        display: grid !important;
        gap: 0.12rem;
        font-size: 0.64rem;
        line-height: 1.25 !important;
    }

    .summary-print-shell,
    .summary-print-shell *,
    .summary-print-card,
    .summary-print-header,
    .summary-print-header *,
    .summary-print-body,
    .summary-print-body p {
        background: #fff !important;
        color: #000 !important;
        border-color: #cbd5e1 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .row-divider td {
        border-bottom: 2px solid #94a3b8 !important;
    }

    .infection-board-screen-only {
        display: none !important;
    }

    .infection-board-print-all.print-only {
        display: block !important;
        width: 100%;
    }

    .infection-board-print-all .board-table {
        display: table !important;
        width: 100%;
    }

    .infection-board-print-head {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
        font-weight: 600;
    }

    .patient-detail-print-exclude {
        display: none !important;
    }

    dialog.entry-modal {
        display: none !important;
    }

    .patient-clinical-print-banner.print-only {
        display: block !important;
        margin-bottom: 0.6rem;
        padding-bottom: 0.35rem;
        border-bottom: 2px solid #94a3b8;
        font-size: 1rem;
    }

    .daily-entry-print-full.print-only {
        display: block !important;
        border-top-color: #cbd5e1 !important;
    }
}

@media (max-width: 760px) {
    .page {
        padding: 1.2rem 1rem 2rem;
    }

    .topbar,
    .page-header,
    .antibiotic-header,
    .note-header,
    .login-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .login-shell {
        display: grid;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-promo-card {
        grid-template-columns: 1fr;
    }

    .lab-row {
        grid-template-columns: 1fr;
    }
}

.patient-list-hero {
    position: relative;
    overflow: hidden;
}

.patient-list-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(244, 114, 182, 0.16), transparent 24%);
}

.patient-list-subtitle {
    margin: 0.35rem 0 0;
    max-width: 720px;
}

.patient-list-card {
    padding: 0.8rem;
}

.patient-list-row {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.patient-list-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.patient-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.patient-avatar {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff6fb;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(249, 115, 22, 0.88));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.22);
}

.patient-name-stack {
    display: grid;
    gap: 0.16rem;
}

.patient-name-stack strong,
.patient-name-open-link {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.34rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(244, 114, 182, 0.16));
    border: 1px solid rgba(217, 70, 239, 0.22);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.16);
    color: #f8fbff;
    font-size: 1rem;
}

.patient-name-open-link {
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.patient-name-open-link:hover {
    border-color: rgba(244, 114, 182, 0.45);
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.28);
    transform: translateY(-1px);
}

.patient-name-open-link:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 2px;
}

.patient-room-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.2rem;
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    color: #dff7ff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(34, 197, 94, 0.16));
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.patient-list-table .patient-summary-col-head {
    width: auto;
}

.patient-summary-actions-cell {
    width: auto;
    min-width: 0;
    vertical-align: top;
}

.patient-summary-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
}

.patient-summary-pill {
    flex: 1 1 auto;
    padding: 0.55rem 0.72rem;
    border-radius: 0.85rem;
    color: #eef2ff;
    background: linear-gradient(180deg, rgba(45, 55, 88, 0.72), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.78rem;
    line-height: 1.38;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    min-width: 0;
    min-height: 2.75rem;
}

.patient-summary-pill--scroll {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    max-height: 11rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.patient-summary-pill--scroll::-webkit-scrollbar {
    width: 6px;
}

.patient-summary-pill--scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

/* Tanı/özet yaninda tam 2 yatay siraya hizali dugmeler (3 sutun x 2 satir) */
.patient-list-actions--toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(min-content, auto);
    gap: 0.32rem 0.38rem;
    flex: 0 0 auto;
    width: min(100%, 17.5rem);
    max-width: 42%;
    min-width: 10.5rem;
    align-content: start;
    justify-items: stretch;
}

.patient-list-actions--toolbar .button-link,
.patient-list-actions--toolbar .button-small,
.patient-list-actions--toolbar button {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.28rem 0.35rem;
    border-radius: 0.42rem;
    line-height: 1.2;
    min-width: 0;
    min-height: 0;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.patient-list-actions--toolbar > a.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.patient-list-actions--toolbar .patient-open-link--primary {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.38rem 0.45rem;
    border-radius: 0.48rem;
    min-width: 0;
}

.patient-list-actions--toolbar .patient-list-actions-note {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    line-height: 1.35;
    max-width: none;
    text-align: left;
}

.patient-list-actions {
    gap: 0.6rem;
}

.patient-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 0.98rem;
    border-radius: 999px;
    color: #ffd7ea;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.patient-edit-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.antibiotic-board-hero {
    overflow: hidden;
}

.antibiotic-board-grid {
    display: grid;
    gap: 1rem;
}

.antibiotic-board-patient-card {
    padding: 1.1rem;
}

.antibiotic-board-patient-head h2 {
    margin: 0;
    color: #f8fbff;
}

.antibiotic-board-patient-head p {
    margin: 0.3rem 0 0;
}

body.theme-aurora {
    background: #fafbfc !important;
    color: #17324d;
    font-weight: 500;
}

body.theme-aurora::before {
    background:
        radial-gradient(ellipse 120% 90% at 0% 100%, rgba(45, 212, 191, 0.11), transparent 52%),
        radial-gradient(ellipse 100% 80% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 48%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(56, 189, 248, 0.06), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fb 55%, #f0f4f8 100%);
}

body.theme-aurora::after {
    opacity: 0.18;
}

body.theme-aurora .topbar {
    background:
        linear-gradient(135deg, rgba(9, 85, 135, 0.92), rgba(79, 70, 229, 0.84)),
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30%);
    border-bottom-color: rgba(59, 130, 246, 0.14);
}

body.theme-aurora .page-title,
body.theme-aurora .board-title,
body.theme-aurora .card h2,
body.theme-aurora .card h3,
body.theme-aurora .antibiotic-bar-label,
body.theme-aurora .patient-name-stack strong,
body.theme-aurora .patient-name-open-link,
body.theme-aurora .patient-col strong {
    color: #15324c !important;
    text-shadow: none;
}

body.theme-aurora .muted,
body.theme-aurora .antibiotic-bar-meta,
body.theme-aurora .board-empty-note {
    color: #5d7793 !important;
}

body.theme-aurora input,
body.theme-aurora textarea,
body.theme-aurora select,
body.theme-aurora .board-table input,
body.theme-aurora .board-table textarea,
body.theme-aurora .board-table select {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98)) !important;
    color: #17324d !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(56, 189, 248, 0.06);
}

body.theme-aurora input::placeholder,
body.theme-aurora textarea::placeholder {
    color: rgba(71, 108, 145, 0.72) !important;
}

body.theme-aurora .button-link,
body.theme-aurora button,
body.theme-aurora .save-all-button {
    background: linear-gradient(135deg, #0ea5e9, #6366f1 60%, #8b5cf6) !important;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.16) !important;
}

body.theme-aurora button.danger,
body.theme-aurora .danger-link,
body.theme-aurora .danger {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
}

body.theme-aurora .detail-chip,
body.theme-aurora .timeline-badge,
body.theme-aurora .culture-chip,
body.theme-aurora .trend-note,
body.theme-aurora .antibiotic-mini-pill,
body.theme-aurora .patient-summary-pill,
body.theme-aurora pre {
    background: linear-gradient(180deg, rgba(235, 245, 255, 0.96), rgba(226, 239, 252, 0.94)) !important;
    color: #17324d !important;
    border-color: rgba(96, 165, 250, 0.16) !important;
}

body.theme-aurora .patient-avatar {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(99, 102, 241, 0.88)) !important;
    color: #eff8ff !important;
}

body.theme-aurora .patient-name-stack strong,
body.theme-aurora .patient-name-open-link,
body.theme-aurora .patient-col strong {
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.9), rgba(224, 231, 255, 0.88)) !important;
    border-color: rgba(125, 211, 252, 0.28) !important;
    box-shadow: 0 8px 18px rgba(96, 165, 250, 0.1) !important;
}

body.theme-aurora .patient-room-badge {
    background: linear-gradient(135deg, rgba(186, 230, 253, 0.92), rgba(209, 250, 229, 0.9)) !important;
    color: #155e75 !important;
    border-color: rgba(45, 212, 191, 0.22) !important;
}

body.theme-aurora .admin-notice-text {
    color: #0f172a !important;
}

body.theme-aurora .admin-org-block {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

body.theme-aurora .admin-org-title {
    color: #0f172a !important;
}

body.theme-aurora .admin-clinic-row {
    background: rgba(241, 245, 249, 0.9) !important;
    color: #15324c !important;
}

body.theme-aurora table thead th,
body.theme-aurora .patient-list-table thead th,
body.theme-aurora .records-card thead th,
body.theme-aurora .cultures-card thead th,
body.theme-aurora .board-table thead th,
body.theme-aurora .vitals-table thead th {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.82), rgba(99, 102, 241, 0.76)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

body.theme-aurora .patient-list-table tbody tr:nth-child(odd),
body.theme-aurora .board-table tbody tr:nth-child(odd):not(.row-divider) td,
body.theme-aurora .vitals-table tbody tr:nth-child(odd):not(.row-divider) td,
body.theme-aurora .card table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.42) !important;
}

body.theme-aurora .patient-list-table tbody tr:nth-child(even),
body.theme-aurora .board-table tbody tr:nth-child(even):not(.row-divider) td,
body.theme-aurora .vitals-table tbody tr:nth-child(even):not(.row-divider) td,
body.theme-aurora .card table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.32) !important;
}

body.theme-aurora .patient-list-row:hover,
body.theme-aurora .board-table tbody tr:not(.row-divider):hover td,
body.theme-aurora .vitals-table tbody tr:not(.row-divider):hover td,
body.theme-aurora .card table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.58) !important;
}

body.theme-aurora main.page,
body.theme-aurora .page {
    color: #15324c !important;
    font-weight: 500 !important;
}

body.theme-aurora .card label,
body.theme-aurora .card p,
body.theme-aurora .card td,
body.theme-aurora table td {
    color: #15324c !important;
}

body.theme-aurora .card td,
body.theme-aurora table tbody td,
body.theme-aurora .patient-list-table tbody td {
    font-weight: 600 !important;
}

body.theme-aurora .card label,
body.theme-aurora .detail-field-label {
    font-weight: 600 !important;
}

body.theme-aurora .patient-list-row td:first-child {
    color: #15324c !important;
}

body.theme-aurora .antibiotic-board-patient-head h2 {
    color: #15324c !important;
}

body.theme-aurora .mini-inline-form-stop select,
body.theme-aurora .mini-inline-form-add select {
    color: #15324c !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-aurora .page a:not(.button-link):not(.danger-link):not(.patient-open-link),
body.theme-aurora .card a:not(.button-link):not(.danger-link):not(.patient-open-link) {
    color: #0369a1 !important;
}

body.theme-aurora .topbar .brand,
body.theme-aurora .topbar .brand span {
    color: #ffffff !important;
}

body.theme-aurora .topbar .nav a {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
}

body.theme-aurora .topbar .nav span {
    color: #e2e8f0 !important;
}

body.theme-aurora .board-links a,
body.theme-aurora .patient-edit-link {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    color: #1d4ed8 !important;
}

body.theme-aurora .patient-open-link {
    color: #ffffff !important;
}

body.theme-aurora .detail-field-label {
    color: #15324c !important;
}

body.theme-aurora .culture-chip:not(.selected) {
    color: #15324c !important;
}

body.theme-aurora .culture-chip.selected span {
    color: #9d174d !important;
}

body.theme-aurora input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.35) brightness(0.4);
    opacity: 0.85;
}

/* Aurora: cam (glass) kartlar - beyaz arka plan uzerinde yari saydam + blur */
body.theme-aurora .card,
body.theme-aurora .board-shell,
body.theme-aurora .print-toolbar,
body.theme-aurora .lab-chart-card,
body.theme-aurora .antibiotic-timeline-card,
body.theme-aurora .antibiotic-board-patient-card,
body.theme-aurora .antibiotic-board-hero,
body.theme-aurora .patient-list-card,
body.theme-aurora .patient-list-hero,
body.theme-aurora .board-hero-card,
body.theme-aurora .detail-hero-card,
body.theme-aurora .generated-notes-card,
body.theme-aurora .patient-profile-card,
body.theme-aurora .note-generator-card,
body.theme-aurora .editor-card,
body.theme-aurora .side-editor-card,
body.theme-aurora .records-card,
body.theme-aurora .cultures-card,
body.theme-aurora .charts-shell-card,
body.theme-aurora .antibiotics-management-card,
body.theme-aurora .note-card,
body.theme-aurora .mini-form,
body.theme-aurora .culture-group {
    background: rgba(255, 255, 255, 0.48) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        0 2px 12px rgba(99, 102, 241, 0.06) !important;
    border-radius: 14px;
}

body.theme-aurora .culture-chip,
body.theme-aurora .detail-chip,
body.theme-aurora .timeline-badge {
    border: 1px solid rgba(51, 65, 85, 0.22) !important;
}

body.theme-aurora input:not([type="checkbox"]):not([type="radio"]),
body.theme-aurora textarea,
body.theme-aurora select {
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
}

body.theme-aurora .login-hero,
body.theme-aurora .login-card,
body.theme-aurora .login-promo-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        0 10px 36px rgba(15, 23, 42, 0.09),
        0 2px 12px rgba(99, 102, 241, 0.07) !important;
}

body.theme-aurora .login-hero h1,
body.theme-aurora .login-card h2,
body.theme-aurora .login-card-brand strong {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.theme-aurora .login-card-brand span,
body.theme-aurora .login-card label,
body.theme-aurora .login-shell label {
    color: #475569 !important;
}

body.theme-aurora .login-badge {
    color: #312e81 !important;
    background: rgba(79, 70, 229, 0.14) !important;
    border: 1px solid rgba(99, 102, 241, 0.28) !important;
}

body.theme-aurora .signature-badge {
    color: #b91c1c !important;
    text-shadow: none !important;
}

body.theme-aurora .login-promo-content strong,
body.theme-aurora .login-promo-content span {
    color: #15324c !important;
}

body.theme-aurora .login-promo-content a {
    color: #0369a1 !important;
    font-weight: 700;
}

body.theme-aurora .login-card input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(71, 85, 105, 0.45) !important;
}

body.theme-aurora .login-card .error {
    color: #b91c1c !important;
}

body.theme-aurora .promo-preview-header span {
    background: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 720px) {
    .entry-modal {
        width: calc(100vw - 1rem);
    }

    .entry-modal-shell {
        padding: 0.85rem;
    }
}

/* —— Layout: topbar tema, varlik, gunluk izlem, arsiv —— */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar-theme-form {
    margin: 0;
}

.topbar-theme-label {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
}

.topbar-theme-form select {
    width: auto;
    min-width: 10rem;
    max-width: 14rem;
    margin-top: 0;
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.presence-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0 0.35rem;
}

.presence-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.85);
    display: inline-block;
    flex-shrink: 0;
}

.presence-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.nav-user-line {
    opacity: 0.95;
}

.presence-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.presence-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.presence-name {
    font-weight: 600;
}

.presence-status-line {
    flex: 1 1 12rem;
    min-width: 0;
}

.grid.two-top .span-full {
    grid-column: 1 / -1;
}

.banner-error,
.banner-success {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}

.banner-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.banner-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #d1fae5;
    padding: 0.65rem 0.9rem;
    border-radius: 0.85rem;
}

.narrow-card {
    max-width: 520px;
    margin: 2rem auto;
}

.otp-dev-hint {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.users-admin-table .mini-password-form {
    gap: 0.35rem;
}

.users-admin-table .mini-password-form input {
    margin-top: 0;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
}

.users-admin-table .mini-password-form button {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
}

.inline-form-action {
    display: inline;
    margin: 0;
}

.inline-form-action button {
    padding: 0.38rem 0.72rem;
    font-size: 0.82rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.patient-archive-link {
    background: rgba(100, 116, 139, 0.35);
}

.archived-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.archived-search-form label {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.archived-banner {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.entries-filter-form {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.entries-filter-grid label {
    margin-bottom: 0;
}

.entries-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-top: 0.5rem;
}

.entries-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0;
}

.entries-toolbar-meta {
    font-size: 0.8rem;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 10rem;
}

.entries-pager-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.daily-entry-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.daily-entry-date-inline {
    font-size: 0.88rem;
    font-weight: 600;
}

.daily-entry-updated-line {
    font-size: 0.78rem;
    margin-top: 0.12rem;
}

.entry-modal-title-line {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.entry-modal-date-inline {
    font-size: 0.92rem;
    font-weight: 600;
}

.subtle-link {
    background: transparent !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.observation-center-card {
    display: grid;
    gap: 1rem;
}

.observation-center-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .observation-center-columns {
        grid-template-columns: 1fr;
    }
}

.observation-center-right h3:first-of-type {
    margin-top: 0;
}

.observation-center-card.card {
    padding: 1rem 0.85rem;
}

@media (min-width: 1100px) {
    .observation-center-columns {
        gap: 0.85rem;
    }
}

.compact-progress-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.14);
}

.compact-progress-card h3 {
    margin-top: 0;
}

.patient-first-entry-wrap {
    margin-top: 0.35rem;
}

.patient-first-entry-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #f8fbff;
}

.patient-first-entry-hint {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.compact-progress-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    align-items: center;
}

.daily-entry-stack {
    display: grid;
    gap: 0.6rem;
}

.daily-entry-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    background: rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 0.55rem;
}

.daily-entry-card-head,
.daily-entry-card-actions,
.daily-entry-chip-row,
.entry-modal-header,
.entry-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.daily-entry-preview-grid,
.entry-modal-body {
    display: grid;
    gap: 0.85rem;
}

.daily-entry-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.daily-entry-preview-card,
.entry-modal-panel {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.24);
    padding: 0.85rem 0.95rem;
}

.daily-entry-preview-card p,
.entry-modal-panel pre {
    margin: 0.35rem 0 0;
}

.daily-entry-preview-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.entry-modal {
    width: min(960px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    border: 0;
    border-radius: 1.1rem;
    padding: 0;
    background: transparent;
    color: inherit;
}

.entry-modal::backdrop {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(2px);
}

.entry-modal-shell {
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    padding: 1.1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.entry-modal-panel h4 {
    margin: 0;
}

.entry-modal-panel pre {
    white-space: pre-wrap;
    font-family: inherit;
}

.entry-modal-vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.entry-modal-form {
    margin-top: 0.35rem;
}

.entries-pager-meta {
    margin: 0.35rem 0 0.5rem;
}

.entries-pager-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.daily-entries-day-heading {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.daily-entries-day-heading:first-of-type {
    margin-top: 0.5rem;
}

.daily-entries-table .act-preview-cell {
    white-space: normal;
    word-break: break-word;
    max-width: 28rem;
}

.login-divider {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 1.25rem 0;
}

.login-otp-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.small-help {
    font-size: 0.88rem;
}

.secondary-submit {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    box-shadow: none !important;
}

body.theme-aurora .topbar-theme-form select {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

.bulk-actions-bar,
.patient-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.bulk-actions-bar {
    margin-bottom: 1rem;
}

.small-chip {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.nested-card {
    margin-top: 1rem;
}

.user-assign-form select {
    margin-top: 0;
}

.compact-checkbox-row {
    justify-content: flex-start;
}

.secondary-action {
    background: rgba(100, 116, 139, 0.28) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: none !important;
}

.button-small {
    padding: 0.48rem 0.82rem !important;
    font-size: 0.82rem !important;
    line-height: 1.2;
    box-shadow: none !important;
}

.button-soft {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.9), rgba(51, 65, 85, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.button-info {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

.button-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.button-warning {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
}

.button-violet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.button-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.patient-list-hero-actions {
    justify-content: flex-end;
    gap: 0.55rem;
}

.patient-list-hero-actions .button-link {
    min-height: 0;
}

.patient-avatar {
    display: none !important;
}

.patient-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.patient-name-stack {
    display: grid;
    gap: 0.28rem;
}

.patient-name-heading {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.patient-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.patient-list-actions .inline-form-action,
.patient-list-actions form {
    margin: 0;
}

.patient-list-actions a,
.patient-list-actions button {
    min-width: fit-content;
}

.bulk-actions-bar {
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.patient-bulk-form {
    margin-bottom: 0.65rem;
}

.bulk-actions-bar--toggles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.bulk-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.bulk-toggle-row .button-small:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.patient-list-actions--toolbar .inline-form-action,
.patient-list-actions--toolbar form {
    display: flex;
    margin: 0;
    min-width: 0;
    width: 100%;
}

.patient-list-actions--toolbar form button {
    flex: 1 1 auto;
}

.admin-notice-banner {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
}

.admin-notice-text {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e8f4ff;
}

.admin-org-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.admin-org-block {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.2);
}

.admin-org-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-org-title {
    font-size: 1.02rem;
    color: #f1f5ff;
}

.admin-clinic-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-clinic-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.45rem;
    background: rgba(30, 41, 59, 0.35);
    font-size: 0.88rem;
    color: #e2e8f0;
}

.admin-org-empty {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
}

.mini-hint {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 22rem;
}

.antibiotic-mini-pill {
    background: linear-gradient(180deg, rgba(54, 58, 68, 0.96), rgba(43, 47, 56, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.antibiotic-mini-pill span {
    color: #f8fafc;
}

.antibiotic-mini-pill small {
    color: #d1d5db;
}

.mini-inline-form-add,
.mini-inline-form-stop {
    gap: 0.45rem;
    padding: 0.7rem !important;
}

.mini-inline-form-stop {
    background: linear-gradient(180deg, rgba(61, 46, 48, 0.92), rgba(54, 45, 56, 0.92)) !important;
}

.mini-inline-form-add input,
.mini-inline-form-stop select,
.mini-inline-form button {
    padding: 0.58rem 0.72rem !important;
    font-size: 0.82rem !important;
}

.mini-inline-form-add input,
.mini-inline-form-stop select {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

.mini-inline-form-stop select option {
    color: #111827;
}

.mini-inline-form-stop select {
    min-height: 2.6rem;
}

.lab-trend-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0.85rem;
    align-items: end;
    min-height: 260px;
    padding: 2rem 0.6rem 0.6rem;
    overflow: visible !important;
}

.lab-chart-group {
    display: grid;
    gap: 0.45rem;
    align-items: end;
    justify-items: center;
}

.lab-chart-bars {
    min-height: 168px;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: visible !important;
}

.lab-chart-bar.generic,
.lab-chart-bar {
    width: 44px;
    min-height: 12px;
    position: relative;
    border-radius: 16px 16px 10px 10px;
}

.lab-chart-bar::after {
    content: attr(data-value);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 0.45rem);
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
}

.lab-chart-values {
    min-height: 0;
}

.lab-value-chip.generic {
    display: none;
}

.patient-images-card {
    scroll-margin-top: 100px;
}

.patient-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.patient-image-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(38, 42, 50, 0.98), rgba(31, 35, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.patient-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.patient-image-meta {
    display: grid;
    gap: 0.25rem;
}

.patient-image-meta span {
    color: var(--muted);
    font-size: 0.88rem;
}

.nav-archive-link {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.totp-qr-shell {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 1rem;
}

.totp-qr-image {
    width: 220px;
    max-width: 100%;
    border-radius: 1rem;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.28rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 1rem;
    align-items: center;
    overflow: hidden;
}

.guide-hero-copy {
    display: grid;
    gap: 0.7rem;
}

.guide-hero-animation {
    width: 100%;
    min-height: 220px;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.guide-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.guide-effect-float {
    animation: guideFloat 4.2s ease-in-out infinite;
}

.guide-effect-pulse {
    animation: guidePulse 2.8s ease-in-out infinite;
}

.guide-effect-glow {
    box-shadow: 0 0 0 rgba(249, 115, 22, 0.18), 0 18px 36px rgba(15, 23, 42, 0.2);
    animation: guideGlow 2.6s ease-in-out infinite;
}

@keyframes guideFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes guidePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

@keyframes guideGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(249, 115, 22, 0.14), 0 18px 36px rgba(15, 23, 42, 0.2); }
    50% { box-shadow: 0 0 28px rgba(249, 115, 22, 0.18), 0 18px 36px rgba(15, 23, 42, 0.24); }
}
