main > .container,
.app-content {
    padding: 24px 32px 32px;
}

.app-body {
    margin: 0;
    background: #f4f6f9;
    color: #1f2937;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-sidebar__brand {
    padding: 18px 16px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.app-sidebar__brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 6px 8px;
    margin: -6px -8px;
    transition: background-color 0.15s ease;
}

.app-sidebar__brand-link:hover {
    text-decoration: none;
    background: #f9fafb;
}

.app-sidebar__brand-mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.app-sidebar__brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.01em;
}

.app-sidebar__brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6366f1;
}

.app-sidebar__menu {
    flex: 1;
    padding: 0 12px 20px;
}

.app-sidebar__group-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 16px 12px 8px;
}

.app-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-sidebar__nav-link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
}

.app-sidebar__nav-link:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.app-sidebar__nav-item.is-active .app-sidebar__nav-link {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.app-sidebar__footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

.app-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.app-sidebar__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.app-sidebar__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-sidebar__user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar__user-role {
    font-size: 0.75rem;
    color: #9ca3af;
}

.app-sidebar__logout .btn-link {
    color: #6b7280;
    font-size: 0.85rem;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    width: 100%;
    max-width: none;
}

.app-footer {
    padding: 12px 32px 20px;
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .app-content {
        padding: 16px;
    }
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.camp-year__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.camp-year__item {
    width: calc(25% - 20px);
    border: 2px solid #6e6ef8;
    padding: 60px 0;
    text-align: center;
    font-size: 25px;
}

a.camp-year__item:hover {
    background-color: #6e6ef8;
    color: white;
}

.camp-list__item {
    font-size: 22px;
}

.table          {
    overflow: auto; height: 100px;
}
.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.messages {
    width: 100%;
    margin: 15px auto;
    padding: 0 15px;
    max-width: 600px;
    display: flex;
}
.messages .message {
    padding: 10px 15px;
    color: #fff;
    text-align: left;
    background: 9px 10px no-repeat #343a40;
    width: 100%;
}

.camp-list__wrapper {
    width: 2500px;
}

.email__list-wrapper {
    display: flex;
    max-width: 600px;
}
.email__list {
    padding: 10px;
    background-color: #efefef;
    border-radius: 5px;
    word-break: break-all;
}

.js-copy {
    margin: 10px;
}

.service-invoice__item {
    margin-top: 10px;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    color: #9d00ff;
}
.invoice__item {
    flex: 1;
}

.invoice__col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.preview__head {
    display: flex;
    width: 100%;
    max-width: 800px;
    justify-content: space-between;
    padding: 10px 5px;
    background-color: #e9ecef;
    margin-bottom: 40px;
    align-items: center;
}

.pdf-download {
    display: block;
    padding-left: 20px;
    margin: 20px 0;
    background-repeat: no-repeat;
    background-position: 0 center;
    background-image: url("/images/pdf.png");
}

.row__deleted, .row__deleted td {
    background-color: #ff9e9e !important;
}


.copy__me {
    display: inline-block;
}

.copy__me:after {
    content: "";
    width: 25px;
    height: 25px;
    background-image: url("/images/copy.png");
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    background-size: contain;
    vertical-align: text-bottom;
    cursor: pointer;
    margin-left: 10px;
}

.poast {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 260px;
    min-height: 120px;
    border-radius: 5px;
    background-color: #e0fdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px #c7c7c7;
    z-index: 1000001;
    color: #444;
}

.toast__content {
    padding: 10px 20px;
}

.stripe-link {
    padding: 20px;
    margin: 20px;
    background: #87d991;
    border-radius: 5px;
}

.get-stripe-link img {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.post-search form {
    display: flex;
    max-width: 500px;
    margin: 20px 0;
    justify-content: space-between;
    align-items: center;
}

.post-search form .form-group {
    margin: 0;
    flex: 1;
}
.post-search form button {
    margin: 0 10px;
}


.sticky-col {
    position: sticky;
    left: 0;
}

tr:nth-child(odd) td {
    background: #fff;
}

tr:nth-child(even) td {
    background: #edf2f7;
}

.table .table-danger td {
    background-color: #ed7f89;
}

.package-index .package-dates-col {
    min-width: 260px;
    vertical-align: top;
}

.package-index .package-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.package-index .package-dates .date-item {
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.package-index .package-dates .date-item a {
    display: block;
    text-decoration: none;
}

.package-index .package-dates .date-item--add {
    background-color: #f8f9fa;
    border-style: dashed;
    text-align: center;
}

.package-index .package-dates .date-item--add a {
    color: #6c757d;
}

/* Program view (package/view) */
.program-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.program-view__header {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.program-view__back {
    display: inline-block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-decoration: none;
}

.program-view__back:hover {
    color: #4338ca;
    text-decoration: none;
}

.program-view__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.program-view__title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.program-view__heading {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.program-view__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-view__badge--draft {
    background: #d1fae5;
    color: #047857;
}

.program-view__badge--published {
    background: #dbeafe;
    color: #1d4ed8;
}

.program-view__badge--archived {
    background: #fee2e2;
    color: #b91c1c;
}

.program-view__top-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.program-view__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.program-view__aside {
    position: sticky;
    top: 24px;
}

.program-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.program-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.program-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.program-section__status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.program-section__status--ok {
    background: #d1fae5;
    color: #047857;
}

.program-section__status--warn {
    background: #fef3c7;
    color: #b45309;
}

.program-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.program-section__count {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-section__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.program-section__body {
    padding: 20px;
}

.program-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px 24px;
    margin: 0;
}

.program-info-grid__item dt {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 4px;
}

.program-info-grid__item dd {
    margin: 0;
    font-size: 0.92rem;
    color: #111827;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

.program-list-item--dragging {
    opacity: 0.92;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    background: #fff;
}

body.program-list--is-sorting {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

body.program-list--is-sorting .program-list-item__drag {
    cursor: grabbing;
}

.program-list-item--drag-over {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.program-list-item__drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.program-list-item__drag:active {
    cursor: grabbing;
}

.program-list-item__drag span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 6px 0 currentColor,
        0 12px 0 currentColor,
        6px 0 0 currentColor,
        6px 6px 0 currentColor,
        6px 12px 0 currentColor;
}

.program-list--sortable .program-list-item__drag {
    cursor: grab;
}

.program-list-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0e7ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-list-item__content {
    flex: 1;
    min-width: 0;
}

.program-list-item__title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.program-list-item__subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.program-list-item__meta {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.program-list-item__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.program-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.program-date-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #fafafa;
}

.program-date-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.program-date-card__period {
    font-weight: 600;
    font-size: 0.95rem;
}

.program-date-card__meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.program-date-card__badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.program-date-card__badge--available {
    background: #d1fae5;
    color: #047857;
}

.program-date-card__badge--full {
    background: #fee2e2;
    color: #b91c1c;
}

.program-date-card__badge--hidden {
    background: #f3f4f6;
    color: #6b7280;
}

.program-date-card__actions {
    display: flex;
    gap: 8px;
}

.program-actions-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.program-actions-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.program-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.program-actions-list li + li {
    margin-top: 4px;
}

.program-actions-list a,
.program-actions-list button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9rem;
}

.program-actions-list a:hover,
.program-actions-list button:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #111827;
}

.program-actions-list__danger,
.program-actions-list__danger:hover {
    color: #dc2626 !important;
}

.program-add-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.program-add-panel summary {
    cursor: pointer;
    color: #4338ca;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
}

.program-add-panel summary::-webkit-details-marker {
    display: none;
}

.program-add-panel__body {
    margin-top: 16px;
}

.program-country-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-country-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin: 0;
}

.program-country-service__content {
    flex: 1 1 auto;
    min-width: 0;
}

.program-country-service__title {
    font-weight: 600;
    color: #111827;
    font-size: 0.92rem;
}

.program-country-service__subtitle,
.program-country-service__meta {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 2px;
}

.program-country-service__price {
    flex: 0 0 120px;
}

.program-country-service__actions {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .program-country-service {
        flex-wrap: wrap;
    }

    .program-country-service__price {
        flex: 1 1 120px;
    }
}

.program-template-search {
    position: relative;
    max-width: 420px;
}

.program-template-search__results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
}

.program-empty {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.country-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.country-flag--tab {
    width: 16px;
    height: 12px;
}

.bookings-stack__flag .country-flag {
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .program-view {
        grid-template-columns: 1fr;
    }

    .program-view__aside {
        position: static;
    }
}

/* Bookings page */
.bookings-page {
    display: flex;
    gap: 0;
    align-items: flex-start;
    min-height: calc(100vh - 48px);
    margin: -8px -8px 0;
}

.bookings-page__main {
    flex: 1;
    min-width: 0;
    padding: 8px 8px 24px 0;
}

.bookings-page.has-panel-open .bookings-page__main {
    padding-right: 16px;
}

.bookings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.bookings-header__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.bookings-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bookings-search {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bookings-search__field {
    flex: 1;
    margin: 0;
    max-width: 520px;
}

.bookings-search__field .form-group {
    margin-bottom: 0;
}

.bookings-country-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bookings-country-tabs__item {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    text-decoration: none;
}

.bookings-country-tabs__item:hover {
    text-decoration: none;
    border-color: #c7d2fe;
    color: #111827;
}

.bookings-country-tabs__item.is-active {
    background: #eef2ff;
    border-color: #818cf8;
    color: #4338ca;
    font-weight: 600;
}

.bookings-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.bookings-filter-row__item {
    margin: 0;
    min-width: 140px;
}

.bookings-filter-row__item--dates {
    min-width: 280px;
    flex: 1 1 280px;
}

.bookings-filter-row__item .form-group {
    margin-bottom: 0;
}

.bookings-filter-row__item--checkbox {
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    font-size: 0.875rem;
    color: #374151;
}

.bookings-filter-row__item--checkbox input {
    margin: 0;
}

.bookings-filter-row__item--checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.bookings-filter-row__apply {
    margin-bottom: 0;
}

.bookings-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: auto;
}

.bookings-table {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
}

.bookings-table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
    padding: 12px 14px;
}

.bookings-table tbody td {
    padding: 14px;
    vertical-align: top;
    border-top: 1px solid #f3f4f6;
}

.bookings-table__row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bookings-table__row:hover,
.bookings-table__row.is-selected {
    background: #f8fafc;
}

.bookings-table__row.is-selected {
    box-shadow: inset 3px 0 0 #6366f1;
}

.bookings-table__check {
    width: 36px;
}

.bookings-table__id {
    color: #6b7280;
    white-space: nowrap;
}

.bookings-table__date {
    white-space: nowrap;
    color: #6b7280;
}

.bookings-table__empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 16px !important;
}

.bookings-table__menu-btn {
    color: #6b7280;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 6px;
}

.bookings-dropdown {
    position: relative;
}

.bookings-dropdown .dropdown-menu.show {
    display: block;
    z-index: 1050;
}

.bookings-student {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.bookings-student__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.bookings-student__name {
    font-weight: 600;
    color: #111827;
}

.bookings-student__meta,
.bookings-student__country {
    font-size: 0.78rem;
    color: #6b7280;
}

.bookings-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.bookings-stack__item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.bookings-stack__item--plain {
    color: #374151;
}

.bookings-stack__flag {
    flex-shrink: 0;
}

.bookings-stack__muted {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 400;
}

.bookings-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.bookings-badge--new {
    background: #fef3c7;
    color: #b45309;
}

.bookings-badge--unpaid {
    background: #fee2e2;
    color: #b91c1c;
}

.bookings-badge--deposit {
    background: #dbeafe;
    color: #1d4ed8;
}

.bookings-badge--paid {
    background: #d1fae5;
    color: #047857;
}

.bookings-badge--overdue {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #7f1d1d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.3;
}

.bookings-badge--agreed {
    background: #d1fae5;
    color: #047857;
}

.bookings-payment strong {
    display: block;
    color: #111827;
}

.bookings-payment__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.3;
}

.bookings-payment__status {
    font-size: 0.78rem;
}

.bookings-payment__status.is-paid {
    color: #047857;
}

.bookings-payment__status.is-unpaid {
    color: #b91c1c;
}

.bookings-group {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 0.78rem;
}

.bookings-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 0.85rem;
}

.booking-panel {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    min-height: calc(100vh - 48px);
    position: sticky;
    top: 0;
    display: none;
    flex-direction: column;
    padding: 20px 18px;
    overflow-y: auto;
}

.bookings-page.has-panel-open .booking-panel {
    display: flex;
}

.booking-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.booking-panel__id {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.booking-panel__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #9ca3af;
    padding: 0;
    cursor: pointer;
}

.booking-panel__student {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.booking-panel__agree {
    margin: -8px 0 16px;
}

.booking-panel__section {
    margin-bottom: 18px;
}

.booking-panel__section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 10px;
}

.booking-panel__program + .booking-panel__program {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.booking-panel__muted {
    color: #6b7280;
    font-size: 0.82rem;
    margin-top: 2px;
}

.booking-panel__dl {
    margin: 0;
}

.booking-panel__dl dt {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

.booking-panel__dl dt:first-child {
    margin-top: 0;
}

.booking-panel__dl dd {
    margin: 2px 0 0;
    color: #111827;
    font-size: 0.88rem;
}

.booking-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.booking-panel__notes {
    white-space: pre-wrap;
    font-size: 0.84rem;
    color: #374151;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
}

@media (max-width: 1200px) {
    .bookings-page {
        flex-direction: column;
    }

    .booking-panel {
        width: 100%;
        min-height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* Dashboard */
.dashboard-page {
    max-width: 760px;
}

.dashboard-page__header {
    margin-bottom: 28px;
}

.dashboard-page__title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-page__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.dashboard-current-year {
    margin-bottom: 32px;
}

.dashboard-current-year__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 10px;
}

.dashboard-current-year__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-current-year__card:hover {
    text-decoration: none;
    color: #111827;
    transform: translateY(-1px);
    border-color: #818cf8;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}

.dashboard-current-year__year {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-current-year__meta {
    color: #6b7280;
    font-size: 0.92rem;
}

.dashboard-current-year__action {
    font-weight: 600;
    color: #4338ca;
    white-space: nowrap;
}

.dashboard-other-years__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.dashboard-other-years__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-other-years__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    color: #374151;
    text-decoration: none;
    border-top: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.dashboard-other-years__list li:first-child .dashboard-other-years__item {
    border-top: none;
}

.dashboard-other-years__item:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #111827;
}

.dashboard-other-years__name {
    font-weight: 500;
}

.dashboard-other-years__arrow {
    color: #9ca3af;
}

.invoice-program-picker {
    margin-top: 8px;
}

.invoice-program-picker__camp {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
}

.invoice-program-picker__camp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.invoice-program-picker__camp-name {
    color: #6b7280;
    font-weight: 500;
}

.country-flag--picker {
    width: 20px;
    height: 14px;
}

.invoice-program-picker__package {
    padding: 12px 16px 8px;
    border-top: 1px solid #f3f4f6;
}

.invoice-program-picker__package-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    padding-left: 4px;
}

.invoice-program-picker__package-title .invoice-program-picker__hint {
    font-weight: 400;
}

.invoice-program-picker__camp .invoice-program-picker__package:first-of-type {
    border-top: none;
}

.invoice-program-picker__option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.invoice-program-picker__option.is-disabled {
    opacity: 0.65;
}

.invoice-program-picker__option.is-disabled .invoice-program-picker__label {
    color: #6b7280;
}

.invoice-program-picker__checkbox {
    margin-top: 3px;
    flex-shrink: 0;
}

.invoice-program-picker__label {
    margin: 0;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.invoice-program-picker__option.is-disabled .invoice-program-picker__label {
    cursor: not-allowed;
}

.invoice-program-picker__hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: #9ca3af;
}

.invoice-program-picker__dates {
    margin: 4px 0 8px 24px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.invoice-program-picker__dates .invoice-program-picker__label {
    font-weight: 500;
}

.invoice-program-picker__dates--empty {
    margin-left: 24px;
    font-size: 0.9rem;
    padding-bottom: 4px;
}

.service-bg-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.service-bg-picker__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-bg-picker__item {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.service-bg-picker__preview {
    display: flex;
    align-items: flex-end;
    min-height: 88px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #63C2EF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-bg-picker__preview--empty,
.service-bg-picker__preview--legacy {
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    background-image: none;
}

.service-bg-picker__label {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    text-align: center;
    word-break: break-word;
}

.service-bg-picker__preview--empty .service-bg-picker__label,
.service-bg-picker__preview--legacy .service-bg-picker__label {
    color: #6b7280;
    background: none;
}

.service-bg-picker__input:checked + .service-bg-picker__preview {
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

.service-bg-picker__input:focus-visible + .service-bg-picker__preview {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
}

.package-previous-search {
    margin: -8px 0 20px;
}

.package-previous-search__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.package-previous-search__card-title {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.package-previous-search__services {
    margin: 0;
    padding-left: 18px;
    color: #374151;
    font-size: 0.9rem;
}

.package-previous-search__services li + li {
    margin-top: 4px;
}