:root {
    --primary: #0f3d5e;
    --primary-dark: #08263c;
    --secondary: #f4b63f;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #7a8699;
    --border: #e5e9f2;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 82px;
    --topbar-height: 76px;
}
html, body {
    height: 100%;
    overflow: hidden; /* هذا أهم سطر */
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/*.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    overflow: hidden;*/ /* مهم جدا */
/*}*/
.app-shell {
    height: 100vh; /* بدل min-height */
    display: flex;
    overflow: hidden;
    background: var(--bg);
}

    .app-shell.rtl {
        direction: rtl;
    }

    .app-shell.ltr {
        direction: ltr;
    }

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: #fff;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: width .25s ease;
    box-shadow: 0 15px 40px rgba(15, 61, 94, .25);
    z-index: 1000;
    overflow: hidden; /* لا تجعل كل الـ sidebar يسكرول */
}

.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(244, 182, 63, .18);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    margin-top: 3px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    padding: 14px 12px 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sidebar-collapsed .nav-section,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .brand-title,
.sidebar-collapsed .brand-subtitle,
.sidebar-collapsed .user-info {
    display: none;
}

.nav-item {
    height: 44px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    margin-bottom: 6px;
    transition: all .2s ease;
    font-size: 14px;
}

    .nav-item i {
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

    .nav-item:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

    .nav-item.active {
        background: linear-gradient(90deg, var(--secondary), #ffd76d);
        color: #172033;
        font-weight: 700;
        box-shadow: 0 8px 20px rgba(244, 182, 63, .28);
    }

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.collapse-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

/* Main */
.app-main {
    flex: 1;
    min-width: 0;
}

.app-topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    flex-shrink: 0;
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    font-size: 22px;
}

.page-heading h5 {
    margin: 0;
    font-weight: 800;
    color: var(--text);
}

.page-heading span {
    font-size: 12px;
    color: var(--muted);
}

.topbar-center {
    flex: 1;
    max-width: 520px;
}

.global-search {
    height: 44px;
    background: #f6f8fc;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

    .global-search i {
        color: var(--muted);
    }

    .global-search input {
        border: 0;
        outline: none;
        background: transparent;
        width: 100%;
        font-size: 14px;
    }

.icon-btn {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

    .icon-btn:hover {
        background: #f8fafc;
    }

.notification-btn .notify-dot {
    width: 9px;
    height: 9px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 9px;
    right: 10px;
}

.rtl .notification-btn .notify-dot {
    right: auto;
    left: 10px;
}

.user-box {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .user-info strong {
        font-size: 13px;
    }

    .user-info span {
        font-size: 11px;
        color: var(--muted);
    }

/* Content */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}

/* Cards style for pages */
.fm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
    padding: 20px;
}

.fm-page-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.fm-page-subtitle {
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        transform: translateX(-100%);
    }

    .rtl .app-sidebar {
        transform: translateX(100%);
    }

    .sidebar-collapsed .app-sidebar {
        transform: translateX(0);
        width: var(--sidebar-width);
    }

    .topbar-center {
        display: none;
    }

    .user-info {
        display: none;
    }

    .app-content {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .page-heading span {
        display: none;
    }

    .icon-btn span {
        display: none;
    }

    .app-topbar {
        padding: 0 12px;
    }
}

.nav-parent {
    height: 44px;
    color: rgba(255,255,255,.78);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 14px;
}

    .nav-parent > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-parent i {
        font-size: 18px;
    }

    .nav-parent:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

.nav-children {
    margin: 2px 0 10px;
    padding-inline-start: 18px;
}

.nav-child {
    height: 36px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 4px;
    font-size: 13px;
    transition: all .2s ease;
}

    .nav-child i {
        font-size: 9px;
    }

    .nav-child:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    .nav-child.active {
        background: rgba(244,182,63,.18);
        color: #ffd76d;
        font-weight: 700;
    }

.sidebar-collapsed .nav-parent {
    justify-content: center;
    padding: 0;
}

    .sidebar-collapsed .nav-parent span,
    .sidebar-collapsed .nav-parent .bi-chevron-down,
    .sidebar-collapsed .nav-parent .bi-chevron-up,
    .sidebar-collapsed .nav-children {
        display: none;
    }
 

    /* تحسين شكل الاسكرول */
    .sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 10px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,.4);
        }
.app-main {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* مهم */
}
 

    /* Scroll جميل */
    .app-content::-webkit-scrollbar {
        width: 8px;
    }

    .app-content::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .app-content::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

 
.sidebar-nav,
.app-content {
    scroll-behavior: smooth;
}
.sidebar-nav {
    position: relative;
}

    .sidebar-nav::after {
        content: "";
        position: sticky;
        bottom: 0;
        height: 20px;
        display: block;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
    }

.fm-page {
    animation: fadeIn .25s ease;
}

.fm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

    .fm-page-header h3 {
        margin: 0;
        font-weight: 900;
        color: var(--text);
    }

    .fm-page-header p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 14px;
    }

.fm-action-btn {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fm-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.bg-blue {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.bg-green {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

.bg-orange {
    background: linear-gradient(135deg, #ea580c, #fbbf24);
}

.fm-stat-card span {
    color: var(--muted);
    font-size: 13px;
}

.fm-stat-card strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.fm-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.fm-search-box {
    height: 44px;
    flex: 1;
    max-width: 420px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

    .fm-search-box i {
        color: var(--muted);
    }

    .fm-search-box input {
        border: 0;
        outline: none;
        background: transparent;
        width: 100%;
    }

.fm-table {
    margin: 0;
}

    .fm-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border);
    }

    .fm-table tbody td {
        padding: 14px 12px;
    }

.fm-code {
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.fm-soft-badge {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.fm-loading,
.fm-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
}

    .fm-empty i {
        font-size: 42px;
        color: #cbd5e1;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .fm-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fm-stats-grid {
        grid-template-columns: 1fr;
    }

    .fm-toolbar {
        flex-direction: column;
    }

    .fm-search-box {
        max-width: 100%;
    }
}
.fm-criticality {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

    .fm-criticality.low {
        background: #ecfdf5;
        color: #047857;
    }

    .fm-criticality.medium {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .fm-criticality.high {
        background: #fff7ed;
        color: #c2410c;
    }

    .fm-criticality.critical {
        background: #fef2f2;
        color: #b91c1c;
    }

    .fm-criticality.none {
        background: #f1f5f9;
        color: #64748b;
    }
.fm-preview-box {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.incident-details {
    background: #fff;
}

.details-header {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.details-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

    .details-item span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

    .details-item strong {
        font-size: 14px;
        color: var(--text);
    }

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-header {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
.status-change-box {
    background: #fff;
}

.status-timeline {
    position: relative;
    padding-inline-start: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 18px;
    padding-inline-start: 22px;
    border-inline-start: 2px solid #e2e8f0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e1;
    border-radius: 50%;
    position: absolute;
    inset-inline-start: -7px;
    top: 4px;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}
.fm-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

    .fm-table-actions .btn {
        border-radius: 12px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

.fm-selected-row {
    background: #eef6ff !important;
}

    .fm-selected-row td {
        border-color: #bfdbfe;
    }

.incident-attachments-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
}

.attachments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

    .attachments-header h6 {
        margin: 0;
        font-weight: 900;
    }

    .attachments-header small {
        color: var(--muted);
    }

.attachment-upload-btn {
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.attachments-empty {
    min-height: 120px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
}

    .attachments-empty i {
        font-size: 34px;
        color: #cbd5e1;
    }

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.attachment-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
}

.attachment-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef2ff;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.attachment-info {
    min-width: 0;
}

    .attachment-info strong {
        display: block;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .attachment-info small {
        color: var(--muted);
        font-size: 12px;
    }

.attachment-actions {
    display: flex;
    gap: 6px;
}

.small-loading {
    min-height: 100px;
}

@media (max-width: 768px) {
    .attachments-header {
        flex-direction: column;
        align-items: stretch;
    }

    .attachments-grid {
        grid-template-columns: 1fr;
    }

    .attachment-card {
        grid-template-columns: 38px 1fr;
    }

    .attachment-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
.incident-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.incident-main,
.incident-side {
    min-width: 0;
}

.fm-section-title {
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-empty.compact {
    min-height: 120px;
}

.related-wo-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.side-info {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

    .side-info:last-child {
        border-bottom: 0;
    }

    .side-info span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 4px;
    }

    .side-info strong {
        font-size: 13px;
    }

@media (max-width: 1100px) {
    .incident-details-layout {
        grid-template-columns: 1fr;
    }
}
.fm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
}

    .fm-status-pill i {
        font-size: 7px;
    }

.status-new {
    background: #eef2ff;
    color: #4338ca;
}

.status-review {
    background: #fff7ed;
    color: #c2410c;
}

.status-converted {
    background: #ecfeff;
    color: #0e7490;
}

.status-closed {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.status-default {
    background: #f1f5f9;
    color: #475569;
}
.workorder-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.workorder-main,
.workorder-side {
    min-width: 0;
}

@media (max-width: 1100px) {
    .workorder-details-layout {
        grid-template-columns: 1fr;
    }
}
.workorder-section {
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    gap: 10px;
    align-items: center;
}

    .task-card.completed {
        background: #ecfdf5;
        border-color: #bbf7d0;
    }

.task-check input {
    width: 18px;
    height: 18px;
}

.task-content {
    min-width: 0;
}

    .task-content strong {
        display: block;
        font-size: 14px;
    }

    .task-content small {
        display: block;
        color: var(--muted);
        margin-top: 4px;
    }

.task-completed-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #047857;
    font-weight: 700;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .task-card {
        grid-template-columns: 32px 1fr;
    }

        .task-card .btn {
            grid-column: span 1;
        }
}
.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assignment-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
}

.assignment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #eef2ff;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.assignment-info {
    min-width: 0;
}

    .assignment-info strong {
        display: block;
        font-size: 14px;
    }

    .assignment-info small {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-top: 3px;
    }

    .assignment-info p {
        font-size: 13px;
        color: #475569;
    }

.assignment-accepted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #047857;
    font-weight: 800;
}

.assignment-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 768px) {
    .assignment-card {
        grid-template-columns: 46px 1fr;
    }

    .assignment-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
.approval-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.approval-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
}

.approval-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f1f5f9;
    color: #475569;
}

    .approval-icon.pending {
        background: #fff7ed;
        color: #c2410c;
    }

    .approval-icon.approved {
        background: #ecfdf5;
        color: #047857;
    }

    .approval-icon.rejected {
        background: #fef2f2;
        color: #b91c1c;
    }

.approval-info {
    min-width: 0;
}

    .approval-info strong {
        display: block;
        font-size: 14px;
    }

    .approval-info small {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-top: 3px;
    }

    .approval-info p {
        font-size: 13px;
        color: #475569;
    }

.approval-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 768px) {
    .approval-card {
        grid-template-columns: 46px 1fr;
    }

    .approval-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
.checklist-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
}

.checklist-order {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef2ff;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.checklist-item-content {
    min-width: 0;
}

    .checklist-item-content strong {
        display: block;
        font-size: 14px;
    }

@media (max-width: 768px) {
    .checklist-item-card {
        grid-template-columns: 42px 1fr;
    }

        .checklist-item-card .d-flex {
            grid-column: 1 / -1;
            justify-content: flex-end;
        }
}
.checklist-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-result-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
}

.result-status {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f1f5f9;
    color: #64748b;
}

    .result-status.passed {
        background: #ecfdf5;
        color: #047857;
    }

    .result-status.failed {
        background: #fef2f2;
        color: #b91c1c;
    }

    .result-status.pending {
        background: #f8fafc;
        color: #64748b;
    }

.result-content {
    min-width: 0;
}

    .result-content strong {
        display: block;
        font-size: 14px;
    }

    .result-content p {
        color: #475569;
        font-size: 13px;
    }

.result-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .checklist-result-card {
        grid-template-columns: 42px 1fr;
    }

        .checklist-result-card > button {
            grid-column: 1 / -1;
            justify-self: flex-end;
        }
}
