/* ==========================================
   CSS STYLESHEET
   Formulir Permohonan Informasi PT TARU MARTANI
   ========================================== */

:root {
    --primary-color: #C62828;
    --primary-hover: #B71C1C;
    --primary-light: #FFEBEE;
    --secondary-color: #1E293B;
    --accent-color: #0284C7;
    --bg-color: #F1F5F9;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --border-focus: #C62828;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* App Header Navigation */
.app-header {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-info p {
    font-size: 0.8rem;
    color: #94A3B8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.4);
}

.btn-success {
    background-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    background-color: transparent;
    color: #CBD5E1;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Alert Banners */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Readonly Input */
.input-readonly {
    background-color: #F1F5F9 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    cursor: not-allowed;
    border-color: #CBD5E1 !important;
}

.form-action-footer {
    margin-top: 0.5rem;
}

/* Saved Data Section & Table */
.saved-data-panel {
    margin-top: 2rem;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.card-body {
    padding: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #F8FAFC;
    font-weight: 700;
    color: var(--secondary-color);
}

.data-table tbody tr:hover {
    background-color: #F1F5F9;
}

.code-badge {
    background-color: #E2E8F0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #1E293B;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.btn-load {
    background-color: #0284C7;
    color: #FFFFFF;
}

.btn-load:hover {
    background-color: #0369A1;
}

.btn-delete {
    background-color: #EF4444;
    color: #FFFFFF;
}

.btn-delete:hover {
    background-color: #DC2626;
}

/* Admin Officer Name Inline Edit Styles */
.inline-petugas-form {
    display: flex;
    align-items: center;
}

.input-group-sm {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-sm-petugas {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    width: 160px;
    transition: border-color 0.2s;
}

.input-sm-petugas:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}

.admin-edit-petugas-bar {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.85rem 1.5rem;
}

.admin-edit-petugas-bar label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1E293B;
    display: block;
    margin-bottom: 0.4rem;
}

.inline-edit-box {
    display: flex;
    gap: 0.5rem;
}

.inline-edit-box input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.875rem;
}

.inline-edit-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

/* Main Layout Grid */
.app-main {
    max-width: 1600px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Panel */
.form-panel .card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: #F8FAFC;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background-color: #E0F2FE;
    color: #0369A1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.form-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #FAFAFA;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #F1F5F9;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #334155;
}

.form-group label.required::after {
    content: " *";
    color: var(--primary-color);
}

.sub-label {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

/* Checkbox Styles in Form */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.825rem;
    color: #334155;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #94A3B8;
    border-radius: 4px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked+.custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked+.custom-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #FFFFFF;
    font-size: 0.7rem;
}

/* Preview Panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-header {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-note {
    font-size: 0.775rem;
    color: #0369A1;
    background-color: #E0F2FE;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Printable Paper Canvas */
.paper-container {
    background-color: #CBD5E1;
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* A4 Sheet Dimensions & Typography matching Physical Document */
.printable-sheet {
    width: 210mm;
    min-height: 297mm;
    background: #FFFFFF;
    padding: 12mm 15mm;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
    line-height: 1.35;
    position: relative;
    box-sizing: border-box;
}

/* Kop Surat Header Layout Presisi 1:1 */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.logo-box {
    width: 140px;
    text-align: center;
}

.taru-logo-svg,
.taru-logo-img {
    width: 115px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-text {
    font-family: 'Arial', sans-serif;
    font-weight: 900;
    font-size: 15px;
    color: #CC0000;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Header Right Container: 2 Kolom Berdampingan */
.header-right-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.company-address-block {
    text-align: right;
    font-size: 12px;
    color: #000000;
    line-height: 1.35;
    font-family: 'Times New Roman', Times, serif;
}

.company-address-block .company-name {
    font-size: 13.5px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.company-address-block .company-address,
.company-address-block .company-city,
.company-address-block .company-contact {
    margin: 0;
    font-size: 12px;
    font-weight: normal;
}

.social-contacts-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
    font-size: 12px;
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
}

.social-contacts-block .social-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.social-contacts-block .soc-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.instagram-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23CC0000' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.5 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}

.email-gmail-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23CC0000' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236 316c8.3 6.2 19.7 6.2 28 0l216.8-165.6c12.1-9.2 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48H48z'/%3E%3Cpath fill='%23CC0000' d='M0 176v224c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176L326 304c-20 15.3-48 15.3-68 0L0 176z'/%3E%3C/svg%3E");
}

.web-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23CC0000' d='M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64h185.4c2.2 20.4 3.3 41.8 3.3 64zm28.8-64h123.2c5.3 20.5 8 41.9 8 64s-2.7 43.5-8 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm-112-89.2V44.4c64.5 13.8 117.8 77.2 135.5 158.4H268.8zm-25.6 0H111.7c17.7-81.2 71-144.6 135.5-158.4v58.4zM0 256c0-22.1 2.7-43.5 8-64h123.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8c-5.3-20.5-8-41.9-8-64zm243.2 211.6c-64.5-13.8-117.8-77.2-135.5-158.4h135.5v158.4zm25.6 0V309.2h135.5c-17.7 81.2-71 144.6-135.5 158.4z'/%3E%3C/svg%3E");
}

/* Header Single Divider Line */
.header-divider {
    border-top: 1.5px solid #000000;
    height: 1px;
    margin-bottom: 16px;
}

.header-divider-single {
    border-top: 1.5px solid #000000;
    height: 1px;
    margin-bottom: 16px;
}

/* Red Footer Banner at Bottom of Document Sheet */
.sheet-footer-banner {
    background-color: #CC0000;
    color: #FFFFFF;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    margin-top: 30px;
    letter-spacing: 0.2px;
    box-sizing: border-box;
}

/* Title Block */
.document-title-block {
    text-align: center;
    margin-bottom: 24px;
}

.document-title {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.no-pendaftaran-line {
    font-size: 13.5px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
}

.no-pendaftaran-line em {
    font-weight: normal;
}

.dots-fill {
    border-bottom: 1.5px dotted #000000;
    min-height: 18px;
    flex-grow: 1;
    display: inline-block;
    padding-left: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #000000;
}

/* Document Body Layout */
.document-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
}

.field-row {
    display: flex;
    align-items: flex-start;
}

.field-label {
    width: 250px;
    flex-shrink: 0;
}

.field-label .sub-text {
    font-style: italic;
    font-size: 12px;
    color: #333333;
}

.field-colon {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.field-value {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Checkbox Section Formatting */
.checkbox-section {
    margin-top: 4px;
}

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

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.option-item .num {
    width: 20px;
}

.print-checkbox {
    width: 24px;
    height: 24px;
    border: 1.5px solid #000000;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background-color: #FFFFFF;
}

.print-checkbox.checked::after {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #000000;
}

.option-item .desc {
    font-size: 13.5px;
}

/* Signature Section */
.signature-block {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-line {
    text-align: right;
    font-size: 13.5px;
    margin-right: 20px;
}

.date-dots {
    display: inline-block;
    min-width: 250px;
    border-bottom: 1.5px dotted #000000;
    text-align: center;
    padding: 0 10px;
}

.signatures-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    margin-top: 20px;
}

.sig-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.sig-title {
    font-size: 13.5px;
    text-align: center;
}

.sig-space {
    height: 70px;
}

.sig-name {
    font-size: 13.5px;
    text-align: center;
    width: 100%;
}

.sig-name span {
    display: inline-block;
    min-width: 160px;
    border-bottom: 1.5px dotted #000000;
    text-align: center;
}

/* ==========================================
   PRINT MEDIA RULES
   ========================================== */

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 15mm;
    }

    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 12pt;
    }

    .no-print,
    .app-header,
    .form-panel,
    .preview-header,
    .modal-header,
    .admin-edit-petugas-bar,
    .search-form-box,
    .search-hint,
    #modalCekPermohonan {
        display: none !important;
    }

    .modal-overlay {
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        display: block !important;
    }

    .modal-content {
        max-width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #FFFFFF !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .app-main {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .workspace-grid {
        display: block !important;
    }

    .paper-container {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .printable-sheet {
        width: 100% !important;
        min-height: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dots-fill {
        border-bottom-color: #000000 !important;
    }
}

/* Global Modal Overlay & Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.1rem 1.5rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.search-form-box {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.search-input-lg {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    transition: all 0.2s;
}

.search-input-lg:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.search-hint {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 1rem;
}

.result-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.result-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-card-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card-info p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #475569;
}

.status-badge-petugas {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background-color: #E0F2FE;
    color: #0369A1;
}

.status-badge-pending {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background-color: #FEF3C7;
    color: #92400E;
}

/* ==========================================
   ADMIN TABS & ADVANCED STYLING
   ========================================== */
.admin-tabs-nav {
    display: flex;
    gap: 0.75rem;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    border-bottom: 3px solid transparent;
    margin-bottom: -7px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
}

/* Print Checkbox adjustments for 18px size */
.print-checkbox[style*="width: 18px"].checked::after {
    font-size: 13px !important;
    transform: translate(-50%, -55%) !important;
}

@media print {

    /* Hide navigation and other header tabs in print mode */
    .admin-tabs-nav,
    .tab-btn {
        display: none !important;
    }
}