/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0e17;
    --bg-sidebar: #0f1524;
    --bg-card: rgba(22, 31, 48, 0.5);
    --bg-card-hover: rgba(30, 41, 59, 0.65);
    --bg-modal: #131b2e;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: #8b5cf6;
    
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.25);
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.25);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #f43f5e;
    --danger-glow: rgba(244, 63, 94, 0.15);
    --info: #3b82f6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: white;
}

.nav-link:hover svg {
    stroke: var(--primary);
}

.nav-item.active .nav-link {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: white;
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.05);
}

.nav-item.active .nav-link svg {
    stroke: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f1524;
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Panel */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* View Header */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.view-title-container h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.view-title-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Utility Elements */
.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: white;
}

.btn-danger {
    background-color: var(--danger-glow);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
    box-shadow: 0 4px 14px var(--danger-glow);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-icon-only {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Cards & Grid Layouts */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.primary {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.metric-icon.accent {
    background-color: var(--accent-glow);
    color: var(--accent);
}

.metric-icon.success {
    background-color: var(--success-glow);
    color: var(--success);
}

.metric-icon.warning {
    background-color: var(--warning-glow);
    color: var(--warning);
}

.metric-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.metric-details {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Dashboard Bottom Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h2 svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input, select, textarea {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 10px var(--primary-glow);
    background-color: rgba(15, 23, 42, 0.8);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* Autocomplete/Dropdown styling */
.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow);
    margin-top: 4px;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

/* Shipment Table & List */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    stroke-width: 2;
    fill: none;
}

.search-wrapper input {
    padding-left: 2.5rem;
    width: 100%;
}

.filters-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Table Style */
.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

tr:last-child td {
    border-bottom: none;
}

.clickable-row {
    cursor: pointer;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background-color: var(--warning-glow);
    color: var(--warning);
}

.badge-intransit {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-delivered, .badge-dlvd {
    background-color: var(--success-glow);
    color: var(--success);
}

.badge-customs {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

.badge-cancelled {
    background-color: var(--danger-glow);
    color: var(--danger);
}

/* Custom visual table styles */
.awb-text {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    display: block;
}

.tracking-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    display: block;
    font-family: monospace;
}

.profit-positive {
    color: var(--success) !important;
    font-weight: 600;
}

.profit-negative {
    color: var(--danger) !important;
    font-weight: 600;
}

/* Shipment Dashboard Details Screen */
.shipment-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .shipment-detail-layout {
        grid-template-columns: 1fr;
    }
}

.shipment-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Visual Progress Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline-step {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--text-muted);
    transition: var(--transition);
}

.timeline-step.completed .timeline-dot {
    background-color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
}

.timeline-step.current .timeline-dot {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-step.completed .timeline-title {
    color: var(--text-main);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Invoice Creation Table / Shipments Checklist */
.invoice-items-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipment-checkbox-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
}

.shipment-checkbox-row:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.03);
}

.shipment-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.shipment-checkbox-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shipment-checkbox-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.shipment-checkbox-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.shipment-checkbox-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

/* Modals & Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.modal {
    background-color: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.large {
    max-width: 850px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Invoice Print View Layout */
.invoice-print-container {
    background-color: white;
    color: #1e293b;
    padding: 3rem;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
}

.invoice-print-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.invoice-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.invoice-number-label {
    text-align: right;
}

.invoice-number-label h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #4f46e5;
    margin-bottom: 0.25rem;
}

.invoice-print-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.invoice-meta-section h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.invoice-meta-section p {
    font-size: 0.95rem;
    font-weight: 500;
}

.invoice-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}

.invoice-print-table th {
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.invoice-print-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.invoice-print-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.invoice-total-row {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    font-size: 0.95rem;
    color: #475569;
}

.invoice-total-row.grand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    border-top: 2px solid #cbd5e1;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* Dashboard Summary List */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.recent-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.recent-details {
    display: flex;
    flex-direction: column;
}

.recent-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.recent-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.recent-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.recent-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-muted);
    stroke-dasharray: 4 4;
    stroke-width: 1.5;
    fill: none;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-state-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
}

/* Print View Specific Styles (Media query) */
@media print {
    @page {
        size: auto;
        margin: 6mm;
    }
    
    body {
        background-color: white !important;
        color: black !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    /* Hide the entire app layout, UI controls, other modals, and headers/footers */
    .app-container,
    #shipment-modal,
    #invoice-modal,
    .modal-header,
    .modal-footer,
    .btn,
    .modal-close {
        display: none !important;
    }

    /* Make only the print overlay occupy full page flow */
    #invoice-print-modal {
        position: static !important;
        display: block !important;
        background: white !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Remove limits and scrollbars on the modal card */
    #invoice-print-modal .modal {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
        max-width: 100% !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        animation: none !important;
    }

    #invoice-print-modal .modal-body {
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        overflow: visible !important;
    }

    .invoice-print-container {
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .invoice-print-container table {
        font-size: 0.64rem !important;
        width: 100% !important;
        table-layout: auto !important;
    }

    .invoice-print-container th {
        font-size: 0.64rem !important;
        padding: 0.35rem 0.15rem !important;
    }

    .invoice-print-container td {
        font-size: 0.64rem !important;
        padding: 0.35rem 0.15rem !important;
    }

    [contenteditable="true"] {
        border-bottom: none !important;
        outline: none !important;
    }
}

/* Lock Screen Overlay */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lock-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.lock-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
