:root {
    --page-bg: #eef3f9;
    --surface: #ffffff;
    --surface-alt: #f7faff;
    --surface-border: #c8d8ea;
    --surface-border-strong: #9ebbe0;
    --text: #1f2f44;
    --text-muted: #5b6f8a;
    --brand: darkslategrey;
    --brand-2: #466666;
    --brand-soft: #edf4f4;
    --brand-soft-2: #dfe9e9;
    --shadow-sm: 0 1px 0 rgb(0 0 0 / 0.04), 0 8px 24px rgb(47 79 79 / 0.08);
}

html,
body {
    background-color: var(--page-bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    min-height: 100vh;
}

.site-header {
    background-color: var(--brand);
    color: #ffffff;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 2px 10px rgb(15 32 61 / 0.18);
    height: 100px;
    box-sizing: border-box;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 10px;
    height: 100%;
    box-sizing: border-box;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-brand img {
    display: block;
    width: auto;
    max-width: 300px;
    height: 200px;
    max-height: calc(100% - 20px);
}

.site-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #edf4ff;
    font-size: 0.9rem;
    text-align: right;
    line-height: 1.25;
}

.site-user p {
    margin: 0;
}

.site-user a {
    color: #ffffff;
    font-weight: 700;
}

body > .layout {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body > .layout > .nav-bar {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
    background-color: var(--brand-soft);
    border-bottom: 1px solid var(--surface-border);
    gap: 0;
}

body > .layout > .page-content {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

main.page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 60px 2rem;
    box-sizing: border-box;
}

main.page-content > .container,
main.page-content > .container.py-4 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1rem 60px 2rem !important;
    box-sizing: border-box;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: var(--brand-soft);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    background-color: transparent;
    border: 0;
    border-right: 1px solid var(--surface-border);
    border-radius: 0;
    color: var(--brand);
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-btn--logout {
    margin-left: auto;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 360px;
}

.admin-action-btn {
    display: block;
    align-items: center;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--surface-border-strong);
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.admin-action-btn:hover {
    background-color: var(--brand-soft-2);
    border-color: var(--surface-border-strong);
    color: var(--brand);
    text-decoration: none;
}

.admin-action-btn:focus-visible {
    outline: 3px solid rgb(47 79 79 / 0.22);
    outline-offset: 2px;
}

.nav-btn:last-child {
    border-right: 0;
}

.nav-btn:hover {
    background-color: var(--brand-soft-2);
    color: var(--brand);
    text-decoration: none;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: var(--brand-soft);
}

.admin-nav-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-weight: 700;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    border-right: 1px solid var(--surface-border);
    line-height: 1;
}

a {
    color: #0f5ea8;
    text-decoration: none;
}

a:hover {
    color: #0a4b89;
    text-decoration: underline;
}

a:visited {
    color: #0f4a7f;
}

a:active {
    color: #d03b2f;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin: 0;
    padding: 0.65rem 0.85rem;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--surface-border);
}

.table-filter-bar--attached {
    background: linear-gradient(180deg, var(--surface-alt), #eef3f9);
}

.table-filter-bar__group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 220px;
    flex: 1 1 0;
}

.table-filter-bar__label {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.table-filter-bar__input,
.table-filter-bar__select {
    width: 100%;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--surface-border-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.03);
}

.table-filter-bar__input:focus,
.table-filter-bar__select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.15rem rgb(47 79 79 / 0.12);
    outline: none;
}

.table-filter-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.table-filter-bar__clear {
    min-height: 2.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--surface-border-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand);
    font-weight: 700;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.03);
}

.table-filter-bar__clear:hover {
    background: var(--surface-alt);
}

.table-responsive > .table-filter-bar--attached + table {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.table-filter-empty {
    padding: 0.85rem 0.95rem;
    margin-top: 0.75rem;
    background: var(--surface-alt);
    border: 1px dashed var(--surface-border);
    border-radius: 8px;
    color: var(--text-muted);
}

table thead tr,
table thead th {
    background-color: var(--brand);
    color: #ffffff;
}

table thead th {
    border-bottom: 0;
    padding: 0.85rem 1rem;
    font-weight: 700;
    text-align: left;
}

table tbody tr {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: var(--surface-alt);
}

table tbody tr:hover {
    background-color: #eaf2fc;
}

table tbody td,
table tbody th {
    color: var(--text);
    background-color: inherit;
    font-weight: normal;
    padding: 0.85rem 1rem;
    vertical-align: top;
    border-top: 1px solid #d9e4f2;
}

table tbody th {
    font-weight: 700;
    color: var(--brand);
}

table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--surface);
}

table.table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-bg-type: var(--surface-alt);
}

form {
    background-color: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: inline-block;
}

form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea,
form .form-control,
form .form-select {
    background-color: #ffffff;
    border: 1px solid var(--surface-border-strong);
    color: var(--text);
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.03);
}

form select,
form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 3rem;
    padding-right: 2.2rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1rem) calc(50% - 2px),
        calc(100% - 0.7rem) calc(50% - 2px);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

form select[multiple],
form .form-select[multiple] {
    min-height: 9rem;
    padding-right: 0.85rem;
    background-image: none;
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

form input:not([type="checkbox"]):not([type="radio"]):focus,
form select:focus,
form textarea:focus,
form .form-control:focus,
form .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.15rem rgb(47 79 79 / 0.16);
    outline: none;
    background-color: #ffffff;
}

form button,
form .btn {
    background-color: var(--brand);
    border: 1px solid var(--brand);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    box-shadow: none;
    align-self: flex-start;
}

form button:hover,
form .btn:hover {
    background-color: var(--brand-2);
    border-color: var(--brand-2);
    color: #ffffff;
}

form input[type="checkbox"],
form input[type="radio"] {
    accent-color: var(--brand);
}

form input[type="file"] {
    padding: 0.55rem 0.75rem;
}

form input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--surface-border-strong);
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--brand);
    font-weight: 700;
}

form input[type="file"]::file-selector-button:hover {
    background: #ffffff;
}

form .form-check {
    padding-left: 1.6rem;
}

form .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
}

form .form-text,
form .text-muted {
    color: var(--text-muted) !important;
}

.ticket-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    background-color: var(--surface-alt);
}

.ticket-preview__header {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brand);
}

.ticket-preview__media {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.ticket-preview__frame {
    min-height: 420px;
    border: 1px solid var(--surface-border-strong);
}

.ticket-show {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ticket-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.ticket-hero__main {
    min-width: 0;
    flex: 1 1 420px;
}

.ticket-hero__eyebrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
}

.ticket-hero__title {
    margin: 0;
    color: var(--brand);
    font-size: 1.8rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ticket-hero__subtitle {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.ticket-hero__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.ticket-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 180px;
    padding: 0.75rem 0.85rem;
    background: var(--surface-alt);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
}

.ticket-chip__label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-chip__value {
    color: var(--brand);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ticket-show__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 1.25rem;
    align-items: start;
}

.ticket-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.15rem;
}

.ticket-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.ticket-panel__header h2 {
    margin: 0;
    color: var(--brand);
    font-size: 1.1rem;
}

.ticket-panel__header span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.ticket-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    box-shadow: none;
}

.ticket-info-table tbody th,
.ticket-info-table tbody td {
    padding: 0.8rem 0.95rem;
    border-top: 1px solid #d9e4f2;
}

.ticket-info-table tbody tr:first-child th,
.ticket-info-table tbody tr:first-child td {
    border-top: 0;
}

.ticket-info-table tbody th {
    width: 220px;
    background: var(--surface-alt);
    color: var(--brand);
    font-weight: 700;
    text-align: left;
}

.ticket-info-table__description {
    white-space: pre-wrap;
    line-height: 1.55;
}

.ticket-panel--side {
    position: sticky;
    top: 1rem;
}

.ticket-action-block + .ticket-action-block {
    margin-top: 1rem;
}

.ticket-action-block h3 {
    margin: 0 0 0.75rem;
    color: var(--brand);
    font-size: 1rem;
}

.ticket-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.ticket-readonly {
    padding: 0.9rem 1rem;
    border: 1px dashed var(--surface-border);
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--text-muted);
}

.ticket-panel--history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-history-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-history-entry {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--surface-border);
    border-left: 5px solid var(--brand);
    border-radius: 8px;
    background-color: var(--surface);
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.ticket-history-entry__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ticket-history-entry__stamp {
    color: var(--brand);
    font-weight: 700;
}

.ticket-history-entry__author {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ticket-history-entry__body {
    min-width: 0;
    text-align: left;
}

.ticket-history-entry__note {
    color: var(--text);
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.5;
    width: 100%;
}

.ticket-history-entry__attachment {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: left;
}

.ticket-history-empty {
    border: 1px dashed var(--surface-border);
    border-radius: 8px;
    background-color: var(--surface-alt);
    color: var(--text-muted);
}

.ticket-action-block--history {
    margin-top: 0.25rem;
}

.home-page {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    max-width: 760px;
    width: 100%;
    text-align: center;
}

.home-login-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    max-width: 520px;
    width: 100%;
}

.home-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.home-panel__header h2 {
    margin: 0;
    color: var(--brand);
    font-size: 1.15rem;
}

.home-panel__header span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.home-login-panel__current {
    color: var(--text-muted);
    line-height: 1.5;
}

.home-login-panel__current a {
    font-weight: 700;
}

.home-login-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.home-hero__eyebrow {
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.85rem;
}

.home-hero__title {
    margin: 0;
    color: var(--brand);
    font-size: 2rem;
    line-height: 1.15;
}

.home-hero__lead {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    max-width: 68ch;
    text-align: center;
}

.home-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    appearance: none;
}

.home-login-btn:hover {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #ffffff;
    text-decoration: none;
}

.home-login-btn:focus-visible {
    outline: 3px solid rgb(47 79 79 / 0.22);
    outline-offset: 2px;
}

.home-info {
    max-width: 760px;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.home-info__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.mail-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mail-status--sent {
    background: #dff0e5;
    color: #1e6b3f;
}

.mail-status--failed {
    background: #f9e1e1;
    color: #9d2f2f;
}

.mail-status--skipped {
    background: #eef2f7;
    color: var(--text-muted);
}

.mail-status--queued {
    background: #fff3cd;
    color: #8a6d1d;
}

tr[data-ticket-row-href] {
    cursor: pointer;
}

tr[data-ticket-row-href]:hover {
    background: #eaf2fc;
}

.supervisor-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.supervisor-summary__item {
    min-width: 0;
}

.role-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.registration-assignment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.registration-assignment-grid > .role-user-list {
    min-width: 0;
}

.registration-assignment-grid .role-user-table {
    width: 100%;
}

.role-user-list__title {
    color: var(--brand);
    font-weight: 600;
}

.role-user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface-alt);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.role-user-table tbody tr:hover {
    background: #edf4f4;
}

.role-user-table td {
    padding: 0.6rem 0.85rem;
    border-top: 1px solid var(--surface-border);
    vertical-align: middle;
}

.role-user-table tbody tr:first-child td {
    border-top: 0;
}

.role-user-table__check {
    width: 3rem;
    text-align: center;
}

.role-user-table__check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.role-user-table__label {
    color: var(--text);
    font-weight: 500;
}

.mail-log-body {
    background: var(--surface-alt);
    color: var(--text-muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-top: 0;
}

@media (max-width: 900px) {
    body > .layout > .nav-bar {
        width: 100%;
        padding: 0;
        border-top: 0;
        border-bottom: 1px solid var(--surface-border);
    }

    body > .layout > .page-content {
        padding: 1rem;
    }

    .site-header__inner {
        padding: 10px 1rem;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
    }

    .site-user {
        justify-content: flex-start;
        text-align: left;
    }

    .site-brand img {
        width: auto;
        height: 80px;
        max-width: 200px;
    }

    .ticket-hero {
        flex-direction: column;
    }

    .ticket-hero__summary {
        width: 100%;
        justify-content: flex-start;
    }

    .ticket-show__grid {
        grid-template-columns: 1fr;
    }

    .ticket-panel--side {
        position: static;
    }

    .ticket-chip {
        min-width: 0;
        flex: 1 1 220px;
    }

    .ticket-info-table tbody th {
        width: 42%;
    }

    .ticket-history-entry {
        grid-template-columns: 1fr;
    }

    .registration-assignment-grid {
        grid-template-columns: 1fr;
    }

    .supervisor-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Supervisor Dashboard Styles */
.supervisor-dashboard {
    max-width: 1400px;
}

.supervisor-dashboard__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--surface-border);
}

.supervisor-dashboard__header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand);
}

.supervisor-dashboard__scope {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Grid */
.supervisor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.supervisor-stat {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supervisor-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.supervisor-stat__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.supervisor-stat__content {
    flex: 1;
}

.supervisor-stat__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand);
}

.supervisor-stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.supervisor-stat--created {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.supervisor-stat--created .supervisor-stat__value,
.supervisor-stat--created .supervisor-stat__label {
    color: white;
}

.supervisor-stat--closed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.supervisor-stat--closed .supervisor-stat__value,
.supervisor-stat--closed .supervisor-stat__label {
    color: white;
}

.supervisor-stat--approaching {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.supervisor-stat--approaching .supervisor-stat__value,
.supervisor-stat--approaching .supervisor-stat__label {
    color: white;
}

.supervisor-stat--overdue {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.supervisor-stat--overdue .supervisor-stat__value,
.supervisor-stat--overdue .supervisor-stat__label {
    color: white;
}

/* Grid Layout */
.supervisor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .supervisor-grid {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.supervisor-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.supervisor-panel__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    background: var(--surface-alt);
}

.supervisor-panel__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand);
}

.supervisor-panel__body {
    padding: 1.5rem;
}

/* Priority Rows */
.priority-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.priority-row:last-child {
    border-bottom: none;
}

.priority-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
}

.priority-count {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--brand);
}

/* Action Links */
.supervisor-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.75rem;
}

.supervisor-action-link:last-child {
    margin-bottom: 0;
}

.supervisor-action-link:hover {
    background: var(--surface-border);
    transform: translateX(4px);
    text-decoration: none;
    color: var(--brand);
}

.supervisor-action-link__icon {
    font-size: 1.5rem;
}

/* Table Styles */
.supervisor-panel .table {
    margin: 0;
}

.supervisor-panel .table thead th {
    background: var(--surface-alt);
    border-bottom: 2px solid var(--surface-border);
    font-weight: 600;
    color: var(--brand);
    padding: 1rem;
}

.supervisor-panel .table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.supervisor-panel .table tbody tr[data-ticket-row-href] {
    cursor: pointer;
    transition: background 0.2s ease;
}

.supervisor-panel .table tbody tr[data-ticket-row-href]:hover {
    background: var(--surface-alt);
}

/* System Status Indicator */
.system-status-indicator {
    display: flex;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.system-status--alert {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.system-status--alert:hover {
    background: #f5c6cb;
    text-decoration: none;
    color: #721c24;
}

.system-status--ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.status-text {
    font-weight: 600;
}
