﻿/* =========================================================
   Resolve Dashboard
   ========================================================= */

:root {
    --resolve-background: #f5f7fb;
    --resolve-panel: #ffffff;
    --resolve-border: #e4e8f0;
    --resolve-text: #182230;
    --resolve-muted: #667085;
    --resolve-primary: #2563eb;
    --resolve-primary-dark: #1d4ed8;
    --resolve-success: #15803d;
    --resolve-danger: #dc2626;
    --resolve-warning: #b45309;
    --resolve-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
    background: var(--resolve-background);
    color: var(--resolve-text);
}

.dashboard-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .dashboard-header h1 {
        margin: 0 0 0.35rem;
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        font-weight: 700;
        color: var(--resolve-text);
    }

    .dashboard-header p {
        margin: 0;
        color: var(--resolve-muted);
    }

    .dashboard-header .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        border: 0;
        border-radius: 0.65rem;
        background: var(--resolve-primary);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        font-weight: 600;
    }

        .dashboard-header .btn-primary:hover {
            background: var(--resolve-primary-dark);
        }

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 135px;
    padding: 1.4rem;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

    .summary-card::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: var(--resolve-primary);
        content: "";
    }

.summary-card__label {
    margin-bottom: 0.75rem;
    color: var(--resolve-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-card__value {
    color: var(--resolve-primary);
    font-size: 2.25rem;
    font-weight: 750;
    line-height: 1;
}

.summary-card--danger::before {
    background: var(--resolve-danger);
}

.summary-card--danger .summary-card__value {
    color: var(--resolve-danger);
}

.summary-card--success::before {
    background: var(--resolve-success);
}

.summary-card--success .summary-card__value {
    color: var(--resolve-success);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.dashboard-panel {
    min-width: 0;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.dashboard-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .dashboard-panel__header h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--resolve-text);
    }

    .dashboard-panel__header a {
        color: var(--resolve-primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
    }

        .dashboard-panel__header a:hover {
            text-decoration: underline;
        }

.dashboard-table {
    width: 100%;
    margin: 0;
    vertical-align: middle;
}

    .dashboard-table thead th {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--resolve-border);
        background: #f9fafb;
        color: var(--resolve-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .dashboard-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #edf0f5;
        color: #344054;
        font-size: 0.9rem;
    }

    .dashboard-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .dashboard-table tbody tr:hover {
        background: #fafcff;
    }

.request-reference {
    color: var(--resolve-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .request-reference:hover {
        text-decoration: underline;
    }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Priority badges */

.priority-low {
    background: #dcfce7;
    color: #166534;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fee2e2;
    color: #b91c1c;
}

.priority-critical {
    background: #7f1d1d;
    color: #ffffff;
}

/* Status badges */

.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-reviewed {
    background: #e0e7ff;
    color: #4338ca;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-awaiting {
    background: #f3e8ff;
    color: #7e22ce;
}

.status-testing {
    background: #ccfbf1;
    color: #0f766e;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #f1f5f9;
    color: #475569;
}

.activity-list {
    padding: 0.25rem 1.4rem 1rem;
}

.activity-item {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #edf0f5;
}

    .activity-item:last-child {
        border-bottom: 0;
    }

.activity-item__marker {
    width: 10px;
    height: 10px;
    margin-top: 0.35rem;
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    background: var(--resolve-primary);
    box-shadow: 0 0 0 4px #eff6ff;
}

.activity-item__content {
    min-width: 0;
}

.activity-item__heading {
    margin-bottom: 0.35rem;
    color: #475467;
    font-size: 0.9rem;
    line-height: 1.4;
}

    .activity-item__heading strong {
        color: var(--resolve-text);
    }

.activity-item__request {
    display: block;
    margin-bottom: 0.35rem;
    overflow: hidden;
    color: var(--resolve-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .activity-item__request:hover {
        text-decoration: underline;
    }

.activity-item p {
    margin: 0 0 0.45rem;
    color: var(--resolve-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.activity-item time {
    color: #98a2b3;
    font-size: 0.76rem;
}

.empty-state {
    padding: 2.5rem 1.5rem;
    color: var(--resolve-muted);
    text-align: center;
}

.text-danger {
    color: var(--resolve-danger) !important;
}

@media (max-width: 1100px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-page {
        padding: 1.25rem 1rem 2rem;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .dashboard-header .btn-primary {
            width: 100%;
        }

    .dashboard-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 115px;
    }
}

/* =========================================================
   Resolve Requests
   ========================================================= */

.requests-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .page-heading h1 {
        margin: 0 0 0.35rem;
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        font-weight: 700;
    }

    .page-heading p {
        margin: 0;
        color: var(--resolve-muted);
    }

.filter-panel,
.requests-panel {
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.filter-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.request-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(160px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.filter-field {
    min-width: 0;
}

    .filter-field label {
        display: block;
        margin-bottom: 0.4rem;
        color: #344054;
        font-size: 0.85rem;
        font-weight: 600;
    }

.filter-field--checkbox {
    align-self: center;
    padding-top: 1.6rem;
}

.filter-actions {
    display: flex;
    gap: 0.65rem;
    grid-column: 1 / -1;
}

.requests-panel {
    overflow: hidden;
}

.requests-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .requests-panel__header h2 {
        margin: 0 0 0.25rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .requests-panel__header p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.85rem;
    }

.requests-table {
    width: 100%;
    margin: 0;
    vertical-align: middle;
}

    .requests-table thead th {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--resolve-border);
        background: #f9fafb;
        color: var(--resolve-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .requests-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #edf0f5;
        color: #344054;
        font-size: 0.88rem;
    }

    .requests-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .requests-table tbody tr:hover {
        background: #fafcff;
    }

.request-title-cell {
    min-width: 240px;
}

.request-title {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--resolve-text);
    font-weight: 650;
    text-decoration: none;
}

    .request-title:hover {
        color: var(--resolve-primary);
    }

.request-category {
    display: block;
    color: var(--resolve-muted);
    font-size: 0.78rem;
}

.overdue-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
}

.request-actions {
    text-align: right;
    white-space: nowrap;
}

.text-muted {
    color: var(--resolve-muted) !important;
}

@media (max-width: 1200px) {
    .request-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-field--search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .requests-page {
        padding: 1.25rem 1rem 2rem;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

        .page-heading .btn-primary {
            width: 100%;
        }

    .request-filters {
        grid-template-columns: 1fr;
    }

    .filter-field--search,
    .filter-actions {
        grid-column: auto;
    }

    .filter-actions {
        flex-direction: column;
    }

        .filter-actions .btn {
            width: 100%;
        }
}

/* =========================================================
   Resolve Request Details
   ========================================================= */

.request-details-page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.request-details-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--resolve-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .back-link:hover {
        text-decoration: underline;
    }

.request-details-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .request-details-title h1 {
        margin: 0.2rem 0 0;
        font-size: clamp(1.7rem, 3vw, 2.3rem);
        font-weight: 700;
    }

.request-details-reference {
    color: var(--resolve-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.request-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.request-details-main {
    display: grid;
    gap: 1.5rem;
}

.details-panel {
    overflow: hidden;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.details-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .details-panel__header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .details-panel__header p {
        margin: 0.2rem 0 0;
        color: var(--resolve-muted);
        font-size: 0.82rem;
    }

.details-panel__body {
    padding: 1.4rem;
}

.request-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .request-description h3 {
        margin: 0 0 0.65rem;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .request-description p {
        margin: 0;
        color: #475467;
        line-height: 1.7;
        white-space: pre-line;
    }

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item__label {
    color: var(--resolve-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-item__value {
    color: var(--resolve-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.detail-item__subvalue {
    color: var(--resolve-muted);
    font-size: 0.8rem;
}

.comment-list {
    display: grid;
    gap: 1.25rem;
}

.comment-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.9rem;
}

.comment-item__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

.comment-item__content {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #edf0f5;
}

.comment-item:last-child .comment-item__content {
    padding-bottom: 0;
    border-bottom: 0;
}

.comment-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

    .comment-item__header time {
        color: #98a2b3;
        font-size: 0.76rem;
        white-space: nowrap;
    }

.comment-item p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

.internal-note {
    display: inline-flex;
    margin-left: 0.4rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.68rem;
    font-weight: 700;
}

.comment-edited {
    display: block;
    margin-top: 0.4rem;
    color: #98a2b3;
    font-size: 0.72rem;
}

.history-list {
    display: grid;
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.2rem;
}

    .history-item:not(:last-child)::before {
        position: absolute;
        top: 12px;
        bottom: 0;
        left: 5px;
        width: 2px;
        background: #e5e7eb;
        content: "";
    }

.history-item__marker {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 0.25rem;
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    background: var(--resolve-primary);
}

.history-item__content {
    min-width: 0;
}

    .history-item__content strong {
        display: block;
        margin-bottom: 0.15rem;
        font-size: 0.88rem;
    }

.history-item__user {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--resolve-muted);
    font-size: 0.78rem;
}

.history-item__content p {
    margin: 0 0 0.45rem;
    color: #475467;
    font-size: 0.82rem;
    line-height: 1.5;
}

.history-item__content time {
    display: block;
    margin-top: 0.4rem;
    color: #98a2b3;
    font-size: 0.72rem;
}

.history-change {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.76rem;
}

.history-change__old,
.history-change__new {
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
}

.history-change__old {
    background: #f1f5f9;
    color: #475569;
}

.history-change__new {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 1000px) {
    .request-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .request-details-page {
        padding: 1.25rem 1rem 2rem;
    }

    .request-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-details-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-details-actions,
    .request-details-actions .btn {
        width: 100%;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .comment-item__header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
/* =========================================================
   Resolve Request Form
   ========================================================= */

.request-form-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.request-form {
    width: 100%;
}

.request-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.request-form-main,
.request-form-sidebar {
    display: grid;
    gap: 1.5rem;
}

.form-panel {
    overflow: hidden;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.form-panel__header {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .form-panel__header h2 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .form-panel__header p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.84rem;
    }

.form-panel__body {
    padding: 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

    .form-field:last-child {
        margin-bottom: 0;
    }

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 0.6rem;
    background-color: #ffffff;
    color: var(--resolve-text);
    box-shadow: none;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: #84adff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-help {
    margin-top: 0.4rem;
    color: var(--resolve-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.field-validation-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
}

.input-validation-error {
    border-color: var(--resolve-danger);
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    margin-bottom: 1.5rem;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.25rem;
    }

.form-panel--actions .form-panel__body {
    display: grid;
    gap: 0.75rem;
}

.request-submit-button {
    width: 100%;
    min-height: 46px;
    font-weight: 650;
}

.form-panel--actions .btn-outline-secondary {
    width: 100%;
    min-height: 44px;
}

@media (max-width: 900px) {
    .request-form-grid {
        grid-template-columns: 1fr;
    }

    .request-form-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 650px) {
    .request-form-page {
        padding: 1.25rem 1rem 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Resolve Comments Form
   ========================================================= */

.comment-form {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--resolve-border);
    border-radius: 0.8rem;
    background: #f9fafb;
}

.comment-form__grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 2fr);
    gap: 1rem;
}

.comment-form__note {
    margin-bottom: 0;
}

.comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

    .comment-form__footer .btn {
        min-width: 140px;
    }

@media (max-width: 700px) {
    .comment-form__grid {
        grid-template-columns: 1fr;
    }

    .comment-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

        .comment-form__footer .btn {
            width: 100%;
        }
}

/* =========================================================
   Resolve Application Layout
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    z-index: 1000;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 250px;
    border-right: 1px solid var(--resolve-border);
    background: #ffffff;
    transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .sidebar-brand a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--resolve-text);
        text-decoration: none;
    }

.sidebar-brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 0.7rem;
    background: var(--resolve-primary);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.sidebar-brand__text {
    font-size: 1.25rem;
    font-weight: 750;
}

.sidebar-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    color: #475467;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

    .sidebar-link:hover {
        background: #f2f6ff;
        color: var(--resolve-primary);
    }

    .sidebar-link.active {
        background: #eaf1ff;
        color: var(--resolve-primary);
    }

.sidebar-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

    .sidebar-link__icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.sidebar-collapse-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    margin: 1rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--resolve-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

    .sidebar-collapse-button:hover {
        background: #f2f4f7;
        color: var(--resolve-text);
    }

.app-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: 250px;
    transition: margin-left 0.2s ease;
}

.app-header {
    position: sticky;
    z-index: 900;
    top: 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 72px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--resolve-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.app-search {
    position: relative;
    width: min(520px, 100%);
}

.app-search__icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    display: flex;
    width: 18px;
    height: 18px;
    color: #98a2b3;
    transform: translateY(-50%);
}

    .app-search__icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.app-search input {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 1rem 0.65rem 2.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.65rem;
    background: #f9fafb;
    color: var(--resolve-text);
    outline: none;
}

    .app-search input:focus {
        border-color: #84adff;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

.app-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.app-header-user__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 750;
}

.app-header-user__details {
    display: flex;
    flex-direction: column;
}

    .app-header-user__details strong {
        color: var(--resolve-text);
        font-size: 0.85rem;
    }

    .app-header-user__details span {
        color: var(--resolve-muted);
        font-size: 0.72rem;
    }

.app-main {
    flex: 1;
    min-width: 0;
}

.app-footer {
    padding: 1rem 1.5rem;
    color: var(--resolve-muted);
    font-size: 0.78rem;
    text-align: center;
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
}

    .mobile-menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        margin: 4px 0;
        background: var(--resolve-text);
    }

.sidebar-overlay {
    position: fixed;
    z-index: 950;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, 0.45);
}

/* Collapsed desktop sidebar */

body.sidebar-collapsed .app-sidebar {
    width: 78px;
}

body.sidebar-collapsed .app-content {
    margin-left: 78px;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
}

body.sidebar-collapsed .sidebar-brand__text,
body.sidebar-collapsed .sidebar-link__text,
body.sidebar-collapsed .sidebar-collapse-button__text {
    display: none;
}

body.sidebar-collapsed .sidebar-navigation {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-collapse-button {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

body.sidebar-collapsed .sidebar-collapse-button__icon {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .app-sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

    .app-content,
    body.sidebar-collapsed .app-content {
        margin-left: 0;
    }

    body.mobile-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.mobile-sidebar-open .sidebar-overlay {
        display: block;
    }

    .mobile-menu-button {
        display: block;
        flex: 0 0 40px;
    }

    .sidebar-collapse-button {
        display: none;
    }
}

@media (max-width: 650px) {
    .app-header {
        padding: 0 1rem;
    }

    .app-header-user__details {
        display: none;
    }

    .app-search input {
        font-size: 0.85rem;
    }
}

/* =========================================================
   Resolve My Work
   ========================================================= */

.my-work-page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.my-work-user-panel,
.my-work-panel {
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.my-work-user-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.my-work-user-form {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

    .my-work-user-form .filter-field {
        width: min(420px, 100%);
    }

    .my-work-user-form .form-check {
        margin-bottom: 0.7rem;
    }

.my-work-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.my-work-profile__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.95rem;
    font-weight: 750;
}

.my-work-profile h2 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.my-work-profile p {
    margin: 0;
    color: var(--resolve-muted);
    font-size: 0.86rem;
}

.my-work-panel {
    overflow: hidden;
}

.my-work-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .my-work-panel__header h2 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .my-work-panel__header p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.84rem;
    }

.my-work-table {
    width: 100%;
    margin: 0;
    vertical-align: middle;
}

    .my-work-table thead th {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--resolve-border);
        background: #f9fafb;
        color: var(--resolve-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .my-work-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #edf0f5;
        color: #344054;
        font-size: 0.88rem;
    }

    .my-work-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .my-work-table tbody tr:hover {
        background: #fafcff;
    }

@media (max-width: 700px) {
    .my-work-page {
        padding: 1.25rem 1rem 2rem;
    }

    .my-work-user-form {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
    }

        .my-work-user-form .filter-field {
            width: 100%;
        }

        .my-work-user-form .form-check {
            margin: 0.5rem 0 0;
        }

    .my-work-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

        .my-work-panel__header .btn {
            width: 100%;
        }
}

/* =========================================================
   Resolve Reports
   ========================================================= */

.reports-page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-panel {
    overflow: hidden;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.report-panel--full {
    width: 100%;
}

.report-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .report-panel__header h2 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .report-panel__header p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.82rem;
    }

.report-panel__body {
    padding: 1.4rem;
}

.report-bars {
    display: grid;
    gap: 1.15rem;
}

.report-bar-item__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

    .report-bar-item__heading strong {
        color: var(--resolve-text);
        font-size: 0.85rem;
    }

.report-bar-item__name {
    color: #344054;
    font-size: 0.86rem;
    font-weight: 600;
}

.report-bar-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.report-bar-fill {
    min-width: 4px;
    height: 100%;
    border-radius: inherit;
    background: var(--resolve-primary);
}

.report-bar-fill--teal {
    background: #0f766e;
}

.report-bar-fill--purple {
    background: #7c3aed;
}

.workload-report-item {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf0f5;
}

    .workload-report-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.workload-report-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

    .workload-report-item__header > div {
        display: flex;
        flex-direction: column;
    }

.workload-report-item__name {
    color: var(--resolve-text);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

    .workload-report-item__name:hover {
        color: var(--resolve-primary);
    }

.workload-report-item__header span {
    color: var(--resolve-muted);
    font-size: 0.75rem;
}

.workload-report-item__header strong {
    font-size: 0.8rem;
    white-space: nowrap;
}

.workload-report-item__metrics {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.55rem;
    color: var(--resolve-muted);
    font-size: 0.75rem;
}

.report-table {
    width: 100%;
    margin: 0;
    vertical-align: middle;
}

    .report-table thead th {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--resolve-border);
        background: #f9fafb;
        color: var(--resolve-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .report-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #edf0f5;
        color: #344054;
        font-size: 0.88rem;
    }

    .report-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .report-table tbody tr:hover {
        background: #fafcff;
    }

@media (max-width: 950px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .reports-page {
        padding: 1.25rem 1rem 2rem;
    }

    .workload-report-item__header {
        flex-direction: column;
        gap: 0.35rem;
    }

    .workload-report-item__metrics {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* =========================================================
   Resolve Administration
   ========================================================= */

.admin-page {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 160px;
    padding: 1.4rem;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .admin-card:hover {
        border-color: #bfdbfe;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
        color: inherit;
        transform: translateY(-2px);
    }

.admin-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 0.85rem;
    background: #eaf1ff;
    color: var(--resolve-primary);
}

    .admin-card__icon svg {
        width: 26px;
        height: 26px;
        fill: currentColor;
    }

.admin-card__content {
    min-width: 0;
}

    .admin-card__content h2 {
        margin: 0 0 0.35rem;
        color: var(--resolve-text);
        font-size: 1.05rem;
        font-weight: 700;
    }

    .admin-card__content p {
        margin: 0 0 0.8rem;
        color: var(--resolve-muted);
        font-size: 0.84rem;
        line-height: 1.55;
    }

.admin-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .admin-card__metrics span {
        padding: 0.3rem 0.55rem;
        border-radius: 999px;
        background: #f1f5f9;
        color: #475569;
        font-size: 0.72rem;
        font-weight: 650;
    }

.admin-card__arrow {
    color: #98a2b3;
    font-size: 1.4rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.admin-card:hover .admin-card__arrow {
    color: var(--resolve-primary);
    transform: translateX(4px);
}

@media (max-width: 950px) {
    .admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-page {
        padding: 1.25rem 1rem 2rem;
    }

    .admin-summary {
        grid-template-columns: 1fr;
    }

    .admin-card {
        grid-template-columns: 46px minmax(0, 1fr);
        min-height: auto;
    }

    .admin-card__icon {
        width: 46px;
        height: 46px;
    }

    .admin-card__arrow {
        display: none;
    }
}

/* =========================================================
   Resolve Administration Management
   ========================================================= */

.admin-management-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.admin-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-list-panel,
.admin-help-panel {
    overflow: hidden;
    border: 1px solid var(--resolve-border);
    border-radius: 1rem;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.admin-list-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--resolve-border);
}

    .admin-list-panel__header h2 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .admin-list-panel__header p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.82rem;
    }

.admin-management-sidebar {
    display: grid;
    gap: 1.5rem;
}

.admin-management-table {
    width: 100%;
    margin: 0;
    vertical-align: middle;
}

    .admin-management-table thead th {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--resolve-border);
        background: #f9fafb;
        color: var(--resolve-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .admin-management-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #edf0f5;
        color: #344054;
        font-size: 0.88rem;
    }

    .admin-management-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-management-table tbody tr:hover {
        background: #fafcff;
    }

.inactive-row {
    background: #fafafa;
    opacity: 0.72;
}

    .inactive-row:hover {
        background: #f5f5f5 !important;
    }

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-status--active {
    background: #dcfce7;
    color: #166534;
}

.admin-status--inactive {
    background: #f1f5f9;
    color: #64748b;
}

.admin-create-button {
    width: 100%;
    min-height: 44px;
    font-weight: 650;
}

.admin-help-panel {
    padding: 1.25rem;
}

    .admin-help-panel h2 {
        margin: 0 0 0.65rem;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .admin-help-panel p {
        margin: 0;
        color: var(--resolve-muted);
        font-size: 0.82rem;
        line-height: 1.6;
    }

@media (max-width: 900px) {
    .admin-management-grid {
        grid-template-columns: 1fr;
    }

    .admin-management-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 650px) {
    .admin-management-page {
        padding: 1.25rem 1rem 2rem;
    }
}

.admin-description-cell {
    min-width: 260px;
    max-width: 420px;
    color: var(--resolve-muted) !important;
    line-height: 1.5;
}

.admin-code-value {
    display: block;
    margin-top: 0.25rem;
    color: var(--resolve-muted);
    font-family: Consolas, monospace;
    font-size: 0.72rem;
}

.admin-reorder-actions {
    display: flex;
    gap: 0.35rem;
}

    .admin-reorder-actions form {
        margin: 0;
    }

    .admin-reorder-actions .btn {
        width: 34px;
        height: 32px;
        padding: 0;
    }

/* =========================================================
   Resolve User Administration
   ========================================================= */

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 250px;
}

.admin-user__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 750;
}

.admin-user__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .admin-user__details strong {
        color: var(--resolve-text);
        font-size: 0.88rem;
    }

    .admin-user__details span {
        margin-top: 0.1rem;
        color: var(--resolve-muted);
        font-size: 0.76rem;
    }

    .admin-user__details a {
        margin-top: 0.15rem;
        overflow: hidden;
        color: var(--resolve-primary);
        font-size: 0.74rem;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .admin-user__details a:hover {
            text-decoration: underline;
        }

.admin-count-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--resolve-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

    .admin-count-link:hover {
        background: #dbeafe;
        color: var(--resolve-primary-dark);
    }

/* =========================================================
   Resolve Dashboard Charts
   ========================================================= */

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-panel__header > div {
    min-width: 0;
}

.dashboard-panel__header p {
    margin: 0.25rem 0 0;
    color: var(--resolve-muted);
    font-size: 0.8rem;
}

.dashboard-chart-body {
    min-height: 330px;
    padding: 1.4rem;
}

.dashboard-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.dashboard-chart-container--doughnut {
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-chart-body {
        min-height: 300px;
        padding: 1rem;
    }

    .dashboard-chart-container {
        height: 270px;
    }

    .dashboard-chart-container--doughnut {
        height: 320px;
    }
}

/* =========================================================
   Resolve Request Sorting and Pagination
   ========================================================= */

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

    .sort-link:hover {
        color: var(--resolve-primary);
    }

.sort-indicator {
    display: inline-block;
    min-width: 10px;
    color: var(--resolve-primary);
    font-size: 0.8rem;
}

.requests-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--resolve-border);
    background: #ffffff;
}

.requests-pagination__summary {
    color: var(--resolve-muted);
    font-size: 0.82rem;
}

.requests-pagination .pagination {
    margin: 0;
}

.requests-pagination .page-link {
    min-width: 38px;
    color: var(--resolve-primary);
    text-align: center;
}

.requests-pagination .page-item.active .page-link {
    border-color: var(--resolve-primary);
    background: var(--resolve-primary);
    color: #ffffff;
}

.requests-pagination .page-item.disabled .page-link {
    color: #98a2b3;
    pointer-events: none;
}

@media (max-width: 700px) {
    .requests-pagination {
        align-items: stretch;
        flex-direction: column;
    }

        .requests-pagination nav {
            overflow-x: auto;
        }
}

.attachment-item__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .attachment-item__actions form {
        margin: 0;
    }

@media (max-width: 700px) {
    .attachment-item__actions {
        grid-column: 1 / -1;
    }

        .attachment-item__actions .btn {
            flex: 1;
        }
}


.demo-banner {
    flex-shrink: 0;
    border-bottom: 1px solid #f2cc60;
    background: #fff8db;
    color: #694f00;
}

.demo-banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    text-align: center;
}

    .demo-banner__content strong {
        font-weight: 750;
    }

@media (max-width: 600px) {
    .demo-banner__content {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0.75rem;
    }
}

/* =========================================================
   Resolve Demo Information Drawer
   ========================================================= */

.demo-drawer {
    --demo-drawer-width: 360px;
    position: fixed;
    top: 82px;
    right: 0;
    z-index: 1050;
    width: var(--demo-drawer-width);
    max-width: calc(100vw - 3rem);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

    .demo-drawer.is-open {
        transform: translateX(0);
    }

.demo-drawer__tab {
    position: absolute;
    top: 24px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--resolve-border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--resolve-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: -6px 8px 20px rgba(15, 23, 42, 0.14);
    transform: translateX(-100%);
    cursor: pointer;
}

    .demo-drawer__tab:hover {
        background: var(--resolve-primary-dark);
    }

.demo-drawer__tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.demo-drawer__panel {
    overflow: hidden;
    border: 1px solid var(--resolve-border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -14px 18px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.demo-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient( 135deg, var(--resolve-primary), var(--resolve-primary-dark) );
}

.demo-drawer__eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.demo-drawer__header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.demo-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

    .demo-drawer__close:hover {
        background: rgba(255, 255, 255, 0.16);
    }

.demo-drawer__body {
    display: grid;
    gap: 0.9rem;
    max-height: calc(100vh - 180px);
    padding: 1rem;
    overflow-y: auto;
}

.demo-drawer__description {
    margin: 0;
    color: var(--resolve-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.demo-drawer__notice {
    padding: 0.8rem;
    border-left: 3px solid #f59e0b;
    background: #fff8e8;
}

.demo-drawer__notice--live {
    border-left-color: var(--resolve-primary);
    background: #eef4ff;
}

.demo-drawer__notice strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--resolve-text);
    font-size: 0.75rem;
}

.demo-drawer__notice p {
    margin: 0;
    color: var(--resolve-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.demo-drawer__features h3 {
    margin: 0 0 0.55rem;
    color: var(--resolve-text);
    font-size: 0.78rem;
}

.demo-drawer__features ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.15rem;
    color: var(--resolve-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .demo-drawer {
        top: 70px;
        width: min(340px, calc(100vw - 2.5rem));
    }

    .demo-drawer__tab {
        padding: 0.65rem;
    }

    .demo-drawer__tab-label {
        display: none;
    }

    .demo-drawer__body {
        max-height: calc(100vh - 145px);
    }
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.portfolio-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.6rem 1rem;
    border-radius: 0.55rem;
    background: #e5006d;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease, transform 160ms ease;
}

    .portfolio-back-button:hover {
        background: #c9005f;
        color: #ffffff;
        transform: translateY(-1px);
    }

@media (max-width: 850px) {
    .app-header-actions {
        gap: 0.75rem;
    }

    .portfolio-back-button {
        padding: 0.55rem 0.7rem;
        font-size: 0.72rem;
    }

    .app-header-user__details {
        display: none;
    }
}

@media (max-width: 600px) {
    .portfolio-back-button {
        font-size: 0;
    }

        .portfolio-back-button::after {
            content: "← Portfolio";
            font-size: 0.72rem;
        }
}

.portfolio-back-button,
.portfolio-back-button:visited,
.portfolio-back-button:hover,
.portfolio-back-button:focus,
.portfolio-back-button:active {
    color: #ffffff !important;
}

.demo-drawer {
    top: 130px;
}

@media (max-width: 768px) {
    .demo-drawer {
        top: 118px;
    }
}

/* =========================================================
   Resolve Custom Product Theme
   ========================================================= */

:root {
    --resolve-background: #eef2f7;
    --resolve-page: #eef2f7;
    --resolve-panel: #ffffff;
    --resolve-surface: #ffffff;
    --resolve-surface-muted: #f7f9fc;
    --resolve-border: #cfd7e3;
    --resolve-border-strong: #b7c2d1;
    --resolve-text: #142033;
    --resolve-muted: #637083;
    --resolve-primary: #2859c5;
    --resolve-primary-dark: #173f93;
    --resolve-primary-soft: #e9effc;
    --resolve-navy: #101d31;
    --resolve-navy-soft: #182a45;
    --resolve-success: #087f5b;
    --resolve-danger: #c92a2a;
    --resolve-warning: #b76e00;
    --resolve-shadow: 0 1px 2px rgba(15, 29, 49, 0.05);
}

html {
    background: var(--resolve-background);
}

body {
    background: var(--resolve-background);
    color: var(--resolve-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-main {
    background: linear-gradient(180deg, #f7f9fc 0, var(--resolve-page) 240px);
}

.app-sidebar {
    border-right: 0;
    background: var(--resolve-navy);
    box-shadow: 8px 0 24px rgba(10, 22, 40, 0.08);
}

.sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.09);
    background: #0c1728;
}

    .sidebar-brand a,
    .sidebar-brand__text {
        color: #ffffff;
    }

.sidebar-brand__icon {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: var(--resolve-primary);
    box-shadow: none;
}

.sidebar-navigation {
    gap: 0.2rem;
    padding: 1rem 0.75rem;
}

.sidebar-link {
    position: relative;
    min-height: 44px;
    padding: 0.68rem 0.8rem;
    border-radius: 4px;
    color: #b9c4d4;
    font-weight: 600;
}

    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #ffffff;
    }

    .sidebar-link.active {
        background: #ffffff;
        color: var(--resolve-primary-dark);
    }

        .sidebar-link.active::before {
            position: absolute;
            top: 8px;
            bottom: 8px;
            left: -0.75rem;
            width: 3px;
            background: #72a0ff;
            content: "";
        }

.sidebar-collapse-button {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #aeb9c9;
}

    .sidebar-collapse-button:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

.app-header {
    min-height: 68px;
    border-bottom: 1px solid var(--resolve-border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(15, 29, 49, 0.03);
}

.app-search input {
    min-height: 40px;
    border-color: var(--resolve-border);
    border-radius: 4px;
    background: #f7f9fc;
}

    .app-search input:focus {
        border-color: var(--resolve-primary);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(40, 89, 197, 0.12);
    }

.app-header-user__avatar,
.my-work-profile__avatar,
.admin-user__avatar,
.comment-item__avatar {
    border-radius: 4px;
    background: var(--resolve-primary-soft);
    color: var(--resolve-primary-dark);
}

.dashboard-header,
.page-heading,
.request-details-header {
    margin-bottom: 1.35rem;
}

    .dashboard-header h1,
    .page-heading h1,
    .request-details-title h1 {
        color: #101b2d;
        font-weight: 760;
        letter-spacing: -0.025em;
    }

.btn {
    border-radius: 4px;
    box-shadow: none !important;
    font-weight: 650;
    letter-spacing: 0.005em;
}

.btn-primary {
    border-color: var(--resolve-primary);
    background: var(--resolve-primary);
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--resolve-primary-dark);
        background: var(--resolve-primary-dark);
    }

.btn-outline-primary {
    border-color: #9eb2dd;
    color: var(--resolve-primary-dark);
}

    .btn-outline-primary:hover {
        border-color: var(--resolve-primary);
        background: var(--resolve-primary);
        color: #ffffff;
    }

.btn-outline-secondary {
    border-color: var(--resolve-border-strong);
    color: #445166;
}

    .btn-outline-secondary:hover {
        border-color: #7b8799;
        background: #eef1f5;
        color: var(--resolve-text);
    }

.portfolio-back-button,
.portfolio-back-button:visited,
.portfolio-back-button:hover,
.portfolio-back-button:focus,
.portfolio-back-button:active {
    border-radius: 4px;
    background: #e5006d;
    color: #ffffff !important;
}

    .portfolio-back-button:hover,
    .portfolio-back-button:focus {
        background: #c9005f;
    }

.summary-card,
.dashboard-panel,
.filter-panel,
.requests-panel,
.details-panel,
.form-panel,
.my-work-user-panel,
.my-work-panel,
.report-panel,
.admin-card,
.admin-list-panel,
.admin-help-panel {
    border: 1px solid var(--resolve-border);
    border-radius: 5px;
    background: var(--resolve-panel);
    box-shadow: var(--resolve-shadow);
}

.dashboard-panel__header,
.requests-panel__header,
.details-panel__header,
.form-panel__header,
.my-work-panel__header,
.report-panel__header,
.admin-list-panel__header {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--resolve-border);
    background: var(--resolve-surface-muted);
}

.dashboard-summary {
    gap: 0.9rem;
}

.summary-card {
    min-height: 112px;
    padding: 1.05rem 1.15rem 1rem;
    border-top: 3px solid var(--resolve-primary);
}

    .summary-card::before {
        display: none;
    }

.summary-card--danger {
    border-top-color: var(--resolve-danger);
}

.summary-card--success {
    border-top-color: var(--resolve-success);
}

.summary-card__label {
    margin-bottom: 0.55rem;
    color: #556276;
    font-size: 0.78rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.summary-card__value {
    font-size: 2rem;
    font-weight: 760;
}

.dashboard-table thead th,
.requests-table thead th,
.my-work-table thead th,
.report-table thead th,
.admin-management-table thead th {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--resolve-border-strong);
    background: #e9eef5;
    color: #455267;
    font-size: 0.69rem;
    letter-spacing: 0.055em;
}

.dashboard-table tbody td,
.requests-table tbody td,
.my-work-table tbody td,
.report-table tbody td,
.admin-management-table tbody td {
    padding: 0.82rem 0.9rem;
    border-bottom-color: #e5eaf1;
}

.dashboard-table tbody tr:nth-child(even),
.requests-table tbody tr:nth-child(even),
.my-work-table tbody tr:nth-child(even),
.report-table tbody tr:nth-child(even),
.admin-management-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.dashboard-table tbody tr:hover,
.requests-table tbody tr:hover,
.my-work-table tbody tr:hover,
.report-table tbody tr:hover,
.admin-management-table tbody tr:hover {
    background: #eef4ff;
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: var(--resolve-border-strong);
    border-radius: 4px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--resolve-primary);
        box-shadow: 0 0 0 3px rgba(40, 89, 197, 0.12);
    }

.filter-panel,
.comment-form,
.attachment-form {
    background: #f8fafc;
}

.comment-form,
.attachment-form {
    border-radius: 4px;
}

.badge,
.admin-status,
.admin-count-link,
.admin-card__metrics span,
.internal-note {
    border-radius: 3px;
    font-size: 0.69rem;
    letter-spacing: 0.025em;
}

.badge {
    padding: 0.32rem 0.5rem;
}

.admin-card {
    min-height: 142px;
    border-left: 3px solid var(--resolve-primary);
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

    .admin-card:hover {
        border-color: var(--resolve-primary);
        background: #f8faff;
        box-shadow: var(--resolve-shadow);
        transform: translateY(-1px);
    }

.admin-card__icon {
    border-radius: 4px;
}

.report-bar-track,
.report-bar-fill {
    border-radius: 2px;
}

.report-bar-track {
    height: 7px;
}

.requests-pagination {
    background: var(--resolve-surface-muted);
}

    .requests-pagination .page-link {
        border-radius: 3px !important;
    }

.demo-drawer {
    top: 190px;
}

.demo-drawer__tab,
.demo-drawer__panel {
    border-radius: 5px 0 0 5px;
}

.demo-drawer__tab {
    background: var(--resolve-navy);
}

    .demo-drawer__tab:hover {
        background: var(--resolve-navy-soft);
    }

.demo-drawer__header {
    background: var(--resolve-navy);
}

.demo-drawer__notice {
    border-radius: 0;
}

@media (max-width: 768px) {
    .demo-drawer {
        top: 118px;
    }
}

.sidebar-brand__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.sidebar-brand__logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.sidebar-brand__logo--full {
    width: 160px;
    max-height: 46px;
}

.sidebar-brand__logo--glyph {
    display: none;
    width: 40px;
    height: 40px;
}

body.sidebar-collapsed .sidebar-brand__logo--full {
    display: none;
}

body.sidebar-collapsed .sidebar-brand__logo--glyph {
    display: block;
}

body.sidebar-collapsed .sidebar-brand__link {
    justify-content: center;
}

.sidebar-brand {
    min-height: 72px;
    padding: 0 1rem;
}

.sidebar-brand__logo--full {
    width: 145px;
    max-height: 40px;
}

.demo-drawer {
    top: 220px;
}