.admin-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card-panel {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 28px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.field span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-main);
}

.toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Document Preview Styles */
.document-preview {
    background: #fff;
    min-height: 400px;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.doc-page {
    max-width: 800px;
    margin: 0 auto;
    color: #000;
    font-family: 'Inter', sans-serif;
}

.doc-header {
    border: 2px solid #000;
    margin-bottom: 20px;
    display: flex;
}

.doc-header-info {
    width: 40%;
    border-right: 2px solid #000;
    padding: 15px;
    font-size: 14px;
}

.doc-header-title {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.doc-header-title h2 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
}

.doc-body {
    margin-bottom: 30px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.doc-table th, .doc-table td {
    border: 1px solid #000;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

.doc-table th {
    background: #f1f5f9;
    font-weight: bold;
}

.doc-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.signature-line {
    border-top: 1px solid #000;
    width: 200px;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.bold { font-weight: bold; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }

/* Category specific styles */
.safety-doc { color: #000; }
.inventory-doc { color: #000; }
.customer-doc { color: #000; }

@media print {
    @page {
        size: auto;
        margin: 15mm;
    }

    .main-header, 
    .no-print,
    .admin-toolbar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .document-preview {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .doc-page {
        max-width: none;
        width: 100%;
    }

    .doc-table th {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .toolbar-actions {
        flex-direction: column;
    }
    
    .toolbar-actions button {
        width: 100%;
    }
}