/* PO Booking System — App Styles */

:root {
    --po-sidebar-width: 240px;
}

body {
    background-color: #f4f6f9;
    font-size: 0.9rem;
}

/* Auth Page */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

/* Navbar refinements */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.card-header {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Tables */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #555;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.72rem;
    padding: 0.3em 0.6em;
}

/* Status colors (override Bootstrap) */
.bg-partially_received { background-color: #0dcaf0 !important; color: #000; }

/* Buttons */
.btn-sm { font-size: 0.8rem; }

/* Forms */
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.25rem;
}

/* Line items table */
#lineItemsTable input,
#lineItemsTable select {
    font-size: 0.82rem;
}

/* Sticky approval panel */
.sticky-top {
    top: 80px;
}

/* PO Detail sidebar */
.col-lg-4 .card {
    font-size: 0.85rem;
}

/* Status timeline */
.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Print styles */
@media print {
    .navbar, .btn, .alert, footer, .modal { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    body { background: white; font-size: 0.85rem; }
}

/* Responsive table font */
@media (max-width: 768px) {
    .table { font-size: 0.78rem; }
    .table th, .table td { padding: 0.3rem 0.4rem; }
}
