* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improve scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: #3b82f6;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 10;
}

/* Lower navbar z-index when modal is open */
body.modal-open .navbar {
    z-index: 1 !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.nav-container h2 {
    font-size: 1.5rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Page */
.login-card {
    max-width: 420px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.login-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-tab:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.login-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: transparent;
}

/* Login Forms */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.logo {
    display: block;
    max-width: 480px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    object-fit: contain;
}

.login-card h1 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-card h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 32px;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    min-height: 48px;
    transition: all 0.3s ease;
    color: #1f2937;
    background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bdc3c7;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 80px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

.password-toggle:focus {
    outline: none;
    background-color: #f0f0f0;
}

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: inherit;
}

.password-toggle .eye-icon path {
    fill: currentColor;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    cursor: not-allowed;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.form-group input[readonly]:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Order Form Section */
.order-form-section {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 30px 40px;
    color: white;
    border-bottom: none;
}

.form-header h2 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.form-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 40px 40px 40px;
}

/* Form Cards */
.form-card {
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-card-header {
    background: white;
    padding: 18px 24px;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.items-count {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-card-body {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Required field indicator */
.required {
    color: #e74c3c;
    font-weight: 600;
    margin-left: 2px;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.country-code-select {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    padding: 12px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    flex-shrink: 0;
}

.country-code-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.phone-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Add Item Section */
.add-item-section {
    margin-bottom: 24px;
}

.add-item-form {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: 16px;
    align-items: end;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
}

.add-item-form .form-group {
    margin: 0;
}

.quantity-input {
    text-align: center;
    font-weight: 500;
}

.add-item-btn-group {
    display: flex;
    align-items: flex-end;
}

.btn-add-item {
    min-width: 140px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.btn-add-item span {
    margin-right: 6px;
    font-size: 1.2rem;
}

.btn-add-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

/* Items List Container */
.items-list-container {
    margin-top: 20px;
}

.no-items-message {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

.no-items-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-items-message p {
    margin: 0 0 6px 0;
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
}

.no-items-message small {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Items Table */
.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.items-table thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.items-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.items-table th.text-center {
    text-align: center;
}

.items-table th.text-right {
    text-align: right;
}

.items-table tbody tr {
    border-bottom: 1px solid #f0f4f8;
    transition: background-color 0.2s ease;
}

.items-table tbody tr:hover {
    background-color: #f8f9fa;
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table td {
    padding: 14px 16px;
    color: #2c3e50;
    font-size: 0.9rem;
    border: none;
}

.items-table td:first-child {
    color: #7f8c8d;
    font-weight: 500;
    text-align: center;
    width: 40px;
}

.items-table .text-center {
    text-align: center;
}

.items-table .text-right {
    text-align: right;
}

.items-table tfoot {
    background: #f8f9fa;
    border-top: 2px solid #e8ecf0;
}

.total-row {
    font-weight: 600;
}

.total-label {
    text-align: right !important;
    color: #2c3e50;
    font-size: 1rem;
    padding-right: 20px !important;
}

.total-amount {
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: 700;
    padding-right: 20px !important;
}

/* Remove button in table */
.items-table .btn-secondary {
    padding: 6px 14px;
    font-size: 0.8rem;
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
    min-height: auto;
}

.items-table .btn-secondary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 2px solid #f0f4f8;
    justify-content: flex-end;
}

.btn-submit {
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.btn-submit span {
    margin-right: 6px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
}

.btn-reset {
    min-width: 140px;
    font-weight: 500;
}

.btn-reset span {
    margin-right: 6px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }
    
    .order-form-section {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .form-header {
        padding: 20px 16px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
    }
    
    .order-form {
        padding: 20px 16px 24px 16px;
        gap: 20px;
    }
    
    .form-card {
        border-radius: 10px;
    }
    
    .form-card-header {
        padding: 16px;
    }
    
    .form-card-header h3 {
        font-size: 1rem;
    }
    
    .form-card-body {
        padding: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 52px; /* Touch-friendly size */
    }
    
    /* Phone Input Group - Mobile */
    .phone-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .country-code-select {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .phone-input {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        min-height: 52px;
    }
    
    /* Add Item Form - Mobile */
    .add-item-form {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .add-item-btn-group {
        align-items: stretch;
        margin-top: 4px;
    }
    
    .btn-add-item {
        width: 100%;
        padding: 16px 20px;
        min-height: 52px;
        font-size: 16px;
    }
    
    /* Items Table - Mobile: Convert to Cards */
    .items-table {
        display: table;
    }
    
    /* Override: Keep Items Summary table horizontal and scrollable */
    .items-summary-section .items-table {
        display: table !important;
    }
    
    .items-summary-section .items-table thead {
        display: table-header-group !important;
    }
    
    .items-summary-section .items-table tbody tr {
        display: table-row !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        position: static !important;
    }
    
    .items-summary-section .items-table tbody tr:before {
        display: none !important;
    }
    
    .items-summary-section .items-table tbody td {
        display: table-cell !important;
        padding: 8px 6px !important;
        border: 1px solid #e5e7eb !important;
        text-align: inherit !important;
        min-height: auto !important;
    }
    
    .items-summary-section .items-table tbody td:first-child {
        display: table-cell !important;
    }
    
    .items-summary-section .items-table tbody td:before {
        display: none !important;
    }
    
    .items-summary-section .items-table tbody td:last-child {
        padding-top: 8px !important;
        border-top: 1px solid #e5e7eb !important;
        margin-top: 0 !important;
        padding-bottom: 8px !important;
    }
    
    .items-table thead {
        display: none;
    }
    
    .items-table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: white;
        border: 1px solid #e8ecf0;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        position: relative;
    }
    
    .items-table tbody tr:before {
        content: 'Item ' attr(data-item-number);
        display: block;
        font-weight: 600;
        color: #2563eb;
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f0f4f8;
    }
    
    .items-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        text-align: left !important;
        min-height: 40px;
    }
    
    .items-table tbody td:first-child {
        display: none;
    }
    
    .items-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 0.85rem;
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    .items-table tbody td:last-child {
        justify-content: center;
        padding-top: 12px;
        border-top: 2px solid #f0f4f8;
        margin-top: 8px;
        padding-bottom: 0;
    }
    
    .items-table tbody td:last-child:before {
        display: none;
    }
    
    .btn-remove-item {
        width: 100%;
        padding: 12px;
        min-height: 44px;
    }
    
    .items-table tfoot {
        display: block;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 2px solid #2563eb;
        border-radius: 12px;
        padding: 20px 16px;
        margin-top: 20px;
    }
    
    .items-table tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .items-table tfoot td {
        display: block;
        padding: 0;
        border: none;
        width: 100%;
        text-align: center !important;
    }
    
    .total-label {
        font-size: 1.1rem;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .total-amount {
        font-size: 1.5rem;
        margin-top: 4px;
        color: #2563eb;
    }
    
    /* No Items Message - Mobile */
    .no-items-message {
        padding: 40px 20px;
    }
    
    .no-items-icon {
        font-size: 2.5rem;
    }
    
    /* Form Actions - Mobile */
    .form-actions {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
        padding: 16px 24px;
        min-height: 52px;
        font-size: 16px;
    }
    
    /* Buttons - Touch Friendly */
    .btn {
        min-height: 52px;
        padding: 16px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(30, 136, 229, 0.2);
    }
    
    /* Order Cards - Mobile */
    .order-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .order-detail-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .order-detail-label {
        font-size: 0.8rem;
        color: #7f8c8d;
    }
    
    .order-detail-value {
        font-size: 0.95rem;
        word-break: break-word;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    
    .order-actions select,
    .order-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Order Items Table in Cards - Mobile */
    .order-items-table {
        width: 100%;
        margin-top: 12px;
    }
    
    .order-items-table thead {
        display: none;
    }
    
    .order-items-table tbody tr.order-items-table-row {
        display: block;
        margin-bottom: 12px;
        background: #f8f9fa;
        border: 1px solid #e8ecf0;
        border-radius: 8px;
        padding: 12px;
    }
    
    .order-items-table tbody tr.order-items-table-row:before {
        content: 'Item ' attr(data-item-number);
        display: block;
        font-weight: 600;
        color: #2563eb;
        font-size: 0.85rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .order-items-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        text-align: left !important;
    }
    
    .order-items-table tbody td:first-child {
        display: none;
    }
    
    .order-items-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 0.8rem;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    /* Search Container - Mobile */
    .search-container {
        width: 100%;
        max-width: 100%;
    }
    
    /* Scrollable Tables on Mobile */
    .items-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    /* Touch-friendly spacing */
    .form-card {
        margin-bottom: 20px;
    }
    
    /* Better spacing for stacked elements */
    .form-row {
        gap: 16px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .form-header {
        padding: 16px 12px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .order-form {
        padding: 16px 12px 20px 12px;
        gap: 16px;
    }
    
    .form-card-body {
        padding: 12px;
    }
    
    .form-card-header {
        padding: 12px;
    }
    
    .add-item-form {
        padding: 12px;
    }
    
    .items-count {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

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

/* Center login button */
#loginForm .btn-primary {
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

/* Error Message */
.error-message {
    color: #e74c3c;
    margin-top: 8px;
    text-align: left;
    display: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    background-color: #fee;
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
}

.error-message.show {
    display: block;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px 28px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
}

.dashboard-header h1 {
    color: #1e40af;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Orders Section */
.orders-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 20px;
}

.orders-section h2 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 16px 12px;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #0f172a;
    font-weight: 500;
    letter-spacing: -0.01em;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-container:focus-within {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    color: #3b82f6;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #3b82f6;
    font-size: 1.1rem;
}

.orders-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.order-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-received { background-color: #2563eb; color: white; }
.status-washing { background-color: #3b82f6; color: white; }
.status-ironing { background-color: #60a5fa; color: white; }
.status-ready { background-color: #10b981; color: white; }
.status-delivered { background-color: #059669; color: white; }

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    align-items: start;
}

.order-detail-item {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.order-detail-label {
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 4px;
    display: inline-block;
    min-width: 120px;
}

.order-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.order-actions select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.order-actions select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Price input field in order cards */
.order-detail-item input[type="number"] {
    border: 2px solid #1e88e5;
    transition: all 0.3s ease;
}

.order-detail-item input[type="number"]:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.order-detail-item input[type="number"]:hover {
    border-color: #1e40af;
}

/* Reports Section Styles */
.reports-filters {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reports-filters .form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.reports-filters input[type="date"],
.reports-filters input[type="text"],
.reports-filters select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.reports-filters input[type="date"]:focus,
.reports-filters input[type="text"]:focus,
.reports-filters select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

#reportTable {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#reportTable tbody tr:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
}

#reportTable tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#reportTable tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Responsive Reports Table */
@media (max-width: 768px) {
    #reportTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #reportTable {
        min-width: 800px;
    }
    
    .reports-filters {
        padding: 15px;
    }
    
    .reports-filters > div {
        grid-template-columns: 1fr !important;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    top: 0;
}

/* Ensure modals appear below navbar - add padding to modal container */
#newOrderModal.modal {
    padding-top: 80px;
    box-sizing: border-box;
}

#newOrderModal .modal-content {
    margin-top: 0 !important;
}

.modal-content h2 {
    color: #1e40af;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 30px 0;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Services Section */
.services-section {
    position: relative;
    z-index: 1;
}

/* Services List */
.services-list,
.users-list {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.service-item,
.user-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.08);
    border: 1px solid #e8f4f8;
    transition: all 0.2s ease;
}

.service-item:hover,
.user-item:hover {
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.12);
    transform: translateY(-1px);
}

.service-info,
.user-info {
    flex: 1;
    min-width: 200px;
}

.service-name,
.user-name {
    font-weight: 600;
    color: #1e40af;
}

.service-price {
    color: #26a69a;
    font-weight: 500;
}

.user-email {
    color: #3b82f6;
    font-size: 0.9rem;
}

.user-role {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background-color: #2563eb;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }

    .login-card {
        margin: 50px auto;
        padding: 30px 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .order-actions select {
        width: 100%;
    }

    .order-details {
        grid-template-columns: 1fr;
    }

    .password-toggle {
        font-size: 12px;
        padding: 6px 10px;
    }

    .password-wrapper input {
        padding-right: 70px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
    }

    .nav-logo {
        height: 80px;
        max-width: 100%;
    }

    .nav-user {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }


    .nav-user span {
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10px auto;
        padding: 20px 16px;
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-header {
        padding: 16px;
        margin: -20px -16px 20px -16px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .modal-footer {
        padding: 16px 0 0 0;
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-height: 48px;
    }

    /* Order Form Section Mobile */
    .order-form-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .order-form-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select {
        padding: 16px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly size */
        border-radius: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .form-actions .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 50px;
    }

    /* Orders Section Mobile */
    .orders-section {
        margin-top: 30px;
    }

    .orders-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .orders-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .search-container {
        min-width: 100%;
        max-width: 100%;
    }

    .search-input {
        padding: 14px 45px 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .order-card {
        padding: 18px 15px;
        margin-bottom: 15px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .order-header h3 {
        font-size: 1.1rem;
    }

    .order-status {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .order-info {
        grid-template-columns: 1fr;
        gap: 12px;
        font-size: 0.9rem;
    }

    .order-info-item {
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }

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

    .order-info-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .order-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .order-actions select,
    .order-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        min-height: 48px;
    }

    .order-actions .btn {
        margin: 0;
    }

    /* Improve touch targets */
    .btn,
    select,
    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="email"],
    input[type="password"] {
        -webkit-tap-highlight-color: rgba(30, 136, 229, 0.2);
        touch-action: manipulation;
    }

    /* Prevent text size adjustment on iOS */
    input,
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 10px 8px;
    }

    .order-form-section {
        padding: 15px 12px;
    }

    .order-form-section h2,
    .orders-section h2 {
        font-size: 1.2rem;
    }

    .nav-logo {
        height: 65px;
        max-width: 100%;
    }

    .btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    .order-card {
        padding: 15px 12px;
    }

    .form-group input,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-logo {
        height: 55px;
        max-width: 100%;
    }

    .dashboard-header h1 {
        font-size: 1.3rem;
    }

    .order-form-section h2,
    .orders-section h2 {
        font-size: 1.2rem;
    }
}

/* Powered by Footer */
.powered-by-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
}

.powered-by-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e88e5, transparent);
    margin: 0 auto 18px;
    border-radius: 2px;
}

.powered-by-text {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.powered-by-label {
    color: #7f8c8d;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.powered-by-brand {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
}

.powered-by-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e88e5, transparent);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .powered-by-footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    .powered-by-text {
        font-size: 0.75rem;
    }

    .powered-by-label {
        font-size: 0.65rem;
    }

    .powered-by-brand {
        font-size: 0.8rem;
    }
}

/* ============================================
   MOBILE-FIRST EMPLOYEE DASHBOARD
   ============================================ */

.mobile-body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.mobile-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mobile-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    padding-bottom: 80px; /* Space for bottom nav */
    position: relative;
    z-index: 1;
}

/* Top App Bar */
.mobile-top-bar {
    background: #3b82f6;
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo-small {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.app-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Greeting Section */
.greeting-section {
    padding: 24px 16px 16px;
}

.greeting-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.greeting-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* Status Chips */
.status-chips-container {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chip-pending {
    background: #fef3c7;
    color: #92400e;
}

.chip-progress {
    background: #dbeafe;
    color: #1e40af;
}

.chip-ready {
    background: #d1fae5;
    color: #065f46;
}

.chip-count {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons-container {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    width: 100%;
    height: 64px;
    background: white;
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.action-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.action-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.action-secondary {
    background: white;
    color: #1f2937;
}

.action-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.action-secondary .action-icon {
    background: #f3f4f6;
    color: #2563eb;
}

.action-content {
    flex: 1;
    min-width: 0;
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.action-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.action-arrow {
    font-size: 1.5rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Welcome Section on Home */
.welcome-section-home {
    padding: 36px 20px 28px;
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.welcome-text-home {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.welcome-text-home span {
    color: #3b82f6;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

/* Home Search Container - Search-First Design */
.home-search-container {
    padding: 0 20px 28px;
    max-width: 420px;
    margin: 0 auto;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    gap: 8px;
    padding: 4px 4px 4px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar-wrapper:focus-within {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}


.order-search-input {
    flex: 1;
    padding: 16px 12px;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: #0f172a;
    outline: none;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.order-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.order-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-submit-btn {
    padding: 14px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.search-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 110px;
    width: 26px;
    height: 26px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.clear-search-btn:hover {
    background: #e5e7eb;
    opacity: 1;
}

.clear-search-btn:active {
    background: #d1d5db;
    transform: scale(0.9);
}

/* Search Results Container */
.search-results-container {
    padding: 0 20px 28px;
    max-width: 420px;
    margin: 0 auto;
}

.search-results-list-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Order Result Card */
.order-result-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.order-result-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.order-result-card:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.order-result-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
    letter-spacing: -0.01em;
}

.order-result-status {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.order-result-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.order-result-items {
    color: #9ca3af;
    font-weight: 400;
}

/* No Results Modal */
.no-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.no-results-modal-content {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.no-results-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.no-results-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.no-results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-create-order {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.01em;
}

.btn-create-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-create-order:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-cancel-search {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-search:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-cancel-search:active {
    background: #f3f4f6;
    transform: scale(0.98);
}

/* Orders Section */
.orders-section-mobile {
    padding: 0 16px 24px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.orders-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card-mobile {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card-mobile:active {
    transform: scale(0.98);
}

.order-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-customer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.order-status-pill {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-received {
    background: #fef3c7;
    color: #92400e;
}

.status-washing {
    background: #dbeafe;
    color: #1e40af;
}

.status-ironing {
    background: #e9d5ff;
    color: #6b21a8;
}

.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background: #e5e7eb;
    color: #374151;
}

.order-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.order-info-item {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-items-summary {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.order-date {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-footer-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.order-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
}

.order-chevron {
    font-size: 1.2rem;
    color: #9ca3af;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

.bottom-nav > .nav-inner {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
    border-radius: 16px 16px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    font-weight: 500;
}

.nav-item:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.nav-item.active .nav-icon {
    transform: scale(1.05);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #3b82f6;
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile Modal */
.mobile-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 12px !important;
    box-sizing: border-box !important;
}

.mobile-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 12px !important;
}

/* Modal Dialog Wrapper - Centers the card (mobile-first) - Updated for narrow mobile form */
.modal-dialog-wrapper {
    width: 100% !important;
    max-width: 384px !important; /* max-w-sm equivalent - narrow mobile width */
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1001 !important;
}

/* On very small screens, keep it narrow but account for padding */
@media (max-width: 480px) {
    .modal-dialog-wrapper {
        max-width: calc(100% - 24px) !important; /* Account for modal padding, but keep narrow */
        width: calc(100% - 24px) !important;
    }
}

/* On larger screens, slightly wider but still mobile-like */
@media (min-width: 640px) {
    .modal-dialog-wrapper {
        max-width: 448px !important; /* sm:max-w-md equivalent */
    }
}

/* Modal Dialog Card - The white rounded container (mobile-first) */
.modal-dialog-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.modal-dialog-card .modal-header {
    background: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.modal-dialog-card .modal-header h2 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #2563eb;
    margin: 0;
    line-height: 1.3;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog-card .modal-body {
    background: white;
    flex: 1;
    padding: 16px;
    padding-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
}

/* Mobile Form Styles */
.mobile-order-form {
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap, use margin-bottom on form groups instead */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.form-group-mobile {
    display: flex;
    width: 100%;
    margin-bottom: 12px; /* mb-3 equivalent */
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.form-group-mobile label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.form-group-mobile input,
.form-group-mobile select,
.form-group-mobile textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group-mobile input:focus,
.form-group-mobile select:focus,
.form-group-mobile textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Override for phone input group - prevent full width inheritance */
.phone-input-group-mobile {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.phone-input-group-mobile > * {
    width: auto !important;
}

.phone-input-group-mobile .country-code-select-mobile {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 6px !important;
    font-size: 0.875rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: white !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.phone-input-group-mobile .phone-input-mobile {
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    height: auto !important;
}

.quantity-input-mobile {
    width: 100%;
    box-sizing: border-box;
}

.btn-mobile {
    width: 100%;
    padding: 10px 16px; /* py-2.5 equivalent */
    border: none;
    border-radius: 12px; /* rounded-xl */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 40px;
}

.btn-primary-mobile {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary-mobile:hover {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-primary-mobile:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.btn-secondary-mobile {
    background: #f3f4f6;
    color: #374151;
}

/* Employee Profile (mobile) */
.profile-card-mobile {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    background: #2563eb;
    color: #fff;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.profile-role {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 2px 0 0 0;
}

.profile-info-mobile {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #4b5563;
}

.profile-label {
    color: #6b7280;
}

.profile-value {
    font-weight: 500;
    color: #111827;
}

.profile-actions-mobile {
    margin-top: 8px;
}

.btn-secondary-mobile:active {
    transform: scale(0.98);
    background: #e5e7eb;
}

.btn-add-item-mobile {
    margin-top: 8px;
}

/* Ensure all form elements fit on mobile */
@media (max-width: 480px) {
    .mobile-modal {
        padding: 24px 12px !important;
    }
    
    .mobile-modal.active {
        padding: 24px 12px !important;
    }
    
    .modal-dialog-wrapper {
        max-width: calc(100% - 24px) !important; /* Keep narrow, account for padding */
        margin: 0 auto;
    }
    
    .modal-dialog-card {
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .modal-dialog-card .modal-header {
        padding: 14px 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-dialog-card .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-dialog-card .modal-body {
        padding: 14px;
        padding-bottom: 18px;
    }
    
    .form-group-mobile {
        margin-bottom: 10px;
    }
    
    .items-section-mobile {
        padding: 10px;
        margin: 10px 0 0 0;
    }
    
    .form-actions-mobile {
        margin-top: 14px;
    }
    
    .mobile-order-form {
        gap: 18px;
    }
    
    .form-section {
        gap: 12px;
    }
    
    .form-group-mobile input,
    .form-group-mobile select,
    .form-group-mobile textarea {
        padding: 11px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .phone-input-group-mobile {
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .country-code-select-mobile {
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 10px 4px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .phone-input-mobile {
        font-size: 16px !important; /* Prevents zoom on iOS */
        flex: 1 !important;
        min-width: 0 !important;
        padding: 10px 10px !important;
    }
    
    .btn-mobile {
        padding: 13px 14px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 12px 14px;
    }
    
    .modal-header h2 {
        font-size: 1.15rem;
    }
}

/* Prevent horizontal scroll */
* {
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-modal * {
    max-width: 100%;
}

.form-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px; /* mt-4 equivalent */
    width: 100%;
}

/* Items Section - Simple style like manager (mobile-first) */
.items-section-mobile {
    margin: 12px 0 0 0;
    padding: 12px;
    background-color: #f1f5f9; /* bg-slate-50 */
    border-radius: 12px; /* rounded-xl */
    width: 100%;
    box-sizing: border-box;
}

.items-section-mobile h3 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.add-item-form-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Items Table Styling */
.items-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px; /* ensure all columns fit on one line */
    margin-top: 12px;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.items-table thead {
    background-color: #2563eb;
    color: white;
}

.items-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.items-table td {
    padding: 10px 8px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.items-table tbody tr {
    background-color: white;
}

.items-table tbody tr:hover {
    background-color: #f9fafb;
}

.items-table tfoot {
    background-color: #f5f5f5;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Items List Mobile */
/* Custom scrollbar for Items Summary section */
.items-list-mobile::-webkit-scrollbar {
    width: 8px;
}

.items-list-mobile::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.items-list-mobile::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.items-list-mobile::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Ensure buttons section is always visible */
#submitOrderBtn,
#printReceiptBtn,
#totalPriceDisplay,
.form-actions-mobile {
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Order Actions Container - Two buttons side-by-side */
.order-actions {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.order-actions button {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Print Receipt Button Styles */
#printReceiptBtn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
}

#printReceiptBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Disabled button states */
.order-actions button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Responsive: Stack buttons vertically on very small screens */
@media (max-width: 360px) {
    .order-actions {
        flex-direction: column !important;
    }
    
    .order-actions button {
        width: 100% !important;
    }
}

.items-list-mobile {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;           /* allow horizontal scroll if needed */
    overflow-y: auto;           /* allow vertical scroll if needed */
    -webkit-overflow-scrolling: touch;
}

/* Ensure table container can scroll horizontally */
.items-summary-section #itemsTableContainer {
    overflow-x: auto;
    width: 100%;
    min-width: 100%;
}

/* Ensure table has minimum width to show all columns */
.items-summary-section #itemsTable {
    min-width: 600px;
    width: 100%;
    table-layout: auto;
}

/* Ensure proper alignment for table cells in Items Summary */
.items-summary-section #itemsTable th,
.items-summary-section #itemsTable td {
    vertical-align: middle;
    white-space: nowrap;
}

/* Ensure consistent column widths */
.items-summary-section #itemsTable th:first-child,
.items-summary-section #itemsTable td:first-child {
    width: 40px;
    text-align: center;
}

.items-summary-section #itemsTable th:nth-child(4),
.items-summary-section #itemsTable td:nth-child(4) {
    width: 50px;
    text-align: center;
}

.items-summary-section #itemsTable th:last-child,
.items-summary-section #itemsTable td:last-child {
    width: 70px;
    text-align: center;
}

/* Override mobile card layout for Items Summary table - keep it horizontal */
@media (max-width: 768px) {
    .items-summary-section .items-table {
        display: table !important;
        width: 100%;
        min-width: 600px;
    }
    
    .items-summary-section .items-table thead {
        display: table-header-group !important;
    }
    
    .items-summary-section .items-table tbody {
        display: table-row-group !important;
    }
    
    .items-summary-section .items-table tbody tr {
        display: table-row !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        position: static !important;
    }
    
    .items-summary-section .items-table tbody tr:before {
        display: none !important;
        content: none !important;
    }
    
    .items-summary-section .items-table tbody td {
        display: table-cell !important;
        padding: 8px 6px !important;
        border: 1px solid #e5e7eb !important;
        text-align: inherit !important;
        min-height: auto !important;
        justify-content: unset !important;
        align-items: unset !important;
    }
    
    .items-summary-section .items-table tbody td:first-child {
        display: table-cell !important;
    }
    
    .items-summary-section .items-table tbody td:before {
        display: none !important;
        content: none !important;
    }
    
    .items-summary-section .items-table tbody td:last-child {
        padding-top: 8px !important;
        border-top: 1px solid #e5e7eb !important;
        margin-top: 0 !important;
        padding-bottom: 8px !important;
        justify-content: unset !important;
    }
}

.no-items-message-mobile {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
}

.no-items-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.items-table-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row-mobile {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info-mobile {
    flex: 1;
}

.item-name-mobile {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.item-details-mobile {
    font-size: 0.85rem;
    color: #6b7280;
}

.item-price-mobile {
    font-weight: 600;
    color: #2563eb;
    margin-left: 12px;
}

.remove-item-btn {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 8px;
}

.total-price-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.total-price-mobile strong {
    color: #2563eb;
    font-size: 1.2rem;
}

/* Pin Input */
.pin-input {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.5rem;
    border: 2px solid #2563eb;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 1rem;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 0.85rem;
}

/* Responsive adjustments for larger screens */
@media (min-width: 481px) {
    .mobile-container {
        box-shadow: 0 0 0 1px #e5e7eb;
    }
}

/* Custom Modal Dialogs - Professional Style */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.custom-modal-dialog {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 85%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 10001;
    animation: slideUp 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1;
}

.custom-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.custom-modal-body {
    padding: 20px;
    text-align: center;
    flex: 1;
    overflow-y: auto;
}

.custom-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
    display: inline-block;
}

.custom-modal-body p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    white-space: pre-line;
    font-weight: 400;
}

.custom-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
    background: #fafafa;
}

.custom-modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 90px;
    letter-spacing: 0.01em;
}

.custom-modal-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.custom-modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.custom-modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.custom-modal-btn-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.custom-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.custom-modal-btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.custom-modal-btn-cancel {
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-modal-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Success Modal Style */
.custom-modal.success .custom-modal-icon {
    color: #10b981;
}

.custom-modal.success .custom-modal-header h3 {
    color: #10b981;
}

/* Error Modal Style */
.custom-modal.error .custom-modal-icon {
    color: #dc2626;
}

.custom-modal.error .custom-modal-header h3 {
    color: #dc2626;
}

/* Warning Modal Style */
.custom-modal.warning .custom-modal-icon {
    color: #f59e0b;
}

.custom-modal.warning .custom-modal-header h3 {
    color: #f59e0b;
}

/* Info Modal Style */
.custom-modal.info .custom-modal-icon {
    color: #3b82f6;
}

.custom-modal.info .custom-modal-header h3 {
    color: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .custom-modal-dialog {
        width: 90%;
        max-width: none;
        border-radius: 10px;
    }
    
    .custom-modal-header {
        padding: 16px 18px 12px;
    }
    
    .custom-modal-body {
        padding: 18px;
    }
    
    .custom-modal-footer {
        padding: 12px 18px 16px;
        flex-direction: column-reverse;
    }
    
    .custom-modal-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .custom-modal-body p {
        font-size: 0.9rem;
    }
    
    .custom-modal-btn {
        width: 100%;
        padding: 10px 20px;
    }
    
    .custom-modal-header h3 {
        font-size: 1rem;
    }
}

/* Trust Footer */
.trust-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.trust-statement {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
}

.trust-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.875rem;
}

.trust-links a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.trust-links a:hover,
.trust-links a:focus {
    color: #2563eb;
    text-decoration: underline;
}

.trust-links a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

.trust-links span {
    color: #d1d5db;
    font-weight: 300;
}

@media (max-width: 480px) {
    .trust-footer {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .trust-statement {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .trust-links {
        font-size: 0.8rem;
        gap: 6px 10px;
    }
}


