* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2a44;
}

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

.sidebar {
    width: 260px;
    background: #232f7a;
    color: #ffffff;
    padding: 24px 18px;
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-brand img {
    max-width: 180px;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    transition: 0.2s;
}

.sidebar-nav a:hover {
    background: #5e7f54;
}

.main-content {
    flex: 1;
    padding: 32px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f5f7, #e8ebf2);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.login-card h1 {
    color: #232f7a;
    margin-bottom: 8px;
}

.login-card p {
    color: #687086;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form input {
    padding: 14px 16px;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    font-size: 15px;
}

.login-form button {
    background: #232f7a;
    color: #ffffff;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
}

.login-form button:hover {
    background: #5e7f54;
}

.alert {
    background: #fde8e8;
    color: #9b1c1c;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 30px;
    color: #232f7a;
    margin-bottom: 8px;
}

.page-header p {
    color: #687086;
}

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

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

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.stat-card h3 {
    color: #5e7f54;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #232f7a;
}

.content-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.dashboard-section {
    margin-top: 24px;
}

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

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.primary-btn {
    background: #232f7a;
    color: #ffffff;
}

.primary-btn:hover {
    background: #1b245e;
}

.secondary-btn {
    background: #edf1f7;
    color: #232f7a;
}

.secondary-btn:hover {
    background: #dfe6f1;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid #e7ebf3;
}

.portal-table th {
    color: #232f7a;
    font-size: 14px;
}

.portal-table td {
    color: #43506b;
}

.table-link {
    color: #232f7a;
    text-decoration: none;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.status-active {
    background: #e7f4e5;
    color: #2f6b2f;
}

.status-inactive {
    background: #f2f2f2;
    color: #666666;
}

.priority-low {
    background: #eef3ff;
    color: #3f5ea8;
}

.priority-medium {
    background: #f6f0dc;
    color: #8a6b00;
}

.priority-high {
    background: #fde8d8;
    color: #b45309;
}

.priority-urgent {
    background: #fde8e8;
    color: #b91c1c;
}

.task-status-pending {
    background: #eef2ff;
    color: #3949ab;
}

.task-status-in_progress {
    background: #e6f6ec;
    color: #2f855a;
}

.task-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.task-status-cancelled {
    background: #f2f2f2;
    color: #666666;
}

.portal-form {
    width: 100%;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: bold;
    color: #232f7a;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
}

.checkbox-list ul {
    list-style: none;
    display: grid;
    gap: 10px;
    padding-left: 0;
}

.checkbox-list li {
    background: #f7f9fc;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    padding: 12px 14px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2a44;
    font-weight: normal;
}

.form-actions {
    margin-top: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.section-title {
    color: #232f7a;
    margin-bottom: 20px;
    font-size: 20px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-item {
    padding-bottom: 14px;
    border-bottom: 1px solid #e7ebf3;
}

.detail-item span {
    display: block;
    color: #687086;
    margin-bottom: 6px;
}

.detail-item strong {
    color: #1f2a44;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-action-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

    .sidebar {
        width: 100%;
    }

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

    .full-width {
        grid-column: span 1;
    }
}
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #232f7a;
}

.form-checkbox {
    width: 18px;
    height: 18px;
}

.field-error {
    color: #b91c1c;
    font-size: 14px;
    margin-top: 6px;
}
.success-alert {
    background: #e7f4e5;
    color: #2f6b2f;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.filter-bar {
    margin-bottom: 20px;
}

.filter-bar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input.form-input {
    max-width: 320px;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pagination-info {
    font-weight: bold;
    color: #232f7a;
}

.portal-table th a {
    color: #232f7a;
    text-decoration: none;
    font-weight: bold;
}

.portal-table th a:hover {
    text-decoration: underline;
}
.roster-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.roster-day {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 12px;
}

.roster-day-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #232f7a;
}

.roster-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.roster-empty {
    font-size: 12px;
    color: #999;
}
.roster-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.roster-day {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 12px;
    min-height: 220px;
}

.roster-day-today {
    border: 2px solid #232f7a;
    background: #eef3ff;
}

.roster-day-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #232f7a;
}

.roster-day-action {
    margin-bottom: 10px;
}

.roster-item {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #1f2a44;
    text-decoration: none;
}

.roster-item:hover {
    background: #f9fbff;
}

.roster-empty {
    font-size: 12px;
    color: #999999;
}

@media (max-width: 1100px) {
    .roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .roster-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
.scheduler-wrap {
    width: 100%;
    overflow-x: auto;
}

.scheduler-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1100px;
}

.scheduler-table th,
.scheduler-table td {
    border: 1px solid #e7ebf3;
    vertical-align: top;
    padding: 12px;
    background: #ffffff;
}

.scheduler-table thead th {
    background: #f7f9fc;
    color: #232f7a;
    font-size: 14px;
    text-align: left;
}

.scheduler-table thead th span {
    font-size: 12px;
    color: #687086;
    font-weight: normal;
}

.scheduler-staff-col {
    min-width: 180px;
    width: 180px;
}

.scheduler-staff-cell {
    font-weight: bold;
    color: #232f7a;
    background: #f7f9fc;
    min-width: 180px;
}

.scheduler-day-cell {
    min-width: 130px;
    height: 140px;
    background: #fbfcfe;
}

.scheduler-today-header,
.scheduler-day-cell-today {
    background: #eef3ff !important;
}

.scheduler-add-link {
    text-align: right;
    margin-bottom: 8px;
}

.scheduler-add-link a {
    text-decoration: none;
    font-weight: bold;
    color: #232f7a;
    font-size: 18px;
}

.scheduler-shift-card {
    display: block;
    background: #edf1f7;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #1f2a44;
    font-size: 12px;
    line-height: 1.4;
}

.scheduler-shift-card:hover {
    background: #dfe6f1;
}

.scheduler-empty {
    color: #a0a7b5;
    font-size: 12px;
}
.staff-search-input {
    margin-bottom: 12px;
}

.staff-checkbox-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
}
.tag-multiselect-native {
    display: none;
}

.tag-multiselect {
    position: relative;
    width: 100%;
}

.tag-multiselect-control {
    min-height: 52px;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    cursor: text;
}

.tag-multiselect-control:focus-within {
    border-color: #232f7a;
}

.tag-multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #edf1f7;
    color: #232f7a;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1;
}

.tag-multiselect-tag-remove {
    border: none;
    background: transparent;
    color: #232f7a;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.tag-multiselect-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 220px;
    font-size: 15px;
    padding: 6px 0;
    background: transparent;
    color: #1f2a44;
}

.tag-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
    display: none;
}

.tag-multiselect-option {
    width: 100%;
    border: none;
    background: #ffffff;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2a44;
}

.tag-multiselect-option:hover {
    background: #f7f9fc;
}

.tag-multiselect-empty {
    padding: 12px 14px;
    color: #687086;
    font-size: 14px;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.service-questions-page,
.service-question-form-page {
    max-width: 1280px;
    margin: 0 auto;
}

.service-questions-hero,
.service-question-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.service-questions-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.service-questions-hero h1,
.service-question-form-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.service-questions-subtitle {
    margin: 10px 0 0;
    max-width: 680px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.service-questions-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sq-section-card,
.sq-form-card {
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.sq-section-header,
.sq-form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-section-header h2,
.sq-form-card-header h2 {
    margin: 0;
    font-size: 22px;
}

.sq-section-header p,
.sq-form-card-header p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.72;
}

.sq-inline-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.sq-inline-add:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.sq-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sq-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.sq-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-table tbody td {
    padding: 18px 20px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-table tbody tr:last-child td {
    border-bottom: none;
}

.sq-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sq-question-main {
    min-width: 220px;
}

.sq-question-label {
    font-weight: 700;
    margin-bottom: 6px;
}

.sq-question-help {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.72;
}

.sq-order-badge,
.sq-type-badge,
.sq-status-pill,
.sq-option-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sq-order-badge {
    min-width: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.sq-type-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.sq-status-pill {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sq-status-yes,
.sq-status-active {
    background: rgba(34, 197, 94, 0.12);
}

.sq-status-no,
.sq-status-inactive {
    background: rgba(255, 255, 255, 0.05);
}

.sq-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sq-option-chip {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.sq-empty-text {
    font-size: 13px;
    opacity: 0.65;
}

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

.sq-delete-form {
    margin: 0;
}

.sq-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.sq-action-btn:hover {
    transform: translateY(-1px);
}

.sq-action-edit {
    background: rgba(255, 255, 255, 0.08);
}

.sq-action-delete {
    background: rgba(239, 68, 68, 0.18);
}

.sq-empty-state {
    padding: 36px 24px 38px;
    text-align: center;
}

.sq-empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.sq-empty-state p {
    margin: 0 0 18px;
    opacity: 0.75;
}

.sq-form-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.sq-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sq-field-full {
    grid-column: 1 / -1;
}

.sq-field label {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.82;
}

.sq-field input[type="text"],
.sq-field input[type="number"],
.sq-field select,
.sq-field textarea,
.sq-option-input input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.sq-field textarea {
    min-height: 110px;
    resize: vertical;
}

.sq-field input:focus,
.sq-field select:focus,
.sq-field textarea:focus,
.sq-option-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.sq-field-error {
    font-size: 13px;
    color: #f87171;
}

.sq-toggle-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.sq-toggle-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.sq-toggle-item input {
    margin: 0;
}

.sq-options-builder {
    padding: 24px;
}

.sq-option-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sq-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.sq-option-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sq-option-input label {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.82;
}

.sq-option-remove-wrap {
    display: flex;
    align-items: end;
}

.sq-remove-option,
.sq-add-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.sq-remove-option {
    background: rgba(239, 68, 68, 0.18);
}

.sq-add-option {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.sq-remove-option:hover,
.sq-add-option:hover {
    transform: translateY(-1px);
}

.sq-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .service-questions-hero,
    .service-question-form-hero,
    .sq-section-header,
    .sq-form-card-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .sq-option-row {
        grid-template-columns: 1fr;
    }

    .sq-option-remove-wrap {
        align-items: stretch;
    }

    .sq-remove-option {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .service-questions-hero,
    .service-question-form-hero,
    .sq-section-card,
    .sq-form-card {
        border-radius: 18px;
    }

    .service-questions-hero h1,
    .service-question-form-hero h1 {
        font-size: 28px;
    }

    .sq-table thead th,
    .sq-table tbody td {
        padding: 14px 14px;
    }

    .sq-form-actions {
        flex-direction: column;
    }

    .sq-form-actions .btn {
        width: 100%;
    }
}
