.application-detail-page {
    background: #eef1f6;
    color: #1f2a37;
    font-family: 'Noto Sans Devanagari', 'Playfair Display', system-ui, sans-serif;
}

.application-detail-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 48px;
}

.application-detail-card {
    width: min(1200px, 100%);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    padding: 28px 32px 32px;
}

.application-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #ffb300;
    border: 1px solid #f3a000;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.chip {
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.application-number {
    color: #5a2a00;
    font-weight: 700;
    font-size: 15px;
}

.application-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #4a2b00;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.meta-text {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.header-mid {
    flex: 1;
    text-align: center;
}

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

.status-pill {
    background: #ffffff;
    color: #5a2a00;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid #f1c24f;
}

.status-pill.pending {
    background: #fff7df;
    color: #92400e;
}

.status-pill.rejected {
    background: #ffe4e6;
    color: #9f1239;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #f1c24f;
    background: #ffffff;
    color: #5a2a00;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.application-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.info-item {
    flex: 1;
    min-width: 200px;
}

.info-item.small {
    min-width: 180px;
    text-align: right;
}

.label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 700;
}

.value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.highlight-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
}

.highlight-card span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.highlight-card strong {
    font-size: 16px;
    color: #0f172a;
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}

.detail-list.modern {
    display: grid;
    gap: 10px;
}

.detail-list.modern .detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.detail-list.modern .detail-row span:first-child {
    color: #475569;
    font-weight: 600;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title-row h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.documents-list.modern {
    display: grid;
    gap: 10px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.document-item .doc-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.remarks-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.remarks-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5f5;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
}

.upload-grid {
    display: grid;
    gap: 12px;
}

.upload-field input[type="file"] {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
}

.attachment-card {
    position: relative;
    border: 1.5px dashed #c9ced8;
    border-radius: 14px;
    padding: 18px 14px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.attachment-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
    background: #f8fbff;
}

.attachment-card input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.attachment-icon {
    font-size: 1.8rem;
    color: #2563eb;
}

.attachment-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.attachment-hint {
    font-size: 0.75rem;
    color: #64748b;
}

.file-name-display {
    margin-top: 6px;
    padding: 8px 12px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 0.85rem;
    display: none;
}

.file-name-display.show {
    display: block;
}

.btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn.primary {
    background: #16a34a;
    color: #fff;
}

.btn.secondary {
    background: #0f172a;
    color: #fff;
}

.btn.danger {
    background: #ef4444;
    color: #fff;
}

.qr-card {
    text-align: center;
}

.qr-card img {
    width: 170px;
    height: 170px;
    margin-top: 12px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.action-card {
    display: grid;
    gap: 10px;
    padding: 16px 4px 0;
}

@media (max-width: 960px) {
    .application-content {
        grid-template-columns: 1fr;
    }
    .info-item.small {
        text-align: left;
    }
}

@media print {
    .icon-button,
    .action-card {
        display: none !important;
    }
    .application-detail-shell {
        padding: 0;
    }
    .application-detail-card {
        box-shadow: none;
        border-radius: 0;
    }
    body {
        background: #fff;
        color: #000;
    }
}
