@font-face {
    font-family: "IRANSansX";
    src: url("../IRANSansX-Medium.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html,
body,
button,
input,
select,
textarea,
code {
    font-family: "IRANSansX", Tahoma, sans-serif !important;
}

.brand-logo {
    position: relative;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .25);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .22);
}

.brand-logo img {
    position: absolute;
    top: 0;
    right: 0;
    max-width: none;
    object-fit: contain;
}

.brand-logo-large {
    width: 62px;
    height: 54px;
    border-radius: 16px;
}

.brand-logo-login {
    width: 92px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 22px;
}

.brand-logo-small {
    width: 48px;
    height: 42px;
    border-radius: 13px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
    padding: 16px 12px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(51, 65, 85, .7);
}

.site-footer a {
    color: #7dd3fc;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #c4b5fd;
    text-decoration: underline;
}

.footer-heart {
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, .35));
}

.dashboard-footer {
    margin: 12px 24px 0;
    padding-bottom: 20px;
}

.cafeteria-card {
    border-color: rgba(168, 85, 247, .42);
    background: linear-gradient(145deg, #17112a, #0f172a);
}

.cafeteria-icon {
    background: rgba(168, 85, 247, .2);
    color: #e9d5ff;
}

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

.items span small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
}

.sessions-heading {
    align-items: center;
}

.session-tools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.session-search {
    min-width: min(320px, 100%);
    margin: 0;
    gap: 4px;
}

.session-search span {
    font-size: 11px;
    color: #94a3b8;
}

.session-search input {
    min-height: 42px;
    direction: rtl;
}

.session-filter-panel {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    background: #0b1221;
    border: 1px solid #243247;
    border-radius: 14px;
}

.filter-set {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.session-filter-panel .filters {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.session-filter-panel .filter {
    min-height: 40px;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.session-filter-panel .filter:focus-visible,
.filter-reset:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 4px 4px 0;
    color: #93c5fd;
    font-size: 11px;
}

.filter-reset {
    min-height: 36px;
    padding: 5px 11px;
    color: #fca5a5;
    background: rgba(153, 27, 27, .18);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 9px;
    cursor: pointer;
}

.filter-reset[hidden] {
    display: none;
}

.session-table-wrap {
    overflow: hidden;
    border: 1px solid #243247;
    border-radius: 16px;
    background: #0f172a;
}

.session-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

.session-table .col-status { width: 7%; }
.session-table .col-station { width: 16%; }
.session-table .col-session { width: 15%; }
.session-table .col-money { width: 10%; }
.session-table .col-cafe { width: 15%; }
.session-table .col-notes { width: 17%; }

.session-table th {
    padding: 12px 8px;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    background: #172554;
    border-bottom: 1px solid #334155;
}

.session-table td {
    padding: 12px 8px;
    vertical-align: middle;
    color: #e2e8f0;
    overflow-wrap: break-word;
    word-break: normal;
    border-bottom: 1px solid #243247;
}

.session-table tr:last-child td {
    border-bottom: 0;
}

.session-table tbody tr {
    transition: background-color .18s ease;
}

.session-table tbody tr:hover {
    background: rgba(37, 99, 235, .08);
}

.session-table tr.cafeteria-row {
    background: rgba(126, 34, 206, .07);
}

.session-table td > small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
}

.money-cell {
    font-feature-settings: "tnum";
    font-weight: 700;
}

.money-cell.paid {
    color: #86efac;
}

.money-cell.remaining {
    color: #fca5a5;
}

.notes-cell {
    line-height: 1.8;
    color: #cbd5e1;
}

.station-cell strong,
.station-cell .cell-meta {
    display: block;
}

.station-cell .cell-meta {
    margin-top: 5px;
    color: #cbd5e1;
}

.session-detail-cell {
    font-feature-settings: "tnum";
}

.session-detail-cell > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

.session-detail-cell > div + div {
    border-top: 1px solid rgba(51, 65, 85, .55);
}

.session-detail-cell span {
    color: #94a3b8;
}

.muted {
    color: #64748b;
}

.cafe-cell details {
    margin-top: 5px;
    padding: 0;
    border: 0;
}

.cafe-cell summary {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 3px 8px;
    color: #d8b4fe;
    font-size: 10px;
    background: rgba(126, 34, 206, .16);
    border-radius: 7px;
}

.table-items {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    padding: 8px;
    background: #090f1e;
    border: 1px solid #334155;
    border-radius: 9px;
}

.table-items div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.table-items span,
.table-items b {
    min-width: 0;
}

.table-items b {
    white-space: nowrap;
}

.table-empty {
    padding: 28px 16px;
    color: #94a3b8;
    text-align: center;
}

.session-row[hidden] {
    display: none;
}

@media (max-width: 1180px) {
    .session-table {
        font-size: 10px;
    }

    .session-table th,
    .session-table td {
        padding: 10px 6px;
    }
}

@media (max-width: 980px) and (min-width: 761px) {
    .session-table-wrap {
        overflow-x: auto;
    }

    .session-table {
        min-width: 900px;
    }
}

@media (max-width: 760px) {
    .dashboard-footer {
        margin: 8px 14px 0;
    }

    .footer-divider {
        display: none;
    }

    .site-footer {
        line-height: 1.9;
    }

    .session-tools,
    .session-search {
        width: 100%;
    }

    .session-filter-panel {
        padding: 10px;
    }

    .filter-set {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .session-filter-panel .filters {
        width: 100%;
    }

    .session-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .session-table,
    .session-table colgroup,
    .session-table tbody,
    .session-table tr,
    .session-table td {
        display: block;
        width: 100%;
    }

    .session-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .session-table colgroup {
        display: none;
    }

    .session-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        background: #0f172a;
        border: 1px solid #243247;
        border-radius: 14px;
    }

    .session-table tr.cafeteria-row {
        background: linear-gradient(145deg, #17112a, #0f172a);
        border-color: rgba(168, 85, 247, .4);
    }

    .session-table td {
        min-height: 54px;
        padding: 8px;
        background: #0b1221;
        border: 0;
        border-radius: 9px;
    }

    .session-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #94a3b8;
        font-size: 9px;
    }

    .session-table .notes-cell,
    .session-table .cafe-cell,
    .session-table .station-cell,
    .session-table .session-detail-cell {
        grid-column: 1 / -1;
    }

    .table-items {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a {
        transition: none;
    }
}
