/**
 * ImmigraSuite Admin - Settings
 * Agency, Branch, Invite pages, Knowledgebase, Case Documents, Workflows
 */

/* ==========================================================================
   Invite Page Styles
   ========================================================================== */

.is-invite-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .is-invite-page {
        grid-template-columns: 1fr;
    }
}

.is-invite-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgb(229 231 235);
}

.dark .is-invite-card {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.is-invite-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    color: white;
}

.is-invite-card-header-info {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgb(59 130 246) 0%, rgb(99 102 241) 100%);
    color: white;
}

.is-invite-card-header-warning {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgb(245 158 11) 0%, rgb(251 191 36) 100%);
    color: white;
}

.is-invite-card-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.is-invite-card-header-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.is-invite-card-header-desc {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.is-invite-card-body {
    padding: 24px;
}

.is-invite-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgb(229 231 235);
}

.dark .is-invite-form-actions {
    border-top-color: rgb(55 65 81);
}

/* Pending Invitation Item */
.is-pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgb(249 250 251);
    border-radius: 12px;
    border: 1px solid rgb(229 231 235);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.is-pending-item:last-child {
    margin-bottom: 0;
}

.is-pending-item:hover {
    border-color: rgb(234 88 12);
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.1);
}

.dark .is-pending-item {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.dark .is-pending-item:hover {
    border-color: rgb(234 88 12);
}

.is-pending-item-info {
    flex: 1;
}

.is-pending-item-name {
    font-weight: 600;
    font-size: 15px;
    color: rgb(17 24 39);
}

.dark .is-pending-item-name {
    color: white;
}

.is-pending-item-email {
    font-size: 14px;
    color: rgb(107 114 128);
    margin-top: 2px;
}

.dark .is-pending-item-email {
    color: rgb(156 163 175);
}

.is-pending-item-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
}

.is-pending-item-status-active {
    background: rgb(220 252 231);
    color: rgb(22 101 52);
}

.is-pending-item-status-expired {
    background: rgb(254 226 226);
    color: rgb(153 27 27);
}

.dark .is-pending-item-status-active {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

.dark .is-pending-item-status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(252 165 165);
}

.is-pending-item-actions {
    display: flex;
    gap: 8px;
}

/* Empty State */
.is-empty-state {
    text-align: center;
    padding: 40px 24px;
}

.is-empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: rgb(209 213 219);
}

.dark .is-empty-state-icon {
    color: rgb(75 85 99);
}

.is-empty-state-text {
    font-size: 15px;
    color: rgb(107 114 128);
}

.dark .is-empty-state-text {
    color: rgb(156 163 175);
}

/* Feature List */
.is-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.is-feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgb(55 65 81);
    border-bottom: 1px solid rgb(243 244 246);
}

.is-feature-list-item:last-child {
    border-bottom: none;
}

.dark .is-feature-list-item {
    color: rgb(209 213 219);
    border-bottom-color: rgb(55 65 81);
}

.is-feature-list-icon {
    width: 20px;
    height: 20px;
    color: rgb(34 197 94);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Info Note */
.is-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgb(239 246 255);
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: rgb(30 64 175);
}

.dark .is-info-note {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(147 197 253);
}

.is-info-note-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Info Note Variants */
.is-info-note-success {
    background: rgb(220 252 231);
    color: rgb(22 101 52);
}

.dark .is-info-note-success {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(134 239 172);
}

.is-info-note-warning {
    background: rgb(254 243 199);
    color: rgb(146 64 14);
}

.dark .is-info-note-warning {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(253 224 71);
}

/* Success Header */
.is-invite-card-header-success {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgb(34 197 94) 0%, rgb(74 222 128) 100%);
    color: white;
}

/* Full Width Card */
.is-invite-card-full {
    grid-column: span 1;
}

/* Agency Info Display */
.is-agency-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.is-agency-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgb(249 250 251);
    border-radius: 8px;
    border: 1px solid rgb(229 231 235);
}

.dark .is-agency-info-item {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-agency-info-label {
    font-size: 14px;
    color: rgb(107 114 128);
    font-weight: 500;
}

.dark .is-agency-info-label {
    color: rgb(156 163 175);
}

.is-agency-info-value {
    font-size: 14px;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .is-agency-info-value {
    color: white;
}

/* Status Badges */
.is-status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(22 101 52) !important;
}

.dark .is-status-active {
    color: rgb(134 239 172) !important;
}

.is-status-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(146 64 14) !important;
}

.dark .is-status-pending {
    color: rgb(253 224 71) !important;
}

.is-status-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(153 27 27) !important;
}

.dark .is-status-expired {
    color: rgb(252 165 165) !important;
}

/* Pending Actions */
.is-pending-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* Card Text */
.is-card-text {
    font-size: 14px;
    color: rgb(107 114 128);
    margin-bottom: 12px;
}

.dark .is-card-text {
    color: rgb(156 163 175);
}

/* Muted Feature List */
.is-feature-list-muted .is-feature-list-icon {
    color: rgb(156 163 175);
}

.dark .is-feature-list-muted .is-feature-list-icon {
    color: rgb(107 114 128);
}

/* ==========================================================================
   Agency Setup Required Page Styles
   ========================================================================== */

.is-setup-required-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 24px;
}

.is-setup-required-card {
    background: white;
    border-radius: 20px;
    padding: 48px;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgb(229 231 235);
}

.dark .is-setup-required-card {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.is-setup-required-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-setup-required-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.is-setup-required-title {
    font-size: 24px;
    font-weight: 700;
    color: rgb(17 24 39);
    margin-bottom: 12px;
}

.dark .is-setup-required-title {
    color: white;
}

.is-setup-required-desc {
    font-size: 15px;
    color: rgb(107 114 128);
    line-height: 1.6;
    margin-bottom: 24px;
}

.dark .is-setup-required-desc {
    color: rgb(156 163 175);
}

.is-setup-required-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.is-setup-required-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgb(249 250 251);
    border-radius: 12px;
    border: 1px solid rgb(229 231 235);
    text-align: left;
}

.dark .is-setup-required-info-item {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-setup-required-info-icon {
    width: 24px;
    height: 24px;
    color: rgb(234 88 12);
    flex-shrink: 0;
}

.is-setup-required-info-label {
    display: block;
    font-size: 12px;
    color: rgb(107 114 128);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .is-setup-required-info-label {
    color: rgb(156 163 175);
}

.is-setup-required-info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin-top: 2px;
}

.dark .is-setup-required-info-value {
    color: white;
}

.is-text-warning {
    color: rgb(245 158 11) !important;
}

.is-text-danger {
    color: rgb(239 68 68) !important;
}

.is-setup-required-steps {
    text-align: left;
    padding: 20px;
    background: rgb(249 250 251);
    border-radius: 12px;
    margin-bottom: 24px;
}

.dark .is-setup-required-steps {
    background: rgb(31 41 55);
}

.is-setup-required-steps-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(55 65 81);
    margin-bottom: 16px;
}

.dark .is-setup-required-steps-title {
    color: rgb(209 213 219);
}

.is-setup-required-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.is-setup-required-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: rgb(75 85 99);
    border-bottom: 1px solid rgb(229 231 235);
}

.is-setup-required-steps-list li:last-child {
    border-bottom: none;
}

.dark .is-setup-required-steps-list li {
    color: rgb(209 213 219);
    border-bottom-color: rgb(55 65 81);
}

.is-setup-required-step-icon {
    width: 20px;
    height: 20px;
    color: rgb(234 88 12);
    flex-shrink: 0;
    margin-top: 1px;
}

.is-setup-required-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgb(254 243 199);
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 14px;
    color: rgb(146 64 14);
}

.dark .is-setup-required-note {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(253 224 71);
}

.is-setup-required-note-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.is-setup-required-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   Agency Setup Warning Banner (Super Admin)
   ========================================================================== */

.is-agency-warning-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgb(251 191 36);
    border-left: 4px solid rgb(245 158 11);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.dark .is-agency-warning-banner {
    background: rgb(31 41 55);
    border-color: rgba(245, 158, 11, 0.4);
    border-left-color: rgb(245 158 11);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .is-agency-warning-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
}

.is-agency-warning-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.is-agency-warning-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(254 243 199) 0%, rgb(253 230 138) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark .is-agency-warning-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.is-agency-warning-icon {
    width: 22px;
    height: 22px;
    color: rgb(180 83 9);
}

.dark .is-agency-warning-icon {
    color: rgb(251 191 36);
}

.is-agency-warning-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.is-agency-warning-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(146 64 14);
}

.dark .is-agency-warning-title {
    color: rgb(251 191 36);
}

.is-agency-warning-text {
    font-size: 13px;
    font-weight: 400;
    color: rgb(120 53 15);
    line-height: 1.4;
}

.dark .is-agency-warning-text {
    color: rgb(253 224 71);
    opacity: 0.85;
}

.is-agency-warning-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgb(245 158 11) 0%, rgb(234 88 12) 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.is-agency-warning-action:hover {
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(194 65 12) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.dark .is-agency-warning-action {
    background: linear-gradient(135deg, rgb(245 158 11) 0%, rgb(251 191 36) 100%);
    color: rgb(69 26 3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.dark .is-agency-warning-action:hover {
    background: linear-gradient(135deg, rgb(251 191 36) 0%, rgb(252 211 77) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.is-agency-warning-action-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Agency Accept Invitation Page (Public)
   ========================================================================== */

.is-agency-accept-page {
    text-align: center;
}

/* Header Section */
.is-agency-accept-header {
    margin-bottom: 32px;
}

.is-agency-accept-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: rgb(194 65 12);
    margin-bottom: 16px;
}

.dark .is-agency-accept-badge {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
    border-color: rgba(234, 88, 12, 0.3);
    color: rgb(251 146 60);
}

.is-agency-accept-badge-icon {
    width: 16px;
    height: 16px;
}

.is-agency-accept-title {
    font-size: 28px;
    font-weight: 700;
    color: rgb(17 24 39);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.dark .is-agency-accept-title {
    color: white;
}

.is-agency-accept-subtitle {
    font-size: 15px;
    color: rgb(107 114 128);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.dark .is-agency-accept-subtitle {
    color: rgb(156 163 175);
}

/* Form Section */
.is-agency-accept-form {
    text-align: left;
}

.is-agency-accept-form-section {
    background: rgb(249 250 251);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgb(229 231 235);
}

.dark .is-agency-accept-form-section {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-agency-accept-form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .is-agency-accept-form-section-header {
    border-bottom-color: rgb(55 65 81);
}

.is-agency-accept-form-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.is-agency-accept-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0;
}

.dark .is-agency-accept-form-section-title {
    color: white;
}

.is-agency-accept-form-section-desc {
    font-size: 13px;
    color: rgb(107 114 128);
    margin: 2px 0 0 0;
}

.dark .is-agency-accept-form-section-desc {
    color: rgb(156 163 175);
}

/* Info Section - What happens next */
.is-agency-accept-info {
    background: linear-gradient(135deg, rgb(239 246 255) 0%, rgb(243 232 255) 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgb(199 210 254);
}

.dark .is-agency-accept-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.is-agency-accept-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: rgb(67 56 202);
    margin: 0 0 20px 0;
}

.dark .is-agency-accept-info-title {
    color: rgb(165 180 252);
}

.is-agency-accept-info-title-icon {
    width: 20px;
    height: 20px;
}

.is-agency-accept-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.is-agency-accept-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgb(224 231 255);
}

.dark .is-agency-accept-info-item {
    background: rgb(31 41 55);
    border-color: rgba(99, 102, 241, 0.2);
}

.is-agency-accept-info-item-number {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(99 102 241) 0%, rgb(139 92 246) 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.is-agency-accept-info-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.is-agency-accept-info-item-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .is-agency-accept-info-item-title {
    color: white;
}

.is-agency-accept-info-item-desc {
    font-size: 12px;
    color: rgb(107 114 128);
}

.dark .is-agency-accept-info-item-desc {
    color: rgb(156 163 175);
}

/* Submit Section */
.is-agency-accept-submit {
    text-align: center;
}

.is-agency-accept-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%) !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
    transition: all 0.2s ease !important;
}

.is-agency-accept-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4) !important;
}

.is-agency-accept-submit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: rgb(107 114 128);
    margin-top: 12px;
}

.dark .is-agency-accept-submit-note {
    color: rgb(156 163 175);
}

/* Status States (Error/Success/Warning) */
.is-agency-accept-status {
    text-align: center;
    padding: 20px 0;
}

.is-agency-accept-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.is-agency-accept-status-error {
    background: linear-gradient(135deg, rgb(254 226 226) 0%, rgb(254 202 202) 100%);
    color: rgb(185 28 28);
}

.dark .is-agency-accept-status-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: rgb(252 165 165);
}

.is-agency-accept-status-warning {
    background: linear-gradient(135deg, rgb(254 243 199) 0%, rgb(253 230 138) 100%);
    color: rgb(180 83 9);
}

.dark .is-agency-accept-status-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: rgb(251 191 36);
}

.is-agency-accept-status-success {
    background: linear-gradient(135deg, rgb(220 252 231) 0%, rgb(187 247 208) 100%);
    color: rgb(21 128 61);
}

.dark .is-agency-accept-status-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: rgb(134 239 172);
}

.is-agency-accept-status-title {
    font-size: 24px;
    font-weight: 700;
    color: rgb(17 24 39);
    margin-bottom: 12px;
}

.dark .is-agency-accept-status-title {
    color: white;
}

.is-agency-accept-status-desc {
    font-size: 15px;
    color: rgb(107 114 128);
    line-height: 1.6;
    margin-bottom: 20px;
}

.dark .is-agency-accept-status-desc {
    color: rgb(156 163 175);
}

.is-agency-accept-status-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    background: rgb(249 250 251);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgb(229 231 235);
}

.dark .is-agency-accept-status-list {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-agency-accept-status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: rgb(75 85 99);
    border-bottom: 1px solid rgb(229 231 235);
}

.is-agency-accept-status-list li:last-child {
    border-bottom: none;
}

.dark .is-agency-accept-status-list li {
    color: rgb(209 213 219);
    border-bottom-color: rgb(55 65 81);
}

.is-agency-accept-status-list li svg {
    color: rgb(234 88 12);
    flex-shrink: 0;
}

.is-agency-accept-status-action {
    margin-top: 24px;
}

/* ==========================================================================
   Agency Settings Page Styles
   ========================================================================== */

.is-settings-branch-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.is-settings-branch-hq {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgb(234 88 12);
}

.is-settings-branch-regular {
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
}

.dark .is-settings-branch-regular {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-settings-branch-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.is-settings-branch-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    background: white;
    color: rgb(234 88 12);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark .is-settings-branch-icon {
    background: rgb(55 65 81);
}

.is-settings-branch-label {
    font-size: 12px;
    color: rgb(107 114 128);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .is-settings-branch-label {
    color: rgb(156 163 175);
}

.is-settings-branch-name {
    font-size: 18px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin-top: 2px;
}

.dark .is-settings-branch-name {
    color: white;
}

.is-settings-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.is-settings-badge-hq {
    background: rgb(234 88 12);
    color: white;
}

.is-settings-badge-branch {
    background: rgb(229 231 235);
    color: rgb(55 65 81);
}

.dark .is-settings-badge-branch {
    background: rgb(55 65 81);
    color: rgb(209 213 219);
}

/* Settings Tabs Row - Container for tabs and branch indicator */
.is-settings-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

/* Settings Tabs */
.is-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Inline Branch Indicator */
.is-settings-branch-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 10px;
    font-size: 14px;
    color: rgb(55 65 81);
}

.dark .is-settings-branch-inline {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.is-settings-branch-inline-icon {
    width: 18px;
    height: 18px;
    color: rgb(107 114 128);
}

.dark .is-settings-branch-inline-icon {
    color: rgb(156 163 175);
}

.is-settings-branch-inline-name {
    font-weight: 500;
}

/* Branch Selector Dropdown (Super Admin) */
.is-branch-select {
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgb(209 213 219);
    border-radius: 8px;
    background: white;
    color: rgb(55 65 81);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    min-width: 200px;
    transition: all 0.2s ease;
}

.is-branch-select:hover {
    border-color: rgb(234 88 12);
}

.is-branch-select:focus {
    outline: none;
    border-color: rgb(234 88 12);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.dark .is-branch-select {
    background-color: rgb(31 41 55);
    border-color: rgb(55 65 81);
    color: rgb(209 213 219);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.dark .is-branch-select:hover,
.dark .is-branch-select:focus {
    border-color: rgb(249 115 22);
}

.is-settings-badge-sm {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.is-settings-badge-sm.is-settings-badge-hq {
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    color: white;
}

.is-settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: white;
    color: rgb(55 65 81);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dark .is-settings-tab {
    background: rgb(31 41 55);
    color: rgb(209 213 219);
}

.is-settings-tab:hover {
    border-color: rgb(234 88 12);
    color: rgb(234 88 12);
}

.is-settings-tab-active {
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
}

.is-settings-tab-active:hover {
    color: white;
    border-color: transparent;
}

.is-settings-tab-icon {
    width: 18px;
    height: 18px;
}

/* Settings Content Card */
.is-settings-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgb(229 231 235);
    overflow: hidden;
}

.dark .is-settings-content {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.is-settings-content-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgb(229 231 235);
    background: rgb(249 250 251);
}

.dark .is-settings-content-header {
    background: rgb(31 41 55);
    border-bottom-color: rgb(55 65 81);
}

.is-settings-content-icon {
    width: 24px;
    height: 24px;
    color: rgb(234 88 12);
}

.is-settings-content-title {
    font-size: 18px;
    font-weight: 600;
    color: rgb(17 24 39);
}

.dark .is-settings-content-title {
    color: white;
}

.is-settings-content-desc {
    font-size: 14px;
    color: rgb(107 114 128);
    margin-top: 2px;
}

.dark .is-settings-content-desc {
    color: rgb(156 163 175);
}

.is-settings-content-body {
    padding: 24px;
}

.is-settings-content-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgb(229 231 235);
    background: rgb(249 250 251);
}

.dark .is-settings-content-footer {
    background: rgb(31 41 55);
    border-top-color: rgb(55 65 81);
}

.is-settings-footer-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgb(107 114 128);
}

.dark .is-settings-footer-hint {
    color: rgb(156 163 175);
}

/* Settings Legend */
.is-settings-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    margin-top: 24px;
    background: rgb(249 250 251);
    border-radius: 12px;
    border: 1px solid rgb(229 231 235);
}

@media (max-width: 768px) {
    .is-settings-legend {
        grid-template-columns: 1fr;
    }
}

.dark .is-settings-legend {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-settings-legend-title {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin-bottom: 8px;
}

.dark .is-settings-legend-title {
    color: white;
}

.is-settings-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgb(107 114 128);
}

.dark .is-settings-legend-item {
    color: rgb(156 163 175);
}

.is-settings-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.is-settings-legend-dot-gray {
    background: rgb(156 163 175);
}

.is-settings-legend-dot-warning {
    background: rgb(245 158 11);
}

.is-settings-legend-dot-primary {
    background: rgb(234 88 12);
}

/* =============================================
   Branch Guide Page Styles
   ============================================= */

.is-guide-container {
    width: 100%;
    max-width: 100%;
}

.is-guide-header {
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.is-guide-header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.is-guide-header-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Table of Contents */
.is-guide-toc {
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.dark .is-guide-toc {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-guide-toc-title {
    font-size: 18px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0 0 16px 0;
}

.dark .is-guide-toc-title {
    color: white;
}

.is-guide-toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 640px) {
    .is-guide-toc-list {
        grid-template-columns: 1fr;
    }
}

.is-guide-toc-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.is-guide-toc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgb(234 88 12);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.is-guide-toc-link {
    color: rgb(234 88 12);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.is-guide-toc-link:hover {
    color: rgb(194 65 12);
    text-decoration: underline;
}

/* Section */
.is-guide-section {
    margin-bottom: 40px;
}

.is-guide-section-title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(17 24 39);
    padding-bottom: 12px;
    border-bottom: 2px solid rgb(234 88 12);
    margin: 0 0 20px 0;
}

.dark .is-guide-section-title {
    color: white;
}

.is-guide-section-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgb(55 65 81);
    margin: 0 0 16px 0;
}

.dark .is-guide-section-text {
    color: rgb(209 213 219);
}

/* Info Box */
.is-guide-info-box {
    background: rgb(239 246 255);
    border-left: 4px solid rgb(59 130 246);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.dark .is-guide-info-box {
    background: rgba(59, 130, 246, 0.1);
}

.is-guide-info-box-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(29 78 216);
    margin: 0 0 8px 0;
}

.dark .is-guide-info-box-title {
    color: rgb(147 197 253);
}

.is-guide-info-box-content {
    font-size: 14px;
    color: rgb(30 64 175);
    margin: 0;
}

.dark .is-guide-info-box-content {
    color: rgb(191 219 254);
}

/* Warning Box */
.is-guide-warning-box {
    background: rgb(255 251 235);
    border-left: 4px solid rgb(245 158 11);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.dark .is-guide-warning-box {
    background: rgba(245, 158, 11, 0.1);
}

.is-guide-warning-box-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(180 83 9);
    margin: 0 0 8px 0;
}

.dark .is-guide-warning-box-title {
    color: rgb(252 211 77);
}

.is-guide-warning-box-content {
    font-size: 14px;
    color: rgb(146 64 14);
    margin: 0;
}

.dark .is-guide-warning-box-content {
    color: rgb(253 230 138);
}

/* Table */
.is-guide-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid rgb(229 231 235);
}

.dark .is-guide-table-wrapper {
    border-color: rgb(55 65 81);
}

.is-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.is-guide-table th {
    background: rgb(249 250 251);
    color: rgb(17 24 39);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .is-guide-table th {
    background: rgb(55 65 81);
    color: white;
    border-bottom-color: rgb(75 85 99);
}

.is-guide-table td {
    padding: 12px 16px;
    color: rgb(55 65 81);
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .is-guide-table td {
    color: rgb(209 213 219);
    border-bottom-color: rgb(55 65 81);
}

.is-guide-table tr:last-child td {
    border-bottom: none;
}

.is-guide-table tr:nth-child(even) {
    background: rgb(249 250 251);
}

.dark .is-guide-table tr:nth-child(even) {
    background: rgb(31 41 55);
}

/* Badge */
.is-guide-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.is-guide-badge-green {
    background: rgb(220 252 231);
    color: rgb(22 101 52);
}

.dark .is-guide-badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

.is-guide-badge-orange {
    background: rgb(255 237 213);
    color: rgb(154 52 18);
}

.dark .is-guide-badge-orange {
    background: rgba(249, 115, 22, 0.2);
    color: rgb(253 186 116);
}

/* Code Block */
.is-guide-code {
    background: rgb(17 24 39);
    color: rgb(229 231 235);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 20px 0;
}

.is-guide-code pre {
    margin: 0;
    white-space: pre;
}

/* Cards Grid */
.is-guide-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 640px) {
    .is-guide-cards {
        grid-template-columns: 1fr;
    }
}

.is-guide-card {
    border-radius: 12px;
    padding: 20px;
    border: 1px solid;
}

.is-guide-card-green {
    background: rgb(240 253 244);
    border-color: rgb(187 247 208);
}

.dark .is-guide-card-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.is-guide-card-orange {
    background: rgb(255 247 237);
    border-color: rgb(254 215 170);
}

.dark .is-guide-card-orange {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.is-guide-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.is-guide-card-green .is-guide-card-title {
    color: rgb(22 101 52);
}

.dark .is-guide-card-green .is-guide-card-title {
    color: rgb(134 239 172);
}

.is-guide-card-orange .is-guide-card-title {
    color: rgb(154 52 18);
}

.dark .is-guide-card-orange .is-guide-card-title {
    color: rgb(253 186 116);
}

.is-guide-card-text {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.is-guide-card-green .is-guide-card-text {
    color: rgb(21 128 61);
}

.dark .is-guide-card-green .is-guide-card-text {
    color: rgb(187 247 208);
}

.is-guide-card-orange .is-guide-card-text {
    color: rgb(194 65 12);
}

.dark .is-guide-card-orange .is-guide-card-text {
    color: rgb(254 215 170);
}

.is-guide-card-hint {
    font-size: 12px;
    font-weight: 500;
}

.is-guide-card-green .is-guide-card-hint {
    color: rgb(34 197 94);
}

.is-guide-card-orange .is-guide-card-hint {
    color: rgb(249 115 22);
}

/* Steps */
.is-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.is-guide-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.is-guide-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgb(234 88 12);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.is-guide-step-content {
    flex: 1;
    padding-top: 4px;
}

.is-guide-step-title {
    font-size: 15px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0 0 4px 0;
}

.dark .is-guide-step-title {
    color: white;
}

.is-guide-step-text {
    font-size: 14px;
    color: rgb(107 114 128);
    margin: 0;
}

.dark .is-guide-step-text {
    color: rgb(156 163 175);
}

/* List */
.is-guide-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.is-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: rgb(55 65 81);
}

.dark .is-guide-list li {
    color: rgb(209 213 219);
}

.is-guide-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgb(234 88 12);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* FAQ */
.is-guide-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.is-guide-faq-item {
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 10px;
    overflow: hidden;
}

.dark .is-guide-faq-item {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-guide-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: rgb(17 24 39);
    text-align: left;
}

.dark .is-guide-faq-question {
    color: white;
}

.is-guide-faq-question:hover {
    background: rgb(243 244 246);
}

.dark .is-guide-faq-question:hover {
    background: rgb(55 65 81);
}

.is-guide-faq-icon {
    width: 20px;
    height: 20px;
    color: rgb(156 163 175);
    transition: transform 0.2s;
}

.is-guide-faq-item[open] .is-guide-faq-icon {
    transform: rotate(180deg);
}

.is-guide-faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 14px;
    color: rgb(107 114 128);
    line-height: 1.6;
}

.dark .is-guide-faq-answer {
    color: rgb(156 163 175);
}

/* Role Box */
.is-guide-role-box {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid;
}

.is-guide-role-box-purple {
    background: rgb(250 245 255);
    border-color: rgb(233 213 255);
}

.dark .is-guide-role-box-purple {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
}

.is-guide-role-box-indigo {
    background: rgb(238 242 255);
    border-color: rgb(199 210 254);
}

.dark .is-guide-role-box-indigo {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.is-guide-role-box-teal {
    background: rgb(240 253 250);
    border-color: rgb(153 246 228);
}

.dark .is-guide-role-box-teal {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
}

.is-guide-role-box-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.is-guide-role-box-purple .is-guide-role-box-title {
    color: rgb(126 34 206);
}

.dark .is-guide-role-box-purple .is-guide-role-box-title {
    color: rgb(216 180 254);
}

.is-guide-role-box-indigo .is-guide-role-box-title {
    color: rgb(79 70 229);
}

.dark .is-guide-role-box-indigo .is-guide-role-box-title {
    color: rgb(165 180 252);
}

.is-guide-role-box-teal .is-guide-role-box-title {
    color: rgb(15 118 110);
}

.dark .is-guide-role-box-teal .is-guide-role-box-title {
    color: rgb(94 234 212);
}

.is-guide-role-box-text {
    font-size: 14px;
    margin: 0;
}

.is-guide-role-box-purple .is-guide-role-box-text {
    color: rgb(107 33 168);
}

.dark .is-guide-role-box-purple .is-guide-role-box-text {
    color: rgb(233 213 255);
}

.is-guide-role-box-indigo .is-guide-role-box-text {
    color: rgb(67 56 202);
}

.dark .is-guide-role-box-indigo .is-guide-role-box-text {
    color: rgb(199 210 254);
}

.is-guide-role-box-teal .is-guide-role-box-text {
    color: rgb(17 94 89);
}

.dark .is-guide-role-box-teal .is-guide-role-box-text {
    color: rgb(153 246 228);
}

/* Subsection Title */
.is-guide-subsection-title {
    font-size: 17px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 28px 0 16px 0;
}

.dark .is-guide-subsection-title {
    color: white;
}

/* Footer */
.is-guide-footer {
    background: rgb(249 250 251);
    border: 1px solid rgb(229 231 235);
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.dark .is-guide-footer {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.is-guide-footer-text {
    font-size: 14px;
    color: rgb(107 114 128);
    margin: 0 0 8px 0;
}

.dark .is-guide-footer-text {
    color: rgb(156 163 175);
}

.is-guide-footer-date {
    font-size: 13px;
    color: rgb(156 163 175);
    margin: 0;
}

/* =============================================
   Branch Menu in User Dropdown
   ============================================= */

.is-branch-menu {
    border-top: 1px solid rgb(229 231 235);
    margin-top: 4px;
    padding-top: 4px;
}

.dark .is-branch-menu {
    border-color: rgb(55 65 81);
}

.is-branch-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(107 114 128);
}

.dark .is-branch-menu-header {
    color: rgb(156 163 175);
}

.is-branch-menu-header-icon {
    width: 14px;
    height: 14px;
}

.is-branch-menu-list {
    max-height: 160px;
    overflow-y: auto;
}

.is-branch-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: rgb(55 65 81);
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.dark .is-branch-menu-item {
    color: rgb(209 213 219);
}

.is-branch-menu-item:hover {
    background: rgb(243 244 246);
}

.dark .is-branch-menu-item:hover {
    background: rgb(55 65 81);
}

.is-branch-menu-item.is-active {
    background: rgb(254 243 199);
}

.dark .is-branch-menu-item.is-active {
    background: rgba(245, 158, 11, 0.15);
}

.is-branch-menu-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgb(209 213 219);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.dark .is-branch-menu-radio {
    border-color: rgb(75 85 99);
}

.is-branch-menu-radio.is-checked {
    border-color: rgb(245 158 11);
    background: rgb(245 158 11);
}

.is-branch-menu-radio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.is-branch-menu-code {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: rgb(229 231 235);
    color: rgb(75 85 99);
    flex-shrink: 0;
}

.dark .is-branch-menu-code {
    background: rgb(55 65 81);
    color: rgb(156 163 175);
}

.is-branch-menu-code.is-hq {
    background: rgb(254 243 199);
    color: rgb(180 83 9);
}

.dark .is-branch-menu-code.is-hq {
    background: rgba(245, 158, 11, 0.2);
    color: rgb(251 191 36);
}

.is-branch-menu-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   Branch Indicator (Header)
   ============================================= */

.is-branch-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgb(220 252 231);
    color: rgb(22 101 52);
    letter-spacing: 0.025em;
}

.dark .is-branch-indicator {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

/* =============================================
   Inheritance Indicators (Settings Pages)
   ============================================= */

.is-inheritance-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
    cursor: help;
}

.is-inheritance-indicator svg {
    width: 14px;
    height: 14px;
}

/* HQ source indicator */
.is-inheritance-hq svg {
    color: rgb(156 163 175);
}

.dark .is-inheritance-hq svg {
    color: rgb(107 114 128);
}

/* Inherited indicator */
.is-inheritance-inherited svg {
    color: rgb(156 163 175);
}

.dark .is-inheritance-inherited svg {
    color: rgb(107 114 128);
}

/* Custom (override) indicator */
.is-inheritance-custom svg {
    color: rgb(245 158 11);
}

.dark .is-inheritance-custom svg {
    color: rgb(251 191 36);
}

/* =============================================
   Quick Action WhatsApp Messages (Lead Page)
   Uses is-qa-wa- prefix to avoid conflict with main WhatsApp Chat page
   ============================================= */

/* Chat container - WhatsApp-like background */
.is-qa-wa-container {
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow-y: auto;
    padding: 16px;
    background: #e5ddd5;
    border-radius: 8px;
}

.dark .is-qa-wa-container {
    background: rgb(17 27 33);
}

/* Message row - flex container for alignment */
.is-qa-wa-msg-row {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.is-qa-wa-msg-row.is-inbound {
    justify-content: flex-start;
}

.is-qa-wa-msg-row.is-outbound {
    justify-content: flex-end;
}

/* Message bubble */
.is-qa-wa-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.is-qa-wa-bubble.is-inbound {
    background: #ffffff;
}

.is-qa-wa-bubble.is-outbound {
    background: #dcf8c6;
}

.dark .is-qa-wa-bubble.is-inbound {
    background: rgb(32 44 51);
}

.dark .is-qa-wa-bubble.is-outbound {
    background: rgb(0 92 75);
}

/* Message text */
.is-qa-wa-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    color: #111b21;
}

.dark .is-qa-wa-text {
    color: #e9edef;
}

/* Caption for media messages */
.is-qa-wa-caption {
    margin: 4px 0 0;
    font-size: 14px;
    color: #333;
}

.dark .is-qa-wa-caption {
    color: #d1d7db;
}

/* Message footer (time & status) */
.is-qa-wa-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.is-qa-wa-time {
    font-size: 11px;
    color: #667781;
}

.dark .is-qa-wa-time {
    color: rgba(233, 237, 239, 0.63);
}

/* Status icons */
.is-qa-wa-status {
    font-size: 12px;
}

.is-qa-wa-status.is-pending {
    color: #667781;
}

.is-qa-wa-status.is-sent {
    color: #667781;
}

.is-qa-wa-status.is-delivered {
    color: #667781;
}

.is-qa-wa-status.is-read {
    color: #53bdeb;
}

.is-qa-wa-status.is-failed {
    color: #dc3545;
}

.dark .is-qa-wa-status.is-pending,
.dark .is-qa-wa-status.is-sent,
.dark .is-qa-wa-status.is-delivered {
    color: rgba(233, 237, 239, 0.63);
}

.dark .is-qa-wa-status.is-read {
    color: #53bdeb;
}

.dark .is-qa-wa-status.is-failed {
    color: #f87171;
}

/* Media styles */
.is-qa-wa-media-img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 4px;
}

.is-qa-wa-media-video {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 4px;
}

.is-qa-wa-media-audio {
    width: 100%;
    margin-bottom: 4px;
}

.is-qa-wa-media-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    margin-bottom: 4px;
}

.dark .is-qa-wa-media-file {
    color: #60a5fa;
}

/* Empty state */
.is-qa-wa-empty {
    padding: 32px 0;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.dark .is-qa-wa-empty {
    background: rgb(32 44 51);
}

/* ==========================================================================
   Knowledgebase Placeholder Pages
   ========================================================================== */

.is-kb-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Card */
.is-kb-header {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .is-kb-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.is-kb-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.is-kb-icon-wrapper {
    padding: 0.875rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.dark .is-kb-icon-wrapper {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.is-kb-icon {
    width: 2rem;
    height: 2rem;
    color: #b45309;
}

.dark .is-kb-icon {
    color: #fbbf24;
}

.is-kb-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.dark .is-kb-title {
    color: #f1f5f9;
}

.is-kb-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.dark .is-kb-description {
    color: #94a3b8;
}

/* Quick Navigation Grid */
.is-kb-nav {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .is-kb-nav {
    background: #1e293b;
    border-color: #334155;
}

.is-kb-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .is-kb-nav-title {
    color: #f1f5f9;
}

.is-kb-nav-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .is-kb-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .is-kb-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.is-kb-nav-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.is-kb-nav-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .is-kb-nav-item {
    background: #0f172a;
    border-color: #334155;
}

.dark .is-kb-nav-item:hover {
    background: #1e293b;
    border-color: #475569;
}

.is-kb-nav-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.dark .is-kb-nav-item-title {
    color: #f1f5f9;
}

.is-kb-nav-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.dark .is-kb-nav-item-desc {
    color: #94a3b8;
}

/* Info Notice */
.is-kb-notice {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #fde68a;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.dark .is-kb-notice {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.3) 0%, rgba(146, 64, 14, 0.2) 100%);
    border-color: #92400e;
}

.is-kb-notice-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #b45309;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.dark .is-kb-notice-icon {
    color: #fbbf24;
}

.is-kb-notice-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.25rem 0;
}

.dark .is-kb-notice-title {
    color: #fcd34d;
}

.is-kb-notice-text {
    font-size: 0.8125rem;
    color: #a16207;
    margin: 0;
    line-height: 1.5;
}

.dark .is-kb-notice-text {
    color: #fbbf24;
}


/* ============================================
   FilePond File Upload Optimization
   ============================================ */

/* Compact view for non-image files (PDF, DOC, etc.) */
.filepond--item:not([data-filepond-item-state="processing"]) .filepond--file-wrapper {
    min-height: auto !important;
}

/* Non-image file items should be compact */
.filepond--item .filepond--file {
    padding: 0.5rem 0.75rem;
}

/* Remove excessive padding/height from file info panel for non-images */
.filepond--item:not(.filepond--item-has-image-preview) {
    height: auto !important;
    min-height: auto !important;
}

.filepond--item:not(.filepond--item-has-image-preview) .filepond--panel-root {
    min-height: auto !important;
}

/* File action buttons container */
.filepond--item:not(.filepond--item-has-image-preview) .filepond--file-action-button {
    cursor: pointer;
}

/* Image preview items can maintain their height */
.filepond--item.filepond--item-has-image-preview {
    min-height: 10rem;
}

/* Container adjustments */
.filepond--root .filepond--drop-label {
    min-height: 4.75rem;
}

/* Panel styling for compact non-image items */
.filepond--item:not(.filepond--item-has-image-preview) .filepond--panel {
    background: transparent !important;
}

.filepond--item:not(.filepond--item-has-image-preview) .filepond--panel-center {
    min-height: 0 !important;
    height: auto !important;
}

.filepond--item:not(.filepond--item-has-image-preview) .filepond--panel-bottom {
    min-height: 0 !important;
    height: auto !important;
}

/* File status text */
.filepond--file-status {
    font-size: 0.75rem;
    margin: 0;
}

/* Dark mode support */
.dark .filepond--item:not(.filepond--item-has-image-preview) .filepond--file-info {
    color: #e2e8f0;
}

.dark .filepond--item:not(.filepond--item-has-image-preview) .filepond--file-status {
    color: #94a3b8;
}

/* Wrapper height fix for non-image items */
.filepond--wrapper:has(.filepond--item:not(.filepond--item-has-image-preview)) {
    min-height: auto !important;
}

/* List scroller for compact non-image files */
.filepond--list-scroller:has(.filepond--item:not(.filepond--item-has-image-preview)) {
    min-height: 3.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ============================================
   Case Documents Widget
   ============================================ */

/* Documents Grid */
.is-documents-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .is-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .is-documents-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Document Card */
.is-document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.is-document-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .is-document-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .is-document-card:hover {
    border-color: #4b5563;
}

/* Document Header */
.is-document-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.is-document-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0.5rem;
    color: #6b7280;
}

.dark .is-document-icon {
    background: #374151;
    color: #9ca3af;
}

.is-document-info {
    flex: 1;
    min-width: 0;
}

.is-document-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.dark .is-document-name {
    color: #f3f4f6;
}

.is-document-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark .is-document-meta {
    color: #9ca3af;
}

.is-document-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-document-size {
    flex-shrink: 0;
}

.is-document-size::before {
    content: "\2022";
    margin-right: 0.5rem;
}

/* Document Details */
.is-document-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0.75rem;
}

.dark .is-document-details {
    border-color: #374151;
}

.is-document-detail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #4b5563;
}

.dark .is-document-detail {
    color: #9ca3af;
}

/* Document Actions */
.is-document-actions {
    display: flex;
    gap: 0.5rem;
}

.is-document-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.is-document-action-view {
    background: #eff6ff;
    color: #2563eb;
}

.is-document-action-view:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.dark .is-document-action-view {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dark .is-document-action-view:hover {
    background: rgba(59, 130, 246, 0.3);
}

.is-document-action-download {
    background: #f0fdf4;
    color: #16a34a;
}

.is-document-action-download:hover {
    background: #dcfce7;
    color: #15803d;
}

.dark .is-document-action-download {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.dark .is-document-action-download:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Stats Pill Red (for rejected) */
.is-stats-pill-red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark .is-stats-pill-red {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}


/* ============================================
   Document View Modal Styles
   ============================================ */

/* Two Column Grid Layout */
.is-doc-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 300px;
}

@media (max-width: 768px) {
    .is-doc-view-grid {
        grid-template-columns: 1fr;
    }
}

.is-doc-view-left {
    padding-right: 1rem;
    border-right: 1px solid #e5e7eb;
}

.dark .is-doc-view-left {
    border-color: #374151;
}

@media (max-width: 768px) {
    .is-doc-view-left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.is-doc-view-right {
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .is-doc-view-right {
        padding-left: 0;
    }
}

/* Section Styles */
.is-doc-view-section {
    margin-bottom: 1rem;
}

.is-doc-view-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .is-doc-view-title {
    color: #e5e7eb;
    border-color: #374151;
}

/* Row Styles */
.is-doc-view-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.dark .is-doc-view-row {
    border-color: #1f2937;
}

.is-doc-view-row:last-child {
    border-bottom: none;
}

.is-doc-view-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.dark .is-doc-view-label {
    color: #9ca3af;
}

.is-doc-view-value {
    font-size: 0.875rem;
    color: #111827;
}

.dark .is-doc-view-value {
    color: #f3f4f6;
}

/* Notes Styles */
.is-doc-view-note {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.dark .is-doc-view-note {
    background: #1f2937;
}

.is-doc-view-note-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dark .is-doc-view-note-label {
    color: #9ca3af;
}

.is-doc-view-note-text {
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
}

.dark .is-doc-view-note-text {
    color: #d1d5db;
}

/* Document Preview */
.is-doc-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 1rem;
}

.dark .is-doc-preview {
    background: #1f2937;
    border-color: #374151;
}

.is-doc-preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.5rem;
    object-fit: contain;
}

.is-doc-preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.is-doc-preview-ext {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.dark .is-doc-preview-ext {
    background: #374151;
    color: #9ca3af;
}

/* File Info */
.is-doc-file-info {
    text-align: center;
    margin-bottom: 1rem;
}

.is-doc-file-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.dark .is-doc-file-name {
    color: #f3f4f6;
}

.is-doc-file-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark .is-doc-file-meta {
    color: #9ca3af;
}

.is-doc-detail-row {
    font-size: 0.8125rem;
    color: #4b5563;
    padding: 0.25rem 0;
}

.dark .is-doc-detail-row {
    color: #9ca3af;
}

.is-doc-detail-row span {
    font-weight: 500;
}

/* Action Buttons */
.is-doc-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.is-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.is-doc-btn-view {
    background: #eff6ff;
    color: #2563eb;
}

.is-doc-btn-view:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.dark .is-doc-btn-view {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dark .is-doc-btn-view:hover {
    background: rgba(59, 130, 246, 0.3);
}

.is-doc-btn-download {
    background: #f0fdf4;
    color: #16a34a;
}

.is-doc-btn-download:hover {
    background: #dcfce7;
    color: #15803d;
}

.dark .is-doc-btn-download {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.dark .is-doc-btn-download:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Empty State */
.is-doc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    min-height: 200px;
}

.dark .is-doc-empty {
    background: #1f2937;
    border-color: #374151;
}

/* Icon size helper */
.is-icon-xl {
    width: 3rem;
    height: 3rem;
}


/* Edit modal document preview wrapper */
.is-edit-doc-preview {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.dark .is-edit-doc-preview {
    background: #1f2937;
    border-color: #374151;
}

/* ==========================================================================
   Milestone Widget - Progress & Alerts
   ========================================================================== */

/* Progress Section */
.is-progress-section {
    margin-bottom: 1rem;
}

/* Alert Danger (for overdue milestones) */
.is-alert-danger {
    background-color: rgb(254 242 242);
    border: 1px solid rgb(254 202 202);
    border-radius: 0.5rem;
    padding: 1rem;
}

.is-alert-danger .is-alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(185 28 28);
    margin-bottom: 0.5rem;
}

.is-alert-danger .is-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.is-alert-danger .is-alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgb(254 226 226);
    color: rgb(153 27 27);
}

.is-alert-danger .is-alert-item:first-child {
    border-top: none;
}

.dark .is-alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.dark .is-alert-danger .is-alert-header {
    color: rgb(248 113 113);
}

.dark .is-alert-danger .is-alert-item {
    border-color: rgba(239, 68, 68, 0.2);
    color: rgb(252 165 165);
}

/* Section styling for widget sections */
.is-section {
    background-color: rgb(249 250 251);
    border-radius: 0.5rem;
    padding: 1rem;
}

.is-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(55 65 81);
}

.dark .is-section {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .is-section-title {
    color: rgb(209 213 219);
}

/* Milestone List in widget */
.is-milestone-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.is-milestone-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
}

.is-milestone-item.is-milestone-completed {
    opacity: 0.75;
    background-color: rgb(240 253 244);
    border-color: rgb(187 247 208);
}

.is-milestone-info {
    flex: 1;
    min-width: 0;
}

.dark .is-milestone-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .is-milestone-item.is-milestone-completed {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

/* Stats Pill for blue color */
.is-stats-pill-blue {
    background-color: rgb(239 246 255);
    border-color: rgb(191 219 254);
}

.dark .is-stats-pill-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Background Success */
.is-bg-success {
    background-color: rgb(34 197 94);
}

/* ==========================================================================
   Workflow Tasks Table
   ========================================================================== */

.is-tasks-container {
    padding: 0.5rem;
}

.is-tasks-table-wrap {
    overflow-x: auto;
}

.is-tasks-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.is-tasks-table-head {
    border-bottom: 2px solid rgb(229 231 235);
    background-color: rgb(249 250 251);
}

.dark .is-tasks-table-head {
    background-color: rgb(31 41 55);
    border-bottom-color: rgb(55 65 81);
}

.is-tasks-th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: rgb(55 65 81);
}

.dark .is-tasks-th {
    color: rgb(209 213 219);
}

.is-tasks-th-order {
    width: 40px;
}

.is-tasks-th-status {
    width: 100px;
}

.is-tasks-th-priority {
    width: 90px;
}

.is-tasks-th-assigned {
    width: 140px;
}

.is-tasks-th-due {
    width: 120px;
}

.is-tasks-row {
    border-bottom: 1px solid rgb(243 244 246);
    background-color: transparent;
}

.dark .is-tasks-row {
    border-bottom-color: rgb(55 65 81);
}

.is-tasks-row-overdue {
    background-color: rgb(254 242 242);
}

.dark .is-tasks-row-overdue {
    background-color: rgba(220, 38, 38, 0.1);
}

.is-tasks-td {
    padding: 0.75rem 1rem;
}

.is-tasks-order {
    color: rgb(107 114 128);
    font-family: monospace;
    font-size: 0.75rem;
}

.dark .is-tasks-order {
    color: rgb(156 163 175);
}

.is-tasks-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.is-tasks-overdue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(254 226 226);
    flex-shrink: 0;
}

.dark .is-tasks-overdue-icon {
    background-color: rgba(220, 38, 38, 0.2);
}

.is-tasks-overdue-svg {
    width: 12px;
    height: 12px;
    fill: rgb(220 38 38);
}

.is-tasks-name {
    font-weight: 500;
    color: rgb(17 24 39);
}

.dark .is-tasks-name {
    color: rgb(243 244 246);
}

.is-tasks-required {
    color: rgb(220 38 38);
    font-size: 0.75rem;
    margin-left: 2px;
}

.is-tasks-notes {
    font-size: 0.75rem;
    color: rgb(107 114 128);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.dark .is-tasks-notes {
    color: rgb(156 163 175);
}

.is-tasks-assigned {
    color: rgb(75 85 99);
    font-size: 0.875rem;
}

.dark .is-tasks-assigned {
    color: rgb(209 213 219);
}

.is-tasks-assigned-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.is-tasks-client-icon {
    width: 16px;
    height: 16px;
    stroke: rgb(99 102 241);
}

.dark .is-tasks-client-icon {
    stroke: rgb(129 140 248);
}

.is-tasks-client-label {
    font-size: 0.7rem;
    color: rgb(156 163 175);
}

.dark .is-tasks-client-label {
    color: rgb(107 114 128);
}

.is-tasks-unassigned {
    color: rgb(156 163 175);
    font-style: italic;
}

.dark .is-tasks-unassigned {
    color: rgb(107 114 128);
}

.is-tasks-due {
    color: rgb(75 85 99);
}

.dark .is-tasks-due {
    color: rgb(209 213 219);
}

.is-tasks-due-overdue {
    color: rgb(220 38 38);
    font-weight: 600;
}

.is-tasks-due-sub {
    font-size: 0.7rem;
    color: rgb(220 38 38);
}

.is-tasks-due-warning {
    font-size: 0.7rem;
    color: rgb(217 119 6);
}

.is-tasks-no-due {
    color: rgb(156 163 175);
    font-style: italic;
}

.dark .is-tasks-no-due {
    color: rgb(107 114 128);
}

/* Tasks Summary Footer */
.is-tasks-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(229 231 235);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.dark .is-tasks-summary {
    border-top-color: rgb(55 65 81);
}

.is-tasks-summary-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: rgb(107 114 128);
}

.dark .is-tasks-summary-stats {
    color: rgb(156 163 175);
}

.is-tasks-summary-completed {
    color: rgb(5 150 105);
}

.is-tasks-summary-progress {
    color: rgb(8 145 178);
}

.is-tasks-summary-overdue {
    color: rgb(220 38 38);
    font-weight: 600;
}

.is-tasks-summary-legend {
    font-size: 0.75rem;
    color: rgb(156 163 175);
}

.dark .is-tasks-summary-legend {
    color: rgb(107 114 128);
}

/* Task Action Buttons */
.is-tasks-th-actions {
    width: 100px;
    text-align: center;
}

.is-tasks-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.is-tasks-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.is-tasks-action-btn:hover {
    transform: scale(1.05);
}

.is-tasks-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.is-tasks-action-btn svg {
    width: 16px;
    height: 16px;
}

.is-tasks-action-complete {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.is-tasks-action-complete:hover {
    background-color: rgb(187 247 208);
}

.dark .is-tasks-action-complete {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

.dark .is-tasks-action-complete:hover {
    background-color: rgba(34, 197, 94, 0.3);
}

.is-tasks-action-start {
    background-color: rgb(219 234 254);
    color: rgb(30 64 175);
}

.is-tasks-action-start:hover {
    background-color: rgb(191 219 254);
}

.dark .is-tasks-action-start {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147 197 253);
}

.dark .is-tasks-action-start:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.is-tasks-action-reopen {
    background-color: rgb(254 243 199);
    color: rgb(146 64 14);
}

.is-tasks-action-reopen:hover {
    background-color: rgb(253 230 138);
}

.dark .is-tasks-action-reopen {
    background-color: rgba(245, 158, 11, 0.2);
    color: rgb(253 224 71);
}

.dark .is-tasks-action-reopen:hover {
    background-color: rgba(245, 158, 11, 0.3);
}

.is-tasks-action-completed-icon {
    color: rgb(34 197 94);
}

.dark .is-tasks-action-completed-icon {
    color: rgb(74 222 128);
}

/* ==========================================================================
   Workflow Stages - Completion Date Display
   ========================================================================== */

.is-completion-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgb(22 163 74);
}

.dark .is-completion-date {
    color: rgb(74 222 128);
}

.is-completion-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: rgb(59 130 246);
}

.dark .is-completion-icon {
    color: rgb(96 165 250);
}

/* ==========================================================================
   Booking Integration - Provider Cards
   ========================================================================== */

.is-booking-providers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .is-booking-providers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .is-booking-providers {
        grid-template-columns: 1fr;
    }
}

.is-booking-provider-card {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid rgb(229 231 235);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.is-booking-provider-card:hover {
    border-color: rgb(156 163 175);
}

.dark .is-booking-provider-card {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.dark .is-booking-provider-card:hover {
    border-color: rgb(75 85 99);
}

.is-booking-provider-card-selected {
    border-color: rgb(234 88 12) !important;
    background: rgb(255 247 237);
}

.dark .is-booking-provider-card-selected {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgb(234 88 12) !important;
}

.is-booking-provider-card-disabled {
    border-color: rgb(156 163 175) !important;
    background: rgb(249 250 251);
}

.dark .is-booking-provider-card-disabled {
    background: rgb(17 24 39);
    border-color: rgb(75 85 99) !important;
}

.is-booking-provider-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    color: rgb(234 88 12);
}

.is-booking-provider-card-disabled .is-booking-provider-check {
    color: rgb(107 114 128);
}

.is-booking-provider-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.is-booking-provider-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.is-booking-provider-icon-disabled {
    background: rgb(229 231 235);
}

.dark .is-booking-provider-icon-disabled {
    background: rgb(55 65 81);
}

.is-booking-provider-icon-calendly {
    background: rgb(219 234 254);
}

.is-booking-provider-icon-microsoft {
    background: white;
    border: 1px solid rgb(229 231 235);
}

.dark .is-booking-provider-icon-microsoft {
    background: rgb(249 250 251);
}

.is-booking-provider-icon-google {
    background: white;
    border: 1px solid rgb(229 231 235);
}

.dark .is-booking-provider-icon-google {
    background: rgb(249 250 251);
}

.is-booking-provider-info {
    flex: 1;
    min-width: 0;
}

.is-booking-provider-name {
    font-size: 15px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0;
}

.dark .is-booking-provider-name {
    color: white;
}

.is-booking-provider-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 9999px;
    background: rgb(220 252 231);
    color: rgb(22 101 52);
}

.dark .is-booking-provider-badge {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134 239 172);
}

.is-booking-provider-desc {
    font-size: 13px;
    color: rgb(107 114 128);
    margin: 0;
}

.dark .is-booking-provider-desc {
    color: rgb(156 163 175);
}

/* Booking Integration - How It Works Section */
.is-booking-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .is-booking-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .is-booking-steps {
        grid-template-columns: 1fr;
    }
}

.is-booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.is-booking-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgb(255 237 213);
}

.dark .is-booking-step-number {
    background: rgba(234, 88, 12, 0.2);
}

.is-booking-step-number span {
    font-size: 18px;
    font-weight: 700;
    color: rgb(234 88 12);
}

.is-booking-step-number-final {
    background: rgb(220 252 231);
}

.dark .is-booking-step-number-final {
    background: rgba(34, 197, 94, 0.2);
}

.is-booking-step-number-final svg {
    width: 24px;
    height: 24px;
    color: rgb(22 163 74);
}

.dark .is-booking-step-number-final svg {
    color: rgb(74 222 128);
}

.is-booking-step-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0 0 4px 0;
}

.dark .is-booking-step-title {
    color: white;
}

.is-booking-step-desc {
    font-size: 13px;
    color: rgb(107 114 128);
    margin: 0;
}

.dark .is-booking-step-desc {
    color: rgb(156 163 175);
}

/* Booking Integration - URL Display Box */
.is-booking-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.is-booking-url-code {
    background: rgb(243 244 246);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    flex: 1;
    user-select: all;
    color: rgb(17 24 39);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .is-booking-url-code {
    background: rgb(55 65 81);
    color: rgb(229 231 235);
}

.is-booking-url-copy {
    padding: 8px 16px;
    background: rgb(249 115 22);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.is-booking-url-copy:hover {
    background: rgb(234 88 12);
}

.is-booking-url-copy-success {
    background: rgb(34 197 94) !important;
}

/* Booking Integration - Helper Text */
.is-booking-helper-text {
    font-size: 12px;
    color: rgb(107 114 128);
    margin-top: 8px;
}

.dark .is-booking-helper-text {
    color: rgb(156 163 175);
}

/* Booking Integration - Action Buttons */
.is-booking-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.is-booking-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.is-booking-action-btn-primary {
    background: linear-gradient(135deg, rgb(234 88 12) 0%, rgb(249 115 22) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.is-booking-action-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(194 65 12) 0%, rgb(234 88 12) 100%);
}

.is-booking-action-btn-success {
    background: linear-gradient(135deg, rgb(22 163 74) 0%, rgb(34 197 94) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.is-booking-action-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(21 128 61) 0%, rgb(22 163 74) 100%);
}

.is-booking-action-btn-info {
    background: linear-gradient(135deg, rgb(0 120 212) 0%, rgb(16 110 190) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.is-booking-action-btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(0 90 180) 0%, rgb(0 120 212) 100%);
}

/* Loading Spinner */
.is-booking-spinner {
    width: 16px;
    height: 16px;
    animation: is-spin 1s linear infinite;
}

@keyframes is-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Booking Integration - Local Environment Warning */
.is-booking-local-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgb(254 243 199);
    border: 1px solid rgb(252 211 77);
    border-radius: 8px;
    font-size: 13px;
    color: rgb(146 64 14);
    line-height: 1.5;
}

.is-booking-local-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgb(217 119 6);
    margin-top: 1px;
}

.dark .is-booking-local-warning {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgb(180 83 9);
    color: rgb(253 230 138);
}

.dark .is-booking-local-warning svg {
    color: rgb(251 191 36);
}
