@font-face {
    font-family: Edura;
    src: url("noto-arabic.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Edura;
    src: url("noto-arabic-bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --teal: #10656c;
    --deep: #10454a;
    --gold: #c6a150;
    --ink: #173c40;
    --muted: #7d9294;
    --line: #e7eeed;
    --surface: #f6f9f8;
    --sidebar: 248px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Edura, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

input, button, select, textarea {
    font: inherit;
    color: inherit;
}

button, select {
    cursor: pointer;
}

button, input, textarea, select {
    outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #c6a150;
    outline-offset: 3px;
}

button:disabled {
    cursor: default;
    opacity: .45;
}

a {
    color: var(--teal);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1, h2, h3, p {
    margin: 0;
}

h1 {
    font-size: 25px;
    line-height: 1.6;
    letter-spacing: -.5px;
}

h2 {
    font-size: 16px;
    line-height: 1.8;
}

h3 {
    font-size: 14px;
}

small {
    font-size: 11px;
}

[hidden] {
    display: none !important;
}

.icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    vertical-align: middle;
}

.muted, .field-hint {
    color: var(--muted);
}

.field-hint {
    font-size: 11px;
    line-height: 1.9;
}

.required {
    color: var(--gold);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wide {
    width: 100%;
}

.narrow {
    max-width: 850px;
}

.subline {
    display: block;
    color: var(--muted);
    text-align: start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 19px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
    transition: background .15s, border .15s;
}

.btn.primary {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 3px 7px #10656c0c;
}

.btn.primary:hover {
    background: var(--deep);
}

.btn.secondary {
    background: #fff;
    color: var(--teal);
    border-color: #dce6e4;
}

.btn.secondary:hover {
    background: #eff6f4;
    border-color: #c3d6d0;
}

.btn.text {
    background: transparent;
    color: #829493;
}

.btn.text:hover {
    color: var(--teal);
    background: #f3f6f5;
}

.btn.small {
    font-size: 11px;
    padding: 5px 12px;
    min-height: 32px;
    gap: 5px;
}

.btn.small .icon {
    width: 15px;
    height: 15px;
}

.btn.whatsapp {
    background: #e9f6ef;
    color: #20875d;
    border-color: #d9efe4;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    padding: 13px 18px;
    border: 1px solid #deebe7;
    border-radius: 8px;
    background: #edf5f1;
    color: #256457;
    margin-bottom: 22px;
}

.alert.error {
    color: #ae504f;
    background: #fff5f2;
    border-color: #f2ded5;
}

/* Workspace */
.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--sidebar);
    background: #fff;
    border-inline-end: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 30;
    padding: 28px 18px 16px;
}

.brand {
    height: 85px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 22px;
}

.brand img {
    width: 137px;
    max-height: 83px;
    object-fit: contain;
}

.workspace-label {
    color: #95a4a3;
    margin: 0 15px 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tiny-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 8px;
    color: #718887;
    font-size: 12px;
}

.nav-item .icon {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background: #f6f9f8;
}

.nav-item.active {
    color: var(--teal);
    background: #eaf4f1;
    font-weight: 700;
}

.nav-item.active i {
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
    margin-inline-start: auto;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
    flex-shrink: 0;
}

.account-chip {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 17px 8px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.account-chip strong {
    display: block;
    font-size: 11px;
}

.account-chip small {
    display: block;
    text-align: start;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.account-chip > .icon {
    margin-inline-start: auto;
    color: #8faaa5;
    width: 15px;
}

.sidebar-bottom > form .btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 11px;
}

.sidebar-domain {
    margin-top: 20px;
    padding-top: 12px;
    text-align: center;
    font-size: 10px;
    color: #b1bfbc;
    letter-spacing: 1.4px;
}

.main-shell {
    margin-inline-start: var(--sidebar);
}

.topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
}

.breadcrumb > span {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #9baaa8;
    letter-spacing: .5px;
}

.breadcrumb .icon {
    width: 11px;
    height: 11px;
    color: #c0cdca;
}

.breadcrumb strong {
    font-weight: 400;
    color: #597572;
}

.topbar-end {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 11px;
}

.date {
    color: #8da09c;
    font-family: Arial, sans-serif;
    letter-spacing: .5px;
}

.role-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-inline-start: 22px;
    border-inline-start: 1px solid var(--line);
    color: var(--teal);
}

.role-label::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #84b49f;
}

.mobile-menu {
    display: none;
    background: transparent;
    border: 0;
    padding: 9px;
}

.content {
    max-width: 1650px;
    margin: auto;
    padding: 32px 38px 16px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.page-heading p {
    font-size: 12px;
    color: #829794;
    margin-top: 5px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #9fb1ad;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 35px;
}

.page-footer span:last-child {
    letter-spacing: 1.5px;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    margin-bottom: 24px;
    overflow: hidden;
}

.panel.padded {
    padding: 25px;
}

.panel.padded > h2 {
    margin-bottom: 23px;
}

.panel-heading {
    padding: 21px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.panel-heading h2 {
    font-size: 14px;
}

.panel-heading > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.panel-heading > a .icon {
    width: 14px;
}

.panel-heading.no-pad {
    padding: 0 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(250px, 1fr);
    gap: 22px;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 19px;
    margin-bottom: 26px;
}

.stat-card {
    padding: 23px 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    font-size: 11px;
    color: #7e9690;
    margin-bottom: 13px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f0f7f3;
    border-radius: 9px;
    color: var(--teal);
}

.stat-icon .icon {
    width: 17px;
    height: 17px;
}

.stat-card:nth-child(2) .stat-icon {
    color: #b49655;
    background: #faf6ec;
}

.stat-card:nth-child(3) .stat-icon {
    color: #7597a0;
    background: #edf4f8;
}

.stat-card:nth-child(4) .stat-icon {
    color: #5c9b80;
    background: #edf6ef;
}

.stat-card > strong {
    display: block;
    font: 700 34px/1.2 Arial, sans-serif;
    color: #164f50;
    margin-bottom: 11px;
}

.stat-card > small {
    color: #9aacaa;
    font-size: 9px;
}

.work-summary {
    padding-bottom: 18px;
}

.work-summary .panel-heading > .icon {
    color: #9fb7b1;
    width: 16px;
}

.summary-row {
    padding: 0 24px;
    margin-bottom: 18px;
}

.summary-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #77928c;
    margin-bottom: 5px;
}

.summary-row b {
    font-size: 12px;
    color: #597e74;
    font-family: Arial, sans-serif;
}

progress {
    width: 100%;
    height: 4px;
    border: 0;
    border-radius: 6px;
    display: block;
    background: #f0f5f2;
    accent-color: var(--teal);
}

progress::-webkit-progress-bar {
    background: #f0f5f2;
    border-radius: 6px;
}

progress::-webkit-progress-value {
    background: #438f83;
    border-radius: 6px;
}

.summary-row:nth-of-type(3) progress::-webkit-progress-value {
    background: #c6a150;
}

.summary-row:nth-of-type(4) progress::-webkit-progress-value {
    background: #c49d8e;
}

.summary-row:nth-of-type(5) progress::-webkit-progress-value {
    background: #a8b5bd;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 24px 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: #98aaa4;
}

.summary-total strong {
    color: var(--teal);
    font: 700 19px Arial, sans-serif;
}

.university-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 24px 24px;
    gap: 15px;
}

.university-mini {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
}

.university-mini img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.university-mini h3 {
    font-size: 12px;
    margin-bottom: 2px;
}

.university-mini small {
    color: #98aba4;
    font-size: 9px;
}

.university-mini > .icon {
    width: 13px;
    height: 13px;
    color: #aab9b4;
    margin-inline-start: auto;
}

/* Leads and tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
}

th {
    text-align: start;
    color: #8ca09c;
    background: #fafcfb;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    padding: 12px 24px;
    border-block: 1px solid #edf2f0;
}

td {
    padding: 17px 24px;
    border-bottom: 1px solid #f0f4f2;
    color: #55736e;
    font-size: 11px;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 112px;
}

.table-person > a {
    color: #345f57;
    font-size: 11px;
}

.initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eef6f1;
    color: #5b8e7f;
    font-size: 12px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0eae4;
    background: #eef5f0;
    border-radius: 11px;
    width: 38px;
    height: 38px;
    color: #679287;
    flex-shrink: 0;
    object-fit: cover;
}

.avatar.large {
    width: 78px;
    height: 83px;
    border-radius: 14px;
}

.avatar.large .icon {
    width: 30px;
    height: 30px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font: 11px Arial, sans-serif;
    color: #6f8982;
}

.phone-link .icon {
    width: 15px;
    height: 15px;
    color: #77a38d;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 9px;
    background: #f0f4f2;
    color: #648077;
    white-space: nowrap;
}

.pill::before {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.pill.green {
    color: #5b9276;
    background: #ebf6ef;
}

.pill.gold {
    color: #b2975b;
    background: #faf5e9;
}

.pill.red {
    color: #b68d80;
    background: #fbf0ed;
}

.pill.blue {
    color: #7095a2;
    background: #edf4f8;
}

.row-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #5d8b7c;
    font-size: 10px;
    white-space: nowrap;
}

.row-link .icon {
    width: 14px;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 22px;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tabs a {
    padding: 8px 12px;
    color: #91a69e;
    font-size: 10px;
    border-radius: 7px;
}

.tabs a.active {
    background: #edf5f0;
    color: var(--teal);
    font-weight: 700;
}

.padded-tabs {
    padding: 17px 22px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.search-form label {
    position: relative;
}

.search-form .icon {
    position: absolute;
    inset-inline-start: 11px;
    top: 12px;
    width: 14px;
    height: 14px;
    color: #a2b4ac;
}

.search-form input {
    width: 230px;
    padding: 9px 33px 9px 12px;
    background: #fafcfb;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pagination > div {
    display: flex;
    gap: 8px;
}

.table-footer {
    color: #a0b2a9;
    font-size: 9px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
}

.empty-state {
    text-align: center;
    padding: 44px 24px 48px;
    color: #8ba298;
}

.empty-state > .icon {
    width: 35px;
    height: 35px;
    padding: 7px;
    background: #eef5f0;
    border-radius: 10px;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: #527c6e;
    font-size: 13px;
}

.empty-state p {
    font-size: 11px;
    margin: 6px auto 18px;
    max-width: 440px;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.two-columns > .stack {
    gap: 0;
}

/* Forms and student workflow */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field > span {
    font-size: 11px;
    font-weight: 700;
    color: #638274;
}

.field input, .field select, .field textarea {
    border-radius: 8px;
    border: 1px solid #dfe9e4;
    background: #fff;
    padding: 10px 12px;
    width: 100%;
    font-size: 12px;
    min-height: 44px;
}

.field input::placeholder {
    color: #b0c0b7;
    font-size: 10px;
}

.field input[type="file"] {
    font-size: 10px;
    padding: 10px;
}

.field textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

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

.detail-list {
    margin: 20px 0;
}

.detail-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #eff4f0;
}

.detail-list > div:last-child {
    border: 0;
}

.detail-list dt {
    color: #9caf9e;
    font-size: 11px;
    flex-shrink: 0;
}

.detail-list dd {
    margin: 0;
    font-size: 12px;
    text-align: end;
    overflow-wrap: anywhere;
}

.steps {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 4px;
}

.steps > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a3b5aa;
    font-size: 11px;
}

.steps > div:not(:last-child)::after {
    content: "";
    width: 62px;
    height: 1px;
    background: #dce8df;
    margin-inline-start: 5px;
}

.steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde7e2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font: 11px Arial, sans-serif;
}

.steps .active {
    color: var(--teal);
}

.steps .active span {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.steps .icon {
    width: 13px;
    height: 13px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.upload-field {
    border-radius: 9px;
    border: 1px dashed #cbdcd0;
    overflow: hidden;
}

.upload-field > label {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 200px;
    padding: 24px 15px 18px;
    cursor: pointer;
    position: relative;
    background: #fbfdfb;
}

.upload-field > label:hover {
    background: #f3f8f3;
}

.upload-field label > .icon {
    color: #7b9c87;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
}

.upload-field strong {
    font-size: 12px;
    font-weight: 400;
}

.upload-field small {
    font-size: 9px;
    color: #a8b9ad;
    margin-top: 3px;
}

.upload-field label > span {
    font-size: 10px;
    color: #71927b;
    margin-top: 18px;
    border: 1px solid #e1ebe1;
    border-radius: 5px;
    padding: 3px 12px;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.upload-field input[type="file"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.upload-field:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.uploaded-link {
    display: flex;
    gap: 7px;
    align-items: center;
    border-top: 1px solid #e3ece1;
    padding: 9px 12px;
    font-size: 10px;
}

.uploaded-link .icon {
    width: 14px;
    flex-shrink: 0;
}

.student-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    margin-bottom: 24px;
}

.student-profile-header bdi {
    font: 12px Arial, sans-serif;
    color: #93a98f;
}

.profile-exports {
    display: flex;
    gap: 10px;
    margin-inline-start: auto;
    flex-wrap: wrap;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: #497962;
    font-size: 11px;
}

.service-link > .icon {
    width: 14px;
    margin-inline-start: auto;
}

.service-summary {
    display: grid;
    grid-template-columns: 1fr 1.6fr .7fr .7fr;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 22px 26px;
    gap: 24px;
}

.service-summary > div {
    border-inline-end: 1px solid var(--line);
    padding-inline-end: 16px;
}

.service-summary > div:last-child {
    border: 0;
}

.service-summary small {
    display: block;
    color: #a4b79c;
    font-size: 10px;
    margin-bottom: 4px;
}

.service-summary b {
    font-size: 12px;
    font-weight: 400;
}

.document-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 17px 0;
}

.doc-status {
    border: 1px solid #e9ede8;
    color: #b6c4b1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    flex-shrink: 0;
}

.doc-status .icon {
    width: 14px;
    height: 14px;
}

.doc-status.ready {
    color: #6f9d76;
    background: #f0f7ed;
    border-color: #e1eddc;
}

.doc-description {
    flex: 1;
    min-width: 0;
}

.doc-description b {
    font-size: 11px;
    display: block;
    font-weight: 400;
}

.doc-description small {
    font-size: 9px;
    color: #afbf9f;
}

.doc-description input[type="file"] {
    display: block;
    width: 100%;
    max-width: 285px;
    font-size: 9px;
    color: #87a074;
    margin-top: 7px;
}

.doc-description input::file-selector-button {
    border: 1px solid #dfe9d6;
    border-radius: 4px;
    background: #fbfdf8;
    padding: 4px 8px;
    color: #6b8861;
    font: inherit;
    margin-inline-end: 10px;
}

.file-name {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.static-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f0f6ec;
    border: 1px solid #e0ead9;
}

.static-field span {
    font-size: 10px;
    color: #8ba178;
}

.static-field b {
    font-weight: 400;
    font-size: 12px;
}

.complete-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6f9660;
    font-size: 12px;
}

.contract-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.account-profile span[dir] {
    font-size: 11px;
    font-family: Arial, sans-serif;
    color: #9bb08b;
}

/* Batch allocation */
.batch-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.batch-stats > div {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.batch-stats b {
    font: 700 25px Arial, sans-serif;
    color: var(--teal);
}

.batch-stats span {
    color: #8ca37c;
    font-size: 10px;
}

.allocation-form {
    max-width: 1000px;
}

.allocation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.employee-label {
    margin-inline-end: auto;
}

.employee-label b {
    display: block;
    font-size: 11px;
    font-weight: 400;
}

.employee-label small {
    display: block;
    color: #9cb68d;
    text-align: start;
    font: 10px Arial, sans-serif;
    margin-top: 3px;
}

.weight-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #dfe8da;
    border-radius: 7px;
}

.weight-field input {
    border: 0;
    background: transparent;
    width: 50px;
    text-align: center;
    font: 13px Arial, sans-serif;
}

.weight-field span {
    font: 12px Arial, sans-serif;
    color: #9aaf88;
}

.allocation-count {
    font-size: 11px;
    color: #a4b393;
    width: 85px;
    text-align: end;
}

.allocation-count b {
    color: #678c57;
    font-weight: 400;
}

.allocation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.allocation-total > strong {
    color: #5a8f53;
    font: 700 19px Arial, sans-serif;
}

.allocation-total .invalid-total {
    color: #c97056;
}

.allocation-form > .field-hint {
    margin-bottom: 20px;
}

/* University directory */
.university-campus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.campus-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 11px;
    overflow: hidden;
}

.campus-image {
    height: 118px;
    width: 100%;
    object-fit: cover;
}

.campus-description {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 13px;
}

.campus-description img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.campus-description h2 {
    color: var(--ink);
    font-size: 13px;
}

.campus-description span {
    display: block;
    color: #9eb5a6;
    font-size: 8px;
    line-height: 1.5;
    text-align: start;
}

.program-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    align-items: end;
}

.program-filters .btn {
    justify-self: start;
}

.service-filters {
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.activity-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.health-card {
    min-height: 108px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.health-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.health-icon .icon {
    width: 20px;
    height: 20px;
}

.health-card.ready .health-icon {
    color: #3c8e6c;
    background: #eaf6ef;
}

.health-card.blocked .health-icon {
    color: #b5675e;
    background: #fff0ed;
}

.health-card.optional .health-icon {
    color: #a98d54;
    background: #faf4e6;
}

.health-card h2 {
    margin-bottom: 3px;
    font-size: 13px;
}

.health-card p {
    color: #6e8884;
    font-size: 11px;
}

.health-card small {
    color: #a0b0ad;
    font-size: 9px;
}

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 18px;
}

.result-heading > strong {
    font-size: 13px;
    font-weight: 400;
}

.result-heading > span {
    font-size: 10px;
    color: #a2b6aa;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.program-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 22px;
}

.program-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    color: #90a99a;
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 16px;
    color: #386653;
}

.program-card > p {
    text-align: start;
    font-size: 10px;
    color: #a1b6a8;
    line-height: 1.7;
    margin-top: 5px;
    min-height: 33px;
}

.program-meta {
    display: flex;
    gap: 10px;
    color: #91ab95;
    font-size: 9px;
    margin: 17px 0;
}

.program-meta > span + span::before {
    content: "·";
    padding-inline-end: 10px;
}

.program-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f7faf5;
    border-radius: 8px;
    padding: 14px;
}

.program-prices > div:first-child {
    border-inline-end: 1px solid #e6eee0;
}

.program-prices > div:last-child {
    padding-inline-start: 15px;
}

.program-prices small {
    font-size: 9px;
    color: #a4b796;
    display: block;
    margin-bottom: 3px;
}

.program-prices strong {
    font-size: 14px;
    color: #668a55;
    font-family: Arial, Edura, sans-serif;
}

.program-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    gap: 8px;
}

.program-bottom > span:last-child {
    font-size: 9px;
    color: #a6b996;
}

.program-note {
    display: block;
    margin-top: 12px;
    font-size: 9px;
    color: #a5b698;
    line-height: 1.8;
}

/* Entry */
.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
    direction: ltr;
}

.login-aside {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: var(--deep);
    color: #fff;
    padding: 53px 60px 40px;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.login-aside::after {
    content: "";
    width: 520px;
    height: 520px;
    border: 1px solid #ffffff0d;
    border-radius: 50%;
    position: absolute;
    top: 34%;
    left: -280px;
    pointer-events: none;
    box-shadow: 0 0 0 70px #ffffff03, 0 0 0 140px #ffffff02;
}

.login-brand {
    align-self: flex-end;
}

.login-brand img {
    width: 145px;
    height: 76px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-story {
    margin: auto 0;
    padding: 65px 0 85px;
    position: relative;
    z-index: 1;
}

.gold-line {
    display: block;
    width: 43px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
    margin-bottom: 29px;
}

.login-story h1 {
    font-size: 45px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -1px;
}

.login-story p {
    font-size: 12px;
    line-height: 2.3;
    color: #bed5d0;
    margin-top: 23px;
}

.login-aside-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #81aaa3;
    font: 9px Arial, sans-serif;
    letter-spacing: 2px;
    direction: ltr;
}

.login-main {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: #fcfdfc;
}

.login-card {
    max-width: 380px;
    width: 100%;
}

.eyebrow {
    font: 10px Arial, sans-serif;
    color: #9db4aa;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.login-card h2 {
    font-size: 29px;
    margin-bottom: 9px;
}

.login-card > .muted {
    font-size: 11px;
}

.portal-options {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-options > a {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #e2eae5;
    border-radius: 11px;
    padding: 23px 20px;
    background: #fff;
}

.portal-options > a:hover {
    border-color: #b6cdbd;
    box-shadow: 0 5px 18px #10454a05;
}

.portal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 45px;
    border-radius: 9px;
    background: #eff5ef;
}

.portal-icon > .icon {
    width: 22px;
    height: 22px;
    color: var(--teal);
}

.portal-options > a:nth-child(2) .portal-icon {
    background: #faf6eb;
}

.portal-options > a:nth-child(2) .portal-icon > .icon {
    color: #b7a16b;
}

.portal-options strong {
    display: block;
    font-size: 13px;
    color: #355f4d;
}

.portal-options small {
    display: block;
    font-size: 10px;
    color: #acbb9f;
    margin-top: 3px;
}

.portal-options > a > .icon {
    width: 17px;
    color: #a8bb9f;
    margin-inline-start: auto;
}

.portal-toggle {
    display: flex;
    align-items: center;
    background: #f0f5ef;
    border-radius: 8px;
    padding: 4px;
    margin: 29px 0 30px;
}

.portal-toggle > a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 11px;
    color: #a0b59a;
    border-radius: 6px;
}

.portal-toggle > a.active {
    background: #fff;
    color: var(--teal);
    box-shadow: 0 2px 4px #10454a05;
}

.portal-toggle > a > .icon {
    width: 16px;
    height: 16px;
}

.login-footnote {
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;
    margin-top: 28px;
    color: #b0c0a8;
    font-size: 9px;
}

.login-footnote > .icon {
    width: 12px;
    height: 12px;
}

.simple-card {
    max-width: 620px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    margin: 70px auto;
    padding: 45px;
}

.simple-card > img {
    width: 130px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 30px;
}

.simple-card h1 {
    font-size: 22px;
}

.simple-card > p {
    color: #90a58a;
    margin: 13px 0 25px;
    font-size: 12px;
}

/* Bilingual contracts */
.contract-preview {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 28px;
}

.contract-page {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    padding: 13mm;
    border: 1px solid var(--line);
    box-shadow: 0 4px 25px #10504905;
}

.contract-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 13px;
    margin-bottom: 15px;
}

.contract-heading h2 {
    font-size: 16px;
}

.contract-heading p {
    text-align: start;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #829e8c;
}

.contract-heading img {
    width: 94px;
    height: 55px;
    object-fit: contain;
}

.company-block {
    font-size: 10px;
}

.company-block p {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #6b8f73;
    margin: 7px 0 15px;
    text-align: start;
}

.contract-page h3 {
    font-size: 10px;
    margin-bottom: 13px;
}

.contract-table {
    table-layout: fixed;
}

.contract-table td, .contract-table th {
    border: 1px solid #e2eada;
    white-space: normal;
    padding: 6px 8px;
    overflow-wrap: anywhere;
    font-size: 9px;
}

.contract-table th {
    width: 25%;
    font-weight: 400;
    background: #f2f7eb;
}

.contract-table th[dir] {
    font-family: Arial, sans-serif;
    text-align: left;
}

.contract-table td {
    width: 50%;
    text-align: center;
}

.terms-table td, .terms-table th {
    border: 1px solid #e2eada;
    padding: 7px 8px;
    font-size: 9.1px;
    background: #fff;
    vertical-align: top;
    line-height: 1.8;
    white-space: normal;
}

.terms-table td {
    width: 46%;
}

.terms-table td[dir] {
    font-family: Arial, sans-serif;
    font-size: 10px;
    text-align: left;
    line-height: 1.5;
}

.terms-table th {
    width: 8%;
    text-align: center;
    color: var(--teal);
}

.terms-table tr:nth-child(even) > * {
    background: #f6f9f1;
}

.signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 35px;
    padding-top: 15px;
    font-size: 9px;
    text-align: center;
}

.signatures > div {
    border-top: 1px solid #d0dfc6;
    padding-top: 9px;
}

.contract-page footer {
    font: 9px Arial, sans-serif;
    color: #a5b794;
    margin-top: 18px;
    text-align: left;
}

@media (min-width: 1550px) {
    :root {
        --sidebar: 270px;
    }

    .content {
        padding: 38px 48px 18px;
    }

    .topbar {
        padding-inline: 48px;
    }

}

@media (max-width: 1250px) {
    :root {
        --sidebar: 218px;
    }

    .content {
        padding: 26px 24px 16px;
    }

    .topbar {
        padding-inline: 24px;
    }

    .stat-card {
        padding: 18px 17px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
        gap: 18px;
    }

    td, th {
        padding-inline: 17px;
    }

    .university-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-toolbar {
        flex-wrap: wrap;
    }

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

    .campus-description {
        gap: 9px;
    }

    .campus-description img {
        width: 32px;
        height: 32px;
    }

    .campus-description span {
        font-size: 7px;
    }

    .contract-page {
        max-width: 100%;
    }

}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .two-columns, .form-grid.three {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        gap: 15px;
    }

    .profile-exports {
        margin-inline-start: 0;
    }

    .student-profile-header {
        flex-wrap: wrap;
    }

    .steps > div:not(:last-child)::after {
        width: 25px;
    }

    .batch-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-aside {
        padding: 45px;
    }

    .login-story h1 {
        font-size: 36px;
    }

}

@media (max-width: 760px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform .2s ease;
        width: 250px;
        box-shadow: -7px 0 30px #11434815;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .menu-open .mobile-menu {
        position: relative;
        z-index: 40;
    }

    .main-shell {
        margin-inline-start: 0;
    }

    .mobile-menu {
        display: inline-flex;
        margin-inline-end: 10px;
    }

    .topbar {
        height: 62px;
        padding-inline: 12px;
        justify-content: flex-start;
    }

    .topbar-end {
        margin-inline-start: auto;
        gap: 12px;
    }

    .topbar-end .date {
        display: none;
    }

    .role-label {
        padding-inline-start: 10px;
    }

    .content {
        padding: 25px 18px 16px;
    }

    h1 {
        font-size: 22px;
    }

    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 17px;
    }

    .page-heading p {
        font-size: 10px;
    }

    .stat-top {
        font-size: 10px;
    }

    .stat-card > strong {
        font-size: 30px;
    }

    .stat-card > small {
        font-size: 8px;
    }

    .stat-card {
        padding: 18px 15px;
    }

    .panel.padded {
        padding: 21px;
    }

    .panel-heading {
        padding: 19px;
    }

    .university-mini-grid {
        padding: 0 17px 20px;
        gap: 10px;
    }

    .university-mini {
        padding: 14px 10px;
        gap: 8px;
    }

    .university-mini img {
        width: 31px;
        height: 31px;
    }

    .university-mini > .icon {
        display: none;
    }

    .university-mini h3 {
        font-size: 11px;
    }

    .program-grid, .program-filters, .form-grid, .upload-grid, .activity-filters, .health-grid {
        grid-template-columns: 1fr;
    }

    .service-summary {
        grid-template-columns: 1fr 1fr;
        gap: 20px 13px;
        padding: 20px;
    }

    .service-summary > div {
        border: 0;
    }

    .steps {
        gap: 10px;
    }

    .steps > div {
        font-size: 9px;
        gap: 5px;
    }

    .steps > div:not(:last-child)::after {
        width: 8px;
        margin-inline-start: 0;
    }

    .steps span {
        width: 24px;
        height: 24px;
    }

    .search-form, .search-form label, .search-form input {
        width: 100%;
    }

    .list-toolbar {
        padding: 14px;
    }

    .tabs {
        gap: 1px;
    }

    .tabs a {
        font-size: 9px;
        padding: 7px 9px;
    }

    .batch-stats {
        gap: 12px;
    }

    .batch-stats > div {
        padding: 15px;
    }

    .batch-stats b {
        font-size: 23px;
    }

    .batch-stats span {
        font-size: 9px;
    }

    .allocation-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .allocation-row .avatar {
        width: 31px;
        height: 33px;
    }

    .employee-label {
        min-width: 175px;
    }

    .employee-label small {
        font-size: 9px;
    }

    .weight-field {
        margin-inline-start: 39px;
    }

    .allocation-count {
        margin-inline-start: auto;
    }

    .campus-image {
        height: 105px;
    }

    .campus-description {
        padding: 15px 10px;
    }

    .campus-description span {
        display: none;
    }

    .campus-description img {
        width: 30px;
        height: 30px;
    }

    .result-heading > span {
        display: none;
    }

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

    .login-aside {
        min-height: 0;
        padding: 25px 30px;
    }

    .login-brand {
        align-self: flex-start;
    }

    .login-brand img {
        width: 115px;
        height: 60px;
    }

    .login-story {
        margin: 0;
        padding: 22px 0 12px;
    }

    .login-story h1 {
        font-size: 27px;
        line-height: 1.5;
    }

    .login-story h1 br {
        display: none;
    }

    .gold-line {
        width: 24px;
        height: 2px;
        margin-bottom: 13px;
    }

    .login-story p, .login-aside-footer {
        display: none;
    }

    .login-main {
        padding: 38px 28px 50px;
        align-items: flex-start;
    }

    .login-card h2 {
        font-size: 25px;
    }

    .simple-card {
        margin: 30px 18px;
        padding: 28px;
    }

    .contract-page {
        width: 100%;
        min-height: 0;
        padding: 18px 12px;
    }

    .contract-heading {
        flex-wrap: wrap;
        gap: 12px;
    }

    .contract-table td, .contract-table th {
        padding: 7px 4px;
        font-size: 8px;
    }

    .terms-table td {
        font-size: 8px;
        padding: 6px 4px;
    }

    .terms-table td[dir] {
        font-size: 9px;
    }

}

/* Appointment workspace */

html {
    scroll-behavior: smooth;
}

.btn, .nav-item, .panel, .calendar-slot, .map-card {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.btn:not(:disabled):active {
    transform: translateY(0) scale(.985);
}

.appointment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.appointment-summary article {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 20px 22px;
    background: linear-gradient(145deg, #fff, #f8fbfa);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 7px 24px rgba(16, 69, 74, .035);
}

.appointment-summary article::after {
    content: "";
    position: absolute;
    inset-inline-end: -24px;
    bottom: -38px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 101, 108, .045);
}

.appointment-summary span, .appointment-summary small {
    display: block;
    color: var(--muted);
}

.appointment-summary strong {
    display: block;
    margin: 4px 0 1px;
    color: var(--deep);
    font-size: 27px;
    line-height: 1.35;
}

.calendar-panel {
    overflow: hidden;
    margin-bottom: 18px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.calendar-toolbar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.calendar-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dbe5e3;
}

.calendar-legend i.free { background: #6eb693; }
.calendar-legend i.mine { background: var(--teal); }
.calendar-legend i.busy { background: #a8b6b5; }
.calendar-legend i.blocked { background: #d0ab5b; }

.appointment-calendar-wrap {
    overflow: auto;
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-color: #cbd9d6 transparent;
}

.appointment-calendar {
    width: 100%;
    min-width: 1050px;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: separate;
}

.appointment-calendar th, .appointment-calendar td {
    padding: 8px;
    border-inline-start: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    background: #fff;
}

.appointment-calendar thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 64px;
    padding: 12px 10px;
    background: #f8fbfa;
    text-align: center;
}

.appointment-calendar thead th:first-child,
.appointment-calendar .calendar-time {
    position: sticky;
    right: 0;
    z-index: 4;
    width: 82px;
    background: #f5f9f8;
    border-inline-start-color: #dbe6e3;
    text-align: center;
}

.appointment-calendar thead th:first-child {
    z-index: 5;
}

.appointment-calendar thead th.today {
    color: var(--teal);
    box-shadow: inset 0 3px var(--gold);
}

.appointment-calendar thead th span,
.appointment-calendar thead th small,
.calendar-time strong,
.calendar-time small {
    display: block;
}

.appointment-calendar thead th small,
.calendar-time small {
    color: var(--muted);
    font-weight: 400;
}

.calendar-slot {
    display: flex;
    min-height: 105px;
    padding: 11px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 10px;
    line-height: 1.55;
}

.calendar-slot strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-slot small {
    max-width: 100%;
    color: var(--muted);
}

.calendar-slot a {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
}

.calendar-slot.available {
    align-items: center;
    border: 1px dashed #b9d7ca;
    color: #428268;
    background: #f4fbf7;
}

.calendar-slot.available:hover {
    transform: translateY(-2px);
    border-color: #70ad91;
    box-shadow: 0 8px 18px rgba(54, 116, 88, .08);
}

.calendar-slot.owned {
    border-color: #b7d6d3;
    background: linear-gradient(145deg, #edf7f5, #f8fbfb);
}

.calendar-slot.reserved {
    align-items: center;
    text-align: center;
    border-color: #e2e9e8;
    background: #f5f7f7;
    color: #718684;
}

.calendar-slot.blocked {
    align-items: center;
    text-align: center;
    border-color: #ebdec0;
    background: #fbf7ed;
    color: #9b792f;
}

.calendar-slot.past {
    align-items: center;
    color: #acb8b7;
    background: repeating-linear-gradient(-45deg, #fafbfb, #fafbfb 5px, #f6f8f7 5px, #f6f8f7 10px);
}

.busy-lock {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 3px;
    place-items: center;
    border-radius: 50%;
    color: #829391;
    background: #e7eceb;
}

.busy-lock .icon {
    width: 15px;
    height: 15px;
}

.inline-form {
    margin-top: 4px;
}

.appointment-block-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 18px;
}

.appointment-block-form {
    display: grid;
    width: min(760px, 72%);
    grid-template-columns: 1fr 1fr 1.4fr auto;
    align-items: end;
    gap: 10px;
}

.appointment-block-form .field {
    margin: 0;
}

.appointment-form-panel {
    margin-inline: auto;
}

.appointment-form-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #d9e8e4;
    border-radius: 11px;
    color: var(--deep);
    background: #f1f8f6;
}

.appointment-form-intro > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #fff;
    background: var(--teal);
}

.appointment-form-intro p {
    color: var(--muted);
    font-size: 11px;
}

.appointment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.appointment-form-footer p {
    display: flex;
    max-width: 540px;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.appointment-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 18px;
    margin-bottom: 18px;
}

.appointment-detail-grid.secondary-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
}

.appointment-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.appointment-detail-head span {
    color: var(--muted);
    font-size: 10px;
}

.appointment-detail-head h2 {
    margin: 2px 0 4px;
    font-size: 21px;
}

.appointment-detail-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.appointment-side > h2,
.secondary-grid h2 {
    margin-bottom: 5px;
}

.appointment-send-steps {
    display: grid;
    gap: 9px;
    margin: 17px 0;
}

.appointment-send-steps > span {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 8px;
}

.appointment-send-steps b {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--gold);
    font-size: 10px;
}

.map-card {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fbfa;
}

.map-card:hover {
    transform: translateY(-2px);
    border-color: #bfd5d0;
    box-shadow: 0 8px 20px rgba(16, 69, 74, .06);
}

.map-card > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--teal);
}

.map-card small {
    display: block;
    color: var(--muted);
}

.appointment-notes {
    min-height: 64px;
    margin: 12px 0;
    padding: 14px;
    border-radius: 9px;
    background: var(--surface);
}

.appointment-status-form {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-top: 12px;
}

.appointment-status-form .field {
    flex: 1;
    margin: 0;
}

.cancel-appointment-form {
    padding-top: 10px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
}

.appointment-export {
    min-height: 100vh;
    padding: 30px 15px 60px;
    background: #e9efed;
}

.appointment-export-actions {
    display: flex;
    width: 210mm;
    max-width: 100%;
    justify-content: flex-end;
    gap: 9px;
    margin: 0 auto 15px;
}

.appointment-paper {
    position: relative;
    display: flex;
    width: 210mm;
    min-height: 297mm;
    max-width: 100%;
    padding: 15mm;
    flex-direction: column;
    margin: 0 auto;
    overflow: hidden;
    color: #173c40;
    background: #fff;
    box-shadow: 0 18px 60px rgba(16, 69, 74, .13);
}

.appointment-paper::before {
    content: "";
    position: absolute;
    top: -38mm;
    inset-inline-end: -35mm;
    width: 90mm;
    height: 90mm;
    border: 18mm solid rgba(16, 101, 108, .035);
    border-radius: 50%;
}

.appointment-paper-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 7mm;
    border-bottom: .5mm solid var(--gold);
}

.appointment-paper-head img {
    width: 34mm;
    height: auto;
}

.appointment-paper-head > div {
    display: grid;
    justify-items: end;
    color: var(--deep);
}

.appointment-paper-head span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.appointment-paper-head strong {
    font-size: 13px;
}

.appointment-paper-title {
    padding: 12mm 0 8mm;
    text-align: center;
}

.appointment-paper-title small {
    color: var(--gold);
}

.appointment-paper-title h1 {
    margin: 2mm 0 0;
    color: var(--deep);
    font-size: 27px;
}

.appointment-paper-title p {
    color: var(--muted);
}

.appointment-paper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
}

.appointment-paper-grid > div {
    min-height: 21mm;
    padding: 4mm;
    border: .3mm solid #dce7e4;
    border-radius: 2mm;
    background: #fbfdfc;
}

.appointment-paper-grid > div.wide {
    grid-column: 1 / -1;
    min-height: 17mm;
}

.appointment-paper-grid small,
.appointment-location small {
    display: block;
    margin-bottom: 1mm;
    color: var(--muted);
    font-size: 9px;
}

.appointment-paper-grid strong {
    font-size: 13px;
}

.appointment-location {
    display: grid;
    grid-template-columns: 1fr 31mm;
    align-items: center;
    gap: 7mm;
    padding: 5mm;
    margin-top: 5mm;
    border-radius: 3mm;
    background: #edf5f3;
}

.appointment-location h2 {
    font-size: 15px;
}

.appointment-location p {
    max-width: 120mm;
    margin: 1mm 0 2mm;
    line-height: 1.55;
}

.appointment-location a {
    font-size: 10px;
    font-weight: 700;
}

.appointment-location img {
    width: 31mm;
    height: 31mm;
    padding: 2mm;
    border-radius: 2mm;
    background: #fff;
}

.appointment-reminder {
    padding: 3.5mm 5mm;
    margin-top: 5mm;
    border-inline-start: 1mm solid var(--gold);
    background: #fbf8ef;
}

.appointment-reminder p {
    font-size: 10px;
}

.appointment-paper footer {
    display: flex;
    justify-content: space-between;
    padding-top: 4mm;
    margin-top: auto;
    border-top: .3mm solid #dce7e4;
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 1000px) {
    .appointment-summary {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-summary article:last-child {
        grid-column: 1 / -1;
    }

    .calendar-toolbar, .appointment-block-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-block-form {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .appointment-detail-grid,
    .appointment-detail-grid.secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .appointment-summary {
        grid-template-columns: 1fr;
    }

    .appointment-summary article:last-child {
        grid-column: auto;
    }

    .appointment-summary article {
        min-height: 95px;
        padding: 15px 17px;
    }

    .calendar-toolbar {
        padding: 13px;
    }

    .calendar-toolbar > div:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .calendar-toolbar > div:first-child .btn:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .calendar-legend {
        justify-content: center;
    }

    .appointment-calendar {
        min-width: 920px;
    }

    .calendar-slot {
        min-height: 95px;
    }

    .appointment-block-form {
        grid-template-columns: 1fr;
    }

    .appointment-form-footer,
    .appointment-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-form-footer .btn,
    .appointment-status-form .btn {
        width: 100%;
    }

    .appointment-paper {
        min-height: 0;
        padding: 18px;
    }

    .appointment-paper-head img {
        width: 90px;
    }

    .appointment-paper-title {
        padding: 28px 0 20px;
    }

    .appointment-paper-title h1 {
        font-size: 21px;
    }

    .appointment-paper-grid {
        grid-template-columns: 1fr;
    }

    .appointment-paper-grid > div.wide {
        grid-column: auto;
    }

    .appointment-location {
        grid-template-columns: 1fr 90px;
    }

    .appointment-paper footer {
        gap: 8px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: #fff;
    }

    .sidebar, .topbar, .page-heading, .page-footer, .alert, .appointment-export-actions {
        display: none !important;
    }

    .main-shell, .content {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .contract-preview {
        display: block;
    }

    .contract-page {
        width: 210mm;
        height: 297mm;
        min-height: 0;
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 13mm;
        break-after: page;
    }

    .contract-page:last-child {
        break-after: auto;
    }

    .contract-page td, .contract-page th {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .appointment-export {
        min-height: 0;
        padding: 0;
        background: #fff;
    }

    .appointment-paper {
        width: 210mm;
        height: 297mm;
        min-height: 0;
        padding: 15mm;
        border: 0;
        box-shadow: none;
        break-after: auto;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

}
