/* Shared site styles for ASC pages */
:root{ --accent-color: #ff6a00; --accent-2: #ff8a25; --accent-blue: #007bff; --muted:#6c757d; --primary-orange: #AA5200; --hover-orange: #EAA51C; }

/* Global font family */
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page basics */
body { 
    background: #f5f5f5; 
    color: #222; 
}

/* Navbar tweaks */
.navbar { 
    background: #ffffff !important; 
    border-bottom: 1px solid #e6e9ee; 
    box-shadow: 0 2px 6px rgba(24,39,77,0.03); 
}

.navbar .navbar-brand img, .navbar-brand img { 
    height: 40px; 
}

/* Section title */
.section-title { 
    background: var(--primary-orange); 
    color: #fff; 
    padding: 10px 16px; 
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

/* Cards & forms */
.card { 
    border-radius: 0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    border: none;
    overflow: hidden; 
    transition: transform .18s ease, box-shadow .18s ease; 
}

.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(24,39,77,0.09); }
.form-section { background: #ffffff; border-radius: 0 0 8px 8px; padding: 18px; }

/* Inputs and selects */
.form-control, .custom-select { 
    border-radius: 0; 
    border: 1px solid #ccc; 
    box-shadow: none; 
    transition: box-shadow .12s ease, border-color .12s ease; 
}

.form-control:focus, .custom-select:focus { 
    border-color: var(--primary-orange); 
    box-shadow: 0 0 0 0.12rem rgba(170,82,0,0.12); 
}

/* Checkboxes and spacing */
.custom-checkbox label { margin-right: 14px; }
.form-check { margin-bottom: 8px; }

/* Table styles */
.table thead th { 
    background: #6c757d; 
    color: #fff; 
    font-weight: 600;
    font-size: 12px;
    padding: 10px 8px;
    border: 1px solid #999;
    text-align: center;
}

.table td {
    vertical-align: middle;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table tbody tr:nth-of-type(even) {
    background-color: #fff;
}

/* Page header styles */
.page-header {
    background: #f8f9fa;
    padding: 12px 20px;
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.back-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
}

.back-icon:hover {
    color: var(--primary-orange);
}

.page-title {
    color: #666;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    display: inline-block;
}

.info-badge {
    background: var(--primary-orange);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.home-icon {
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    cursor: pointer;
}

.home-icon:hover {
    color: var(--primary-orange);
}

/* Icon styles */
.check-icon {
    color: #28a745;
    font-size: 18px;
}

.arrow-icon {
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.arrow-icon:hover {
    color: var(--primary-orange);
}

.action-icons i {
    cursor: pointer;
    margin: 0 3px;
    color: var(--primary-orange);
}

.action-icons i:hover {
    color: var(--hover-orange);
}

/* Logo styles */
.logo-container {
    padding: 20px;
    background: #fff;
    border-bottom: 2px solid var(--primary-orange);
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #E91E63;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

/* Info box */
.info-box {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--primary-orange);
    margin-bottom: 20px;
}

.info-box .row {
    margin-bottom: 8px;
}

.info-box .col-md-6 {
    padding: 5px 15px;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.info-value {
    color: #666;
    font-size: 13px;
}

/* Warranty badge */
.warranty-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 12px;
}

.warranty-yes {
    background: #d4edda;
    color: #155724;
}

.warranty-no {
    background: #f8d7da;
    color: #721c24;
}

/* Sidebar styles */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-title {
    background: var(--primary-orange);
    color: #fff;
    padding: 10px 15px;
    margin: -20px -20px 15px -20px;
    font-weight: 600;
    font-size: 14px;
}

.filter-option {
    margin-bottom: 10px;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 8px;
}

.filter-option label {
    font-size: 13px;
    margin-bottom: 0;
    cursor: pointer;
}

/* PO Info Bar */
.po-info-bar {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.po-info-text {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.po-info-text strong {
    color: #333;
}

/* Quantity input */
.qty-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    text-align: center;
    font-size: 12px;
}

.qty-input:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.description-cell {
    text-align: left !important;
    font-size: 11px;
}

.no-data { text-align: center; color: #888; padding: 40px 0; }

/* Buttons */
.btn-orange { 
    background: var(--primary-orange); 
    color: #fff; 
    border: none;
    font-weight: 500;
    font-size: 12px;
}

.btn-orange:hover { 
    background: var(--hover-orange);
    color: #000;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-pink {
    background: #E91E63;
    color: #fff;
    border: none;
    font-weight: 500;
    font-size: 12px;
}

.btn-pink:hover {
    background: #C2185B;
    color: #fff;
}

.btn-accent { 
    background: linear-gradient(154deg, #EAA51C 0%, #AA5200 100%);
    color: #fff; 
    border: none; 
}
.btn-outline-primary { border-radius: 6px; }

/* Outline secondary visible on white backgrounds */
.btn-outline-secondary { color: var(--muted); background-color: #fff; border-color: #dce3ef; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background-color: #f3f6f9; color: #222; border-color: #cfd8e3; text-decoration: none; }

.barcode { font-family: 'Libre Barcode 39', monospace; font-size: 1.4rem; color: #222; }

/* Compact mode */
body.compact-mode .invoice-box { padding: 16px 18px; max-width: 920px; }
body.compact-mode .form-section { padding: 8px; }
body.compact-mode .section-title { padding: 8px 10px; font-size: .95rem; }
body.compact-mode .form-control, body.compact-mode .custom-select { padding: .35rem .5rem; font-size: .9rem; }
body.compact-mode .card { border-radius: 6px; }

.help-icon { color: var(--muted); cursor: pointer; }

/* Brand status badge next to input */
#brandStatus { min-width: 28px; text-align: center; }
#brandStatus i { font-size: 1.05rem; }
#brandStatus a { text-decoration: none; }
#brandStatus .text-warning { color: var(--accent-color); }
#brandStatus .text-success { color: #ff6a00; }

/* Small pulse animation for brand confirmation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.pulse { display: inline-block; animation: pulse .6s ease; }

/* Jobsheet / Invoice specific styles */
.invoice-box { background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(24,39,77,0.06); padding: 30px 28px; max-width: 920px; margin: auto; border: 1px solid #eef2f7; }
.lava-logo { height: 80px; }
.terms { font-size: 0.95rem; margin-top: 20px; }
.terms ol { padding-left: 1.1rem; }

@media print {
    body { background: #fff; }
    .btn-accent, .d-print-none { display: none !important; }
}

/* small tweaks for responsiveness */
@media (max-width: 576px){
    .section-title { font-size: .95rem; padding: 8px; }
}
