body {
    background: #f7f7f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f5b73 0%, #1d8aa8 100%);
    box-shadow: 8px 0 24px rgba(15, 91, 115, 0.20);
}

.sidebar .nav-link {
    border-radius: 10px;
    margin: 3px 0;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(2px);
}

.sidebar-logo,
.login-logo {
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.sidebar-logo img,
.login-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

main {
    background: transparent;
}

.auth-main {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.main-content {
    padding: 8px 4px 24px;
}

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.card .card-body {
    padding: 1.25rem 1.35rem;
}

.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-left: 4px solid #2563eb;
}

.metric-card .icon-box {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 22px;
}

.dashboard-screen {
    min-height: 100vh;
    background: #fff;
    color: #737373;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.dashboard-topbar {
    min-height: 128px;
    background: linear-gradient(90deg, #154b62 0%, #0c7184 58%, #0d8c9c 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    grid-template-areas:
        "brand user"
        "tabs user";
    align-items: center;
    gap: 12px 28px;
    padding: 20px 46px 16px;
}

.dashboard-brand {
    grid-area: brand;
    font-size: clamp(44px, 5.4vw, 76px);
    line-height: 0.85;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 5px rgba(15, 23, 42, 0.24);
}

.dashboard-tabs {
    grid-area: tabs;
    display: flex;
    align-items: center;
    gap: clamp(26px, 4vw, 66px);
}

.dashboard-tab {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
    text-underline-offset: 7px;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 800;
}

.dashboard-tab.active {
    color: #fff;
    text-decoration-thickness: 3px;
}

.dashboard-tab:hover,
.dashboard-tab:focus {
    color: #fff;
}

.dashboard-user {
    grid-area: user;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.dashboard-user-icon {
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 38px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.dashboard-logout-link {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.dashboard-user strong,
.dashboard-user span {
    display: block;
    color: #fff;
    line-height: 1.2;
}

.dashboard-user strong {
    max-width: 290px;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 900;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.dashboard-user span {
    margin-top: 4px;
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
}

.dashboard-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(58px, 8vw, 132px) 24px 40px;
}

.dashboard-claim-grid {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 78px);
    justify-content: center;
}

.dashboard-claim-card {
    position: relative;
    min-height: 216px;
    padding: 24px 24px;
    border: 2px solid #b6b6b6;
    border-radius: 18px;
    color: #737373;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-claim-card:hover,
.dashboard-claim-card:focus {
    color: #575757;
    border-color: #0f8a9d;
    box-shadow: 0 12px 28px rgba(15, 138, 157, 0.16);
    transform: translateY(-2px);
}

.dashboard-claim-title,
.dashboard-claim-subtitle {
    display: block;
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-claim-title {
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    font-weight: 900;
}

.dashboard-claim-subtitle {
    margin-top: 4px;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    font-weight: 700;
}

.dashboard-claim-card i {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: #777;
    font-size: clamp(46px, 4vw, 62px);
}

.dashboard-guide-button {
    margin-top: clamp(66px, 8vw, 112px);
    width: min(100%, 520px);
    min-height: 66px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    border-radius: 12px;
    background: linear-gradient(90deg, #154b62 0%, #0d8f9e 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.dashboard-guide-button:hover,
.dashboard-guide-button:focus {
    color: #fff;
    filter: brightness(0.96);
}

.dashboard-footer {
    padding: 18px 16px;
    text-align: center;
    color: #8a8a8a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {
    .dashboard-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "user"
            "tabs";
        padding: 22px 24px 18px;
    }

    .dashboard-user {
        justify-self: start;
        min-width: 0;
    }

    .dashboard-claim-grid {
        max-width: 680px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dashboard-topbar {
        min-height: auto;
        padding: 20px 18px;
    }

    .dashboard-tabs {
        gap: 18px;
        flex-wrap: wrap;
    }

    .dashboard-user-icon {
        width: 58px;
        height: 58px;
        font-size: 30px;
    }

    .dashboard-body {
        padding: 42px 18px 30px;
    }

    .dashboard-claim-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-claim-card {
        min-height: 184px;
    }
}

.login-shell {
    min-height: 100vh;
    background: linear-gradient(90deg, #134b61 0%, #0b6d7f 48%, #0f8a9d 100%);
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 48px 20px 35px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    min-height: 560px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
    padding: 34px 38px;
    text-align: center;
}

.login-logo {
    max-width: 190px;
    margin: 0 auto 28px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.login-wordmark {
    font-size: clamp(52px, 6vw, 72px);
    line-height: 0.95;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0;
    color: #000;
    margin-bottom: 18px;
}

.login-subtitle {
    color: #222;
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 36px;
}

.login-form-area form {
    display: grid;
    gap: 18px;
}

.login-field {
    width: 100%;
    height: 62px;
    border: 2px solid #b7b7b7;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1f2937;
    background: #fff;
    outline: none;
}

.login-field::placeholder {
    color: #b6b6b6;
    font-weight: 600;
}

.login-field:focus {
    border-color: #0f7f96;
    box-shadow: 0 0 0 0.18rem rgba(15, 127, 150, 0.16);
}

.login-button {
    justify-self: center;
    margin-top: 24px;
    min-width: 200px;
    height: 58px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(90deg, #134b61 0%, #0f8a9d 100%);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.login-button:hover,
.login-button:focus {
    filter: brightness(0.95);
}

.login-footer {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-align: center;
}

@media (max-width: 767.98px) {
    .login-card {
        max-width: 360px;
        min-height: auto;
        padding: 28px 24px;
    }

    .login-logo {
        max-width: 155px;
    }

    .login-field {
        height: 54px;
        font-size: 1.1rem;
    }

    .login-button {
        min-width: 170px;
        height: 52px;
        font-size: 1.1rem;
    }
}

.table th,
.table td {
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    color: #475569;
}

.badge {
    padding: 0.5em 0.7em;
    border-radius: 999px;
}

.btn {
    border-radius: 10px;
}

.document-preview {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.document-preview-body {
    height: 230px;
    background: #f8fafc;
}

.document-image-link,
.document-image {
    display: block;
    width: 100%;
    height: 100%;
}

.document-image {
    object-fit: contain;
}

.document-pdf {
    width: 100%;
    height: 100%;
    border: 0;
}

.document-file-icon,
.document-empty {
    height: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #64748b;
    text-align: center;
    padding: 18px;
}

.document-file-icon i,
.document-empty i {
    font-size: 42px;
    color: #0f7f96;
}

.document-preview-footer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

.document-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-delete-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.document-delete-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-delete-option small {
    color: #dc3545;
    font-weight: 600;
}

.claim-workspace {
    background: #fff;
    min-height: 100vh;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
}

.claim-page-bar {
    min-height: 64px;
    background: linear-gradient(90deg, #0b4c63 0%, #0f8ba0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 24px;
}

.claim-back {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.claim-brand {
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
}

.claim-title {
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    padding-bottom: 3px;
}

.claim-avatar {
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #0f8ba0;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.claim-info {
    padding: 14px 26px 8px;
    font-size: 0.86rem;
}

.claim-info div {
    display: flex;
    gap: 18px;
    margin-bottom: 6px;
}

.claim-info span {
    width: 90px;
    color: #64748b;
}

.claim-actions-row {
    padding: 0 26px 4px;
    display: flex;
    gap: 6px;
}

.claim-mini-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #0f8ba0;
    color: #0f8ba0;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    font-size: 12px;
    background: #fff;
}

.claim-mini-btn.muted {
    opacity: 0.7;
}

.claim-mini-btn-button {
    padding: 0;
    cursor: pointer;
}

.claim-table-wrap {
    margin: 0 26px;
    overflow-x: auto;
    border-top: 2px solid #0f8ba0;
    border-bottom: 2px solid #0f8ba0;
}

.claim-entry-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.claim-entry-table th {
    background: #f1f5f9;
    color: #1f2937;
    font-weight: 700;
    padding: 8px;
    border: 1px solid #d1d5db;
    white-space: nowrap;
}

.claim-entry-table th span {
    color: #dc3545;
}

.claim-entry-table td {
    background: #e5e7eb;
    padding: 7px;
    border: 1px solid #d1d5db;
    vertical-align: middle;
}

.claim-cell-input,
.claim-file-input {
    width: 100%;
    min-width: 130px;
    border: 0;
    background: transparent;
    font-size: 0.82rem;
    outline: none;
}

.claim-file-link {
    color: #0f8ba0;
    text-decoration: none;
    font-weight: 700;
}

.claim-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 26px 0;
}

.claim-detail-panel {
    display: grid;
    gap: 22px;
}

.claim-documents {
    margin: 10px 26px 0;
}

.claim-footer {
    margin-top: auto;
    padding: 30px 16px 0;
    text-align: center;
    color: #8a8a8a;
    font-size: 0.82rem;
    font-weight: 700;
}

.claim-tab-link {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 7px;
    margin-left: 18px;
}

.claim-tab-link.active {
    color: #fff;
    text-decoration-thickness: 3px;
}

.claim-user-chip {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.claim-user-chip i {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.claim-user-chip small {
    font-weight: 500;
}

.approval-panel {
    margin: 34px 26px;
    background: transparent;
    padding: 0;
}

.approval-search {
    display: flex;
    align-items: center;
    margin: 0 6px 8px auto;
    width: min(330px, calc(100% - 12px));
    background: #e5e7eb;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    padding: 5px 9px;
    color: #64748b;
}

.approval-search input {
    border: 0;
    background: transparent;
    outline: 0;
    width: 100%;
    margin-left: 8px;
}

.approval-table-wrap {
    margin: 0;
    border-bottom: 0;
}

.approval-table {
    min-width: 1060px;
}

.approval-table th {
    background: #9ca3af;
}

.approval-table td {
    background: #b8bec3;
}

.approval-status-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    background: #8b949b;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.status-dot.on.status-yellow {
    background: #f2c230;
}

.status-dot.on.status-green {
    background: #18b765;
}

.status-dot.on.status-blue {
    background: #0f6c9b;
}

.approval-inline-form {
    display: flex;
    gap: 6px;
}
