/* =========================================================
   DOC A S T R A
   Global Application Styles
   ========================================================= */

:root {
    --primary: #1f3a5f;
    --primary-dark: #162b46;
    --primary-light: #eef4fb;

    --text: #172033;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --background: #f6f8fb;
    --surface: #ffffff;
    --border: #e5eaf0;

    --success: #15803d;
    --success-bg: #ecfdf3;

    --warning: #b45309;
    --warning-bg: #fff7ed;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;

    --info: #0369a1;
    --info-bg: #eff6ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm:
        0 1px 3px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 4px 16px rgba(15, 23, 42, 0.07);

    --sidebar-width: 250px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   APPLICATION LAYOUT
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);

    height: 70px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    z-index: 100;
}

.topbar-brand {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--primary-light);
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 14px;
}

.user-details {
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: var(--sidebar-width);

    background: #ffffff;

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    z-index: 200;
}

.sidebar-logo {
    height: 70px;

    padding: 0 25px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-size: 21px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--primary);
}

.logo-subtitle {
    display: block;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--text-muted);

    margin-top: -2px;
}

.sidebar-nav {
    padding: 22px 14px;

    flex: 1;
}

.nav-section-title {
    padding: 0 12px;

    margin: 10px 0 8px;

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.nav-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    margin-bottom: 4px;

    border-radius: 9px;

    text-decoration: none;

    color: var(--text-secondary);

    font-size: 14px;

    font-weight: 500;

    transition:
        background .15s ease,
        color .15s ease;
}

.nav-item:hover {
    background: #f4f7fa;

    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);

    color: var(--primary);

    font-weight: 600;
}

.nav-icon {
    width: 20px;

    text-align: center;

    font-size: 16px;
}

.sidebar-footer {
    padding: 16px;

    border-top: 1px solid var(--border);
}

.logout-button {
    width: 100%;

    border: 0;

    background: transparent;

    color: var(--text-secondary);

    text-align: left;

    padding: 10px 13px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 14px;
}

.logout-button:hover {
    background: var(--danger-bg);

    color: var(--danger);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: var(--sidebar-width);

    padding-top: 70px;

    min-height: 100vh;
}

.page-container {
    max-width: 1400px;

    margin: 0 auto;

    padding: 32px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.page-title {
    margin: 0;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 700;

    color: var(--text);
}

.page-subtitle {
    margin: 7px 0 0;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 9px;

    border: 1px solid transparent;

    text-decoration: none;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.button:hover {
    transform: translateY(-1px);

    box-shadow: var(--shadow-sm);
}

.button-primary {
    background: var(--primary);

    color: white;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: white;

    border-color: var(--border);

    color: var(--text);
}

.button-danger {
    background: var(--danger);

    color: white;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 24px;

    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.card-title {
    margin: 0;

    font-size: 17px;

    font-weight: 650;
}

.card-description {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 30px;
}

.stat-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.stat-icon {
    width: 44px;
    height: 44px;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}

.stat-label {
    color: var(--text-secondary);

    font-size: 12px;

    margin-bottom: 3px;
}

.stat-value {
    font-size: 23px;

    font-weight: 700;

    color: var(--text);
}


/* =========================================================
   DOCUMENT TYPE CARDS
   ========================================================= */

.document-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.document-card {
    display: block;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    padding: 22px;

    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.document-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow-md);

    border-color: #cbd5e1;
}

.document-icon {
    width: 46px;
    height: 46px;

    border-radius: 11px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    margin-bottom: 17px;
}

.document-card h3 {
    margin: 0 0 7px;

    font-size: 16px;
}

.document-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;
}

.document-action {
    display: block;

    margin-top: 17px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 600;
}

.document-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.document-required-badge,
.document-optional-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.document-required-badge {
    background: #fef2f2;
    color: #b91c1c;
}

.document-optional-badge {
    background: #f3f4f6;
    color: #6b7280;
}

.existing-document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.existing-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
}

.existing-document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.existing-document-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface);
    flex-shrink: 0;
}

.existing-document-details {
    min-width: 0;
}

.existing-document-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.existing-document-meta {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}

.existing-document-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.document-upload-new {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.document-upload-new-label {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.document-delete-form {
    margin: 0;
}

.button-small {
    padding: 7px 11px;
    font-size: 12px;
}

.button-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.button-danger:hover {
    background: #fee2e2;
}

@media (max-width: 600px) {

    .existing-document {
        align-items: flex-start;
        flex-direction: column;
    }

    .existing-document-actions {
        width: 100%;
    }

    .existing-document-actions .button,
    .existing-document-actions form {
        flex: 1;
    }

    .existing-document-actions form button {
        width: 100%;
    }

    .document-title-row {
        align-items: flex-start;
    }
}

/* =========================================================
   DOCUMENTS SECTION
   ========================================================= */

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* Individual document card */

.document-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.document-card:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}


/* Header */

.document-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}


/* Requirement / document type */

.document-requirement {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}


/* Actual filename */

.document-file-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}


/* Metadata */

.document-meta {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}


/* Action area */

.document-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}


/* View button */

.document-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}


/* Empty state */

.empty-state {
    padding: 30px 20px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--surface);
    text-align: center;
    font-size: 13px;
}


/* Mobile */

@media (max-width: 600px) {

    .document-card {
        padding: 16px;
    }

    .document-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .document-requirement {
        font-size: 12px;
    }

    .document-file-name {
        font-size: 13px;
    }

    .document-actions {
        margin-top: 13px;
    }

    .document-actions .button {
        width: 100%;
    }
}

/* =========================================================
   DOCUMENT CATEGORY
   ========================================================= */

.document-category {
    margin-top: 20px;
}

.document-category + .document-category {
    margin-top: 28px;
}

.document-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px;
    margin-bottom: 12px;

    background: var(--surface-secondary, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.document-category-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.document-category-description {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.5;

    color: var(--text-secondary);
}

.document-category-count {
    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 999px;

    background: var(--surface);
    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}
.document-category .document-card {
    margin-bottom: 10px;
}

.document-category .document-card:last-child {
    margin-bottom: 0;
}

/* =========================================================
   REQUEST LIST
   ========================================================= */

.request-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.request-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1.2fr)
        minmax(160px, 1fr)
        150px
        130px;

    align-items: center;

    gap: 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    padding: 17px 20px;

    text-decoration: none;

    transition:
        box-shadow .15s ease,
        border-color .15s ease;
}

.request-row:hover {
    border-color: #cbd5e1;

    box-shadow: var(--shadow-sm);
}

.request-number {
    color: var(--primary);

    font-weight: 700;

    font-size: 13px;
}

.request-document {
    margin-top: 4px;

    font-size: 14px;

    font-weight: 600;
}

.request-date {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 5px 10px;

    border-radius: 20px;

    background: var(--info-bg);

    color: var(--info);

    font-size: 12px;

    font-weight: 600;
}

.status-success {
    background: var(--success-bg);

    color: var(--success);
}

.status-warning {
    background: var(--warning-bg);

    color: var(--warning);
}

.status-danger {
    background: var(--danger-bg);

    color: var(--danger);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center;

    padding: 55px 20px;
}

.empty-state-icon {
    font-size: 38px;

    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 7px;

    font-size: 17px;
}

.empty-state p {
    margin: 0 auto 20px;

    max-width: 420px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        left: 0;

        padding: 0 18px;
    }

    .topbar-brand {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .page-container {
        padding: 24px 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .request-row {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .page-header {
        flex-direction: column;
    }

}

@media (max-width: 600px) {

    .page-title {
        font-size: 23px;
    }

    .topbar-right {
        gap: 8px;
    }

    .user-details {
        display: none;
    }

    .card {
        padding: 18px;
    }

}

/* =========================================================
   COLLAPSIBLE SIDEBAR
   ========================================================= */

:root {
    --sidebar-expanded: 250px;
    --sidebar-collapsed: 72px;
}


/* Sidebar transition */

.sidebar {
    width: var(--sidebar-expanded);

    transition:
        width 0.22s ease;
}


/* Topbar */

.topbar {
    left: var(--sidebar-expanded);

    transition:
        left 0.22s ease;
}


/* Main content */

.main-content {
    margin-left: var(--sidebar-expanded);

    transition:
        margin-left 0.22s ease;
}


/* =========================================================
   COLLAPSED STATE
   ========================================================= */

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}


body.sidebar-collapsed .topbar {
    left: var(--sidebar-collapsed);
}


body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed);
}


/* Hide text when collapsed */

body.sidebar-collapsed .logo-text {
    font-size: 0;
}

body.sidebar-collapsed .logo-text::before {
    content: "D";
    font-size: 21px;
    font-weight: 800;
}


body.sidebar-collapsed .logo-subtitle {
    display: none;
}


body.sidebar-collapsed .nav-section-title {
    display: none;
}


body.sidebar-collapsed .nav-item {
    justify-content: center;

    padding-left: 0;
    padding-right: 0;

    position: relative;
}


body.sidebar-collapsed .nav-item .nav-icon {
    margin: 0;
}


body.sidebar-collapsed .nav-item {
    font-size: 0;
}


body.sidebar-collapsed .nav-item .nav-icon {
    font-size: 17px;
}


body.sidebar-collapsed .sidebar-footer .user-profile {
    justify-content: center;
}


body.sidebar-collapsed .sidebar-footer .user-details {
    display: none;
}


body.sidebar-collapsed .logout-button {
    text-align: center;

    font-size: 0;
}


body.sidebar-collapsed .logout-button::before {
    content: "↪";

    font-size: 17px;
}


/* =========================================================
   COLLAPSE BUTTON
   ========================================================= */

.sidebar-toggle {
    position: absolute;

    top: 17px;
    right: -14px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: white;

    color: var(--primary);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.08);

    z-index: 300;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.sidebar-toggle:hover {
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.12);
}


body.sidebar-collapsed .sidebar-toggle {
    transform: rotate(180deg);
}


/* =========================================================
   TOOLTIP FOR COLLAPSED NAV
   ========================================================= */

body.sidebar-collapsed .nav-item:hover::after {
    content: attr(data-label);

    position: absolute;

    left: 60px;

    top: 50%;

    transform: translateY(-50%);

    background: #172033;

    color: white;

    padding: 7px 10px;

    border-radius: 7px;

    font-size: 12px;

    white-space: nowrap;

    z-index: 500;

    pointer-events: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .sidebar {
        display: none;
    }

    .topbar {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

}

/* =========================================================
   REQUEST DETAIL
   ========================================================= */

.request-timeline {
    display: flex;
    align-items: flex-start;

    width: 100%;
}

.timeline-step {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    flex: 1;

    min-width: 0;
}

.timeline-dot {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f1f5f9;

    color: var(--text-muted);

    border: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 700;
}

.timeline-dot.completed {
    background: var(--primary);

    color: white;

    border-color: var(--primary);
}

.timeline-content {
    display: flex;

    flex-direction: column;

    padding-top: 2px;
}

.timeline-content strong {
    font-size: 13px;

    color: var(--text);
}

.timeline-content span {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.4;
}

.timeline-line {
    height: 1px;

    background: var(--border);

    flex: 1;

    margin:
        17px 12px 0;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.info-item {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.info-item span {
    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .05em;

    font-weight: 600;
}

.info-item strong {
    color: var(--text);

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   REQUESTER PROFILE
   ========================================================= */

.requester-profile {
    display: flex;

    align-items: center;

    gap: 13px;
}

.user-avatar.large {
    width: 46px;
    height: 46px;

    font-size: 16px;

    flex: 0 0 auto;
}

.profile-detail {
    color: var(--text-secondary);

    font-size: 12px;

    margin-top: 3px;
}


/* =========================================================
   SUBMITTED FORM DATA
   ========================================================= */

.submitted-data-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}

.submitted-field {
    background: white;

    padding: 16px 18px;
}

.submitted-label {
    color: var(--text-muted);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .04em;

    margin-bottom: 5px;
}

.submitted-value {
    color: var(--text);

    font-size: 13px;

    font-weight: 500;

    word-break: break-word;
}


/* =========================================================
   DOCUMENT ROW
   ========================================================= */

.document-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.document-row:last-child {
    border-bottom: 0;
}

.document-file-icon {
    width: 38px;
    height: 38px;

    border-radius: 8px;

    background: var(--primary-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    flex: 0 0 auto;
}

.document-name {
    font-size: 13px;

    font-weight: 600;

    color: var(--text);

    word-break: break-word;
}

.document-meta {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-list {
    display: flex;

    flex-direction: column;
}

.activity-item {
    display: flex;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: var(--success-bg);

    color: var(--success);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    flex: 0 0 auto;
}

.activity-title {
    font-size: 13px;

    font-weight: 600;
}

.activity-meta {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE DETAIL PAGE
   ========================================================= */

@media (max-width: 900px) {

    .request-timeline {
        flex-direction: column;

        gap: 0;
    }

    .timeline-step {
        flex: none;

        width: 100%;
    }

    .timeline-line {
        width: 1px;

        height: 22px;

        flex: none;

        margin:
            0 0 0 17px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .submitted-data-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   REQUESTER DASHBOARD
   ========================================================= */

.eyebrow {
    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    margin-bottom: 6px;
}


.section-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        32px 0 15px;
}

.section-heading h2 {
    margin: 0;

    font-size: 18px;
}

.section-heading p {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 12px;
}

.requests-heading {
    margin-top: 38px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 35px;
}


.summary-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    padding: 17px;

    display: flex;

    align-items: center;

    gap: 13px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, .03);
}


.summary-icon {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    font-weight: 700;
}


.summary-label {
    font-size: 11px;

    color: var(--text-muted);

    font-weight: 600;

    margin-bottom: 3px;
}


.summary-value {
    font-size: 21px;

    font-weight: 750;

    color: var(--text);
}


/* =========================================================
   DOCUMENT TYPES
   ========================================================= */

.document-type-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}


.document-type-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    text-decoration: none;

    color: inherit;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.document-type-card:hover {
    transform:
        translateY(-2px);

    border-color:
        var(--primary);

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, .07);
}


.document-type-icon {
    width: 45px;
    height: 45px;

    border-radius: 10px;

    background: var(--primary-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    flex: 0 0 auto;
}


.document-type-content {
    flex: 1;

    min-width: 0;
}


.document-type-content h3 {
    margin: 0;

    font-size: 14px;

    font-weight: 700;
}


.document-type-content p {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.5;
}


.document-type-arrow {
    color: var(--text-muted);

    font-size: 17px;

    transition:
        transform .18s ease;
}


.document-type-card:hover .document-type-arrow {
    transform:
        translateX(3px);

    color: var(--primary);
}


/* =========================================================
   REQUEST FILTER
   ========================================================= */

.request-filter-bar {
    display: flex;

    gap: 6px;

    margin-bottom: 12px;
}


.filter-button {
    border: 1px solid transparent;

    background: transparent;

    color: var(--text-muted);

    border-radius: 7px;

    padding: 7px 12px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.filter-button:hover {
    background: #f1f5f9;
}


.filter-button.active {
    background: white;

    color: var(--primary);

    border-color:
        var(--border);

    box-shadow:
        0 1px 3px
        rgba(15, 23, 42, .04);
}


/* =========================================================
   REQUEST LIST
   ========================================================= */

.request-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.request-list-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 11px;

    text-decoration: none;

    color: inherit;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.request-list-card:hover {
    border-color:
        #cbd5e1;

    box-shadow:
        0 5px 18px
        rgba(15, 23, 42, .06);

    transform:
        translateY(-1px);
}


.request-main {
    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


.request-document-icon {
    width: 40px;
    height: 40px;

    border-radius: 9px;

    background: #f8fafc;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;
}


.request-information {
    min-width: 0;
}


.request-number {
    color: var(--primary);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: .04em;

    margin-bottom: 3px;
}


.request-information h3 {
    margin: 0;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.request-meta {
    display: flex;

    gap: 7px;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;
}


.meta-divider {
    color: #cbd5e1;
}


.request-right {
    display: flex;

    align-items: flex-end;

    flex-direction: column;

    gap: 5px;

    flex: 0 0 auto;
}


.request-status {
    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 700;
}


.status-submitted,
.status-resubmitted {
    background: #eff6ff;

    color: #2563eb;
}


.status-in_review,
.status-ready_for_lawyer,
.status-lawyer_assigned,
.status-lawyer_in_progress,
.status-final_review {
    background: #fff7ed;

    color: #c2410c;
}


.status-completed {
    background: #f0fdf4;

    color: #15803d;
}


.status-returned_to_requester {
    background: #fef2f2;

    color: #dc2626;
}


.status-cancelled {
    background: #f1f5f9;

    color: #64748b;
}


.request-action {
    color: var(--text-muted);

    font-size: 10px;

    font-weight: 600;
}


.completed-action {
    color: #15803d;
}


.action-required {
    color: #dc2626;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-request-card {
    text-align: center;

    background: white;

    border:
        1px dashed #cbd5e1;

    border-radius: 12px;

    padding: 50px 25px;
}


.empty-request-icon {
    font-size: 30px;

    margin-bottom: 12px;
}


.empty-request-card h3 {
    margin: 0 0 6px;

    font-size: 16px;
}


.empty-request-card p {
    max-width: 430px;

    margin:
        0 auto 20px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .summary-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .document-type-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 650px) {

    .summary-grid {
        grid-template-columns:
            1fr;
    }

    .request-list-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .request-right {
        align-items: flex-start;

        width: 100%;
    }

}

/* =========================================================
   REVIEWER WORKSPACE
   ========================================================= */

.role-badge {
    padding: 7px 11px;

    border-radius: 7px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .06em;
}


.summary-card-link {
    text-decoration: none;

    color: inherit;

    position: relative;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.summary-card-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px
        rgba(15, 23, 42, .07);
}


.summary-arrow {
    margin-left: auto;

    color: var(--text-muted);

    font-size: 16px;
}


.urgent-icon {
    color: #dc2626;
}


/* =========================================================
   WORKSPACE SECTION
   ========================================================= */

.workspace-section {
    margin-top: 32px;
}


.workspace-section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 13px;
}


.workspace-section-header h2 {
    margin: 0;

    font-size: 17px;
}


.workspace-section-header p {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 11px;
}


.text-link {
    text-decoration: none;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}


.text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   WORK TABLE
   ========================================================= */

.work-table {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;
}


.work-table-header,
.work-table-row {
    display: grid;

    grid-template-columns:
        1.1fr
        1.7fr
        1fr
        1fr
        .7fr;

    align-items: center;

    column-gap: 20px;
}


.work-table-header {
    padding:
        11px 17px;

    background: #f8fafc;

    border-bottom:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .04em;

    font-weight: 700;
}


.work-table-row {
    padding:
        14px 17px;

    border-bottom:
        1px solid var(--border);

    min-height: 68px;
}


.work-table-row:last-child {
    border-bottom: 0;
}


.work-table-row:hover {
    background: #fafcff;
}


.table-request-number {
    color: var(--primary);

    font-size: 11px;

    font-weight: 750;
}


.table-document {
    color: var(--text);

    font-size: 12px;

    font-weight: 650;
}


.table-document-type {
    color: var(--text-muted);

    font-size: 10px;

    margin-top: 3px;
}


.table-muted {
    color: var(--text-secondary);

    font-size: 11px;
}


.small-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 31px;

    padding:
        0 11px;

    border-radius: 7px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    transition:
        opacity .15s ease;
}


.small-button:hover {
    opacity: .9;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.work-empty {
    padding: 40px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    color: var(--text-muted);
}


.work-empty-icon {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 4px;
}


.work-empty strong {
    color: var(--text);

    font-size: 12px;
}


.work-empty span {
    font-size: 11px;
}


/* =========================================================
   ACTIVE WORK
   ========================================================= */

.active-work-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.active-work-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 11px;

    padding: 16px;

    text-decoration: none;

    color: inherit;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.active-work-card:hover {
    border-color: var(--primary);

    box-shadow:
        0 7px 20px
        rgba(15, 23, 42, .06);

    transform:
        translateY(-1px);
}


.active-work-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.active-work-card h3 {
    margin:
        13px 0 10px;

    font-size: 14px;
}


.active-work-meta {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .work-table {
        overflow-x: auto;
    }

    .work-table-header,
    .work-table-row {
        min-width: 700px;
    }

    .active-work-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .reviewer-summary {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   REVIEW QUEUE
   ========================================================= */

.queue-count-badge {
    display: flex;

    align-items: baseline;

    gap: 5px;

    padding: 8px 12px;

    border-radius: 8px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 16px;

    font-weight: 750;
}

.queue-count-badge span {
    font-size: 10px;

    font-weight: 600;

    color: var(--text-muted);
}


/* =========================================================
   FILTER CARD
   ========================================================= */

.queue-filter-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 18px;

    margin-bottom: 22px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, .03);
}


.queue-search {
    margin-bottom: 15px;
}


.search-wrapper {
    position: relative;
}


.search-icon {
    position: absolute;

    left: 12px;

    top: 50%;

    transform:
        translateY(-50%);

    color: var(--text-muted);

    font-size: 17px;
}


.search-wrapper input {
    padding-left: 38px;

    height: 40px;

    font-size: 12px;
}


.queue-filters {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        auto;

    gap: 12px;

    align-items: end;
}


.filter-field label {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;

    color: var(--text-muted);
}


.filter-field select {
    height: 37px;

    padding:
        0 10px;

    font-size: 11px;

    background: white;
}


.filter-actions {
    display: flex;

    gap: 7px;
}


.filter-actions .button {
    height: 37px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    white-space: nowrap;

    font-size: 11px;
}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

.queue-results-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

    padding:
        0 2px;
}


.queue-results-header strong {
    font-size: 13px;
}


.queue-results-header span {
    margin-left: 7px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   QUEUE TABLE
   ========================================================= */

.queue-table {
    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;
}


.queue-table-header,
.queue-table-row {

    display: grid;

    grid-template-columns:
        1.15fr
        1.5fr
        1.5fr
        .8fr
        1fr
        .85fr
        .75fr;

    align-items: center;

    column-gap: 15px;
}


.queue-table-header {

    padding:
        11px 15px;

    background: #f8fafc;

    border-bottom:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .04em;

    font-weight: 750;
}


.queue-table-row {

    padding:
        13px 15px;

    min-height: 72px;

    border-bottom:
        1px solid var(--border);

    transition:
        background .15s ease;
}


.queue-table-row:last-child {
    border-bottom: 0;
}


.queue-table-row:hover {
    background: #fafcff;
}


/* =========================================================
   REQUEST INFORMATION
   ========================================================= */

.queue-request-number {
    color: var(--primary);

    text-decoration: none;

    font-size: 11px;

    font-weight: 750;
}


.queue-request-number:hover {
    text-decoration: underline;
}


.queue-document-name {
    font-size: 11px;

    font-weight: 650;
}


.queue-document-type {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
}


.queue-requester-name {
    font-size: 11px;

    font-weight: 600;
}


.queue-requester-email {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.queue-created {
    color: var(--text-secondary);

    font-size: 10px;
}


.queue-created small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   PRIORITY
   ========================================================= */

.priority-badge {
    display: inline-flex;

    align-items: center;

    padding:
        4px 8px;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 750;
}


.priority-low {
    background: #f1f5f9;

    color: #64748b;
}


.priority-normal {
    background: #eff6ff;

    color: #2563eb;
}


.priority-high {
    background: #fff7ed;

    color: #c2410c;
}


.priority-urgent {
    background: #fef2f2;

    color: #dc2626;
}


/* =========================================================
   ACTION
   ========================================================= */

.queue-action-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 30px;

    padding:
        0 11px;

    border-radius: 7px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;
}


.queue-action-button:hover {
    opacity: .9;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.queue-empty {
    min-height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 40px;
}


.queue-empty-icon {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #f0fdf4;

    color: #15803d;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 12px;
}


.queue-empty h3 {
    margin: 0 0 5px;

    font-size: 14px;
}


.queue-empty p {
    margin:
        0 0 16px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .queue-filters {
        grid-template-columns:
            1fr 1fr;
    }

    .filter-actions {
        margin-top: 4px;
    }

    .queue-table {
        overflow-x: auto;
    }

    .queue-table-header,
    .queue-table-row {
        min-width: 900px;
    }

}


@media (max-width: 600px) {

    .queue-filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .button {
        flex: 1;
    }

}

/* =========================================================
REVIEWER REQUEST DETAIL
========================================================= */

.review-workspace {
max-width: 1400px;
margin: 0 auto;
}

/* ---------------------------------------------------------
HEADER
--------------------------------------------------------- */

.review-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 30px;
margin-bottom: 28px;
}

.review-header-left {
min-width: 0;
}

.back-link {
display: inline-flex;
align-items: center;
margin-bottom: 18px;
color: #64748b;
text-decoration: none;
font-size: 14px;
font-weight: 600;
}

.back-link:hover {
color: #111827;
}

.request-number {
font-size: 13px;
font-weight: 700;
color: #64748b;
letter-spacing: .04em;
margin-bottom: 5px;
}

.request-heading h1 {
margin: 0;
font-size: 30px;
line-height: 1.2;
color: #111827;
}

.request-heading p {
margin: 7px 0 0;
color: #64748b;
font-size: 15px;
}

.review-header-badges {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

/* ---------------------------------------------------------
LAYOUT
--------------------------------------------------------- */

.review-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 330px;
gap: 24px;
align-items: start;
}

.review-main {
min-width: 0;
}

.review-sidebar {
position: sticky;
top: 24px;
}

/* ---------------------------------------------------------
CARDS
--------------------------------------------------------- */

.detail-card,
.workflow-card,
.sidebar-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 16px;
box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}

.detail-card {
padding: 25px;
margin-bottom: 20px;
}

.workflow-card,
.sidebar-card {
padding: 22px;
margin-bottom: 18px;
}

/* ---------------------------------------------------------
SECTION HEADINGS
--------------------------------------------------------- */

.section-heading {
display: flex;
align-items: flex-start;
gap: 13px;
margin-bottom: 22px;
}

.section-heading-with-action {
justify-content: space-between;
}

.section-heading-content {
display: flex;
gap: 13px;
}

.section-icon {
width: 38px;
height: 38px;
border-radius: 10px;
background: #f1f5f9;
display: flex;
align-items: center;
justify-content: center;
font-size: 17px;
flex-shrink: 0;
}

.section-heading h2 {
margin: 0;
font-size: 17px;
color: #111827;
}

.section-heading p {
margin: 4px 0 0;
color: #64748b;
font-size: 13px;
}

/* ---------------------------------------------------------
INFORMATION GRID
--------------------------------------------------------- */

.info-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
border: 1px solid #eef0f3;
border-radius: 12px;
overflow: hidden;
}

.info-item {
padding: 16px 18px;
border-bottom: 1px solid #eef0f3;
}

.info-item:nth-child(odd) {
border-right: 1px solid #eef0f3;
}

.info-item:nth-last-child(-n+2) {
border-bottom: none;
}

.info-label {
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .05em;
color: #94a3b8;
margin-bottom: 6px;
}

.info-value {
display: block;
color: #1f2937;
font-size: 14px;
font-weight: 600;
word-break: break-word;
}

/* ---------------------------------------------------------
DYNAMIC FORM DATA
--------------------------------------------------------- */

.dynamic-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}

.dynamic-field {
background: #f8fafc;
border: 1px solid #eef2f7;
border-radius: 11px;
padding: 15px 16px;
}

.dynamic-label {
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: #94a3b8;
margin-bottom: 7px;
}

.dynamic-value {
display: block;
color: #1f2937;
font-size: 14px;
line-height: 1.5;
word-break: break-word;
}

/* ---------------------------------------------------------
STATUS / PRIORITY
--------------------------------------------------------- */

.request-status,
.priority-badge {
display: inline-flex;
align-items: center;
padding: 7px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}

.request-status {
background: #eff6ff;
color: #2563eb;
}

.priority-badge {
background: #f8fafc;
color: #475569;
}

.priority-high {
background: #fff7ed;
color: #c2410c;
}

.priority-urgent {
background: #fef2f2;
color: #dc2626;
}

/* ---------------------------------------------------------
ATTACHMENTS
--------------------------------------------------------- */

.attachment-count {
font-size: 12px;
color: #64748b;
background: #f8fafc;
border: 1px solid #e5e7eb;
padding: 6px 10px;
border-radius: 999px;
}

.attachment-list {
display: flex;
flex-direction: column;
gap: 9px;
}

.attachment-row {
display: flex;
align-items: center;
gap: 13px;
padding: 13px 14px;
border: 1px solid #e5e7eb;
border-radius: 11px;
transition: border-color .15s ease, background .15s ease;
}

.attachment-row:hover {
background: #f8fafc;
border-color: #dbe2ea;
}

.file-icon {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: #f1f5f9;
border-radius: 9px;
flex-shrink: 0;
}

.file-details {
flex: 1;
min-width: 0;
}

.file-details strong {
display: block;
font-size: 14px;
color: #1f2937;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.file-details span {
display: block;
margin-top: 4px;
color: #94a3b8;
font-size: 12px;
}

.file-view-button {
display: inline-flex;
align-items: center;
padding: 7px 12px;
border: 1px solid #dbe2ea;
border-radius: 8px;
color: #334155;
background: #ffffff;
text-decoration: none;
font-size: 12px;
font-weight: 700;
}

.file-view-button:hover {
background: #f8fafc;
}

.file-unavailable {
color: #94a3b8;
font-size: 12px;
}

/* ---------------------------------------------------------
TIMELINE
--------------------------------------------------------- */

.activity-timeline {
position: relative;
padding-left: 8px;
}

.timeline-item {
position: relative;
display: flex;
gap: 15px;
padding-bottom: 22px;
}

.timeline-item:last-child {
padding-bottom: 0;
}

.timeline-marker {
width: 11px;
height: 11px;
border-radius: 50%;
background: #2563eb;
border: 3px solid #dbeafe;
margin-top: 4px;
flex-shrink: 0;
position: relative;
z-index: 2;
}

.timeline-item:not(:last-child)::before {
content: "";
position: absolute;
left: 5px;
top: 15px;
bottom: 0;
width: 1px;
background: #e2e8f0;
}

.timeline-content {
flex: 1;
}

.timeline-header {
display: flex;
justify-content: space-between;
gap: 15px;
}

.timeline-header strong {
font-size: 14px;
color: #1f2937;
}

.timeline-header span {
font-size: 12px;
color: #94a3b8;
white-space: nowrap;
}

.timeline-user {
margin-top: 4px;
font-size: 12px;
color: #64748b;
}

.timeline-comment {
margin-top: 9px;
padding: 10px 12px;
border-radius: 8px;
background: #f8fafc;
color: #475569;
font-size: 13px;
}

/* ---------------------------------------------------------
COMMENTS
--------------------------------------------------------- */

.comment-list {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 20px;
}

.comment-item {
display: flex;
gap: 12px;
}

.comment-avatar,
.person-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: #e0e7ff;
color: #3730a3;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 800;
flex-shrink: 0;
}

.comment-content {
flex: 1;
min-width: 0;
}

.comment-header {
display: flex;
align-items: center;
gap: 10px;
}

.comment-header strong {
font-size: 13px;
}

.comment-header span {
color: #94a3b8;
font-size: 11px;
}

.comment-text {
margin-top: 6px;
color: #475569;
font-size: 13px;
line-height: 1.55;
}

.comment-form {
border-top: 1px solid #eef0f3;
padding-top: 18px;
}

.comment-form textarea {
width: 100%;
resize: vertical;
min-height: 90px;
border: 1px solid #dbe2ea;
border-radius: 10px;
padding: 12px;
font-family: inherit;
font-size: 13px;
}

.comment-form textarea:focus {
outline: none;
border-color: #93c5fd;
box-shadow: 0 0 0 3px rgba(59,130,246,.08);
}

.comment-form-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}

.comment-form-footer span {
color: #94a3b8;
font-size: 11px;
}

/* ---------------------------------------------------------
WORKFLOW SIDEBAR
--------------------------------------------------------- */

.workflow-header span {
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
color: #94a3b8;
}

.workflow-header h2 {
margin: 5px 0 20px;
font-size: 19px;
color: #111827;
}

.workflow-message {
display: flex;
gap: 11px;
padding: 13px;
border-radius: 11px;
background: #f8fafc;
border: 1px solid #eef2f7;
margin-bottom: 14px;
}

.workflow-message-success {
background: #f0fdf4;
border-color: #dcfce7;
}

.workflow-message-icon {
width: 28px;
height: 28px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: #e2e8f0;
flex-shrink: 0;
font-size: 12px;
}

.workflow-message-success .workflow-message-icon {
background: #dcfce7;
color: #15803d;
}

.workflow-message strong {
display: block;
font-size: 13px;
color: #1f2937;
}

.workflow-message p {
margin: 4px 0 0;
font-size: 12px;
line-height: 1.5;
color: #64748b;
}

/* ---------------------------------------------------------
WORKFLOW BUTTONS
--------------------------------------------------------- */

.workflow-button {
width: 100%;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 9px;
margin-top: 9px;
padding: 11px 14px;
text-decoration: none;
font-family: inherit;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease;
}

.workflow-button:hover {
transform: translateY(-1px);
}

.workflow-primary {
background: #111827;
color: #ffffff;
}

.workflow-primary:hover {
box-shadow: 0 5px 12px rgba(15,23,42,.16);
}

.workflow-danger {
background: #fff1f2;
color: #be123c;
border: 1px solid #fecdd3;
}

.workflow-danger:hover {
background: #ffe4e6;
}

/* ---------------------------------------------------------
ASSIGNMENT
--------------------------------------------------------- */

.sidebar-card-title {
font-size: 13px;
font-weight: 800;
color: #334155;
margin-bottom: 16px;
}

.assignment-person {
display: flex;
align-items: center;
gap: 11px;
}

.assignment-person strong {
display: block;
font-size: 13px;
color: #1f2937;
}

.assignment-person span {
display: block;
margin-top: 3px;
color: #94a3b8;
font-size: 11px;
}

.person-avatar.lawyer {
background: #ede9fe;
color: #6d28d9;
}

.assignment-divider {
height: 1px;
background: #eef0f3;
margin: 16px 0;
}

.unassigned-state {
display: flex;
align-items: center;
gap: 8px;
color: #94a3b8;
font-size: 12px;
}

.unassigned-state span {
width: 7px;
height: 7px;
border-radius: 50%;
background: #cbd5e1;
}

/* ---------------------------------------------------------
META
--------------------------------------------------------- */

.request-meta {
padding: 18px 20px;
}

.meta-row {
display: flex;
justify-content: space-between;
gap: 15px;
padding: 10px 0;
border-bottom: 1px solid #eef0f3;
}

.meta-row:last-child {
border-bottom: none;
}

.meta-row span {
color: #94a3b8;
font-size: 11px;
}

.meta-row strong {
color: #475569;
font-size: 11px;
text-align: right;
}

/* ---------------------------------------------------------
COMPLETED
--------------------------------------------------------- */

.completed-state {
text-align: center;
padding: 20px 10px 5px;
}

.completed-icon {
width: 48px;
height: 48px;
margin: 0 auto 12px;
border-radius: 50%;
background: #dcfce7;
color: #15803d;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: 800;
}

.completed-state strong {
display: block;
color: #166534;
font-size: 14px;
}

.completed-state span {
display: block;
margin-top: 5px;
color: #64748b;
font-size: 12px;
}

/* ---------------------------------------------------------
EMPTY STATE
--------------------------------------------------------- */

.empty-state {
padding: 28px 15px;
text-align: center;
color: #94a3b8;
}

.empty-state-icon {
font-size: 24px;
margin-bottom: 8px;
}

.empty-state strong {
display: block;
color: #64748b;
font-size: 13px;
}

.empty-state span {
display: block;
margin-top: 4px;
font-size: 12px;
}

/* ---------------------------------------------------------
RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1000px) {


.review-layout {
    grid-template-columns: 1fr;
}

.review-sidebar {
    position: static;
}


}

@media (max-width: 700px) {


.review-header {
    flex-direction: column;
    align-items: flex-start;
}

.review-header-badges {
    flex-wrap: wrap;
}

.info-grid,
.dynamic-fields {
    grid-template-columns: 1fr;
}

.info-item:nth-child(odd) {
    border-right: none;
}

.info-item:nth-last-child(-n+2) {
    border-bottom: 1px solid #eef0f3;
}

.info-item:last-child {
    border-bottom: none;
}

.timeline-header {
    flex-direction: column;
    gap: 4px;
}

.detail-card {
    padding: 18px;
}


}
/* =========================================================
REVIEWER DETAIL PAGE
========================================================= */

.reviewer-detail-page {
width: 100%;
}

/* =========================================================
HEADER
========================================================= */

.detail-page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 30px;
margin-bottom: 28px;
}

.detail-header-left {
min-width: 0;
}

.back-link {
display: inline-flex;
align-items: center;
margin-bottom: 18px;
color: #64748b;
text-decoration: none;
font-size: 14px;
font-weight: 500;
}

.back-link:hover {
color: #111827;
}

.request-number {
font-size: 13px;
font-weight: 700;
color: #6366f1;
letter-spacing: .04em;
margin-bottom: 6px;
}

.detail-page-title {
margin: 0;
font-size: 30px;
line-height: 1.2;
color: #111827;
}

.detail-page-subtitle {
margin: 8px 0 0;
color: #64748b;
font-size: 15px;
}

.detail-header-right {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

/* =========================================================
STATUS
========================================================= */

.request-status,
.priority-badge {
display: inline-flex;
align-items: center;
padding: 7px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
}

.request-status {
background: #eef2ff;
color: #4f46e5;
}

.status-submitted {
background: #eff6ff;
color: #2563eb;
}

.status-resubmitted {
background: #fff7ed;
color: #ea580c;
}

.status-in_review {
background: #eef2ff;
color: #4f46e5;
}

.status-ready_for_lawyer {
background: #f0fdf4;
color: #16a34a;
}

.status-lawyer_assigned,
.status-lawyer_in_progress {
background: #f5f3ff;
color: #7c3aed;
}

.status-final_review {
background: #ecfeff;
color: #0891b2;
}

.status-completed {
background: #f0fdf4;
color: #15803d;
}

.priority-badge {
background: #f8fafc;
color: #475569;
}

/* =========================================================
TWO COLUMN LAYOUT
========================================================= */

.reviewer-detail-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 330px;
gap: 24px;
align-items: start;
}

.reviewer-detail-main {
min-width: 0;
}

/* =========================================================
DETAIL CARD
========================================================= */

.detail-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 16px;
margin-bottom: 20px;
overflow: hidden;
}

.detail-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding: 22px 24px;
border-bottom: 1px solid #eef0f3;
}

.detail-card-header h2 {
margin: 4px 0 5px;
font-size: 17px;
color: #111827;
}

.detail-card-header p {
margin: 0;
color: #64748b;
font-size: 13px;
}

.section-eyebrow {
font-size: 10px;
font-weight: 800;
letter-spacing: .1em;
color: #6366f1;
}

/* =========================================================
REQUESTER
========================================================= */

.requester-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0;
}

.information-item {
padding: 20px 24px;
border-bottom: 1px solid #f1f5f9;
}

.information-item:nth-child(odd) {
border-right: 1px solid #f1f5f9;
}

.information-label {
display: block;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .05em;
color: #94a3b8;
margin-bottom: 6px;
font-weight: 700;
}

.information-value {
display: block;
color: #1e293b;
font-size: 14px;
font-weight: 600;
}

/* =========================================================
DYNAMIC REQUEST FIELDS
========================================================= */

.dynamic-fields {
padding: 4px 24px 10px;
}

.dynamic-field {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
gap: 20px;
padding: 17px 0;
border-bottom: 1px solid #f1f5f9;
}

.dynamic-field:last-child {
border-bottom: none;
}

.dynamic-field-label {
color: #64748b;
font-size: 13px;
font-weight: 600;
}

.dynamic-field-value {
color: #1e293b;
font-size: 14px;
font-weight: 500;
word-break: break-word;
}

/* =========================================================
ATTACHMENTS
========================================================= */

.attachment-count {
padding: 6px 10px;
background: #f8fafc;
color: #64748b;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
}

.attachment-list {
padding: 6px 24px;
}

.attachment-row {
display: flex;
align-items: center;
gap: 14px;
padding: 15px 0;
border-bottom: 1px solid #f1f5f9;
}

.attachment-row:last-child {
border-bottom: none;
}

.attachment-icon {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
background: #fef2f2;
color: #dc2626;
flex-shrink: 0;
}

.attachment-icon span {
font-size: 9px;
font-weight: 800;
}

.attachment-information {
min-width: 0;
flex: 1;
}

.attachment-name {
font-size: 14px;
font-weight: 700;
color: #1e293b;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.attachment-meta {
display: flex;
gap: 7px;
flex-wrap: wrap;
margin-top: 5px;
color: #94a3b8;
font-size: 11px;
}

.attachment-button {
display: inline-flex;
align-items: center;
padding: 7px 13px;
border-radius: 7px;
background: #f1f5f9;
color: #334155;
text-decoration: none;
font-size: 12px;
font-weight: 700;
}

.attachment-button:hover {
background: #e2e8f0;
}

.attachment-unavailable {
color: #94a3b8;
font-size: 12px;
}

.document-empty {
padding: 42px 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 7px;
color: #64748b;
text-align: center;
}

.document-empty strong {
color: #334155;
}

.document-empty-icon {
font-size: 28px;
margin-bottom: 4px;
}

/* =========================================================
ACTIVITY TIMELINE
========================================================= */

.activity-timeline {
padding: 22px 24px;
}

.activity-item {
position: relative;
display: flex;
gap: 15px;
padding-bottom: 24px;
}

.activity-item:last-child {
padding-bottom: 0;
}

.activity-item:not(:last-child)::after {
content: "";
position: absolute;
left: 5px;
top: 14px;
bottom: 0;
width: 1px;
background: #e2e8f0;
}

.activity-marker {
width: 11px;
height: 11px;
margin-top: 4px;
border-radius: 50%;
background: #6366f1;
border: 2px solid #eef2ff;
flex-shrink: 0;
z-index: 1;
}

.activity-content {
min-width: 0;
flex: 1;
}

.activity-top {
display: flex;
justify-content: space-between;
gap: 15px;
}

.activity-top strong {
color: #1e293b;
font-size: 13px;
}

.activity-top span {
color: #94a3b8;
font-size: 11px;
white-space: nowrap;
}

.activity-user {
margin-top: 4px;
color: #64748b;
font-size: 11px;
}

.activity-comment {
margin-top: 9px;
padding: 10px 12px;
background: #f8fafc;
border-radius: 8px;
color: #475569;
font-size: 12px;
line-height: 1.5;
}

/* =========================================================
COMMENTS
========================================================= */

.comment-list {
padding: 20px 24px 5px;
}

.comment-item {
display: flex;
gap: 12px;
margin-bottom: 18px;
}

.comment-avatar {
width: 34px;
height: 34px;
border-radius: 50%;
background: #eef2ff;
color: #4f46e5;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 800;
flex-shrink: 0;
}

.comment-body {
flex: 1;
min-width: 0;
}

.comment-header {
display: flex;
justify-content: space-between;
gap: 10px;
margin-bottom: 5px;
}

.comment-header strong {
font-size: 13px;
}

.comment-header span {
color: #94a3b8;
font-size: 10px;
}

.comment-text {
color: #475569;
font-size: 13px;
line-height: 1.5;
}

.comment-form {
padding: 20px 24px 24px;
border-top: 1px solid #f1f5f9;
}

.comment-form textarea {
width: 100%;
resize: vertical;
margin-bottom: 10px;
}

/* =========================================================
RIGHT SIDEBAR
========================================================= */

.reviewer-action-sidebar {
position: sticky;
top: 20px;
}

.action-card,
.assignment-card,
.request-meta-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 16px;
margin-bottom: 18px;
}

.action-card {
padding: 20px;
}

.action-card-header {
padding-bottom: 18px;
margin-bottom: 18px;
border-bottom: 1px solid #f1f5f9;
}

.action-card-eyebrow {
display: block;
font-size: 10px;
font-weight: 800;
letter-spacing: .1em;
color: #6366f1;
margin-bottom: 4px;
}

.action-card-header h2 {
margin: 0;
font-size: 18px;
color: #111827;
}

/* =========================================================
ACTION INFO
========================================================= */

.action-info {
display: flex;
gap: 11px;
padding: 13px;
margin-bottom: 15px;
border-radius: 10px;
background: #f8fafc;
}

.action-info-icon {
width: 26px;
height: 26px;
border-radius: 50%;
background: #e2e8f0;
color: #475569;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 800;
flex-shrink: 0;
}

.action-info strong {
display: block;
color: #334155;
font-size: 12px;
margin-bottom: 3px;
}

.action-info span {
display: block;
color: #64748b;
font-size: 11px;
line-height: 1.45;
}

.action-success {
background: #f0fdf4;
}

.action-success .action-info-icon {
background: #dcfce7;
color: #15803d;
}

/* =========================================================
WORKFLOW BUTTONS
========================================================= */

.workflow-button {
width: 100%;
min-height: 42px;
border: none;
border-radius: 9px;
padding: 10px 14px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
transition: .15s ease;
margin-bottom: 9px;
}

.workflow-button:last-child {
margin-bottom: 0;
}

.workflow-primary {
background: #4f46e5;
color: #ffffff;
}

.workflow-primary:hover {
background: #4338ca;
}

.workflow-secondary {
background: #f1f5f9;
color: #475569;
}

.workflow-success {
background: #15803d;
color: #ffffff;
}

.workflow-success:hover {
background: #166534;
}

.workflow-danger {
background: #fff1f2;
color: #be123c;
}

.workflow-danger:hover {
background: #ffe4e6;
}

.workflow-details {
margin-top: 8px;
}

.workflow-details summary {
list-style: none;
}

.workflow-details summary::-webkit-details-marker {
display: none;
}

.workflow-form {
padding: 14px;
margin-top: 8px;
background: #f8fafc;
border-radius: 10px;
}

.workflow-form label {
display: block;
margin-bottom: 6px;
color: #475569;
font-size: 11px;
font-weight: 700;
}

.workflow-form textarea,
.workflow-form select {
width: 100%;
margin-bottom: 10px;
}

.final-review-actions {
margin-top: 10px;
}

/* =========================================================
ASSIGNMENT CARD
========================================================= */

.assignment-card {
padding: 20px;
}

.assignment-header {
color: #64748b;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .07em;
font-weight: 800;
margin-bottom: 17px;
}

.assignment-person {
display: flex;
align-items: center;
gap: 11px;
}

.person-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #eef2ff;
color: #4f46e5;
font-size: 13px;
font-weight: 800;
}

.lawyer-avatar {
background: #f5f3ff;
color: #7c3aed;
}

.assignment-person strong {
display: block;
font-size: 13px;
color: #1e293b;
}

.assignment-person span {
display: block;
margin-top: 2px;
color: #94a3b8;
font-size: 11px;
}

.assignment-divider {
height: 1px;
background: #f1f5f9;
margin: 17px 0;
}

.unassigned {
display: flex;
align-items: center;
gap: 8px;
color: #94a3b8;
font-size: 12px;
}

.unassigned-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #cbd5e1;
}

/* =========================================================
META
========================================================= */

.request-meta-card {
padding: 6px 20px;
}

.meta-row {
display: flex;
justify-content: space-between;
gap: 15px;
padding: 13px 0;
border-bottom: 1px solid #f1f5f9;
}

.meta-row:last-child {
border-bottom: none;
}

.meta-row span {
color: #94a3b8;
font-size: 11px;
}

.meta-row strong {
color: #334155;
font-size: 11px;
text-align: right;
}

/* =========================================================
COMPLETED
========================================================= */

.completed-box {
padding: 24px 15px;
text-align: center;
background: #f0fdf4;
border-radius: 12px;
}

.completed-icon {
width: 42px;
height: 42px;
margin: 0 auto 10px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #dcfce7;
color: #15803d;
font-size: 20px;
font-weight: 800;
}

.completed-box strong {
display: block;
color: #166534;
font-size: 14px;
}

.completed-box span {
display: block;
margin-top: 5px;
color: #4d7c5a;
font-size: 11px;
line-height: 1.5;
}

/* =========================================================
EMPTY STATE
========================================================= */

.detail-empty {
padding: 25px;
color: #94a3b8;
font-size: 13px;
text-align: center;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1000px) {


.reviewer-detail-layout {
    grid-template-columns: 1fr;
}

.reviewer-action-sidebar {
    position: static;
}


}

@media (max-width: 700px) {


.detail-page-header {
    flex-direction: column;
}

.detail-header-right {
    width: 100%;
}

.requester-grid {
    grid-template-columns: 1fr;
}

.information-item:nth-child(odd) {
    border-right: none;
}

.dynamic-field {
    grid-template-columns: 1fr;
    gap: 6px;
}

.attachment-row {
    align-items: flex-start;
}

.attachment-action {
    margin-left: auto;
}

.activity-top {
    flex-direction: column;
    gap: 3px;
}


}
/* =========================================================
   RTL SUPPORT
   ========================================================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .page-header,
html[dir="rtl"] .workspace-section-header,
html[dir="rtl"] .summary-card,
html[dir="rtl"] .active-work-top {
    direction: rtl;
}

html[dir="rtl"] .summary-arrow {
    transform: scaleX(-1);
}
.language-selector {
    display: inline-flex;
    align-items: center;
}

.language-selector select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}
/* =========================================================
   RTL APPLICATION SHELL
   ========================================================= */

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .topbar {
    left: 0;
    right: var(--sidebar-expanded);
}

html[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-expanded);
}


/* ---------------------------------------------------------
   RTL COLLAPSED SIDEBAR
   --------------------------------------------------------- */

html[dir="rtl"] body.sidebar-collapsed .topbar {
    left: 0;
    right: var(--sidebar-collapsed);
}

html[dir="rtl"] body.sidebar-collapsed .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-collapsed);
}


/* ---------------------------------------------------------
   RTL SIDEBAR TOGGLE
   --------------------------------------------------------- */

html[dir="rtl"] .sidebar-toggle {
    right: auto;
    left: -14px;
}


/* ---------------------------------------------------------
   RTL COLLAPSED NAV TOOLTIP
   --------------------------------------------------------- */

html[dir="rtl"] body.sidebar-collapsed .nav-item:hover::after {
    left: auto;
    right: 60px;
}


/* ---------------------------------------------------------
   RTL NAVIGATION
   --------------------------------------------------------- */

html[dir="rtl"] .nav-item {
    text-align: right;
}

html[dir="rtl"] .nav-icon {
    margin-right: 0;
}


/* ---------------------------------------------------------
   RTL TOPBAR
   --------------------------------------------------------- */

html[dir="rtl"] .topbar {
    direction: rtl;
}

html[dir="rtl"] .topbar-right {
    direction: rtl;
}


/* ---------------------------------------------------------
   RTL FORM CONTROLS
   --------------------------------------------------------- */

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}


/* =========================================================
   FORM LAYOUT
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.form-label {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control {
    display: block;
    width: 100%;
    min-height: 42px;

    padding: 10px 12px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    color: #111827;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;

    box-sizing: border-box;
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);

    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}


/* =========================================================
   SELECT
   ========================================================= */

select.form-control {
    min-height: 42px;
    cursor: pointer;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}


/* =========================================================
   READONLY / DISABLED
   ========================================================= */

.form-control[readonly] {
    background: #f8fafc;
    color: #475569;
    cursor: default;
}

.form-control:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.form-help {
    margin: 4px 0 0;

    font-size: 12px;
    line-height: 1.5;

    color: #64748b;
}


/* =========================================================
   CHECKBOX / RADIO
   ========================================================= */

.form-checkbox,
.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    color: #374151;

    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 16px;
    height: 16px;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .primary-button,
    .form-actions .secondary-button,
    .form-actions .danger-button {
        width: 100%;
    }
}

/* =========================================================
   DOCASTRA PUBLIC PORTAL ENTRY
   ========================================================= */

.portal-entry-page {
    margin: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background: #f5f7fb;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #172033;

    box-sizing: border-box;
}


/* Main centered container */

.portal-entry {
    width: 100%;
    max-width: 920px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   BRAND
   ========================================================= */

.portal-brand {
    text-align: center;
    margin-bottom: 28px;
}

.portal-logo {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: 2px;
    line-height: 1.1;
}

.portal-tagline {
    margin-top: 7px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #64748b;
}


/* =========================================================
   CARD
   ========================================================= */

.portal-card {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    padding: 42px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.portal-card-header {
    text-align: center;
    margin-bottom: 34px;
}

.portal-card-header h1 {
    margin: 0;

    font-size: 28px;
    font-weight: 700;

    letter-spacing: -0.4px;
}

.portal-card-header p {
    margin: 10px 0 0;

    font-size: 15px;
    line-height: 1.6;

    color: #64748b;
}


/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.portal-login-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


/* =========================================================
   OPTION CARD
   ========================================================= */

.portal-option {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding: 30px 26px;

    min-height: 270px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.portal-option:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.06);

    transform: translateY(-2px);
}


/* =========================================================
   ICON
   ========================================================= */

.portal-option-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border-radius: 12px;

    background: #f1f5f9;

    font-size: 24px;
}


/* =========================================================
   TEXT
   ========================================================= */

.portal-option h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 650;
}

.portal-option p {
    max-width: 300px;

    margin: 10px 0 22px;

    font-size: 14px;
    line-height: 1.6;

    color: #64748b;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.portal-option form {
    width: 100%;
    margin-top: auto;
}


.portal-primary-button,
.portal-secondary-button {
    width: 100%;

    min-height: 44px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}


.portal-primary-button {
    border: 1px solid #2563eb;

    background: #2563eb;

    color: #ffffff;
}

.portal-primary-button:hover {
    opacity: 0.92;
}


.portal-secondary-button {
    margin-top: auto;

    border: 1px solid #cbd5e1;

    background: #ffffff;

    color: #1e293b;
}

.portal-secondary-button:hover {
    background: #f8fafc;

    border-color: #94a3b8;
}


/* =========================================================
   FOOTER
   ========================================================= */

.portal-footer {
    margin-top: 30px;

    text-align: center;

    font-size: 12px;

    color: #94a3b8;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .portal-entry-page {
        padding: 25px 15px;
    }

    .portal-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .portal-login-options {
        grid-template-columns: 1fr;
    }

    .portal-option {
        min-height: auto;
    }

    .portal-logo {
        font-size: 28px;
    }

    .portal-card-header h1 {
        font-size: 24px;
    }
}