:root {
            --primary-red: #b91c1c;
            --primary-red-dark: #991b1b;
            --navy: #111827;
            --navy-2: #1f2a44;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border-color: #e5e7eb;
            --bg: #f6f7fb;
            --card: #ffffff;
            --soft-red: #fef2f2;
            --soft-blue: #eff6ff;
            --soft-green: #dcfce7;
            --soft-yellow: #fef3c7;
            --soft-purple: #ede9fe;
        }

        * {
            box-sizing: border-box
        }

        body {
            margin: 0;
            font-family: "DM Sans", Segoe UI, Arial, sans-serif;
            background: var(--bg);
            color: var(--text-main);
        }

        a {
            text-decoration: none;
            color: inherit
        }

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

        .sidebar {
            width: 252px;
            background: #fff;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 10;
        }

        .sidebar-header {
            height: 68px;
            display: flex;
            align-items: center;
            padding: 0 18px;
            border-bottom: 1px solid var(--border-color)
        }

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

        .logo-icon img {
            width: 42px;
            height: auto;
            display: block
        }

        .logo-text {
            font-weight: 700;
            font-size: .95rem;
            color: var(--text-main)
        }

        .sidebar-nav {
            padding: 18px 14px;
            flex: 1;
            overflow: auto
        }

        .nav-group-title {
            font-size: .72rem;
            color: #94a3b8;
            font-weight: 700;
            margin: 20px 10px 8px;
            text-transform: uppercase;
            letter-spacing: .02em
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 12px;
            border-radius: 8px;
            color: #475569;
            font-size: .9rem;
            font-weight: 600;
            margin-bottom: 4px;
            position: relative;
        }

        .nav-item i {
            width: 16px;
            text-align: center;
            color: #334155
        }

        .nav-item.active,
        .nav-item:hover {
            background: #fff;
            box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
            color: var(--primary-red)
        }

        .nav-item.active::before {
            content: "";
            position: absolute;
            left: -14px;
            top: 9px;
            bottom: 9px;
            width: 3px;
            background: var(--primary-red);
            border-radius: 4px;
        }

        .nav-item.active i,
        .nav-item:hover i {
            color: var(--primary-red)
        }

        .badge {
            margin-left: auto;
            background: var(--primary-red);
            color: #fff;
            min-width: 22px;
            height: 22px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
            font-weight: 700;
        }

        .nav-sub-menu {
            display: none;
            padding-left: 35px
        }

        .nav-dropdown.open .nav-sub-menu {
            display: block
        }

        .sub-nav-item {
            display: block;
            padding: 8px 10px;
            color: #64748b;
            font-size: .84rem;
            border-radius: 6px;
            margin: 2px 0
        }

        .sub-nav-item:hover,
        .sub-nav-item.active {
            color: var(--primary-red);
            background: #fef2f2
        }

        .sidebar-footer {
            padding: 16px 18px;
            border-top: 1px solid var(--border-color)
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px
        }

        .user-profile img {
            width: 38px;
            height: 38px;
            border-radius: 50%
        }

        .user-name {
            display: block;
            font-size: .84rem;
            font-weight: 700
        }

        .user-role {
            display: block;
            font-size: .76rem;
            color: var(--text-muted)
        }

        .main-content {
            margin-left: 252px;
            min-height: 100vh;
            width: calc(100% - 252px)
        }

        .top-header {
            height: 52px;
            background: #fff;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 28px
        }

        .breadcrumb {
            font-size: .86rem;
            color: var(--text-muted)
        }

        .breadcrumb .separator {
            margin: 0 10px;
            color: #cbd5e1
        }

        .breadcrumb .current {
            color: var(--text-main);
            font-weight: 700
        }

        .page-content {
            padding: 26px 28px 36px
        }

        .page-title-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px
        }

        .title-left {
            display: flex;
            align-items: flex-start;
            gap: 16px
        }

        .card-icon-wrapper {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.18rem;
            background: #fee2e2;
            color: var(--primary-red);
            flex: 0 0 auto;
        }

        h1 {
            margin: 0;
            font-size: 1.55rem;
            line-height: 1.2
        }

        .page-subtitle {
            margin: 6px 0 0;
            color: var(--text-muted);
            font-size: .92rem
        }

        .btn {
            border: 1px solid var(--border-color);
            background: #fff;
            color: var(--text-main);
            border-radius: 7px;
            padding: 10px 15px;
            font-weight: 700;
            font-size: .9rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            line-height: 1;
        }

        .btn:hover {
            box-shadow: 0 4px 12px rgba(15, 23, 42, .08)
        }

        .btn-primary {
            background: var(--primary-red);
            border-color: var(--primary-red);
            color: #fff
        }

        .btn-primary:hover {
            background: var(--primary-red-dark)
        }

        .btn-outline {
            background: #fff;
            color: var(--text-main)
        }

        .btn-text-red {
            color: var(--primary-red);
            padding: 0;
            border: 0;
            background: transparent
        }

        .data-container,
        .panel {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 9px;
        }

        .data-container {
            padding: 24px
        }

        .filters-row {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            align-items: center;
            flex-wrap: wrap
        }

        .search-group {
            flex: 1;
            min-width: 260px;
            position: relative
        }

        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted)
        }

        .form-control,
        .custom-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 7px;
            font: inherit;
            font-size: .9rem;
            background: #fff;
            color: var(--text-main);
        }

        .search-group .form-control {
            padding-left: 38px
        }

        .filter-group label,
        .form-group label {
            display: block;
            font-size: .8rem;
            color: var(--text-muted);
            font-weight: 700;
            margin-bottom: 6px
        }

        .table-responsive {
            overflow-x: auto
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            background: #fff
        }

        .data-table th {
            background: #1f2548;
            color: #fff;
            padding: 13px 16px;
            font-size: .82rem;
            font-weight: 700;
            border: 1px solid #d7dce6;
            white-space: nowrap;
        }

        .data-table td {
            padding: 16px;
            border: 1px solid var(--border-color);
            font-size: .9rem;
            vertical-align: middle;
        }

        .data-table tbody tr:hover {
            background: #fbfcff
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: .76rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .status-pending {
            background: #fef3c7;
            color: #b45309
        }

        .status-approved {
            background: #dcfce7;
            color: #15803d
        }

        .status-rejected {
            background: #fee2e2;
            color: #b91c1c
        }

        .status-draft {
            background: #f1f5f9;
            color: #475569
        }

        .status-paid {
            background: #e0e7ff;
            color: #4338ca
        }

        .actions-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px
        }

        .action-btn {
            width: 30px;
            height: 30px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: #fff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #0f172a;
        }

        .action-btn:hover {
            border-color: #cbd5e1;
            background: #f8fafc
        }

        .delete-btn {
            color: var(--primary-red)
        }

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

        .showing-text {
            font-size: .84rem;
            color: var(--text-muted)
        }

        .pagination {
            display: flex;
            gap: 4px
        }

        .page-btn {
            min-width: 32px;
            height: 32px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: #fff;
            color: #475569
        }

        .page-btn.active {
            background: var(--primary-red);
            border-color: var(--primary-red);
            color: #fff
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 20px
        }

        .summary-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 9px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .summary-icon {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        .summary-card h3 {
            margin: 0;
            color: var(--text-muted);
            font-size: .8rem
        }

        .summary-card strong {
            display: block;
            margin-top: 3px;
            font-size: 1.35rem;
            color: var(--text-main)
        }

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

        .form-group.full {
            grid-column: 1/-1
        }

        textarea.form-control {
            min-height: 98px;
            resize: vertical;
            line-height: 1.5
        }

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

        .panel-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 800;
            color: var(--text-main)
        }

        .panel-body {
            padding: 20px
        }

        .required {
            color: var(--primary-red)
        }

        .claim-type-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 22px
        }

        .claim-type-card {
            border: 1px solid var(--border-color);
            background: #fff;
            border-radius: 10px;
            padding: 16px;
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            transition: .18s ease;
        }

        .claim-type-card:hover {
            border-color: #fca5a5;
            box-shadow: 0 8px 22px rgba(185, 28, 28, .08)
        }

        .claim-type-card.active {
            border-color: var(--primary-red);
            background: #fff7f7
        }

        .claim-type-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: #fef2f2;
            color: var(--primary-red);
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .claim-type-title {
            font-weight: 800;
            margin-bottom: 4px
        }

        .claim-type-desc {
            font-size: .8rem;
            color: var(--text-muted);
            line-height: 1.4
        }

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

        .line-table th,
        .line-table td {
            padding: 10px
        }

        .line-table input,
        .line-table select {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 8px;
            font: inherit;
            font-size: .84rem;
        }

        .side-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 9px;
            padding: 16px;
            margin-bottom: 14px;
        }

        .side-card h3 {
            font-size: .95rem;
            margin: 0 0 12px
        }

        .side-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid var(--border-color);
            padding: 10px 0;
            font-size: .88rem
        }

        .side-row:last-child {
            border-bottom: 0
        }

        .side-row span:first-child {
            color: var(--text-muted)
        }

        .side-row span:last-child {
            font-weight: 800
        }

        .notice {
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
            border-radius: 7px;
            padding: 12px;
            font-size: .84rem;
            line-height: 1.45;
        }

        .form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 22px
        }

        .hidden {
            display: none !important
        }

        @media(max-width:1180px) {
            .summary-cards {
                grid-template-columns: repeat(2, 1fr)
            }

            .claim-type-grid {
                grid-template-columns: repeat(2, 1fr)
            }

            .claim-form-layout {
                grid-template-columns: 1fr
            }
        }

        @media(max-width:760px) {
            .sidebar {
                position: static;
                width: 100%;
                height: auto
            }

            .app-container {
                display: block
            }

            .main-content {
                margin-left: 0;
                width: 100%
            }

            .page-title-section {
                align-items: flex-start;
                gap: 14px;
                flex-direction: column
            }

            .summary-cards,
            .claim-type-grid,
            .form-grid {
                grid-template-columns: 1fr
            }
        }
