/**
 * 120 Enterprises Inventory - Main Styles
 *
 * Color Scheme:
 * - Primary: #4A0000 (Ox Blood)
 * - Background: #ffffff (White)
 *
 * Scoped under body.ote-app so theme CSS cannot override plugin UI.
 * Performance Optimized - Google Fonts loaded via PHP with preconnect
 */
/* Subtle Sparkle Animation */
@keyframes subtle-sparkle {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(74, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(74, 0, 0, 0.5), 0 0 30px rgba(107, 18, 18, 0.2);
    }
}

@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

:root {
    --ote-primary: #4A0000 !important;
    --ote-primary-light: #6B1212 !important;
    --ote-secondary: #4A0000 !important;
    --ote-secondary-light: #6B1212 !important;
    --ote-accent: #4A0000 !important;
    --ote-accent-light: #6B1212 !important;
    --ote-accent-dark: #2E0000 !important;
    --ote-success: #059669 !important;
    --ote-success-light: #10b981 !important;
    --ote-warning: #d97706 !important;
    --ote-danger: #dc2626 !important;
    --ote-danger-light: #ef4444 !important;
    --ote-white: #ffffff !important;
    --ote-light: #f1f5f9 !important;
    --ote-lighter: #f8fafc !important;
    --ote-gray: #64748b !important;
    --ote-gray-light: #94a3b8 !important;
    --ote-dark: #0f172a !important;
    --ote-border: #e2e8f0 !important;
    --ote-border-dark: #cbd5e1 !important;
    --ote-shadow: rgba(74, 0, 0, 0.12) !important;
    --ote-shadow-lg: rgba(74, 0, 0, 0.2) !important;
    --ote-glass-bg: rgba(255, 255, 255, 0.85) !important;
    --ote-glass-border: rgba(107, 18, 18, 0.25) !important;
    --ote-glass-shadow: 0 8px 32px rgba(74, 0, 0, 0.15), 0 0 0 1px rgba(107, 18, 18, 0.08) !important;
    --ote-radius: 16px !important;
    --ote-radius-sm: 8px !important;
    --ote-radius-lg: 24px !important;
    --ote-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    --ote-gradient-primary: linear-gradient(135deg, #4A0000 0%, #6B1212 100%) !important;
    --ote-gradient-accent: linear-gradient(135deg, #4A0000 0%, #2E0000 100%) !important;
    --ote-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(241,245,249,0.9) 100%) !important;
}

/* Reset & Base — scoped to plugin shell so theme CSS cannot bleed in */
body.ote-app *,
body.ote-app *::before,
body.ote-app *::after {
    box-sizing: border-box;
}

/* DESKTOP VIEW ON MOBILE - Forces desktop layout, auto-scales to fit screen */
html:has(body.ote-app) {
    width: 1200px !important;
    min-width: 1200px !important;
    overflow-x: hidden !important;
}

body.ote-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    background: var(--ote-white) !important;
    color: var(--ote-dark) !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    width: 1200px !important;
    min-width: 1200px !important;
    transform-origin: top left;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile Auto-Scale - Desktop view fits to screen width automatically */
@media screen and (max-width: 1200px) {
    html:has(body.ote-app),
    body.ote-app {
        width: 1200px !important;
        min-width: 1200px !important;
    }
    
    body.ote-app {
        transform: scale(calc(100vw / 1200));
        transform-origin: top left;
    }
    
    /* Fallback for older browsers */
    @supports not (transform: scale(1)) {
        html:has(body.ote-app) {
            zoom: 0.333;
        }
    }
}

/* Global Font Awesome Fix - Force icons to display */
.fas, .fa, .far, .fab,
.ote-main .fas, .ote-main .fa,
.ote-header .fas, .ote-footer .fas,
body .fas, body .fa, body .far, body .fab,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
}

/* GLOBAL DARK HEADER STYLES - Ensures all text visible on dark backgrounds */
.ote-page-header,
.ote-form-header,
[class*="header"][style*="background"],
.ote-order-header,
.ote-debtor-header {
    color: white !important;
}

.ote-page-header h1,
.ote-page-header h2,
.ote-page-header h3,
.ote-page-header h4,
.ote-page-header p,
.ote-page-header span,
.ote-page-header a,
.ote-page-header i,
.ote-form-header h1,
.ote-form-header h2,
.ote-form-header h3,
.ote-form-header p,
.ote-form-header span,
.ote-form-header a,
.ote-form-header i {
    color: #ffffff !important;
    font-size: 0.75rem !important;
}

.ote-page-header h1,
.ote-form-header h1 {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Sleek button styles for headers */
.ote-btn-history {
    background: #ffffff !important;
    color: #4A0000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    padding: 0.4rem 0.6rem !important;
}

.ote-btn-history i {
    color: #4A0000 !important;
    font-size: 0.65rem !important;
}

.ote-btn-history:hover {
    background: #f0f4f8 !important;
    transform: translateY(-2px) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
body h1, body h2, body h3, body h4, body h5, body h6,
.ote-main h1, .ote-main h2, .ote-main h3 {
    color: #4A0000 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5em !important;
}

/* Subtle shimmer effect for page titles */
.ote-page-title h1,
.ote-main .ote-page-title h1 {
    background: linear-gradient(
        90deg, 
        #4A0000 0%, 
        #4A0000 40%, 
        #000000 50%, 
        #4A0000 60%, 
        #4A0000 100%
    ) !important;
    background-size: 200% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: text-shimmer 4s linear infinite !important;
}

h1 { font-size: 2rem !important; }
h2 { font-size: 1.75rem !important; }
h3 { font-size: 1.5rem !important; }
h4 { font-size: 1.25rem !important; }
h5 { font-size: 1.1rem !important; }
h6 { font-size: 1rem !important; }

p { margin-bottom: 1rem; }

a {
    color: var(--ote-accent);
    text-decoration: none;
    transition: var(--ote-transition);
}

a:hover {
    color: var(--ote-primary);
}

/* Glassmorphism Card - More visible without hover */
.ote-glass,
body .ote-glass {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(107, 18, 18, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(74, 0, 0, 0.18),
        0 4px 16px rgba(107, 18, 18, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.ote-glass:hover {
    box-shadow: 
        0 16px 48px rgba(74, 0, 0, 0.22),
        0 8px 24px rgba(107, 18, 18, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.35) !important;
}

/* Buttons - With high specificity to override theme styles */
.ote-btn,
body .ote-btn,
.ote-main .ote-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
    position: relative !important;
    overflow: hidden !important;
}

.ote-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.ote-btn-primary,
body .ote-btn-primary,
.ote-main .ote-btn-primary,
.ote-card .ote-btn-primary {
    background: linear-gradient(135deg, #4A0000 0%, #6B1212 50%, #4A0000 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    animation: subtle-sparkle 3s ease infinite !important;
    box-shadow: 0 4px 15px rgba(74, 0, 0, 0.3) !important;
}

.ote-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #6B1212 0%, #000000 50%, #6B1212 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    animation: gentle-pulse 2s ease infinite, subtle-sparkle 2s ease infinite !important;
    transform: translateY(-2px) !important;
}

.ote-btn-secondary,
body .ote-btn-secondary,
.ote-main .ote-btn-secondary {
    background: linear-gradient(135deg, #4A0000 0%, #6B1212 50%, #4A0000 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    animation: subtle-sparkle 4s ease infinite !important;
    box-shadow: 0 4px 15px rgba(74, 0, 0, 0.3) !important;
}

.ote-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #6B1212 0%, #000000 50%, #6B1212 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    animation: gentle-pulse 2s ease infinite !important;
    transform: translateY(-2px) !important;
}

.ote-btn-outline,
body .ote-btn-outline {
    background: transparent !important;
    color: #4A0000 !important;
    border: 2px solid #4A0000 !important;
}

.ote-btn-outline:hover:not(:disabled) {
    background: #4A0000 !important;
    color: #ffffff !important;
}

.ote-btn-success,
body .ote-btn-success {
    background: #059669 !important;
    background-color: #059669 !important;
    color: #ffffff !important;
}

.ote-btn-danger,
body .ote-btn-danger {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.ote-btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
}

.ote-btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
}

/* Forms */
.ote-form-group {
    margin-bottom: 1rem;
}

.ote-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ote-primary);
}

.ote-input,
.ote-select,
.ote-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--ote-border);
    border-radius: var(--ote-radius-sm);
    background: var(--ote-white);
    color: var(--ote-dark);
    transition: var(--ote-transition);
}

.ote-input:focus,
.ote-select:focus,
.ote-textarea:focus {
    outline: none;
    border-color: var(--ote-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.ote-input::placeholder {
    color: var(--ote-gray);
}

.ote-input[readonly] {
    background: var(--ote-light);
    color: var(--ote-gray);
}

.ote-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio */
.ote-checkbox,
.ote-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.ote-checkbox input,
.ote-radio input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--ote-accent);
    cursor: pointer;
}

/* Tables - Full width without horizontal scroll */
.ote-table-wrapper {
    overflow-x: visible !important;
    margin-bottom: 1.5rem;
}

.ote-table,
body .ote-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    table-layout: auto !important;
}

.ote-table th,
.ote-table td {
    padding: 0.5rem 0.4rem !important;
    text-align: left !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.8rem !important;
    word-wrap: break-word !important;
}

.ote-table th {
    background: #2E0000 !important;
    background-color: #2E0000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    white-space: normal !important;
    font-size: 0.75rem !important;
    padding: 0.6rem 0.4rem !important;
}

.ote-table tbody tr:hover {
    background: #f1f5f9 !important;
}

.ote-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Table inputs - compact for fitting in cells */
.ote-table .ote-input,
.ote-table input[type="number"],
.ote-table input[type="text"] {
    width: 100% !important;
    min-width: 50px !important;
    max-width: 100% !important;
    padding: 0.3rem 0.4rem !important;
    font-size: 0.75rem !important;
    text-align: right !important;
}

/* Responsive Table - Cards on Mobile */
@media (max-width: 768px) {
    .ote-table-wrapper {
        overflow-x: visible !important;
    }
    
    .ote-table,
    .ote-table-responsive {
        display: block !important;
        width: 100% !important;
    }
    
    .ote-table-responsive thead,
    .ote-table thead {
        display: none !important;
    }
    
    .ote-table-responsive tbody,
    .ote-table tbody {
        display: block !important;
    }
    
    .ote-table-responsive tbody tr,
    .ote-table tbody tr {
        display: block !important;
        margin-bottom: 1rem !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 16px rgba(74, 0, 0, 0.12) !important;
        border: 2px solid rgba(107, 18, 18, 0.15) !important;
    }
    
    .ote-table-responsive tbody td,
    .ote-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        text-align: right !important;
        font-size: 0.85rem !important;
    }
    
    .ote-table-responsive tbody td:last-child,
    .ote-table tbody td:last-child {
        border-bottom: none !important;
    }
    
    .ote-table-responsive tbody td::before,
    .ote-table tbody td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: #2E0000 !important;
        text-align: left !important;
        flex: 1 !important;
    }
    
    .ote-table tbody td input,
    .ote-table-responsive tbody td input {
        max-width: 100px !important;
        text-align: right !important;
    }
}

/* Header */
.ote-header {
    background: var(--ote-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ote-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
}

.ote-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
}

.ote-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ote-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ote-primary);
}

.ote-logo img {
    width: 40px;
    height: 40px;
}

/* Hamburger menu - HIDDEN */
.ote-hamburger {
    display: none !important;
    visibility: hidden !important;
}

.ote-nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.ote-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--ote-dark);
    font-weight: 500;
    border-radius: var(--ote-radius-sm);
    transition: var(--ote-transition);
}

.ote-nav a:hover {
    background: var(--ote-light);
    color: var(--ote-accent);
}

.ote-nav i {
    font-size: 1rem;
}

.ote-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ote-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ote-user-name {
    font-weight: 600;
    color: var(--ote-primary);
}

.ote-user-role {
    font-size: 0.75rem;
    color: var(--ote-gray);
}

.ote-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ote-date {
    font-size: 0.875rem;
    color: var(--ote-dark);
}

.ote-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ote-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Footer */
.ote-footer {
    background: var(--ote-primary);
    color: var(--ote-white);
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.ote-footer p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.ote-footer a {
    color: var(--ote-white);
    text-decoration: underline;
}

/* Mobile Navigation - REMOVED ENTIRELY */
.ote-mobile-nav {
    display: none !important;
}

/* Scroll to Top */
.ote-scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--ote-accent);
    color: var(--ote-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--ote-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ote-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.ote-scroll-top:hover {
    background: var(--ote-primary);
    transform: scale(1.1);
}

.ote-scroll-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ote-scroll-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 4;
}

.ote-scroll-indicator {
    fill: none;
    stroke: var(--ote-white);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
}

/* Main Content */
.ote-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.ote-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Page Title */
.ote-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ote-page-title h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.ote-page-title h1 i {
    color: var(--ote-accent);
}

/* Dashboard Cards Grid */
.ote-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.ote-card,
body .ote-card,
.ote-main .ote-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(107, 18, 18, 0.2) !important;
    box-shadow: 
        0 8px 32px rgba(74, 0, 0, 0.15),
        0 4px 16px rgba(107, 18, 18, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: #0f172a !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.ote-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 16px 48px rgba(74, 0, 0, 0.2),
        0 8px 24px rgba(107, 18, 18, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.35) !important;
}

.ote-card-icon,
body .ote-card-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Font Awesome icon fix with high specificity */
.ote-card-icon i,
.ote-card-icon .fas,
.ote-card-icon .fa,
.ote-card-icon .far,
.ote-card-icon .fab,
body .ote-card-icon i,
.ote-main .ote-card-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.ote-card-title,
body .ote-card-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #2E0000 !important;
    margin: 0 !important;
}

.ote-card-description,
body .ote-card-description {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.ote-card-btn {
    margin-top: auto !important;
}

/* Login Page */
.ote-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--ote-primary) 0%, var(--ote-secondary) 100%);
}

.ote-login-box {
    background: var(--ote-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--ote-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ote-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.ote-login-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.ote-login-logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.ote-login-form .ote-form-group {
    margin-bottom: 1.5rem;
}

.ote-login-form .ote-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

/* Password Toggle */
.ote-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ote-password-wrapper .ote-input {
    padding-right: 3rem;
    width: 100%;
}

.ote-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.ote-password-toggle:hover {
    color: #2E0000;
}

.ote-password-toggle i {
    font-size: 1rem;
}

/* Order Table */
.ote-order-table .ote-input {
    min-width: 80px;
    text-align: right;
}

.ote-order-total {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--ote-light);
    border-radius: var(--ote-radius-sm);
    margin-top: 1rem;
}

.ote-order-total-item {
    display: flex;
    flex-direction: column;
}

.ote-order-total-label {
    font-size: 0.75rem;
    color: var(--ote-gray);
    text-transform: uppercase;
}

.ote-order-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ote-primary);
}

/* Payment Section */
.ote-payment-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--ote-light);
    border-radius: var(--ote-radius);
}

.ote-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ote-payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--ote-white);
    border: 2px solid var(--ote-border);
    border-radius: var(--ote-radius-sm);
    cursor: pointer;
    transition: var(--ote-transition);
}

.ote-payment-method:hover {
    border-color: var(--ote-accent);
}

.ote-payment-method.active {
    border-color: var(--ote-accent);
    background: rgba(49, 130, 206, 0.1);
}

.ote-payment-method input {
    display: none;
}

.ote-bank-options {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--ote-white);
    border-radius: var(--ote-radius-sm);
}

.ote-bank-options.visible {
    display: block;
}

.ote-bank-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.ote-split-payment {
    display: none;
    margin-top: 1rem;
    gap: 1rem;
}

.ote-split-payment.visible {
    display: flex;
    flex-wrap: wrap;
}

/* Confirmation Modal */
.ote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--ote-transition);
}

.ote-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.ote-modal {
    background: var(--ote-white);
    border-radius: var(--ote-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--ote-transition);
}

.ote-modal-overlay.visible .ote-modal {
    transform: scale(1);
}

.ote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--ote-border);
}

.ote-modal-header h3 {
    margin: 0;
}

.ote-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ote-gray);
}

.ote-modal-body {
    padding: 1.5rem;
}

.ote-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--ote-border);
}

/* Debtor Cards */
.ote-debtor-card {
    cursor: pointer;
}

.ote-debtor-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ote-danger);
}

.ote-debtor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ote-primary);
}

/* Calendar */
.ote-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ote-calendar-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--ote-primary);
    background: var(--ote-light);
}

.ote-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--ote-white);
    border: 1px solid var(--ote-border);
    border-radius: var(--ote-radius-sm);
    cursor: pointer;
    transition: var(--ote-transition);
}

.ote-calendar-day:hover:not(.disabled) {
    border-color: var(--ote-accent);
}

.ote-calendar-day.today {
    border-color: var(--ote-accent);
    background: rgba(49, 130, 206, 0.1);
}

.ote-calendar-day.reconciled {
    background: var(--ote-success);
    color: var(--ote-white);
}

.ote-calendar-day.partial {
    background: var(--ote-warning);
    color: var(--ote-white);
}

.ote-calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Section */
.ote-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--ote-light);
    border-radius: var(--ote-radius-sm);
}

.ote-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ote-filter-group label {
    font-weight: 600;
    white-space: nowrap;
}

.ote-filter-group .ote-input,
.ote-filter-group .ote-select {
    width: auto;
    min-width: 150px;
}

/* Toast Notifications */
.ote-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ote-toast {
    padding: 1rem 1.5rem;
    border-radius: var(--ote-radius-sm);
    color: var(--ote-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ote-toast-success { background: var(--ote-success); }
.ote-toast-error { background: var(--ote-danger); }
.ote-toast-warning { background: var(--ote-warning); }
.ote-toast-info { background: var(--ote-accent); }

/* Loading */
.ote-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ote-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ote-border);
    border-top-color: var(--ote-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Offline Banner */
.ote-offline-banner {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--ote-warning);
    color: var(--ote-white);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    z-index: 999;
    display: none;
}

.ote-offline-banner.visible {
    display: block;
}

/* Admin Panel Section */
.ote-admin-section {
    background: var(--ote-glass-bg);
    border-radius: var(--ote-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ote-admin-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ote-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .ote-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ote-white);
        box-shadow: 0 4px 20px var(--ote-shadow);
        padding: 1rem;
    }
    
    .ote-nav.open {
        display: block;
    }
    
    .ote-nav ul {
        flex-direction: column;
    }
    
    .ote-nav a {
        padding: 0.75rem 1rem;
    }
    
    .ote-hamburger {
        display: none !important;
        visibility: hidden !important;
    }
    
    .ote-header-right {
        gap: 1rem;
    }
    
    .ote-user-info {
        display: none;
    }
}

/* Mobile styles - NO bottom nav padding */
@media (max-width: 768px) {
    .ote-main {
        padding-bottom: 20px;
    }
    
    .ote-scroll-top {
        bottom: 40px;
    }
    
    .ote-datetime {
        display: none;
    }
    
    .ote-logo span {
        display: none;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .ote-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ote-page-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile nav REMOVED - no padding needed */
.ote-main {
    padding-bottom: 20px !important;
}

/* ============================================
   GLOBAL FONT SIZE BOOST - Bigger fonts across site
   ============================================ */
body, html {
    font-size: 18px !important;
}

/* Increase all text elements */
.ote-main, .ote-main * {
    font-size: inherit;
}

/* Tables - Bigger text */
table, .ote-table {
    font-size: 1.1rem !important;
}

table th, table td,
.ote-table th, .ote-table td {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
}

/* Form inputs - Bigger */
input, select, textarea,
.ote-input, .ote-select, .ote-textarea {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
}

/* Labels bigger */
label, .ote-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Buttons bigger */
button, .ote-btn {
    font-size: 1.1rem !important;
    padding: 0.75rem 1.25rem !important;
}

/* Cards and content */
.ote-card, .ote-glass {
    font-size: 1.1rem !important;
}

/* Debtor cards */
.ote-debtor-card .card-name {
    font-size: 1.3rem !important;
}

.ote-debtor-card .card-balance {
    font-size: 1.5rem !important;
}

.ote-debtor-card .card-phone {
    font-size: 1.1rem !important;
}

/* Order/History amounts */
.amount, .price, .total,
[class*="amount"], [class*="price"], [class*="total"] {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Price displays */
.ote-price, .ote-amount, .ote-total,
.receipt-amount, .row-total, .grand-total {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

/* Make headings even bigger */
h1 { font-size: 2.5rem !important; }
h2 { font-size: 2rem !important; }
h3 { font-size: 1.75rem !important; }
h4 { font-size: 1.5rem !important; }
h5 { font-size: 1.25rem !important; }
h6 { font-size: 1.1rem !important; }

/* Page titles */
.ote-page-title h1 {
    font-size: 2.2rem !important;
}

/* Navigation */
.ote-nav a {
    font-size: 1rem !important;
}

/* ============================================
   Floating Header, Right Drawer, Bottom Menu
   ============================================ */
.ote-header,
body .ote-header {
    width: min(calc(100% - 32px), 1440px) !important;
    margin: 16px auto 0 !important;
    padding: 0.65rem 0.8rem !important;
    position: sticky !important;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px) !important;
    z-index: 9998 !important;
    border: 1px solid rgba(74, 0, 0, 0.12) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    box-shadow: 0 18px 45px rgba(74, 0, 0, 0.16), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.ote-header-inner {
    max-width: none !important;
    min-height: 64px !important;
    gap: 1rem !important;
}

.ote-header-left,
.ote-header-right {
    min-width: 0 !important;
}

.ote-logo {
    min-width: 0 !important;
    gap: 0.7rem !important;
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    color: var(--ote-primary) !important;
}

.ote-logo img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
}

.ote-logo span {
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ote-nav {
    display: none !important;
}

.ote-header-right {
    gap: 0.8rem !important;
    flex: 0 1 auto !important;
}

.ote-user-info {
    display: flex !important;
    align-items: flex-end !important;
    min-width: 120px !important;
    max-width: 280px !important;
}

.ote-user-name {
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.86rem !important;
    line-height: 1.15 !important;
}

.ote-user-role {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
}

.ote-datetime {
    display: flex !important;
    min-width: 118px !important;
    line-height: 1.1 !important;
}

.ote-date {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
}

.ote-time {
    font-size: 1rem !important;
    letter-spacing: 0 !important;
}

.ote-header #ote-logout-btn {
    min-height: 42px !important;
    padding: 0.5rem 0.8rem !important;
    border: 2px solid var(--ote-primary) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--ote-primary) !important;
    box-shadow: none !important;
}

.ote-header #ote-logout-btn:hover {
    background: var(--ote-danger) !important;
    border-color: var(--ote-danger) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.ote-header #ote-logout-btn:hover i,
.ote-header #ote-logout-btn:hover span {
    color: #ffffff !important;
}

.ote-menu-trigger {
    width: 46px !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--ote-primary) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(74, 0, 0, 0.22) !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.ote-menu-trigger span {
    width: 19px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    display: block !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.ote-menu-trigger:hover {
    background: var(--ote-danger) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.ote-menu-trigger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
}

.ote-menu-trigger.active span:nth-child(2) {
    opacity: 0 !important;
}

.ote-menu-trigger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
}

.ote-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.46) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 9998 !important;
    transition: opacity 0.24s ease, visibility 0.24s ease !important;
}

.ote-drawer-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(386px, calc(100vw - 24px)) !important;
    height: 100vh !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(74, 0, 0, 0.12) !important;
    box-shadow: -24px 0 60px rgba(74, 0, 0, 0.22) !important;
    transform: translateX(110%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    padding: 1.1rem !important;
    overflow-y: auto !important;
}

body.ote-drawer-open .ote-drawer-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.ote-drawer-open .ote-drawer-menu {
    transform: translateX(0) !important;
}

.ote-drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 0.25rem 0.25rem 1rem !important;
    border-bottom: 1px solid rgba(74, 0, 0, 0.12) !important;
    margin-bottom: 0.75rem !important;
}

.ote-drawer-kicker {
    color: var(--ote-danger) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.ote-drawer-head h2 {
    margin: 0 !important;
    color: var(--ote-primary) !important;
    font-size: 1.35rem !important;
}

.ote-drawer-close {
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    color: var(--ote-primary) !important;
    cursor: pointer !important;
}

.ote-drawer-close:hover {
    background: var(--ote-danger) !important;
    color: #ffffff !important;
}

.ote-drawer-close iconify-icon {
    font-size: 1.45rem !important;
}

.ote-drawer-nav {
    display: grid !important;
    gap: 0.45rem !important;
}

.ote-drawer-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
    color: var(--ote-primary) !important;
    background: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 750 !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

.ote-drawer-nav a:hover {
    background: var(--ote-danger) !important;
    color: #ffffff !important;
    transform: translateX(-4px) !important;
}

.ote-drawer-nav iconify-icon {
    font-size: 1.3rem !important;
    flex: 0 0 auto !important;
}

.ote-bottom-nav {
    position: fixed !important;
    left: 50% !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 32px), 1120px) !important;
    min-height: 76px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    padding: 0.55rem !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border: 1px solid rgba(74, 0, 0, 0.12) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    box-shadow: 0 18px 48px rgba(74, 0, 0, 0.18) !important;
    z-index: 9997 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(74, 0, 0, 0.25) transparent !important;
}

.ote-bottom-nav::-webkit-scrollbar {
    height: 5px !important;
}

.ote-bottom-nav::-webkit-scrollbar-track {
    background: transparent !important;
}

.ote-bottom-nav::-webkit-scrollbar-thumb {
    background: rgba(74, 0, 0, 0.22) !important;
    border-radius: 999px !important;
}

.ote-bottom-nav-item {
    flex: 0 0 92px !important;
    min-width: 92px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    color: var(--ote-primary) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.ote-bottom-nav-item iconify-icon {
    font-size: 1.35rem !important;
    color: currentColor !important;
    transition: transform 0.2s ease !important;
}

.ote-bottom-nav-item span {
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: currentColor !important;
    font-size: 0.58rem !important;
    letter-spacing: 0 !important;
}

.ote-bottom-nav-item:hover,
.ote-bottom-nav-item.active {
    background: var(--ote-danger) !important;
    color: #ffffff !important;
    transform: translateY(-9px) scale(1.07) !important;
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.26) !important;
}

.ote-bottom-nav-item:hover iconify-icon,
.ote-bottom-nav-item.active iconify-icon {
    transform: scale(1.12) !important;
}

.ote-main,
body .ote-main {
    padding-bottom: 128px !important;
}

body.logged-in {
    padding-bottom: 118px !important;
}

.ote-scroll-top {
    bottom: 112px !important;
}

.ote-icon-credit {
    font-size: 0.68rem !important;
    opacity: 0.78 !important;
}

@media (max-width: 768px) {
    .ote-header {
        margin-top: 10px !important;
        padding: 0.5rem !important;
    }

    .ote-header-inner {
        min-height: 58px !important;
        gap: 0.6rem !important;
    }

    .ote-logo span {
        display: inline-block !important;
        max-width: 210px !important;
        font-size: 0.9rem !important;
    }

    .ote-datetime {
        display: flex !important;
    }

    .ote-user-info {
        display: flex !important;
        max-width: 160px !important;
    }

    .ote-header #ote-logout-btn {
        min-width: 44px !important;
        padding: 0.5rem !important;
    }

    .ote-header #ote-logout-btn span {
        display: none !important;
    }
}

/* Summary cards numbers */
.ote-summary-card .number,
.ote-stat-number, .stat-number {
    font-size: 2rem !important;
}

/* Admin panel */
.ote-admin-number {
    font-size: 2.5rem !important;
}

/* Print Styles */
@media print {
    .ote-header,
    .ote-footer,
    .ote-mobile-nav,
    .ote-bottom-nav,
    .ote-drawer-backdrop,
    .ote-drawer-menu,
    .ote-scroll-top,
    .ote-btn {
        display: none !important;
    }
    
    .ote-main {
        padding: 0;
    }

    body {
        padding-bottom: 0 !important;
    }
    
    .ote-glass {
        box-shadow: none;
        border: 1px solid #000;
    }
}
