.request-detail-page {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

.request-detail-shell {
    max-width: 1360px;
    margin: 0 auto;
}

.main-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.main-card-header {
    padding: 0.45rem 1rem 0.4rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.main-card-header h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
}

.main-card-body {
    padding: 1rem;
}

.panel-title {
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.95rem;
    line-height: 1.2;
}

.info-panel-modern,
.content-section {
    background: #fbfdff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.info-cards-grid,
.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.info-card,
.doc-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.info-card-full,
.doc-card-full {
    grid-column: 1 / -1;
}

.info-card-label,
.doc-card-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.info-card-value,
.doc-card-value {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
    flex-wrap: wrap;
}

.section-heading h3 {
    margin: 0;
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.warning-section {
    border-color: #fde68a;
    background: #fffdf5;
}

.helper-warning {
    color: #b45309;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ordin-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}

.ordin-link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-soft-back,
.btn-soft-primary,
.btn-soft-warning,
.btn-soft-success,
.btn-soft-danger,
.btn-sm-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.62rem 0.95rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 125px;
    cursor: pointer;
}

.btn-sm-inline {
    min-width: auto;
    padding: 0.48rem 0.8rem;
    font-size: 0.86rem;
}

.btn-soft-back {
    background: #f8fafc;
    color: #475569;
    border-color: #dbe7f3;
}

.btn-soft-back:hover {
    background: #eef2f7;
    color: #0f172a;
}

.btn-soft-primary {
    background: #eff6ff;
    color: #0d6efd;
    border-color: #cfe2ff;
}

.btn-soft-primary:hover {
    background: #dbeafe;
    color: #0b5ed7;
}

.btn-soft-warning {
    background: #fff8e1;
    color: #c58a00;
    border-color: #fde68a;
}

.btn-soft-warning:hover {
    background: #fef3c7;
    color: #b45309;
}

.btn-soft-success {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}

.btn-soft-success:hover {
    background: #dcfce7;
    color: #166534;
}

.btn-soft-danger {
    background: #fff1f2;
    color: #dc3545;
    border-color: #f5c2c7;
}

.btn-soft-danger:hover {
    background: #ffe4e6;
    color: #bb2d3b;
}

.text-bold {
    font-weight: 700;
}

/* Tabele moderne */
.modern-table-wrap {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.soft-table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    --bs-table-bg: transparent;
}

.soft-table thead th {
    background: #f8fbff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 0.95rem 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid #e6edf5;
    border-right: 1px solid #eef2f7;
    white-space: nowrap;
}

.soft-table thead th:last-child {
    border-right: none;
}

.soft-table tbody td,
.soft-table tbody th {
    padding: 0.95rem 0.9rem;
    vertical-align: middle;
    color: #334155;
    font-size: 0.95rem;
    border-top: 1px solid #eef2f7;
    border-right: 1px solid #eef2f7;
    background: #ffffff;
}

.soft-table tbody td:last-child,
.soft-table tbody th:last-child {
    border-right: none;
}

.soft-table tbody tr:first-child td,
.soft-table tbody tr:first-child th {
    border-top: none;
}

.soft-table tbody tr:hover td,
.soft-table tbody tr:hover th {
    background: #fbfdff;
}

.soft-table .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* Stil util pentru butoane mici în tabel */
.soft-table .btn,
.soft-table a.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    box-shadow: none;
}

.soft-table .btn-primary {
    background: #eff6ff;
    border-color: #cfe2ff;
    color: #0d6efd;
}

.soft-table .btn-primary:hover {
    background: #dbeafe;
    border-color: #bfd8ff;
    color: #0b5ed7;
}

.soft-table .btn-warning {
    background: #fff8e1;
    border-color: #fde68a;
    color: #c58a00;
}

.soft-table .btn-warning:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

.soft-table .btn-danger {
    background: #fff1f2;
    border-color: #f5c2c7;
    color: #dc3545;
}

.soft-table .btn-danger:hover {
    background: #ffe4e6;
    border-color: #f1aeb5;
    color: #bb2d3b;
}

.soft-table .btn-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.soft-table .btn-success:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* Dacă ai icon-only buttons */
.soft-table .action-buttons,
.soft-table .table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

.soft-table .action-buttons .btn,
.soft-table .table-actions .btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.soft-table .action-buttons .btn i,
.soft-table .table-actions .btn i {
    margin: 0;
    font-size: 1rem;
}

/* PDF modal */
.pdf-container {
    max-height: 75vh;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem;
}

.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
}

/* Scroll orizontal frumos dacă tabelul e mare */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 991px) {
    .info-cards-grid,
    .doc-cards-grid {
        grid-template-columns: 1fr;
    }

    .info-card-full,
    .doc-card-full {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .main-card-header h2 {
        font-size: 1rem;
    }

    .main-card-body {
        padding: 0.85rem;
    }

    .info-panel-modern,
    .content-section {
        padding: 0.85rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions > div,
    .section-actions {
        width: 100%;
    }

    .btn-soft-back,
    .btn-soft-primary,
    .btn-soft-warning,
    .btn-soft-success,
    .btn-soft-danger,
    .btn-sm-inline {
        width: 100%;
    }

    .soft-table thead th,
    .soft-table tbody td,
    .soft-table tbody th {
        padding: 0.8rem 0.7rem;
        font-size: 0.9rem;
    }

    .soft-table .action-buttons,
    .soft-table .table-actions {
        flex-direction: column;
        gap: 0.35rem;
    }

    .soft-table .action-buttons .btn,
    .soft-table .table-actions .btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}