/*!
 * System CSS - Livi Lemphakatsi Application Styles
 * Package : DashLite (Customized)
 * Version : 1.0.0
 * Updated : 2026-01-02
 *
 * This file contains app-specific styles that are NOT theme/color related.
 * For CI colors and theme overrides, see cogta-theme.css
 *
 * Contents:
 * 1. Layout Utilities
 * 2. Page Headers
 * 3. Detail Cards
 * 4. Institutional Tabs
 * 5. Custom Accordions
 * 6. User Detail Pages
 * 7. List Pages
 * 8. Dashboard Widgets
 * 9. Auth/Login Forms
 * 10. Miscellaneous Components
**/

/* ==========================================================================
   1. LAYOUT UTILITIES
   ========================================================================== */

/* Page Header Block */
.page-header-block {
    padding: 16px 0;
}

.page-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--livi-black, #1C1C1B);
    margin-bottom: 6px;
}

.page-subtitle {
    margin: 0;
    color: var(--color-text-light, #8094ae);
}

/* Flush padding utilities */
.p-flush { padding: 0; }
.pt-flush { padding-top: 0; }
.pb-flush { padding-bottom: 0; }

/* ==========================================================================
   2. ACTION DROPDOWNS
   ========================================================================== */

.action-dropdown-btn {
    padding: 6px 12px;
    gap: 6px;
    color: #526484;
    border-color: #e5e9f2;
}

.action-dropdown-btn:hover {
    color: var(--livi-green, #44883E);
    border-color: var(--livi-green, #44883E);
}

.action-dropdown-icon {
    font-size: 11px;
}

.action-dropdown-menu {
    min-width: 120px;
}

/* ==========================================================================
   3. DETAIL CARDS
   ========================================================================== */

.detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border, #e5e9f2);
}

.detail-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #e5e9f2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card-body {
    padding: 20px;
}

.detail-card-body-flush {
    padding: 0;
}

/* Card Header Icons */
.card-header-icon {
    margin-right: 8px;
    color: var(--livi-green, #44883E);
    font-size: 15px;
}

/* Nested cards inside tabs */
.tab-pane .detail-card {
    box-shadow: none;
    border: 1px solid var(--color-border, #e5e9f2);
}

/* ==========================================================================
   4. INSTITUTIONAL TABS
   ========================================================================== */

/* Tab Navigation with horizontal padding */
.tab-nav-padded {
    padding: 0 18px;
}

/* Tab Content with padding */
.tab-content-padded {
    padding: 20px;
}

/* Institutional Tab Styling */
.nav-tabs.institutional-tabs {
    border-bottom: 1px solid #e5e9f2 !important;
    background: transparent !important;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-tabs.institutional-tabs .nav-item {
    margin: 0;
    padding: 0;
}

/* Tab Links - Default State */
.nav-tabs.institutional-tabs .nav-link,
ul.nav-tabs.institutional-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #8094ae !important;
    background: transparent !important;
    margin-bottom: -1px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: color 0.15s ease, border-color 0.15s ease !important;
    position: relative !important;
    text-decoration: none !important;
}

.nav-tabs.institutional-tabs .nav-link em,
ul.nav-tabs.institutional-tabs .nav-link em {
    font-size: 16px !important;
    transition: color 0.15s ease !important;
}

/* Tab Links - Hover State */
.nav-tabs.institutional-tabs .nav-link:hover,
ul.nav-tabs.institutional-tabs .nav-link:hover {
    color: #526484 !important;
    background: transparent !important;
    border-bottom-color: rgba(44, 42, 41, 0.15) !important;
}

/* Tab Links - Focus State */
.nav-tabs.institutional-tabs .nav-link:focus,
ul.nav-tabs.institutional-tabs .nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-tabs.institutional-tabs .nav-link.active:focus,
ul.nav-tabs.institutional-tabs .nav-link.active:focus {
    color: var(--livi-green, #44883E) !important;
}

/* Tab Links - Active State */
.nav-tabs.institutional-tabs .nav-link.active,
.nav-tabs.institutional-tabs .nav-item .nav-link.active,
.nav-tabs.institutional-tabs .nav-item.show .nav-link,
ul.nav-tabs.institutional-tabs .nav-link.active,
ul.nav-tabs.institutional-tabs .nav-item .nav-link.active {
    color: var(--livi-green, #44883E) !important;
    font-weight: 600 !important;
    background: rgba(68, 136, 62, 0.1) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 4px solid var(--livi-green, #44883E) !important;
}

.nav-tabs.institutional-tabs .nav-link.active em,
ul.nav-tabs.institutional-tabs .nav-link.active em {
    color: var(--livi-green, #44883E) !important;
}

/* Hide DashLite's ::after pseudo-element underlines */
.nav-tabs.institutional-tabs .nav-link::after,
.nav-tabs.institutional-tabs .nav-link:after,
ul.nav-tabs.institutional-tabs .nav-link::after,
ul.nav-tabs.institutional-tabs .nav-link:after {
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
    height: 0 !important;
}

.nav-tabs.institutional-tabs .nav-link::before,
.nav-tabs.institutional-tabs .nav-link:before,
ul.nav-tabs.institutional-tabs .nav-link::before,
ul.nav-tabs.institutional-tabs .nav-link:before {
    display: none !important;
}

/* ==========================================================================
   5. CUSTOM ACCORDIONS
   ========================================================================== */

/* DashLite accordion-s3 fixes */
.accordion.accordion-s3 .accordion-item {
    position: relative;
    z-index: 1;
}

.accordion.accordion-s3 .accordion-head {
    position: relative;
    z-index: 2;
    background: #fff;
}

.accordion.accordion-s3 .accordion-collapse {
    position: relative;
    z-index: 1;
}

.accordion.accordion-s3 .accordion-inner {
    padding-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Permission badges container fix */
.accordion.accordion-s3 .accordion-inner .d-flex.flex-wrap {
    width: 100%;
    box-sizing: border-box;
    padding-right: 20px;
}

/* Badge styling */
.accordion.accordion-s3 .badge-permission {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Detail card horizontal overflow fix */
.detail-card {
    overflow-x: hidden;
}

.detail-card-body {
    overflow-x: hidden;
}

.tab-content-padded {
    overflow-x: hidden;
}

.custom-accordion {
    border: none !important;
}

.custom-accordion .accordion-item {
    border: 1px solid #e5e9f2 !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.custom-accordion .accordion-item:last-child {
    margin-bottom: 0 !important;
}

/* Accordion Header/Button */
.custom-accordion .accordion-button {
    padding: 16px 20px !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #364a63 !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #fff !important;
    box-shadow: none !important;
    color: #364a63 !important;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Accordion Icon */
.custom-accordion .accordion-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
    background: rgba(68, 136, 62, 0.1) !important;
    color: var(--livi-green, #44883E) !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
}

.custom-accordion .accordion-icon em {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Accordion Title */
.custom-accordion .accordion-title {
    flex: 1;
    position: relative;
}

/* Level Badge in Header */
.custom-accordion .accordion-button .level-badge {
    margin-left: auto;
    margin-right: 30px;
}

/* Accordion Body */
.custom-accordion .accordion-body {
    padding: 0 20px 20px 70px !important;
    border-top: 1px solid #f0f3f6 !important;
    background: #fafbfc !important;
}

/* Custom arrow styling */
.custom-accordion .accordion-button::after {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    background-size: 16px !important;
    transition: transform 0.2s ease-in-out !important;
}

/* ==========================================================================
   6. USER DETAIL PAGES
   ========================================================================== */

/* User Header */
.user-header {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--color-border, #e5e9f2);
}

/* User Avatar */
.user-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(68, 136, 62, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    align-self: center;
}

.user-avatar-circle em {
    font-size: 42px;
    color: var(--livi-green, #44883E);
}

/* User Info */
.user-info-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0 0 2px 0;
}

.user-info-phone {
    font-size: 13px;
    color: var(--color-text-light, #8094ae);
    margin: 0;
}

/* User Meta Row */
.user-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f3f6;
}

.user-meta-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-light, #8094ae);
}

.user-meta-item em {
    margin-right: 4px;
    font-size: 14px;
}

/* Permission Badge in Header */
.permission-badge-sm {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(68, 136, 62, 0.12);
    color: var(--livi-green, #44883E);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.permission-badge-sm em {
    margin-right: 5px;
    font-size: 12px;
}

/* Table Cell Widths */
.cell-label {
    width: 140px;
}

/* ==========================================================================
   7. PERMISSION & STATUS BADGES
   ========================================================================== */

/* Permission Badges */
.badge-permission {
    background: rgba(68, 136, 62, 0.1);
    color: var(--livi-green, #44883E);
    border: 1px solid rgba(68, 136, 62, 0.3);
}

.badge-permission em {
    color: var(--livi-green, #44883E);
}

/* Level Badges */
.badge-level-provincial {
    background: rgba(68, 136, 62, 0.15);
    color: var(--livi-green, #44883E);
}

.badge-level-district {
    background: rgba(60, 106, 63, 0.12);
    color: var(--livi-forest, #3C6A3F);
}

.badge-level-municipal {
    background: rgba(255, 199, 44, 0.18);
    color: var(--livi-dark-gold, #AC8400);
}

.badge-level-ward {
    background: rgba(238, 148, 51, 0.15);
    color: var(--livi-orange, #EE9433);
}

.badge-level-system {
    background: rgba(44, 42, 41, 0.08);
    color: var(--livi-charcoal, #2C2A29);
}

/* Status Badges */
.badge-status-success {
    background: rgba(68, 136, 62, 0.12);
    color: var(--livi-green, #44883E);
}

.badge-status-warning {
    background: rgba(255, 199, 44, 0.18);
    color: var(--livi-dark-gold, #AC8400);
}

.badge-status-danger {
    background: rgba(196, 30, 58, 0.1);
    color: var(--livi-red, #C41E3A);
}

.badge-status-info {
    background: rgba(60, 106, 63, 0.10);
    color: var(--livi-forest, #3C6A3F);
}

.badge-status-muted {
    background: #f0f3f6;
    color: #8094ae;
}

/* ==========================================================================
   8. TAB SECTIONS
   ========================================================================== */

/* Tab Section (card-like sections inside tabs) */
.tab-section {
    border: 1px solid #e5e9f2;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    height: 100%;
}

/* Tab Section Title */
.tab-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--livi-green, #44883E);
    border-bottom: 1px solid #e5e9f2;
    background: transparent;
}

.tab-section-title em {
    font-size: 16px;
    color: var(--livi-green, #44883E);
}

/* Tab Section Content */
.tab-section-content {
    padding: 16px;
}

/* Data rows inside tab sections */
.tab-section-content .data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f6;
}

.tab-section-content .data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tab-section-content .data-label {
    font-size: 13px;
    color: #8094ae;
}

.tab-section-content .data-value {
    font-size: 13px;
    font-weight: 500;
    color: #364a63;
    text-align: right;
}

/* Permission items in tab sections */
.tab-section-content .permission-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #f0f3f6;
    color: #526484;
}

.tab-section-content .permission-item em {
    margin-right: 4px;
    font-size: 12px;
    color: var(--livi-green, #44883E);
}

/* ==========================================================================
   9. TIMELINE COMPONENTS
   ========================================================================== */

/* Timeline List */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e9f2;
    margin-bottom: 10px;
}

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

.timeline-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.timeline-icon.success {
    background: rgba(68, 136, 62, 0.1);
    color: var(--livi-green, #44883E);
}

.timeline-icon.warning {
    background: rgba(238, 148, 51, 0.1);
    color: var(--livi-orange, #EE9433);
}

.timeline-icon.default {
    background: rgba(68, 136, 62, 0.1);
    color: var(--livi-green, #44883E);
}

.timeline-icon em {
    font-size: 16px;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: #364a63;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-meta {
    font-size: 12px;
    color: #8094ae;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-notes {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8f9fc;
    border-radius: 4px;
    font-size: 13px;
    color: #526484;
    border-left: 3px solid rgba(44, 42, 41, 0.15);
}

/* ==========================================================================
   10. PERMISSION TAGS
   ========================================================================== */

.permission-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    font-weight: 500;
    color: #526484;
}

.permission-tag em {
    margin-right: 6px;
    font-size: 14px;
    color: var(--livi-green, #44883E);
}

/* ==========================================================================
   11. LIST PAGE DESIGN SYSTEM
   ========================================================================== */

/* List Page Header */
.list-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.list-page-title-group h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--livi-black, #1C1C1B);
    margin-bottom: 4px;
}

.list-page-subtitle {
    color: var(--color-text-light, #8094ae);
    font-size: 14px;
}

/* List Page Actions */
.list-page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ==========================================================================
   12. DASHBOARD WIDGETS
   ========================================================================== */

/* Dashboard By Suburb */
.by-suburb .nk-tb-item {
    padding: 4px 0;
}

/* NK-ECWG (Dashboard Cards) */
.nk-ecwg .card-inner-half:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nk-ecwg .card-inner-half.text-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nk-ecwg.nk-ecwg-wd.card .card-inner-half .chartjs-render-monitor {
    min-height: 110px;
}

/* ==========================================================================
   13. AUTH/LOGIN FORMS
   ========================================================================== */

/* Auth Card */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card .card-inner {
    padding: 2.5rem;
}

/* Auth Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 60px;
}

/* Auth Form */
.auth-form .form-label {
    font-weight: 500;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
}

/* ==========================================================================
   14. TABLE ENHANCEMENTS
   ========================================================================== */

/* TB List */
.tb-list {
    border-collapse: separate;
    border-spacing: 0;
}

.tb-list thead th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8094ae;
    background: #f8f9fc;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e9f2;
}

.tb-list tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f3f6;
}

.tb-list tbody tr:hover {
    background: #f8f9fc;
}

/* ==========================================================================
   15. MISCELLANEOUS
   ========================================================================== */

/* UI Rounder (removes border-radius from alerts) */
.ui-rounder .alert {
    border-radius: 0 !important;
}

/* Logo image sizing */
.logo-img {
    width: 222px;
    max-height: 60px;
}

/* Header content block */
.nk-header-content-block {
    min-width: 32%;
}

@media (max-width: 1490px) {
    .nk-header-content-block {
        min-width: 40%;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8094ae;
}

.empty-state em {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   16. ISSUE DETAIL PAGE
   ========================================================================== */

/* Issue Detail Header - Refined Government Style */
.issue-detail-header {
    margin-bottom: 24px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(44, 42, 41, 0.1);
}

.issue-detail-header .dashboard-actions {
    flex-shrink: 0;
}

.issue-detail-header .dashboard-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #2C2A29;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.issue-detail-header .dashboard-title .issue-status-badge {
    font-size: 11px;
    padding: 5px 12px;
    vertical-align: middle;
    border-radius: 16px;
}

.issue-detail-header .dashboard-subtitle {
    font-size: 14px;
    margin-top: 6px;
    color: #526484;
    font-weight: 400;
}

/* Issue Detail Layout */
.issue-detail-layout {
    margin-top: 0;
}

.issue-detail-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(44, 42, 41, 0.06), 0 4px 12px rgba(44, 42, 41, 0.04);
    border: 1px solid rgba(44, 42, 41, 0.08);
}

.issue-detail-card .card-inner {
    padding: 0;
}

/* Issue Status Badges - CI Compliant */
.issue-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issue-status-opened {
    background: rgba(21, 65, 148, 0.15);
    color: #154194;
    border: 1px solid rgba(21, 65, 148, 0.25);
}

.issue-status-in_progress {
    background: rgba(238, 148, 51, 0.15);
    color: #ee9433;
    border: 1px solid rgba(238, 148, 51, 0.3);
}

.issue-status-resolved {
    background: rgba(246, 195, 45, 0.18);
    color: #c79b00;
    border: 1px solid rgba(246, 195, 45, 0.4);
}

.issue-status-disputed {
    background: rgba(227, 5, 19, 0.12);
    color: #e30513;
    border: 1px solid rgba(227, 5, 19, 0.25);
}

.issue-status-closed {
    background: rgba(60, 106, 63, 0.12);
    color: #3c6a3f;
    border: 1px solid rgba(60, 106, 63, 0.25);
}

/* Issue Tabs - Refined Government Style */
.issue-tabs {
    border-bottom: 1px solid rgba(44, 42, 41, 0.1);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(to bottom, rgba(44, 42, 41, 0.02), transparent);
    padding: 0 24px;
    margin: 0;
}

.issue-tabs::-webkit-scrollbar {
    display: none;
}

.issue-tabs .nav-item {
    flex-shrink: 0;
}

.issue-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: #526484;
    font-weight: 500;
    font-size: 13px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.issue-tabs .nav-link:hover {
    color: #3c6a3f;
    background: rgba(68, 136, 62, 0.04);
}

.issue-tabs .nav-link.active {
    color: #3c6a3f;
    border-bottom-color: #44883E;
    background: rgba(68, 136, 62, 0.06);
    font-weight: 600;
}

.issue-tabs .nav-link .icon {
    font-size: 15px;
    opacity: 0.8;
}

.issue-tabs .nav-link.active .icon {
    opacity: 1;
}

.issue-tabs .nav-link .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 2px;
}

/* Tab Content Area */
.issue-detail-card .tab-content {
    padding: 28px;
}

/* Section Headings */
.overview-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3c6a3f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(68, 136, 62, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #44883E;
    border-radius: 2px;
}

/* Overview Sections Spacing */
.overview-section {
    margin-bottom: 28px;
}

.overview-section:last-child {
    margin-bottom: 0;
}

/* Service Hierarchy Flow */
.service-hierarchy-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(68, 136, 62, 0.04), rgba(44, 42, 41, 0.02));
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(68, 136, 62, 0.1);
}

.hierarchy-item {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    background: #fff;
    border-left: 3px solid #44883E;
    min-width: 160px;
    flex: 1;
}

.hierarchy-item:first-child {
    border-radius: 8px 0 0 8px;
}

.hierarchy-item:last-child {
    border-radius: 0 8px 8px 0;
}

.hierarchy-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #44883E;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.hierarchy-value {
    font-weight: 600;
    color: #2C2A29;
    font-size: 14px;
    line-height: 1.3;
}

.hierarchy-arrow {
    display: flex;
    align-items: center;
    color: #44883E;
    padding: 0 4px;
    opacity: 0.5;
}

/* Detail Items - Refined */
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 11px;
    color: #526484;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-label .icon {
    font-size: 14px;
    color: #44883E;
}

.detail-value {
    font-weight: 600;
    color: #2C2A29;
    font-size: 14px;
}

.detail-value-highlight {
    color: #3c6a3f;
    font-weight: 700;
}

/* Details Row Grid */
.details-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(44, 42, 41, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(44, 42, 41, 0.06);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.location-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #526484;
    font-weight: 500;
}

.location-value {
    font-size: 14px;
    font-weight: 600;
    color: #2C2A29;
}

/* Issue Description - Refined */
.issue-description-card {
    background: linear-gradient(135deg, rgba(44, 42, 41, 0.03), rgba(44, 42, 41, 0.01));
    border-radius: 10px;
    padding: 20px 24px;
    border-left: 4px solid #44883E;
    border: 1px solid rgba(44, 42, 41, 0.06);
    border-left: 4px solid #44883E;
}

.issue-description-text {
    margin: 0;
    color: #2C2A29;
    line-height: 1.7;
    font-size: 14px;
}

/* Sticky Sidebar - Refined Government Style */
.issue-sidebar {
    position: sticky;
    top: 80px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(44, 42, 41, 0.1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(44, 42, 41, 0.05), 0 4px 12px rgba(44, 42, 41, 0.03);
}

.sidebar-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-status-section {
    padding: 20px;
    background: linear-gradient(135deg, rgba(68, 136, 62, 0.03), transparent);
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #3c6a3f;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    font-weight: 700;
}

/* Status Badge Large - Refined */
.status-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-badge-large .icon {
    font-size: 20px;
}

/* Status Badge Large Colors */
.status-badge-large.issue-status-opened {
    background: linear-gradient(135deg, rgba(21, 65, 148, 0.12), rgba(21, 65, 148, 0.08));
    color: #154194;
    border-color: rgba(21, 65, 148, 0.2);
}

.status-badge-large.issue-status-in_progress {
    background: linear-gradient(135deg, rgba(238, 148, 51, 0.12), rgba(238, 148, 51, 0.08));
    color: #d97b0d;
    border-color: rgba(238, 148, 51, 0.25);
}

.status-badge-large.issue-status-resolved {
    background: linear-gradient(135deg, rgba(246, 195, 45, 0.15), rgba(246, 195, 45, 0.08));
    color: #ac8400;
    border-color: rgba(172, 132, 0, 0.25);
}

.status-badge-large.issue-status-disputed {
    background: linear-gradient(135deg, rgba(227, 5, 19, 0.1), rgba(227, 5, 19, 0.05));
    color: #c41e3a;
    border-color: rgba(227, 5, 19, 0.2);
}

.status-badge-large.issue-status-closed {
    background: linear-gradient(135deg, rgba(60, 106, 63, 0.1), rgba(60, 106, 63, 0.05));
    color: #3c6a3f;
    border-color: rgba(60, 106, 63, 0.2);
}

/* SLA Quick View - Refined */
.sla-quick-view {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sla-quick-progress {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: rgba(44, 42, 41, 0.1);
    overflow: hidden;
}

.sla-quick-progress .progress-bar {
    border-radius: 5px;
    transition: width 0.3s ease;
}

.sla-quick-progress .progress-bar.bg-success {
    background: linear-gradient(90deg, #44883E, #3c6a3f);
}

.sla-deadline {
    padding-top: 10px;
    border-top: 1px dashed rgba(44, 42, 41, 0.1);
    margin-top: 12px;
}

.sla-deadline small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.sla-deadline .icon {
    color: #44883E;
}

.sla-quick-stats {
    display: flex;
    flex-direction: column;
    text-align: right;
    min-width: 60px;
}

.sla-percentage {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.sla-percentage.text-success {
    color: #3c6a3f;
}

.sla-label {
    font-size: 10px;
    color: #526484;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Date List - Refined */
.date-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 42, 41, 0.06);
}

.date-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date-label {
    font-size: 12px;
    color: #526484;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-label .icon {
    color: #44883E;
    font-size: 14px;
}

.date-value {
    font-size: 13px;
    font-weight: 600;
    color: #2C2A29;
}

/* Quick Stats Grid - Refined */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-stat {
    text-align: center;
    padding: 14px 10px;
    background: linear-gradient(135deg, rgba(68, 136, 62, 0.04), rgba(44, 42, 41, 0.02));
    border-radius: 8px;
    border: 1px solid rgba(68, 136, 62, 0.08);
    transition: all 0.2s ease;
}

.quick-stat:hover {
    background: linear-gradient(135deg, rgba(68, 136, 62, 0.08), rgba(44, 42, 41, 0.03));
    border-color: rgba(68, 136, 62, 0.15);
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #3c6a3f;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: #526484;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
    display: block;
}

/* Action Buttons - Refined */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.sidebar-action-btn.btn-primary {
    background: linear-gradient(135deg, #44883E, #3c6a3f);
    border-color: #3c6a3f;
    box-shadow: 0 2px 4px rgba(68, 136, 62, 0.2);
}

.sidebar-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, #3c6a3f, #2d5130);
    box-shadow: 0 4px 8px rgba(68, 136, 62, 0.3);
    transform: translateY(-1px);
}

.sidebar-action-btn.btn-success {
    background: linear-gradient(135deg, #44883E, #3c6a3f);
    border-color: #3c6a3f;
}

.sidebar-action-btn.btn-outline-primary {
    border: 2px solid #44883E;
    color: #44883E;
}

.sidebar-action-btn.btn-outline-primary:hover {
    background: rgba(68, 136, 62, 0.08);
}

.sidebar-action-btn.btn-info {
    background: linear-gradient(135deg, #0088cc, #0077b3);
    border-color: #0077b3;
}

.sidebar-action-btn.btn-warning {
    background: linear-gradient(135deg, #EE9433, #d97b0d);
    border-color: #d97b0d;
    color: #fff;
}

/* ==========================================================================
   17. CHAT/COMMENTS - WHATSAPP STYLE
   ========================================================================== */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid rgba(44, 42, 41, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(44, 42, 41, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.chat-bubble-citizen {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(44, 42, 41, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-bubble-official {
    align-self: flex-end;
    background: rgba(68, 136, 62, 0.1);
    border: 1px solid rgba(68, 136, 62, 0.2);
    border-bottom-right-radius: 4px;
}

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

.chat-sender {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-bubble-citizen .chat-sender {
    color: #526484;
}

.chat-bubble-official .chat-sender {
    color: #44883E;
}

.chat-time {
    font-size: 11px;
    color: #8094ae;
}

.chat-bubble-content {
    font-size: 14px;
    color: #2C2A29;
    line-height: 1.5;
}

.chat-bubble-content p {
    margin: 0;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8094ae;
}

.chat-empty-state .icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

/* Chat Reply Section */
.chat-reply-section {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid rgba(44, 42, 41, 0.08);
}

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

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid rgba(44, 42, 41, 0.15);
    border-radius: 20px;
    padding: 10px 16px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #44883E;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #44883E;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #3C6A3F;
}

.chat-input-hint {
    padding-left: 8px;
}

.chat-readonly-notice {
    padding: 12px 16px;
    background: rgba(44, 42, 41, 0.05);
    text-align: center;
    font-size: 13px;
    color: #526484;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   18. TIMELINE
   ========================================================================== */

.issue-timeline {
    position: relative;
    padding-left: 28px;
}

.issue-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(44, 42, 41, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #fff;
    border: 2px solid rgba(44, 42, 41, 0.2);
}

.timeline-item-primary .timeline-marker { border-color: #44883E; color: #44883E; }
.timeline-item-success .timeline-marker { border-color: #44883E; color: #44883E; background: rgba(68, 136, 62, 0.1); }
.timeline-item-warning .timeline-marker { border-color: #EE9433; color: #EE9433; }
.timeline-item-danger .timeline-marker { border-color: #C41E3A; color: #C41E3A; }
.timeline-item-info .timeline-marker { border-color: #44883E; color: #44883E; }
.timeline-item-secondary .timeline-marker { border-color: #8094ae; color: #8094ae; }
.timeline-item-dark .timeline-marker { border-color: #2C2A29; color: #2C2A29; }

.timeline-content {
    background: #fff;
    border: 1px solid rgba(44, 42, 41, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.timeline-title {
    font-weight: 600;
    color: #2C2A29;
    font-size: 14px;
}

.timeline-date {
    font-size: 12px;
    color: #8094ae;
}

.timeline-body {
    margin-bottom: 8px;
}

.timeline-body p {
    margin: 0;
    font-size: 13px;
    color: #526484;
}

.timeline-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #8094ae;
}

.timeline-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 4px;
    font-size: 12px;
    color: #526484;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* ==========================================================================
   19. SLA TAB
   ========================================================================== */

.sla-compliance-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 8px;
    margin-bottom: 24px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.score-good {
    background: rgba(68, 136, 62, 0.15);
    color: #44883E;
}

.score-warning {
    background: rgba(238, 148, 51, 0.15);
    color: #EE9433;
}

.score-danger {
    background: rgba(196, 30, 58, 0.15);
    color: #C41E3A;
}

.score-details h5 {
    margin: 0 0 4px;
    font-size: 18px;
}

.score-details p {
    margin: 0;
    font-size: 14px;
}

/* SLA Progress Items */
.sla-progress-item {
    margin-bottom: 20px;
}

.sla-progress-item:last-child {
    margin-bottom: 0;
}

.sla-progress-total {
    padding-top: 20px;
    border-top: 1px solid rgba(44, 42, 41, 0.08);
}

.sla-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sla-stage-label {
    font-weight: 600;
    font-size: 14px;
    color: #2C2A29;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sla-target {
    font-size: 12px;
    color: #8094ae;
}

.sla-progress-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(44, 42, 41, 0.08);
    margin-bottom: 8px;
}

.sla-status {
    display: flex;
    justify-content: flex-end;
}

.sla-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
}

.sla-status-met {
    background: rgba(68, 136, 62, 0.12);
    color: #44883E;
}

.sla-status-breached {
    background: rgba(196, 30, 58, 0.12);
    color: #C41E3A;
}

.sla-status-pending {
    background: rgba(44, 42, 41, 0.08);
    color: #526484;
}

/* SLA Timestamps */
.timestamp-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 6px;
}

.timestamp-label {
    font-size: 12px;
    color: #8094ae;
}

.timestamp-value {
    font-weight: 500;
    color: #2C2A29;
    font-size: 13px;
}

/* ==========================================================================
   20. MEDIA GALLERY
   ========================================================================== */

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(44, 42, 41, 0.05);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-item:hover .media-item-overlay {
    opacity: 1;
}

.media-item-overlay .icon {
    font-size: 32px;
    color: #fff;
}

.media-item-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #fff;
}

.video-duration {
    position: absolute;
    bottom: 30px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 42, 41, 0.1);
}

.video-placeholder .icon {
    font-size: 48px;
    color: #8094ae;
}

/* ==========================================================================
   21. FEEDBACK TAB
   ========================================================================== */

.feedback-card {
    background: #fff;
}

.feedback-rating-section {
    text-align: center;
    padding: 24px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 8px;
}

.rating-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.rating-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rating-excellent { background: rgba(68, 136, 62, 0.15); color: #44883E; }
.rating-good { background: rgba(68, 136, 62, 0.1); color: #44883E; }
.rating-fair { background: rgba(238, 148, 51, 0.15); color: #EE9433; }
.rating-poor { background: rgba(196, 30, 58, 0.15); color: #C41E3A; }

.rating-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.rating-max {
    font-size: 14px;
    opacity: 0.7;
}

.rating-stars-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-stars {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.rating-stars li {
    font-size: 20px;
    color: #FFC72C;
}

.rating-label {
    font-size: 14px;
    color: #526484;
    font-weight: 500;
}

.feedback-comment-box {
    background: rgba(44, 42, 41, 0.03);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #44883E;
}

.feedback-comment-text {
    margin: 0;
    color: #2C2A29;
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================================================
   22. DISPUTES TAB
   ========================================================================== */

.dispute-card {
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.dispute-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(196, 30, 58, 0.05);
}

.dispute-number {
    font-weight: 600;
    color: #C41E3A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dispute-date {
    font-size: 13px;
    color: #8094ae;
}

.dispute-card-body {
    padding: 18px;
}

.dispute-reason-title {
    font-size: 13px;
    color: #8094ae;
    margin-bottom: 8px;
}

.dispute-reason-text {
    margin: 0;
    color: #2C2A29;
    line-height: 1.6;
}

.dispute-evidence-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.evidence-thumbnail {
    position: relative;
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
}

.evidence-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.evidence-thumbnail:hover .evidence-overlay {
    opacity: 1;
}

.evidence-overlay .icon {
    font-size: 24px;
    color: #fff;
}

/* ==========================================================================
   23. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
    .issue-sidebar {
        position: static;
        margin-top: 20px;
    }

    .service-hierarchy-flow {
        flex-direction: column;
    }

    .hierarchy-item {
        width: 100%;
        border-radius: 0;
    }

    .hierarchy-item:first-child {
        border-radius: 6px 6px 0 0;
    }

    .hierarchy-item:last-child {
        border-radius: 0 0 6px 6px;
    }

    .hierarchy-arrow {
        display: none;
    }

    .issue-tabs .nav-link {
        padding: 10px 12px;
    }

    .issue-tabs .nav-link span {
        display: none;
    }

    .chat-container {
        height: 400px;
    }
}

@media (max-width: 575px) {
    .sla-compliance-header {
        flex-direction: column;
        text-align: center;
    }

    .rating-score-display {
        flex-direction: column;
    }

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


/* ==========================================================================
   FIRE ALERT DETAIL PAGE STYLES
   ========================================================================== */

/* Fire Alert Detail Header */
.fire-alert-detail-header {
    margin-bottom: 24px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(44, 42, 41, 0.1);
}

.fire-alert-detail-header .dashboard-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #2C2A29;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fire-alert-detail-header .dashboard-subtitle {
    font-size: 14px;
    margin-top: 6px;
    color: #526484;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Fire Alert Detail Layout */
.fire-alert-detail-layout {
    margin-top: 0;
}

.fire-alert-detail-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(44, 42, 41, 0.08);
}

.fire-alert-detail-card .card-inner {
    padding: 0;
}

/* Fire Alert Tabs */
.fire-alert-tabs {
    background: rgba(44, 42, 41, 0.02);
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
    padding: 0 24px;
    gap: 4px;
    margin: 0;
}

.fire-alert-tabs .nav-item {
    margin-bottom: 0;
}

.fire-alert-tabs .nav-link {
    padding: 14px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #526484;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.fire-alert-tabs .nav-link:hover {
    color: #2C2A29;
    background: rgba(44, 42, 41, 0.03);
}

.fire-alert-tabs .nav-link.active {
    color: #44883E;
    background: transparent;
    border-bottom-color: #44883E;
}

.fire-alert-tabs .nav-link .icon {
    font-size: 18px;
}

/* Tab Content Area */
.fire-alert-detail-card .tab-content {
    padding: 28px;
}

/* Fire Confidence Badges */
.fire-confidence-high {
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.fire-confidence-medium {
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.fire-confidence-low {
    background: #e2e3e5;
    color: #383d41;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

/* Fire Intensity Card */
.fire-intensity-card {
    background: rgba(44, 42, 41, 0.02);
    border: 1px solid rgba(44, 42, 41, 0.08);
    border-radius: 8px;
    padding: 20px;
}

.intensity-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.intensity-indicator.intensity-high {
    background: rgba(227, 5, 19, 0.08);
    border-left: 4px solid #e30513;
}

.intensity-indicator.intensity-medium {
    background: rgba(238, 148, 51, 0.08);
    border-left: 4px solid #ee9433;
}

.intensity-indicator.intensity-low {
    background: rgba(60, 106, 63, 0.08);
    border-left: 4px solid #3c6a3f;
}

.intensity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.intensity-high .intensity-icon {
    background: rgba(227, 5, 19, 0.15);
    color: #e30513;
}

.intensity-medium .intensity-icon {
    background: rgba(238, 148, 51, 0.15);
    color: #ee9433;
}

.intensity-low .intensity-icon {
    background: rgba(60, 106, 63, 0.15);
    color: #3c6a3f;
}

.intensity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intensity-value {
    font-size: 24px;
    font-weight: 700;
    color: #2C2A29;
}

.intensity-label {
    font-size: 12px;
    color: #526484;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intensity-description {
    font-size: 13px;
    color: #526484;
    margin: 0;
    line-height: 1.5;
}

/* Technical Notes */
.technical-notes-card {
    background: rgba(44, 42, 41, 0.02);
    border: 1px solid rgba(44, 42, 41, 0.08);
    border-radius: 8px;
    padding: 20px;
}

.technical-notes-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.technical-notes-list li {
    font-size: 13px;
    color: #526484;
    line-height: 1.6;
    margin-bottom: 12px;
}

.technical-notes-list li:last-child {
    margin-bottom: 0;
}

.technical-notes-list li strong {
    color: #2C2A29;
}

/* ==========================================================================
   FIRE ALERT SIDEBAR STYLES
   ========================================================================== */

.fire-alert-sidebar {
    position: sticky;
    top: 80px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(44, 42, 41, 0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.fire-alert-sidebar .sidebar-section {
    padding: 20px;
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
}

.fire-alert-sidebar .sidebar-section:last-child {
    border-bottom: none;
}

.fire-alert-sidebar .sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #526484;
    margin: 0 0 12px;
}

/* Severity Badge Large */
.sidebar-severity-section {
    background: rgba(44, 42, 41, 0.02);
}

.severity-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.severity-badge-large .icon {
    font-size: 24px;
}

.fire-severity-high {
    background: rgba(227, 5, 19, 0.12);
    color: #e30513;
    border: 1px solid rgba(227, 5, 19, 0.2);
}

.fire-severity-medium {
    background: rgba(238, 148, 51, 0.12);
    color: #c67800;
    border: 1px solid rgba(238, 148, 51, 0.2);
}

.fire-severity-low {
    background: rgba(60, 106, 63, 0.12);
    color: #3c6a3f;
    border: 1px solid rgba(60, 106, 63, 0.2);
}

/* FRP Quick View */
.frp-quick-view {
    margin-bottom: 8px;
}

.frp-gauge {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frp-bar {
    height: 8px;
    background: rgba(44, 42, 41, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.frp-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.frp-fill.frp-high {
    background: linear-gradient(90deg, #ee9433, #e30513);
}

.frp-fill.frp-medium {
    background: linear-gradient(90deg, #f6c32d, #ee9433);
}

.frp-fill.frp-low {
    background: linear-gradient(90deg, #44883E, #3c6a3f);
}

.frp-stats {
    text-align: center;
}

.frp-value {
    font-size: 20px;
    font-weight: 700;
}

/* Confidence Indicator */
.confidence-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confidence-progress .progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(44, 42, 41, 0.1);
}

.confidence-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confidence-value {
    font-size: 18px;
    font-weight: 700;
}

.confidence-label {
    font-size: 12px;
    color: #526484;
    text-transform: uppercase;
}

/* Location Quick List */
.location-quick-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-quick-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-quick-label {
    font-size: 11px;
    color: #526484;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-quick-label .icon {
    font-size: 14px;
    color: #44883E;
}

.location-quick-value {
    font-size: 14px;
    font-weight: 600;
    color: #2C2A29;
    padding-left: 20px;
}

/* Detection List */
.detection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detection-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detection-label {
    font-size: 11px;
    color: #526484;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detection-label .icon {
    font-size: 14px;
    color: #44883E;
}

.detection-value {
    font-size: 14px;
    font-weight: 500;
    color: #2C2A29;
    padding-left: 20px;
}

/* Sidebar Action Buttons */
.fire-alert-sidebar .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fire-alert-sidebar .sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
}

.fire-alert-sidebar .sidebar-action-btn .icon {
    font-size: 16px;
}

/* Font Mono */
.font-mono {
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

/* ==========================================================================
   24. CONTACT DETAIL VIEW PAGES
   ========================================================================== */

/* Note: Contact view page header uses default DashLite nk-block-head styling to match list pages */

/* Contact User Header Card */
.contact-user-header {
    background: #fff !important;
    border: 1px solid #e5e9f2 !important;
    border-radius: 4px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
}

/* Contact Avatar */
.contact-avatar {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 50% !important;
    background: rgba(68, 136, 62, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 16px !important;
    align-self: center !important;
}

.contact-avatar em {
    font-size: 36px !important;
    color: var(--livi-green, #44883E) !important;
}

/* Avatar Initials */
.contact-avatar-initials {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--livi-green, #44883E) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Actions Button Enhancement */
.contact-view-page .action-dropdown-btn {
    background: var(--livi-green, #44883E) !important;
    border-color: var(--livi-green, #44883E) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    box-shadow: 0 2px 4px rgba(68, 136, 62, 0.2) !important;
}

.contact-view-page .action-dropdown-btn:hover {
    background: var(--livi-forest, #3C6A3F) !important;
    border-color: var(--livi-forest, #3C6A3F) !important;
}

.contact-view-page .action-dropdown-icon {
    margin-left: 6px !important;
}

/* Contact User Info */
.contact-user-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0 0 2px 0;
}

.contact-user-role {
    font-size: 13px;
    color: #8094ae;
    margin: 0;
}

/* Contact User Meta */
.contact-user-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f3f6;
    flex-wrap: wrap;
}

.contact-user-meta-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8094ae;
}

.contact-user-meta-item em {
    margin-right: 4px;
    font-size: 14px;
}

.contact-user-meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-user-meta-item a:hover {
    color: var(--livi-green, #44883E);
}

/* Contact Status Badges */
.contact-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-status-badge em {
    margin-right: 5px;
    font-size: 12px;
}

.contact-status-badge.current {
    background: rgba(68, 136, 62, 0.12);
    color: var(--livi-green, #44883E);
}

.contact-status-badge.replaced {
    background: rgba(238, 148, 51, 0.15);
    color: #AC8400;
}

/* Contact Info Items (Label/Value Style) */
.contact-info-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f3f6 !important;
}

.contact-info-item:last-child {
    border-bottom: none !important;
}

.contact-info-label {
    width: 160px !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #8094ae !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.contact-info-value {
    flex: 1 !important;
    font-size: 14px !important;
    color: #364a63 !important;
    font-weight: 500 !important;
}

.contact-info-value.empty {
    color: #9ca3af !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

.contact-info-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(68, 136, 62, 0.08);
    border: 1px solid rgba(68, 136, 62, 0.15);
    color: var(--livi-green, #44883E);
    text-decoration: none;
    transition: all 0.15s ease;
    margin-left: 12px;
}

.contact-info-action:hover {
    background: var(--livi-green, #44883E);
    border-color: var(--livi-green, #44883E);
    color: #fff;
}

.contact-info-action em {
    font-size: 16px;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

@media (max-width: 767px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-grid-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(44, 42, 41, 0.02);
    border-radius: 4px;
}

.contact-info-grid-label {
    font-size: 11px;
    font-weight: 600;
    color: #8094ae;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-info-grid-value {
    font-size: 14px;
    color: #364a63;
    font-weight: 500;
}

.contact-info-grid-value.empty {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
}

/* Alternative Contacts Section */
.alt-contacts-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e5e9f2;
}

.alt-contacts-label {
    font-size: 11px;
    font-weight: 600;
    color: #8094ae;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

/* Data Display Rows */
.data-display-row {
    display: flex;
    margin-bottom: 16px;
}

.data-display-row:last-child {
    margin-bottom: 0;
}

.data-display-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #8094ae;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-top: 2px;
}

.data-display-value {
    flex: 1;
    font-size: 14px;
    color: #364a63;
    font-weight: 500;
}

.data-display-value.empty {
    color: #b7c2d0;
    font-style: italic;
}

/* Fire Alert Responsive */
@media (max-width: 991px) {
    .fire-alert-sidebar {
        position: static;
        margin-top: 24px;
    }

    .fire-alert-tabs .nav-link {
        padding: 10px 14px;
    }

    .fire-alert-tabs .nav-link span {
        display: none;
    }

    .intensity-indicator {
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .fire-alert-detail-header .dashboard-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .fire-alert-detail-card .tab-content {
        padding: 16px;
    }

    .intensity-indicator {
        padding: 12px;
    }

    .intensity-value {
        font-size: 20px;
    }
}

/* ==========================================================================
   25. CONTACT EDIT PAGES
   ===========================================================================
   Styles for disaster management contact edit forms.
   Used by: _base_contact_edit.html and child templates.
   ========================================================================== */

/* Layout Container */
.cogta-edit-layout {
    max-width: 900px;
}

/* Profile Header Card */
.cogta-profile-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    color: var(--livi-charcoal, #2C2A29);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(44, 42, 41, 0.08);
    box-shadow: 0 1px 3px rgba(44, 42, 41, 0.04);
}

.cogta-profile-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.cogta-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--livi-green, #44883E);
    color: var(--livi-green, #44883E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cogta-avatar .icon {
    font-size: 36px;
}

.cogta-profile-info {
    flex: 1;
    min-width: 0;
}

.cogta-profile-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--livi-charcoal, #2C2A29);
}

.cogta-profile-role {
    font-size: 14px;
    color: rgba(44, 42, 41, 0.7);
    margin-bottom: 12px;
}

.cogta-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(44, 42, 41, 0.6);
}

.cogta-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cogta-profile-meta-item .icon {
    font-size: 14px;
    color: var(--livi-green, #44883E);
}

/* Form Completion Progress */
.cogta-progress-card {
    background: white;
    border: 1px solid rgba(44, 42, 41, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.cogta-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cogta-progress-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
}

.cogta-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--livi-green, #44883E);
}

.cogta-progress-bar {
    height: 6px;
    background: rgba(44, 42, 41, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cogta-progress-fill {
    height: 100%;
    background: var(--livi-green, #44883E);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cogta-progress-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.cogta-progress-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(44, 42, 41, 0.6);
}

.cogta-progress-item.completed {
    color: var(--livi-green, #44883E);
}

.cogta-progress-item .icon {
    font-size: 14px;
}

/* Page Header - Uses standard DashLite nk-block-head pattern */
/* See: nk-block-head, nk-block-head-sm, nk-block-between, nk-block-head-content */

/* Form Sections */
.cogta-form-column {
    min-width: 0;
}

.cogta-form-section {
    background: white;
    border: 1px solid rgba(44, 42, 41, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.cogta-form-section:hover {
    box-shadow: 0 4px 12px rgba(44, 42, 41, 0.06);
}

.cogta-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(44, 42, 41, 0.02);
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
}

.cogta-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(68, 136, 62, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--livi-green, #44883E);
    font-size: 16px;
}

.cogta-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0;
}

.cogta-section-subtitle {
    font-size: 12px;
    color: rgba(44, 42, 41, 0.6);
    margin-top: 2px;
}

.cogta-section-body {
    padding: 20px;
}

/* Form Fields */
.cogta-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cogta-field-row:last-child {
    margin-bottom: 0;
}

.cogta-field-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
    .cogta-field-row,
    .cogta-field-row.three-col {
        grid-template-columns: 1fr;
    }
}

.cogta-field {
    position: relative;
}

.cogta-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--livi-charcoal, #2C2A29);
    margin-bottom: 8px;
}

.cogta-field-label .required {
    color: var(--livi-orange, #EE9433);
}

/* Input Wrapper with Validation Icon */
.cogta-input-wrap {
    position: relative;
}

.cogta-input-wrap .form-control,
.cogta-input-wrap .form-select {
    padding-right: 40px;
    border-color: rgba(44, 42, 41, 0.15);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cogta-input-wrap .form-control:focus,
.cogta-input-wrap .form-select:focus {
    border-color: var(--livi-green, #44883E);
    box-shadow: 0 0 0 3px rgba(68, 136, 62, 0.1);
}

.cogta-input-wrap .form-control::placeholder {
    color: rgba(44, 42, 41, 0.35);
}

/* Validation Status Icon */
.cogta-validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cogta-field.is-valid .cogta-validation-icon.valid {
    opacity: 1;
    color: var(--livi-green, #44883E);
}

.cogta-field.is-invalid .cogta-validation-icon.invalid {
    opacity: 1;
    color: #C41E3A;
}

.cogta-field.is-valid .form-control,
.cogta-field.is-valid .form-select {
    border-color: var(--livi-green, #44883E);
    background-color: rgba(68, 136, 62, 0.02);
}

.cogta-field.is-invalid .form-control,
.cogta-field.is-invalid .form-select {
    border-color: #C41E3A;
    background-color: rgba(196, 30, 58, 0.02);
}

/* Field Error Message */
.cogta-field-error {
    font-size: 12px;
    color: #C41E3A;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cogta-field-error .icon {
    font-size: 12px;
}

/* Field Hint */
.cogta-field-hint {
    font-size: 11px;
    color: rgba(44, 42, 41, 0.5);
    margin-top: 6px;
}

/* Contact Methods Subsection */
.cogta-subsection {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px dashed rgba(44, 42, 41, 0.12);
}

.cogta-subsection-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(44, 42, 41, 0.5);
    margin-bottom: 16px;
}

/* Sticky Action Bar */
.cogta-action-bar {
    position: sticky;
    bottom: 0;
    background: white;
    border: 1px solid rgba(44, 42, 41, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.cogta-action-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(44, 42, 41, 0.6);
}

.cogta-action-status .icon {
    font-size: 16px;
}

.cogta-action-status.has-changes {
    color: var(--livi-orange, #EE9433);
}

.cogta-action-buttons {
    display: flex;
    gap: 12px;
}

.cogta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.cogta-btn-secondary {
    background: rgba(44, 42, 41, 0.06);
    color: var(--livi-charcoal, #2C2A29);
}

.cogta-btn-secondary:hover {
    background: rgba(44, 42, 41, 0.12);
    color: var(--livi-charcoal, #2C2A29);
}

.cogta-btn-primary {
    background: var(--livi-green, #44883E);
    color: white;
}

.cogta-btn-primary:hover {
    background: var(--livi-forest, #3C6A3F);
    color: white;
}

.cogta-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.cogta-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cogta-alert-danger {
    background: rgba(196, 30, 58, 0.08);
    color: #C41E3A;
}

.cogta-alert-warning {
    background: rgba(238, 148, 51, 0.1);
    color: #B5651D;
}

.cogta-alert .icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cogta-alert-content {
    flex: 1;
    font-size: 14px;
}

/* ==========================================================================
   Avatar with Initials (Task 1)
   ========================================================================== */
.cogta-avatar-initials {
    background: var(--livi-green, #44883E);
    color: white;
    border-color: var(--livi-green, #44883E);
}

.cogta-avatar-initials .initials {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

/* New contact avatar - placeholder state */
.cogta-avatar-new {
    background: rgba(44, 42, 41, 0.1);
    border: 2px dashed rgba(44, 42, 41, 0.3);
    color: rgba(44, 42, 41, 0.4);
}

.cogta-avatar-new .initials {
    font-size: 28px;
    font-weight: 400;
}

/* ==========================================================================
   Form Field Enhancements (Task 4)
   ========================================================================== */

/* Empty field background */
.cogta-input-wrap .form-control:placeholder-shown,
.cogta-input-wrap .form-select:invalid {
    background-color: #F9FAFB;
}

/* Filled field background */
.cogta-input-wrap .form-control:not(:placeholder-shown),
.cogta-input-wrap .form-select:valid {
    background-color: #FFFFFF;
}

/* Hover state for inputs */
.cogta-input-wrap .form-control:hover:not(:focus),
.cogta-input-wrap .form-select:hover:not(:focus) {
    border-color: rgba(44, 42, 41, 0.3);
}

/* ==========================================================================
   Progress Items Interactive (Task 5 & 9)
   ========================================================================== */

/* Incomplete items - orange/amber */
.cogta-progress-item:not(.completed) {
    color: var(--livi-orange, #EE9433);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cogta-progress-item:not(.completed):hover {
    color: #D97706;
    text-decoration: underline;
}

/* Completed items clickable */
.cogta-progress-item.completed {
    cursor: pointer;
    transition: all 0.15s ease;
}

.cogta-progress-item.completed:hover {
    color: var(--livi-forest, #3C6A3F);
}

/* Progress card complete state */
.cogta-progress-card.complete {
    background: rgba(68, 136, 62, 0.04);
    border-color: rgba(68, 136, 62, 0.2);
}

.cogta-progress-card.complete .cogta-progress-checklist {
    display: none;
}

/* Field highlight animation when clicked from progress */
@keyframes fieldHighlight {
    0% { box-shadow: 0 0 0 0 rgba(68, 136, 62, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(68, 136, 62, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(68, 136, 62, 0); }
}

.cogta-field.highlight .form-control,
.cogta-field.highlight .form-select {
    animation: fieldHighlight 0.6s ease;
}

/* ==========================================================================
   Tablet Breakpoint (Task 6)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .cogta-field-row.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Alternative contacts indent on larger screens */
@media (min-width: 768px) {
    .cogta-subsection {
        padding-left: 16px;
        border-left: 2px solid rgba(44, 42, 41, 0.08);
        border-top: none;
        padding-top: 0;
        margin-top: 24px;
        margin-left: 8px;
    }

    .cogta-subsection-label {
        color: rgba(44, 42, 41, 0.45);
        font-size: 10px;
    }
}

/* ==========================================================================
   Collapsible Sections (Task 8)
   ========================================================================== */
.cogta-section-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.cogta-section-header:hover {
    background: rgba(44, 42, 41, 0.04);
}

.cogta-section-toggle {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(44, 42, 41, 0.4);
    transition: transform 0.3s ease;
}

.cogta-section-toggle .icon {
    font-size: 16px;
}

.cogta-form-section.collapsed .cogta-section-toggle {
    transform: rotate(-90deg);
}

.cogta-section-body {
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
}

.cogta-form-section.collapsed .cogta-section-body {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* ==========================================================================
   Confirmation Modal (Task 2)
   ========================================================================== */
.cogta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cogta-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cogta-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.cogta-modal-overlay.show .cogta-modal {
    transform: scale(1);
}

.cogta-modal-header {
    padding: 20px 24px 0;
}

.cogta-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cogta-modal-title .icon {
    color: var(--livi-orange, #EE9433);
    font-size: 22px;
}

.cogta-modal-body {
    padding: 16px 24px 24px;
}

.cogta-modal-body p {
    margin: 0;
    color: rgba(44, 42, 41, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.cogta-modal-footer {
    padding: 0 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cogta-btn-danger {
    background: #C41E3A;
    color: white;
}

.cogta-btn-danger:hover {
    background: #A31830;
    color: white;
}

/* ==========================================================================
   Save Button Disabled State Enhancement (Task 3)
   ========================================================================== */
.cogta-btn-primary:disabled {
    background: rgba(68, 136, 62, 0.4);
    cursor: not-allowed;
    pointer-events: none;
}

.cogta-btn-primary:disabled:hover {
    background: rgba(68, 136, 62, 0.4);
}

/* ==========================================================================
   Two-Column Edit Layout
   ========================================================================== */

/* Main layout container - override single column */
.cogta-edit-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: none;
}

/* Profile Sidebar */
.cogta-profile-sidebar {
    width: 320px;
    min-width: 280px;
    max-width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;

    background: white;
    border: 1px solid rgba(44, 42, 41, 0.1);
    border-radius: 12px;
    padding: 24px;
}

/* Sidebar on Right variant (for Add pages) */
.cogta-edit-layout--sidebar-right {
    flex-direction: row;
}

.cogta-edit-layout--sidebar-right .cogta-form-content {
    order: 1;
    max-width: none;
}

.cogta-edit-layout--sidebar-right .cogta-profile-sidebar {
    order: 2;
}

/* Sidebar avatar section */
.cogta-sidebar-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
}

.cogta-sidebar-avatar .cogta-avatar {
    width: 80px;
    height: 80px;
}

.cogta-sidebar-avatar .cogta-avatar .initials {
    font-size: 28px;
}

.cogta-sidebar-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--livi-charcoal, #2C2A29);
    margin: 0;
    line-height: 1.3;
}

.cogta-sidebar-title {
    font-size: 0.875rem;
    color: rgba(44, 42, 41, 0.6);
    margin: 0;
}

.cogta-sidebar-department {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(68, 136, 62, 0.1);
    color: var(--livi-green, #44883E);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Sidebar quick contact section */
.cogta-sidebar-contact {
    padding: 20px 0;
    border-bottom: 1px solid rgba(44, 42, 41, 0.08);
}

.cogta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cogta-contact-item:last-child {
    margin-bottom: 0;
}

.cogta-contact-item:hover {
    background: rgba(44, 42, 41, 0.06);
}

.cogta-contact-item-icon {
    color: rgba(44, 42, 41, 0.4);
    font-size: 16px;
    flex-shrink: 0;
}

.cogta-contact-item-value {
    font-size: 0.875rem;
    color: var(--livi-charcoal, #2C2A29);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.cogta-contact-item-action {
    color: rgba(44, 42, 41, 0.3);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cogta-contact-item:hover .cogta-contact-item-action {
    opacity: 1;
}

.cogta-contact-item-action.copied {
    color: var(--livi-green, #44883E);
    opacity: 1;
}

/* Sidebar metadata */
.cogta-sidebar-meta {
    padding-top: 20px;
    text-align: center;
    color: rgba(44, 42, 41, 0.4);
    font-size: 0.75rem;
}

/* Form content area */
.cogta-form-content {
    flex: 1;
    min-width: 500px;
    max-width: 800px;
}

/* Move form inside form-content */
.cogta-form-content form {
    display: flex;
    flex-direction: column;
}

/* Responsive: Tablet (1200px and below) */
@media (max-width: 1200px) {
    .cogta-profile-sidebar {
        width: 280px;
        min-width: 260px;
    }

    .cogta-form-content {
        min-width: 400px;
    }

    .cogta-sidebar-avatar .cogta-avatar {
        width: 72px;
        height: 72px;
    }

    .cogta-sidebar-avatar .cogta-avatar .initials {
        font-size: 26px;
    }
}

/* Responsive: Mobile (900px and below) */
@media (max-width: 900px) {
    .cogta-edit-layout {
        flex-direction: column;
    }

    .cogta-profile-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: none;
        max-height: none;
        border-radius: 10px;
    }

    .cogta-sidebar-avatar {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding-bottom: 16px;
    }

    .cogta-sidebar-avatar .cogta-avatar {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .cogta-sidebar-avatar .cogta-avatar .initials {
        font-size: 24px;
    }

    .cogta-sidebar-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cogta-sidebar-contact {
        padding: 16px 0;
    }

    .cogta-form-content {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}


/* ==========================================================================
   26. PROFILE IMAGE UPLOAD COMPONENT
   ========================================================================== */

/* Image Upload Field Container */
.cogta-image-upload-field {
    margin-bottom: 20px;
}

.cogta-image-upload-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Image Preview Area */
.cogta-image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(44, 42, 41, 0.05);
    border: 2px dashed rgba(44, 42, 41, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cogta-image-preview.empty {
    background: rgba(44, 42, 41, 0.03);
}

.cogta-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cogta-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8094ae;
    text-align: center;
}

.cogta-preview-placeholder .icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.cogta-preview-placeholder span {
    font-size: 12px;
}

/* Moderation Status Overlay */
.cogta-moderation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cogta-moderation-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.cogta-moderation-badge.pending {
    background: rgba(255, 199, 44, 0.9);
    color: #2c2a29;
}

.cogta-moderation-badge.flagged {
    background: rgba(238, 148, 51, 0.9);
    color: #2c2a29;
}

.cogta-moderation-badge .icon {
    font-size: 12px;
}

/* Upload Actions */
.cogta-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cogta-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--livi-forest-green, #3c6a3f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cogta-upload-btn:hover {
    background: #2d5230;
    color: #fff;
}

.cogta-upload-btn .icon {
    font-size: 16px;
}

.cogta-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #e30513;
    border: 1px solid rgba(227, 5, 19, 0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cogta-remove-btn:hover {
    background: rgba(227, 5, 19, 0.1);
    border-color: #e30513;
}

.cogta-remove-btn .icon {
    font-size: 14px;
}

/* Moderation Warning */
.cogta-moderation-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    background: rgba(238, 148, 51, 0.1);
    border: 1px solid rgba(238, 148, 51, 0.3);
    border-radius: 6px;
    color: #2c2a29;
}

.cogta-moderation-warning > .icon {
    color: #ee9433;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cogta-moderation-warning strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cogta-moderation-warning p {
    margin: 0;
    font-size: 12px;
    color: #526484;
    line-height: 1.5;
}


/* ==========================================================================
   27. CONTENT MODERATION ADMIN PAGES
   ========================================================================== */

/* Flagged Content List */
.content-preview {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(44, 42, 41, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flagged-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transition: filter 0.2s;
}

.flagged-image-thumb:hover {
    filter: blur(0);
}

.no-preview {
    color: #8094ae;
    font-size: 24px;
}

.moderation-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Confidence Badge */
.confidence-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.confidence-badge.high {
    background: rgba(227, 5, 19, 0.1);
    color: #e30513;
}

.confidence-badge.medium {
    background: rgba(238, 148, 51, 0.1);
    color: #ee9433;
}

.confidence-badge.low {
    background: rgba(60, 106, 63, 0.1);
    color: #3c6a3f;
}

/* Badge variants for moderation */
.cogta-badge-muted {
    background: rgba(44, 42, 41, 0.08);
    color: #8094ae;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Image Modal Overlay */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay.show {
    display: flex;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Content Moderation Detail Page */
.flagged-image-container {
    position: relative;
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.flagged-image-full {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: filter 0.3s;
}

.flagged-image-full.blurred {
    filter: blur(20px);
}

.image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.image-blur-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Detected Labels List */
.detected-labels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detected-label-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(44, 42, 41, 0.03);
    border-radius: 6px;
}

.label-info {
    display: flex;
    flex-direction: column;
}

.label-name {
    font-weight: 500;
    color: #364a63;
}

.label-parent {
    font-size: 12px;
}

.label-confidence {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confidence-value {
    font-size: 12px;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}
