/* =========================================================
   Shiftify Admin Panel
   Compact / Minimal Admin CSS
   No Tailwind / No Bootstrap
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #172033;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   Login
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg,
            #06152f 0%,
            #0b2852 100%);
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo h1 {
    font-size: 25px;
    font-weight: 800;
    color: #071b3a;
    letter-spacing: 0.8px;
}

.login-logo p {
    color: #7a8494;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================================================
   Forms
   ========================================================= */

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #293548;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #123f78;
    box-shadow:
        0 0 0 2px rgba(18, 63, 120, 0.10);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-error {
    margin-top: 4px;
    font-size: 11px;
    color: #dc3545;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #071b3a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0b2852;
}

.btn-block {
    width: 100%;
    height: 40px;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b02a37;
}

/* =========================================================
   Alerts
   ========================================================= */

.alert {
    padding: 9px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 12px;
}

.alert-success {
    background: #ecfdf3;
    color: #087443;
    border: 1px solid #b7ebcd;
}

.alert-danger {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #f5c2c7;
}

/* =========================================================
   Admin Layout
   ========================================================= */

.admin-wrapper {
    min-height: 100vh;
    display: flex;
}

/* =========================================================
   Sidebar
   ========================================================= */

.admin-sidebar {
    width: 220px;
    background: #071b3a;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-brand {
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.sidebar-brand span {
    display: block;
    color: #93a4bd;
    font-size: 9px;
    margin-top: 1px;
}

.sidebar-menu {
    padding: 8px;
}

.sidebar-section {
    color: #7285a3;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px 9px 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 9px;
    margin-bottom: 2px;
    border-radius: 6px;
    color: #c6d1e2;
    font-size: 12px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-link:hover {
    background: #102d55;
    color: #ffffff;
}

.sidebar-link.active {
    background: #174d88;
    color: #ffffff;
}

.sidebar-icon {
    width: 25px;
    font-size: 14px;
}

/* =========================================================
   Main
   ========================================================= */

.admin-main {
    margin-left: 220px;
    width: calc(100% - 220px);
    min-height: 100vh;
}

/* =========================================================
   Header
   ========================================================= */

.admin-header {
    height: 58px;
    background: #ffffff;
    border-bottom: 1px solid #e4e8ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title {
    font-size: 16px;
    font-weight: 700;
    color: #172033;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
}

.user-role {
    font-size: 9px;
    color: #7a8494;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fb;
    color: #123f78;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   Content
   ========================================================= */

.admin-content {
    padding: 16px 18px;
}

.page-heading {
    margin-bottom: 14px;
}

.page-heading h1 {
    font-size: 20px;
    font-weight: 750;
}

.page-heading p {
    color: #7a8494;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================================================
   Dashboard Cards
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow:
        0 1px 3px rgba(20, 30, 50, 0.03);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 11px;
    color: #7a8494;
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4fc;
    color: #123f78;
    font-size: 13px;
}

.stat-value {
    margin-top: 5px;
    font-size: 21px;
    font-weight: 750;
    color: #172033;
}

.stat-description {
    margin-top: 2px;
    font-size: 10px;
    color: #8b95a5;
}

/* =========================================================
   Dashboard Sections
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns:
        2fr 1fr;
    gap: 14px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f4;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
}

.card-body {
    padding: 14px;
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f8fafc;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 9px 12px;
    border-top: 1px solid #edf0f4;
    font-size: 12px;
    color: #344054;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #fafcff;
}

/* =========================================================
   Status
   ========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.status-success {
    background: #ecfdf3;
    color: #087443;
}

.status-warning {
    background: #fffaeb;
    color: #b54708;
}

.status-danger {
    background: #fff1f2;
    color: #b42318;
}

.status-info {
    background: #eff8ff;
    color: #175cd3;
}

/* =========================================================
   Mobile
   ========================================================= */

.mobile-menu-button {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    background: #f2f4f7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-overlay {
    display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .admin-sidebar {
        transform: translateX(-100%);
        transition:
            transform 0.25s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-header {
        padding: 0 12px;
    }

    .admin-content {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-info {
        display: none;
    }

    .page-heading {
        margin-bottom: 10px;
    }

    .page-heading h1 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .login-page {
        padding: 12px;
    }

    .login-card {
        padding: 22px 16px;
    }

    .page-heading h1 {
        font-size: 17px;
    }

    .card-header {
        padding: 0 11px;
    }

    .card-body {
        padding: 11px;
    }

    .data-table th {
        padding: 7px 9px;
    }

    .data-table td {
        padding: 8px 9px;
    }
}

/* =========================================================
   FRAUD REPORTS — COMPACT ADMIN UI
   Keeps existing Blade structure/classes
   ========================================================= */

.stats-grid {
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.stats-grid .stat-card {
    padding: 11px 13px !important;
    border-radius: 6px !important;
    min-height: 82px;
    box-shadow: none !important;
}

.stats-grid .stat-card>div:first-child {
    margin-bottom: 3px !important;
}

.stats-grid .stat-card span:first-child {
    font-size: 9px !important;
    letter-spacing: .35px !important;
}

.stats-grid .stat-card span:last-child {
    padding: 4px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

.stats-grid .stat-card>div:nth-child(2) {
    font-size: 20px !important;
    line-height: 1.1 !important;
}

.stats-grid .stat-card>div:last-child {
    font-size: 9px !important;
    margin-top: 2px !important;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.page-heading {
    margin-bottom: 12px !important;
}

.page-heading h1 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

.page-heading p {
    font-size: 11px !important;
    line-height: 1.4 !important;
}


/* =========================================================
   FILTER CARD
   ========================================================= */

#fraud-filter-form {
    padding: 0 !important;
}

#fraud-filter-form>div {
    gap: 8px !important;
}

#fraud-filter-form label {
    font-size: 9px !important;
    margin-bottom: 3px !important;
    letter-spacing: .3px !important;
}

#fraud-filter-form .form-control {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

#fraud-filter-form .card,
.card {
    border-radius: 6px !important;
}

.card:has(#fraud-filter-form) {
    margin-bottom: 12px !important;
}

.card:has(#fraud-filter-form)>div {
    padding: 10px 12px !important;
}


/* =========================================================
   FILTER BUTTONS
   ========================================================= */

#fraud-filter-submit {
    height: 32px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
}

#fraud-filter-form a {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
}


/* =========================================================
   TABLE
   ========================================================= */

.card table {
    font-size: 10.5px !important;
}

.card table thead tr {
    font-size: 9px !important;
}

.card table th {
    padding: 8px 10px !important;
    white-space: nowrap;
}

.card table td {
    padding: 8px 10px !important;
    white-space: nowrap;
}

.card table tbody tr {
    height: 38px;
}

.card table td div {
    line-height: 1.25 !important;
}

.card table td div[style*="font-size: 11px"] {
    font-size: 9px !important;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.card table td span {
    font-size: 8px !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
    letter-spacing: .2px;
}


/* =========================================================
   VIEW BUTTON
   ========================================================= */

.card table td a {
    padding: 4px 8px !important;
    font-size: 9px !important;
    border-radius: 3px !important;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.card table td[colspan] {
    padding: 28px 12px !important;
    font-size: 11px !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.card:has(table)>div:last-child {
    padding: 8px 12px !important;
}


/* =========================================================
   HOVER — VERY SUBTLE
   ========================================================= */

.stats-grid .stat-card {
    transition: border-color .15s ease,
        background .15s ease,
        transform .15s ease !important;
}

.stats-grid .stat-card:hover {
    transform: translateY(-1px);
    background: #fafbfc !important;
}

.card table tbody tr:hover {
    background: #f8fafc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #fraud-filter-form>div {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


@media (max-width: 700px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #fraud-filter-form>div {
        grid-template-columns: 1fr !important;
    }

    .page-heading h1 {
        font-size: 16px !important;
    }
}

/* ============================================================
   SHIFTIFY — FRAUD REPORTS PROFESSIONAL DASHBOARD
   Visual enhancement only — existing Blade structure preserved
   ============================================================ */

/* ---------- Page ---------- */

.page-heading {
    margin-bottom: 15px !important;
}

.page-heading h1 {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    margin-bottom: 3px !important;
}

.page-heading p {
    font-size: 11px !important;
    color: #64748b !important;
}


/* ---------- Stat Cards ---------- */

.stats-grid {
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.stats-grid .stat-card {
    position: relative;
    overflow: hidden;
    padding: 12px 14px !important;
    min-height: 88px;
    border-radius: 7px !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease !important;
}

/* Small colored accent on left */

.stats-grid .stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #cbd5e1;
}

.stats-grid .stat-card:nth-child(1)::before {
    background: #2563eb;
}

.stats-grid .stat-card:nth-child(2)::before {
    background: #3b82f6;
}

.stats-grid .stat-card:nth-child(3)::before {
    background: #f59e0b;
}

.stats-grid .stat-card:nth-child(4)::before {
    background: #10b981;
}

.stats-grid .stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .07) !important;
    border-color: #cbd5e1 !important;
}

.stats-grid .stat-card>div:first-child {
    margin-bottom: 4px !important;
}

.stats-grid .stat-card span:first-child {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
}

.stats-grid .stat-card span:last-child {
    padding: 4px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

.stats-grid .stat-card>div:nth-child(2) {
    font-size: 21px !important;
    line-height: 1.1 !important;
    letter-spacing: -.4px;
}

.stats-grid .stat-card>div:last-child {
    margin-top: 3px !important;
    font-size: 9px !important;
}


/* ---------- Active Stat Card ---------- */

.stats-grid .stat-card.is-active {
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .05),
        0 3px 10px rgba(37, 99, 235, .07) !important;
}


/* ============================================================
   FILTER PANEL
   ============================================================ */

.card:has(#fraud-filter-form) {
    margin-bottom: 14px !important;
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.card:has(#fraud-filter-form)>div {
    padding: 11px 13px !important;
}

#fraud-filter-form>div {
    gap: 8px !important;
}

#fraud-filter-form label {
    font-size: 9px !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    color: #475569 !important;
    letter-spacing: .3px;
}

#fraud-filter-form .form-control {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
    border-radius: 4px !important;
    border-color: #d7dee8 !important;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#fraud-filter-form .form-control:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08) !important;
}


/* ---------- Filter Buttons ---------- */

#fraud-filter-submit {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    background: #0f172a !important;
    transition: all .15s ease;
}

#fraud-filter-submit:hover {
    background: #1e293b !important;
}

#fraud-filter-form a {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
}


/* ============================================================
   DATA TABLE
   ============================================================ */

.card:has(table) {
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
}

.card table {
    font-size: 10.5px !important;
}

.card table thead tr {
    background: #f8fafc !important;
    height: 34px;
    font-size: 8.5px !important;
    letter-spacing: .45px !important;
}

.card table th {
    padding: 8px 10px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    white-space: nowrap;
}

.card table td {
    padding: 7px 10px !important;
    height: 40px;
    border-bottom-color: #f1f5f9 !important;
}

.card table tbody tr {
    transition: background .12s ease;
}

.card table tbody tr:hover {
    background: #f8fafc !important;
}


/* ---------- Report ID ---------- */

.card table td:first-child {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}


/* ---------- Reporter / Accused ---------- */

.card table td div {
    line-height: 1.25 !important;
}

.card table td div:first-child {
    font-size: 10.5px !important;
    font-weight: 600 !important;
}

.card table td div[style*="font-size: 11px"] {
    font-size: 9px !important;
    color: #94a3b8 !important;
}


/* ---------- Status ---------- */

.card table td span {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1;
    border-radius: 3px !important;
    letter-spacing: .25px;
}


/* ---------- View Button ---------- */

.card table td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px !important;
    min-width: 38px;
    font-size: 9px !important;
    border-radius: 3px !important;
    transition: all .15s ease;
}

.card table td a:hover {
    transform: translateY(-1px);
}


/* ============================================================
   PAGINATION
   ============================================================ */

.card:has(table)>div:last-child {
    padding: 8px 12px !important;
}

.card:has(table) .pagination {
    margin: 0;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.card table td[colspan] {
    padding: 32px 15px !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #fraud-filter-form>div {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


@media (max-width: 700px) {

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    #fraud-filter-form>div {
        grid-template-columns: 1fr !important;
    }

    .page-heading h1 {
        font-size: 17px !important;
    }
}

/* ============================================================
   SHIFTIFY — FRAUD REPORT DETAIL
   Compact / Professional Admin Dashboard
   Visual CSS only — Blade structure unchanged
   ============================================================ */


/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */

.page-heading {
    margin-bottom: 10px !important;
}

.page-heading h1 {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -.25px;
    color: #071b3a !important;
}

.page-heading p {
    font-size: 10px !important;
    color: #8a94a3 !important;
}

.page-heading .btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px !important;
}


/* ------------------------------------------------------------
   TOP INFORMATION CARDS
   ------------------------------------------------------------ */

.page-heading+div {
    gap: 9px !important;
    margin-bottom: 10px !important;
}

.page-heading+div>.card {
    border: 1px solid #e6eaf0;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
    overflow: hidden;
}


/* Card headers */

.card-header {
    padding: 7px 10px !important;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.card-title {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .45px !important;
    color: #64748b !important;
}


/* Card bodies */

.card-body {
    padding: 9px 10px !important;
}


/* ------------------------------------------------------------
   INFORMATION VALUES
   ------------------------------------------------------------ */

.card-body {
    font-size: 10px !important;
}

.card-body>div {
    gap: 5px;
}

.stat-label {
    font-size: 8px !important;
    font-weight: 600 !important;
    letter-spacing: .3px;
    color: #94a3b8 !important;
    margin-bottom: 1px;
}

.card-body div[style*="font-weight: 600"] {
    font-size: 10.5px !important;
}


/* ------------------------------------------------------------
   TOP CARDS — REDUCE VERTICAL HEIGHT
   ------------------------------------------------------------ */

.page-heading+div .card-body {
    display: grid;
    gap: 6px !important;
}

.page-heading+div .card-body>div {
    min-height: 24px;
}


/* ------------------------------------------------------------
   STATUS CONTROL
   ------------------------------------------------------------ */

.page-heading+div .card-body form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.page-heading+div .form-group {
    margin-bottom: 0 !important;
}

.page-heading+div .form-label {
    font-size: 8px !important;
    margin-bottom: 3px !important;
    color: #7a8494 !important;
}

.page-heading+div select.form-control {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 10px !important;
    padding: 0 7px !important;
    border-radius: 4px !important;
}

.page-heading+div button {
    height: 30px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
}


/* ------------------------------------------------------------
   VERIFIED BADGE
   ------------------------------------------------------------ */

.status {
    line-height: 1.2 !important;
}

.status-success,
.status-danger {
    font-size: 8px !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.card:has(.card-title) {
    border-radius: 6px !important;
}


/* Incident statement */

.card-body>div[style*="white-space: pre-wrap"] {
    padding: 9px 10px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    border-radius: 4px !important;
    max-height: 105px;
    overflow-y: auto;
}


/* ------------------------------------------------------------
   DESCRIPTION CARD
   ------------------------------------------------------------ */

.card:has(div[style*="white-space: pre-wrap"]) {
    margin-bottom: 9px !important;
}

.card:has(div[style*="white-space: pre-wrap"]) .card-header {
    background: #fafbfc !important;
}


/* ============================================================
   EVIDENCE
   ============================================================ */

.card:has(a[href*="evidence"]) {
    margin-bottom: 9px !important;
}

.card:has(a[href*="evidence"]) .card-body {
    padding: 8px 10px !important;
}


/* Evidence list */

.card:has(a[href*="evidence"]) .card-body>div {
    gap: 5px !important;
}


/* Individual evidence row */

.card:has(a[href*="evidence"]) .card-body>div>div {
    min-height: 30px;
    padding: 5px 8px !important;
    border-radius: 4px !important;
    background: #fbfcfd !important;
    border-color: #e8ecf1 !important;
}


/* File extension badge */

.card:has(a[href*="evidence"]) .card-body span {
    font-size: 8px !important;
}

.card:has(a[href*="evidence"]) .card-body span[style*="background"] {
    padding: 2px 4px !important;
}


/* File name */

.card:has(a[href*="evidence"]) .card-body span[style*="font-weight: 500"] {
    font-size: 9.5px !important;
}


/* View file */

.card:has(a[href*="evidence"]) .btn {
    padding: 3px 7px !important;
    font-size: 8px !important;
    min-height: 24px;
    border-radius: 3px !important;
}


/* ============================================================
   LEGAL DECLARATION
   ============================================================ */

.card:last-child .card-body {
    padding: 9px 10px !important;
}

.card:last-child .card-body>div:first-child {
    margin-bottom: 5px !important;
}

.card:last-child .card-body>div:last-child {
    padding: 7px 9px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    border-radius: 3px !important;
}


/* ============================================================
   SUBTLE HOVER EFFECTS
   ============================================================ */

.page-heading+div>.card,
.card:has(div[style*="white-space: pre-wrap"]),
.card:has(a[href*="evidence"]),
.card:last-child {
    transition: box-shadow .15s ease, border-color .15s ease;
}

.page-heading+div>.card:hover,
.card:has(div[style*="white-space: pre-wrap"]):hover,
.card:has(a[href*="evidence"]):hover,
.card:last-child:hover {
    border-color: #dbe2ea;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .045);
}


/* ============================================================
   DESKTOP — USE SPACE BETTER
   ============================================================ */

@media (min-width: 1100px) {

    /*
     * Description + Evidence + Declaration can share
     * horizontal space instead of becoming very tall.
     */

    .card:has(div[style*="white-space: pre-wrap"]) {
        width: calc(65% - 5px);
        display: inline-block;
        vertical-align: top;
        margin-right: 5px;
    }

    .card:has(a[href*="evidence"]) {
        width: calc(35% - 5px);
        display: inline-block;
        vertical-align: top;
        margin-left: 5px;
    }

    /*
     * Declaration remains full width.
     */
    .card:last-child {
        width: 100%;
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1099px) {

    .page-heading+div {
        grid-template-columns: 1fr 1fr !important;
    }

    .page-heading+div>.card:last-child {
        grid-column: span 2;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .page-heading {
        align-items: flex-start !important;
        gap: 8px;
    }

    .page-heading+div {
        grid-template-columns: 1fr !important;
    }

    .page-heading+div>.card:last-child {
        grid-column: auto;
    }

    .page-heading .btn {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }

    .card-body {
        padding: 9px !important;
    }

    .card:has(div[style*="white-space: pre-wrap"]),
    .card:has(a[href*="evidence"]) {
        width: 100%;
        display: block;
        margin: 0 0 9px 0;
    }
}