.city-manager-page {
    gap: 0;
}

.city-manager-content {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.city-manager-toolbar,
.city-manager-filter-row,
.city-manager-panel-action-row,
.city-manager-summary-row,
.city-manager-summary-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.city-manager-toolbar {
    justify-content: space-between;
    gap: 10px;
}

.city-manager-panel-action-row {
    justify-content: flex-end;
}

.city-manager-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.city-manager-content-tabs {
    margin-left: 0;
}

.city-manager-content-tabs .nav-link {
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 40px;
}

.city-manager-tab-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.city-manager-filter-row .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.city-manager-summary-row {
    justify-content: space-between;
    min-height: 24px;
}

.city-manager-table-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
}

.city-manager-table {
    font-size: 12px;
}

.city-manager-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #DADADA;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.city-manager-table td {
    vertical-align: middle;
}

.city-manager-meet-times-table {
    min-width: 720px;
}

.city-manager-meet-times-table > thead > tr > th:not(.meet-time-type-col),
.city-manager-meet-times-table > tbody > tr > td:not(.meet-time-type-col) {
    text-align: center !important;
}

.meet-time-value-col,
.meet-time-deadline-col {
    width: 25%;
    min-width: 190px;
}

.meet-time-type-col {
    width: 18%;
    min-width: 128px;
}

.meet-time-spots-col {
    width: 80px;
    min-width: 80px;
}

.meet-time-actions-col {
    width: 176px;
    min-width: 176px;
    white-space: nowrap;
}

.meet-time-deadline-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.meet-time-deadline-edit-icon {
    color: var(--bs-body-color);
}

.meet-time-deadline-edit-icon:hover,
.meet-time-deadline-edit-icon:focus {
    color: var(--bs-primary);
}

.update-meet-time-details {
    margin: 0;
    padding-left: 1.25rem;
}

.update-meet-time-details li {
    margin-bottom: 0.5rem;
}

.update-meet-time-details li:last-child {
    margin-bottom: 0;
}

.update-meet-time-detail-label {
    font-weight: 600;
}

.update-meet-time-detail-value {
    overflow-wrap: anywhere;
}

.city-meet-time-rules-table {
    min-width: 960px;
}

.meet-time-rule-id-col,
.meet-time-rule-weekly-col,
.meet-time-rule-day-col,
.meet-time-rule-value-col,
.meet-time-rule-deadline-col,
.meet-time-rule-available-col {
    min-width: 112px;
}

.meet-time-rule-actions-col {
    width: 96px;
    min-width: 96px;
}

.city-settings-table {
    min-width: 1600px;
}

.city-setting-actions-col {
    width: 64px;
    min-width: 64px;
}

.city-setting-country-col,
.city-setting-name-col {
    min-width: 150px;
}

.city-setting-id-col,
.city-setting-status-col,
.city-setting-lang-col {
    width: 86px;
    min-width: 86px;
}

.city-setting-districts-col,
.city-setting-timezone-col,
.city-setting-support-col,
.city-setting-promo-col {
    min-width: 150px;
}

.city-setting-gateway-col {
    min-width: 178px;
}

.city-setting-available-col {
    min-width: 112px;
}

.city-setting-presale-col {
    width: 86px;
    min-width: 86px;
}

.city-setting-number-col {
    width: 104px;
    min-width: 104px;
}

.city-setting-text-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-manager-status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #cfcfcf;
    background: #f1f1f1;
    color: #000;
    line-height: 1.2;
}

.city-manager-status-tag.enabled {
    background: #d9f2df;
    border-color: #a8d8b2;
}

.city-manager-status-tag.disabled {
    background: #f8e0e0;
    border-color: #e6b0b0;
}

.city-manager-empty-state {
    height: 140px;
}

.city-meet-type-options {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.city-meet-type-option {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    border-radius: 0.25rem;
}

.city-meet-type-option:hover {
    background-color: var(--bs-tertiary-bg);
}

.city-meet-type-option .form-check-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    width: 100%;
    cursor: pointer;
}

.city-meet-type-name {
    font-weight: 600;
}

.city-meet-type-locales {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.city-settings-offcanvas {
    --bs-offcanvas-width: min(520px, 100vw);
}

.city-settings-offcanvas .form-label {
    margin-bottom: 4px;
}

.city-timezone-picker {
    position: relative;
}

.city-timezone-combobox {
    display: flex;
    align-items: stretch;
}

.city-timezone-combobox .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.city-timezone-toggle {
    width: 42px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.city-timezone-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.city-timezone-option {
    width: 100%;
    display: block;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    color: #111;
}

.city-timezone-option:hover,
.city-timezone-option.is-active {
    background: #f0f4ff;
}

.city-timezone-option-main {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.city-timezone-option-meta {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
    color: #666;
}

.city-timezone-empty {
    padding: 12px 10px;
    color: #666;
    font-size: 12px;
}

.city-timezone-picker .invalid-feedback {
    display: none;
}

.city-timezone-picker.is-invalid .invalid-feedback {
    display: block;
}

@media (max-width: 768px) {
    .city-manager-toolbar,
    .city-manager-filter-row,
    .city-manager-panel-action-row,
    .city-manager-summary-row {
        align-items: stretch;
    }

    .city-manager-toolbar-left,
    .city-manager-filter-row > *,
    .city-manager-panel-action-row > *,
    .city-manager-summary-left {
        flex: 1 1 100%;
    }

    .city-manager-content-tabs,
    .city-manager-content-tabs .nav-item,
    .city-manager-content-tabs .nav-link {
        width: 100%;
    }
}

/* Meeting workspace follows the shared compact CRM controls. */
.session-confirmation { white-space: pre-wrap; line-height: 1.8; }
.country-tree-table { min-width: 680px; font-size: 12px; }
.country-tree-table th { background: #DADADA; }
.country-tree-table .city-image-status-table { width: 100%; border-collapse: collapse; }
.country-tree-table .city-image-status-table th,
.country-tree-table .city-image-status-table td { padding: 3px 8px; border: 1px solid #dee2e6; white-space: nowrap; }
.country-tree-table .city-image-status-table th { background: #f8f9fa; font-weight: 400; }
.country-tree-table .country-tree-level-1 { padding-left: 30px; }
.country-tree-table .country-tree-level-2 { padding-left: 58px; }
/* Match notification.html country/city selectors without changing other filters. */
#meetingScope .form-select.w-auto {
    width: auto !important;
    min-width: fit-content;
    max-width: none;
}
#workspaceLocaleEditor .theme-table-locales-col { width: auto; }
#workspaceLocaleEditor .theme-table-locales-table { min-width: 580px; }
body[data-workspace="meetings"] .city-meet-types-table { min-width: 740px; }
body[data-workspace="meetings"] .theme-table-type-col { width: 30%; white-space: normal; }
body[data-workspace="meetings"] .theme-table-actions-col { width: 180px; }

.country-settings-search {
    width: auto;
}

.country-settings-search input {
    box-shadow: none;
}

.city-image-previews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.city-image-previews[hidden] {
    display: none;
}

.city-image-preview-frame {
    min-height: 160px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: #f1f1f1;
    overflow: hidden;
}

.city-image-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 480px) {
    .city-image-previews {
        grid-template-columns: minmax(0, 1fr);
    }
}

.city-image-upload-hint { grid-column: 1 / -1; }
.meet-time-signups-col { min-width: 80px; }
.meet-time-status-col { min-width: 105px; }

/* Full-page session creation; keep the CRM header and sidebar. */
.session-create-page { overflow-y: auto; padding: 4px 0 24px; }
.session-create-page[hidden], .session-create-page [hidden], #cityManagerContent[hidden] { display: none !important; }
.session-create-header { border-bottom: 1px solid #dee2e6; padding-bottom: 12px; margin-bottom: 16px; }
.session-create-header h1 { font-size: 24px; font-weight: 700; }
.session-create-header p { color: #6c757d; margin: 0; }
.session-create-steps { display: flex; list-style: none; gap: 24px; padding: 0; margin: 18px 0; }
.session-create-steps li { display: flex; align-items: center; gap: 10px; flex: 1; color: #6c757d; }
.session-create-steps li:first-child::after { content: ''; height: 1px; background: #dee2e6; flex: 1; margin-left: 16px; }
.session-create-steps b { border: 1px solid #adb5bd; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.session-create-steps [aria-current=step] { color: #3a6fac; font-weight: 700; }
.session-create-steps [aria-current=step] b { background: #3a6fac; color: white; border-color: #3a6fac; }
.session-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.session-create-panel { border: 1px solid #ced4da; background: white; min-width: 0; }
.session-create-panel h2 { margin: 0; padding: 14px 16px; border-bottom: 1px solid #dee2e6; font-size: 16px; font-weight: 700; }
.session-create-fields { padding: 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.session-field-full { grid-column: 1 / -1; }
.session-fixed-setting { padding: 4px 0; }
.city-scope-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.city-scope-tag { display: inline-block; padding: 4px 10px; border: 1px solid #ced4da; border-radius: 12px; background: #f1f1f1; color: #495057; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.session-validation { padding: 12px; border: 1px solid #dee2e6; background: #f8f9fa; }
.session-validation ul { margin: 6px 0 0; padding-left: 20px; }
.session-validation li { margin-bottom: 4px; }
.session-copy-preview { padding: 16px; overflow-wrap: anywhere; }
.session-copy-preview h3 { font-size: 18px; font-weight: 700; }
.session-copy-locale { border-bottom: 1px dashed #adb5bd; padding: 12px 0; }
.session-copy-locale p { margin: 6px 0 0; white-space: pre-wrap; }
.session-create-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px; border: 1px solid #ced4da; border-top: 0; background: white; }
#meetTimeForm[data-step="1"] .session-create-actions { margin-right: 318px; }
@media (max-width: 991.98px) {
    .session-create-layout { grid-template-columns: minmax(0, 1fr); }
    #meetTimeForm[data-step="1"] .session-create-actions { margin-right: 0; }
}
@media (max-width: 575.98px) {
    .session-create-fields { grid-template-columns: minmax(0, 1fr); }
    .session-create-steps { gap: 12px; }
    .session-create-steps li:first-child::after { display: none; }
}
.session-create-fields label[for]::after { content: ' *'; }

/* Theme basics share a row; category artwork and language cards span the modal. */
.theme-editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
}
.theme-editor-body > :not(.theme-editor-half) { grid-column: 1 / -1; }
@media (max-width: 575px) {
    .theme-editor-body { grid-template-columns: minmax(0, 1fr); }
}

#meetTypeModal .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
#meetTypeModal .modal-header,
#meetTypeModal .modal-footer { flex-shrink: 0; }
#meetTypeModal .theme-editor-body { overflow-y: auto; }
#workspaceLocaleEditor textarea { height: 100px; min-height: 80px; resize: vertical; }
.theme-editor-body .theme-table-category-field { grid-template-columns: minmax(0, 1fr); }

#workspaceLocaleEditor .inline-locale-remove {
    height: 24px;
    min-height: 24px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 18px;
}

/* City settings use a wide, scrollable dialog with independent image sections. */
.city-settings-modal .modal-dialog { max-width: 960px; }
.city-settings-modal .modal-content { max-height: 100%; }
.city-settings-modal form { display: flex; flex-direction: column; overflow: hidden; }
.city-settings-modal .modal-body { padding: 20px; }
.city-settings-modal .form-label { font-weight: 600; }
.city-settings-modal .city-image-previews { grid-template-columns: minmax(0, 1fr); }
.city-image-section { grid-column: 1 / -1; border: 1px solid #dee2e6; border-radius: 6px; }
.city-image-section summary { padding: 12px 16px; background: #f8f9fa; cursor: pointer; font-weight: 600; }
.city-image-section-content { padding: 16px; }
@media (max-width: 575px) {
    .city-settings-modal .modal-body { padding: 12px; }
    .city-image-section-content { grid-template-columns: minmax(0, 1fr); }
}

.city-editor-page { overflow-y: auto; padding: 4px 0 24px; }
.city-editor-page[hidden] { display: none !important; }
.city-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dee2e6; padding-bottom: 12px; margin-bottom: 20px; }
.city-editor-header h1 { font-size: 24px; font-weight: 700; margin: 0; }
.city-editor-page .form-label { font-weight: 600; }
.city-editor-page .city-availability-field .form-select { max-width: 320px; }
.city-editor-page .city-image-previews {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    align-items: start;
    overflow-x: auto;
    padding-bottom: 8px;
}
.city-editor-page .city-image-section { grid-column: auto; min-width: 0; }
.city-editor-page .modal-footer { gap: 8px; margin-top: 20px; padding: 16px 0; border-top: 1px solid #dee2e6; }
.city-image-section summary { position: relative; padding-right: 112px; }
.city-image-state { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.city-editor-page .city-image-preview-frame { height: 280px; }
.city-editor-page .modal-body { padding: 0 4px; }

.city-country-expand-link {
    padding: 0;
    border: 0;
    background: none;
    color: #6c757d;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.city-country-expand-link:hover { color: #495057; }

#meetTypeDiscountableGroup > legend.form-label {
    float: none;
    font-size: inherit;
    font-weight: inherit;
}

.country-language-row .country-language-field { min-width: 0; flex: 1 1 0; }
.country-language-row .form-control { min-width: 0; }
