/* Issue Tracker - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin-left: 70px; /* Account for sidebar */
    padding-top: 65px; /* Account for sticky header */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    margin-top: 15px; /* Add space below sticky header */
}

.container-narrow {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.issue-tracker-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.issue-tracker-header .section-title h1 {
    color: #fff;
}

.issue-tracker-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.issue-tracker-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.issue-tracker-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.issue-tracker-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.issue-tracker-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Section-specific headers */
.issue-tracker-header,
.sop-header,
.library-header,
.bulletins-header,
.approvals-header,
.iwarranty-header,
.admin-home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    margin-bottom: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: #666;
    font-size: 13px;
}

/* Admin Menu */
.admin-menu {
    position: relative;
    display: inline-block;
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    margin-top: 5px;
}

.admin-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-dropdown a:last-child {
    border-bottom: none;
}

.admin-dropdown a:hover {
    background-color: #f8f9fa;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 28px;
}

/* Forms */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #fff;
}

textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
button,
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4a90e2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-link {
    background-color: transparent;
    color: #4a90e2;
    padding: 5px 10px;
}

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

.btn-full {
    width: 100%;
}

/* Filter Bar */
.filter-bar {
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

/* Table */
.table-container {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: #4a90e2;
    text-decoration: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-open,
.status-active {
    background-color: #fff3cd;
    color: #856404;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.status-archived {
    background-color: #e2e3e5;
    color: #6c757d;
}

/* Issue Detail */
.issue-header {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.issue-header h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.issue-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 3px;
}

.meta-value {
    font-size: 13px;
    color: #333;
}

/* Notes Section */
.notes-section {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.notes-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.note-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #4a90e2;
    margin-bottom: 10px;
    border-radius: 4px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    color: #666;
}

.note-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 11px;
}

.note-meta span {
    color: #555;
}

.note-meta strong {
    color: #333;
}

.note-text {
    color: #333;
    white-space: pre-line;
    line-height: 1.4;
    font-size: 13px;
}

/* Add Note Form */
.add-note-section {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.add-note-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Duplicate Check Results */
.duplicate-results {
    background-color: #fff9e6;
    border: 1px solid #ffd966;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.duplicate-results h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 16px;
}

.duplicate-list {
    list-style: none;
    margin-bottom: 15px;
}

.duplicate-item {
    padding: 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.duplicate-item:last-child {
    margin-bottom: 0;
}

.duplicate-item a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.duplicate-item .issue-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item .usage-count {
    font-size: 11px;
    color: #999;
}

/* Messages */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.action-bar h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

/* Hidden by default */
.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sort-indicator {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

.sort-indicator.active {
    color: #4a90e2;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* ========================================
   GLOBAL SIDEBAR NAVIGATION
   ======================================== */
.global-sidebar {
    position: fixed;
    left: 0;
    top: 55px; /* Start below header */
    width: 70px;
    height: calc(100vh - 55px);
    background: #5a5a5a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 18px;
    z-index: 997; /* Below header */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: #fff;
}

.sidebar-icon.issue-tracker-icon {
    background-color: #4a90e2;
}

.sidebar-icon.sop-icon {
    background-color: #28a745;
}

.sidebar-icon.bulletins-icon {
    background-color: #e67e22;
}

.sidebar-icon.library-icon {
    background-color: #6366f1;
}

.sidebar-icon.approvals-icon {
    background-color: #65a30d;
}

.sidebar-icon.iwarranty-icon {
    background-color: #dc2626;
}

.sidebar-icon.admin-icon {
    background-color: #ffffff;
    border: 2px solid #888;
    color: #000;
}

.sidebar-icon.admin-icon svg {
    color: #000;
    stroke: #000;
}

.sidebar-icon:hover {
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sidebar-icon.active {
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.sidebar-icon:hover::before {
    content: attr(title);
    position: absolute;
    left: 65px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    z-index: 1001;
    pointer-events: none;
}

/* Removed margin-top: auto - admin icon stays in normal flow */

/* ========================================
   SECTION HEADERS
   ======================================== */

/* Section Title in Header */
.section-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* SOP Header */
.sop-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sop-header .section-title h1 {
    color: #fff;
}

.sop-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sop-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.sop-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.sop-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.sop-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.sop-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* SOP print tools */
.sop-print-manager-copy,
.sop-muted-text {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.sop-print-selector {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.sop-print-selector .form-group {
    flex: 1;
    margin-bottom: 0;
}

.sop-print-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sop-print-document {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 32px;
    line-height: 1.65;
}

.sop-print-title {
    border-bottom: 2px solid #28a745;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.sop-print-kicker {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sop-print-breadcrumbs {
    color: #555;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 6px;
    margin-bottom: 10px;
}

.sop-print-breadcrumb-separator {
    color: #999;
}

.sop-print-title h1 {
    color: #333;
    font-size: 26px;
    margin: 0 0 6px;
}

.sop-print-title p {
    color: #666;
    margin: 0;
}

.sop-print-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 18px;
    margin-top: 22px;
}

.sop-print-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.sop-print-section h2,
.sop-print-section h3,
.sop-print-section h4 {
    color: #333;
    margin: 0 0 12px;
}

.sop-print-section h2 {
    font-size: 22px;
}

.sop-print-section h3 {
    font-size: 18px;
}

.sop-print-section h4 {
    font-size: 15px;
}

.sop-print-content p,
.sop-print-content ul,
.sop-print-content ol,
.sop-print-content table {
    margin-bottom: 14px;
}

.sop-print-content ul,
.sop-print-content ol {
    padding-left: 26px;
}

.sop-print-content img {
    max-width: 100%;
    height: auto;
}

.sop-print-content table {
    border-collapse: collapse;
    width: 100%;
}

.sop-print-content th,
.sop-print-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.sop-print-content th {
    background: #f8f9fa;
}

@media print {
    @page {
        margin: 0.6in;
    }

    body.sop-print-body {
        background: #fff;
        color: #000;
        font-size: 11pt;
        margin-left: 0;
        margin-bottom: 0;
        padding-top: 0;
    }

    body.sop-print-body header,
    body.sop-print-body .sop-header,
    body.sop-print-body .global-sidebar,
    body.sop-print-body .sop-print-actions {
        display: none !important;
    }

    body.sop-print-body .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body.sop-print-body .sop-print-document {
        border: none;
        border-radius: 0;
        padding: 0;
    }

    body.sop-print-body .sop-print-title {
        border-bottom-color: #000;
        margin-bottom: 18px;
    }

    body.sop-print-body .sop-print-section h2,
    body.sop-print-body .sop-print-section h3,
    body.sop-print-body .sop-print-section h4 {
        break-after: avoid;
        page-break-after: avoid;
    }

    body.sop-print-body .sop-print-content img,
    body.sop-print-body .sop-print-content table {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.sop-print-body a {
        color: #000;
        text-decoration: none;
    }
}

/* Library Header */
.library-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.library-header .section-title h1 {
    color: #fff;
}

.library-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.library-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.library-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.library-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.library-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.library-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Bulletins Header */
.bulletins-header {
    background: linear-gradient(135deg, #e67e22 0%, #c25d1b 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulletins-header .section-title h1 {
    color: #fff;
}

.bulletins-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bulletins-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.bulletins-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.bulletins-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.bulletins-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.bulletins-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* === Approvals === */
.approvals-header {
    background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.approvals-header .section-title h1 {
    color: #fff;
}

.approvals-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.approvals-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.approvals-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.approvals-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.approvals-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.approvals-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* iWarranty Header */
.iwarranty-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.iwarranty-header .section-title h1 {
    color: #fff;
}

.iwarranty-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.iwarranty-header .btn-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.iwarranty-header .btn-link:hover {
    background: rgba(255,255,255,0.1);
}

.iwarranty-header .user-info {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.iwarranty-header .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.iwarranty-header .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.iwarranty-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #dc2626;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.iwarranty-section h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.iwarranty-section p {
    color: #555;
    margin-bottom: 15px;
}

.iwarranty-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.iwarranty-status-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
}

.iwarranty-status-item .meta-label,
.iwarranty-status-item .meta-value {
    display: block;
}

.iwarranty-status-item .meta-value {
    color: #111;
    font-size: 14px;
}

.iwarranty-upload-form {
    max-width: 680px;
}

.iwarranty-progress {
    margin: 15px 0;
}

.iwarranty-progress-bar {
    width: 100%;
    height: 28px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.iwarranty-progress-fill {
    width: 0;
    height: 100%;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.iwarranty-progress p {
    margin-top: 8px;
    color: #555;
    font-size: 13px;
}

.iwarranty-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.iwarranty-search-panel {
    min-width: 0;
}

.iwarranty-search-panel label {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iwarranty-search-row {
    display: flex;
    gap: 10px;
}

.iwarranty-search-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.iwarranty-data-disclaimer {
    color: #666;
    font-size: 12px;
    margin: 8px 0 20px;
}

.iwarranty-data-disclaimer p {
    margin-bottom: 4px;
}

.iwarranty-data-disclaimer p:last-child {
    margin-bottom: 0;
}

.iwarranty-data-disclaimer .meta-label {
    margin-right: 6px;
}

.iwarranty-results-table {
    overflow-x: auto;
}

.iwarranty-results-table table {
    min-width: 1100px;
}

.iwarranty-results-table td {
    vertical-align: top;
}

.iwarranty-results-table tbody tr[data-href] {
    cursor: pointer;
}

.iwarranty-note-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid #dc2626;
    border-radius: 4px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
}

.iwarranty-results-table td:nth-child(7),
.iwarranty-results-table td:nth-child(10),
.iwarranty-results-table td:nth-child(11) {
    min-width: 180px;
}

.iwarranty-related-heading {
    color: #333;
    font-size: 15px;
    margin: 18px 0 8px;
}

.iwarranty-claim-workbench {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    gap: 18px;
    align-items: start;
}

.iwarranty-claim-main {
    min-width: 0;
}

.iwarranty-notes-panel {
    min-width: 0;
}

.iwarranty-notes-panel .iwarranty-section {
    padding: 16px 18px;
}

.iwarranty-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.iwarranty-detail-field {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 12px;
    min-width: 0;
}

.iwarranty-detail-field .meta-label,
.iwarranty-detail-field .meta-value {
    display: block;
}

.iwarranty-detail-field .meta-value {
    color: #111;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.iwarranty-note-form textarea,
.iwarranty-note-form input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.iwarranty-note-form textarea {
    resize: vertical;
}

.iwarranty-note-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iwarranty-note-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
}

.iwarranty-note-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
}

.iwarranty-note-header strong {
    color: #333;
}

.iwarranty-note-case {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.iwarranty-note-text {
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.iwarranty-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iwarranty-related-item {
    display: block;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 9px 10px;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.iwarranty-related-item:hover {
    background: #f8f9fa;
}

.iwarranty-related-summary {
    display: grid;
    grid-template-columns: minmax(68px, 1fr) minmax(72px, 1fr) minmax(82px, 1.2fr);
    gap: 8px;
    color: #111;
    font-size: 12px;
    line-height: 1.35;
}

.iwarranty-related-part {
    margin-top: 5px;
    color: #555;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.iwarranty-diagnostic-form {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1fr) 180px auto;
    gap: 14px;
    align-items: end;
}

.iwarranty-diagnostic-form .form-group {
    margin-bottom: 0;
}

.iwarranty-diagnostic-form label {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iwarranty-diagnostic-form input[type="number"],
.iwarranty-diagnostic-form input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.iwarranty-diagnostic-table table {
    min-width: 1500px;
}

.iwarranty-diagnostic-table td {
    max-width: 280px;
    overflow-wrap: anywhere;
}

.iwarranty-diagnostic-mismatch {
    background: #fff7ed;
}

.iwarranty-repair-form {
    display: grid;
    grid-template-columns: 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.iwarranty-repair-form .form-group {
    margin-bottom: 0;
}

.iwarranty-repair-form label {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iwarranty-repair-form input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .iwarranty-search-grid {
        grid-template-columns: 1fr;
    }

    .iwarranty-diagnostic-form {
        grid-template-columns: 1fr;
    }

    .iwarranty-repair-form {
        grid-template-columns: 1fr;
    }

    .iwarranty-claim-workbench {
        grid-template-columns: 1fr;
    }
}

/* Approvals — section forms and status banners */
.approval-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #65a30d;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    /* When the browser scrolls to a #section-X anchor, leave room for the
       65px fixed header above so the section heading is not hidden. */
    scroll-margin-top: 75px;
}

.approval-section h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.approval-section h3 {
    margin: 15px 0 10px 0;
    font-size: 15px;
    color: #444;
}

.approval-section .form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.approval-section .radio-row label,
.approval-section .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    font-weight: normal;
}

.approval-section .radio-column,
.approval-section .checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.approval-section .radio-column label,
.approval-section .checkbox-column label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Checkbox shown AFTER its question text (Section D, P2.3 no-date toggle) */
.approval-section .checkbox-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: normal;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
}

.approval-section .checkbox-after-text {
    flex: 1;
    color: #333;
}

.approval-section .checkbox-after input[type="checkbox"] {
    flex: 0 0 auto;
    transform: scale(1.2);
}

.approval-section .derived-display .readonly-value {
    background: #f1f5e8;
    border: 1px solid #d4e1bb;
    color: #3f5f0a;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.approval-section table.repeatable-rows,
.approval-section table.source-checks {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
}

.approval-section table.repeatable-rows th,
.approval-section table.repeatable-rows td,
.approval-section table.source-checks th,
.approval-section table.source-checks td {
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 8px;
    text-align: left;
}

.approval-section table.repeatable-rows input[type="text"],
.approval-section table.source-checks input[type="date"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.approval-section .path-block {
    background: #fafdf5;
    border: 1px solid #e2ead0;
    border-radius: 4px;
    padding: 15px 18px;
    margin-top: 10px;
}

/* Status banner shown above the form for an existing request */
.approval-status-banner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #6c757d;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.approval-status-banner.approval-status-in_progress       { border-left-color: #4a90e2; }
.approval-status-banner.approval-status-wait_for_parts    { border-left-color: #e67e22; background: #fef6ee; }
.approval-status-banner.approval-status-pending_override  { border-left-color: #65a30d; background: #f1f5e8; }
.approval-status-banner.approval-status-out_of_warranty   { border-left-color: #6c757d; background: #f1f3f5; }
.approval-status-banner.approval-status-denied_override_refused { border-left-color: #dc3545; background: #fdf2f2; }
.approval-status-banner.approval-status-cancelled         { border-left-color: #adb5bd; background: #f1f3f5; }
.approval-status-banner.approval-status-approved_locked   { border-left-color: #28a745; background: #f1faf3; }

.approval-status-banner .approval-code-banner {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    margin-top: 6px;
}

.approval-status-banner .approval-status-detail {
    margin-top: 6px;
    color: #555;
}

.approval-status-banner .approval-owner-badge {
    margin-left: 12px;
    font-size: 12px;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 10px;
}

.approval-next-phase-banner {
    background: #f1f5e8;
    border: 1px dashed #65a30d;
    color: #3f5f0a;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

/* Approvals — index dashboard "+ New Request" button */
.approvals-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-approvals-new {
    background: #65a30d;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-approvals-new:hover {
    background: #4d7c0f;
}

.approvals-page-heading {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.approvals-empty-detail {
    font-size: 13px;
    color: #666;
}

.approvals-row-link {
    cursor: pointer;
}

.approvals-row-link:hover {
    background: #f8fbf3;
}

.approvals-table-footer {
    margin-top: 10px;
    font-size: 11px;
    color: #666;
}

/* Index page filter bar */
.approvals-filter-bar {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.approvals-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.approvals-search-input {
    flex: 1;
    min-width: 280px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.approvals-filter-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.approvals-filter-apply {
    padding: 8px 16px;
}

/* Sort indicators on column headers */
th .sort-indicator {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}

th .sort-indicator.active {
    color: #65a30d;
}

th a {
    color: #333;
    text-decoration: none;
}

th a:hover {
    color: #65a30d;
}

.approvals-queue-count {
    background: #65a30d;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* F-Prep section styling — same shell as approval-section but with a stronger
   left border to signal "decision gate" */
.approval-fp-section {
    border-left-color: #d4a017;
    background: #fffdf5;
}

.approval-fp-section h2 {
    color: #6b5408;
}

.approval-fp-decision-section {
    border-left-color: #65a30d;
    background: #f7faf2;
}

.approval-fp-decision-section h2 {
    color: #3f5f0a;
}

.approval-fp-flagged {
    background: #fff;
    border: 1px solid #f0e3b8;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.approval-fp-flagged h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6b5408;
}

.approval-fp-flagged ul {
    margin: 0;
    padding-left: 20px;
}

.approval-fp-flagged li {
    margin-bottom: 4px;
    color: #444;
}

.approval-fp-notes {
    margin-top: 6px;
    font-size: 13px;
}

/* Section F — final approval/resolution */
.approval-f-section {
    border-left-color: #28a745;
    background: #f6fdf8;
}

.approval-f-section h2 {
    color: #1d6e34;
}

.approval-final-display {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #c7e8d2;
    border-radius: 4px;
}

.approval-code-value {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #1d6e34;
    background: #eafaef;
    border-color: #b6dcc2;
}

/* Other-request match warning — persistent panel above Section A when
   the saved A1/A3 values match any other approval request */
.approval-match-warning {
    background: #fdf6f6;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
    scroll-margin-top: 75px;
}

.approval-match-warning h3 {
    color: #8a1c26;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.approval-match-warning p {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 14px;
}

.approval-match-list {
    margin: 0;
    padding-left: 20px;
}

.approval-match-list li {
    margin-bottom: 10px;
    color: #333;
}

.approval-match-list a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.approval-match-list a:hover {
    text-decoration: underline;
}

.approval-match-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #f5c6cb;
    color: #8a1c26;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

.approval-match-detail {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Cancel Request — destructive action, distinct visual treatment */
.approval-cancel-section {
    border-left-color: #dc3545;
    background: #fdf6f6;
    margin-top: 30px;
}

.approval-cancel-section h2 {
    color: #8a1c26;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background: #b32a37;
}

/* Status History — audit-trail panel at the bottom of a request page */
.approval-history-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #adb5bd;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    scroll-margin-top: 75px;
}

.approval-history-section h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.approval-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.approval-history-table th,
.approval-history-table td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.approval-history-table th {
    color: #555;
    font-weight: 600;
    background: #fafafa;
}

.approval-history-table tr:last-child td {
    border-bottom: none;
}

/* Bulletins Pages */
.search-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-search {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-search:hover {
    background: #357abd;
}

.filters-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filters-row select,
.filters-row input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.btn-clear {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.btn-clear:hover {
    background: #545b62;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.btn-add {
    background: #4a90e2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-add:hover {
    background: #357abd;
}

.bulletins-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.bulletins-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #e0e0e0;
}

.bulletins-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bulletins-table tr:hover {
    background: #f9f9f9;
}

.bulletins-table a {
    color: #007bff;
    text-decoration: none;
}

.models-preview {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 12px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Responsive for bulletins */
@media (max-width: 900px) {
    .filters-row {
        flex-wrap: wrap;
    }
    .filters-row select,
    .filters-row input[type="date"] {
        flex: 1 1 auto;
        min-width: 120px;
    }
    .bulletins-table {
        font-size: 13px;
    }
    .bulletins-table th:nth-child(4),
    .bulletins-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-row {
        flex-direction: column;
    }
    .btn-search {
        width: 100%;
    }
    .results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
}

.site-footer a {
    color: #007bff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-tagline {
    font-style: italic;
    margin-top: 4px;
}

/* Admin Home Header */
.admin-home-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid #dee2e6;
}

.admin-home-header .section-title h1 {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .global-sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        padding: 5px 10px;
        top: auto;
        bottom: 0;
        left: 0;
    }

    .sidebar-icon {
        width: 45px;
        height: 45px;
    }

    .sidebar-icon svg {
        width: 24px;
        height: 24px;
    }

    .sidebar-icon:hover {
        transform: translateY(-5px) scale(1.05);
    }

    .sidebar-icon.active {
        transform: translateY(-8px);
    }

    .sidebar-icon.active::after {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 10px solid inherit;
        right: auto;
        left: 50%;
        top: -10px;
        transform: translateX(-50%);
    }

    .sidebar-icon:hover::before {
        left: 50%;
        transform: translateX(-50%);
        bottom: 55px;
        top: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        margin-left: 0;
        margin-bottom: 60px;
        padding-top: 60px;
    }

    header,
    .sop-header,
    .library-header,
    .bulletins-header,
    .approvals-header {
        left: 0;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px 10px;
    }

    .issue-meta {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.sop-print-body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.sop-print-body header,
    body.sop-print-body .sop-header,
    body.sop-print-body .global-sidebar,
    body.sop-print-body .sop-print-actions {
        display: none !important;
    }

    body.sop-print-body .container,
    body.sop-print-body .sop-print-document {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
    }
}
