/**
 * Tailor Portal Styles
 * Full-width layout with dashboard-style cards
 * All measurement fields shown (including empty)
 * Includes: Collapsible sections, Settings modal, Autocomplete
 */

/* ========================================
   BASE STYLES & RESET
   ======================================== */
.tailor-portal,
.tailor-portal-login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: #f5f5f5;
    min-height: 80vh;
}

.tailor-portal *,
.tailor-portal-login * {
    box-sizing: border-box;
}

/* Compact Mode */
.tailor-portal.compact-mode {
    padding: 12px;
}

.tailor-portal.compact-mode .tailor-item-detail {
    gap: 16px;
}

.tailor-portal.compact-mode .tailor-section-content {
    padding: 12px;
}

/* ========================================
   LOGIN FORM
   ======================================== */
.tailor-portal-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.tailor-login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.tailor-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.tailor-login-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1a1a1a;
}

.tailor-login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.tailor-login-error {
    background: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.tailor-form-group {
    margin-bottom: 20px;
}

.tailor-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.tailor-form-group input[type="text"],
.tailor-form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.tailor-form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.tailor-remember {
    display: flex;
    align-items: center;
}

.tailor-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.tailor-login-btn {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tailor-login-btn:hover {
    background: #333;
}

/* ========================================
   HEADER
   ======================================== */
.tailor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1a1a1a !important;
    color: white !important;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

/* ========================================
   NAVIGATION BAR - Clean Shop Style
   ======================================== */
.tailor-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #f8f9fa;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tailor-nav::-webkit-scrollbar {
    height: 3px;
}

.tailor-nav::-webkit-scrollbar-track {
    background: transparent;
}

.tailor-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.tailor-nav-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tailor-nav-divider {
    display: none;
}

.tailor-nav-admin {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tailor-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tailor-nav-item:hover {
    color: #1f2937;
    text-decoration: none;
}

.tailor-nav-item.active {
    color: #1f2937;
    font-weight: 500;
    border-bottom-color: #1f2937;
}

.tailor-nav-icon {
    display: none;
}

.tailor-nav-label {
    line-height: 1.4;
}

/* Admin items - subtle distinction */
.tailor-nav-admin-item {
    color: #92400e;
}

.tailor-nav-admin-item:hover {
    color: #78350f;
}

.tailor-nav-admin-item.active {
    color: #92400e;
    font-weight: 500;
    border-bottom-color: #d97706;
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .tailor-nav {
        padding: 12px 16px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .tailor-nav-main,
    .tailor-nav-admin {
        gap: 16px;
    }

    .tailor-nav-item {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .tailor-nav {
        padding: 10px 12px;
        justify-content: flex-start;
    }

    .tailor-nav-main,
    .tailor-nav-admin {
        gap: 12px;
    }

    .tailor-nav-item {
        font-size: 12px;
        padding: 4px 0;
    }

    .tailor-nav-icon {
        display: inline;
        font-size: 14px;
    }

    .tailor-nav-label {
        display: none;
    }
}

.tailor-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white !important;
}

.tailor-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Settings Button */
.tailor-settings-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
}

.tailor-settings-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.tailor-settings-btn svg {
    width: 20px;
    height: 20px;
}

.tailor-lang-toggle {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.tailor-lang-toggle a {
    padding: 8px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.tailor-lang-toggle a.active {
    background: white;
    color: #1a1a1a;
}

.tailor-lang-toggle a:hover:not(.active) {
    color: white;
}

.tailor-logout {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.2s;
}

.tailor-logout:hover {
    color: white;
    border-color: white;
}

/* ========================================
   SEARCH FORM
   ======================================== */
.tailor-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.tailor-search-box {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.tailor-search-box h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.tailor-search-box p {
    margin: 0 0 24px 0;
    color: #666;
}

.tailor-search-input-group {
    display: flex;
    gap: 12px;
}

.tailor-search-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.2s;
}

.tailor-search-input-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.tailor-search-input-group button {
    padding: 14px 32px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tailor-search-input-group button:hover {
    background: #333;
}

/* ========================================
   ORDER SUGGESTIONS / AUTOCOMPLETE
   ======================================== */
.tailor-search-form {
    position: relative;
}

.tailor-order-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: -4px;
}

.tailor-order-suggestions.visible {
    display: block;
}

.tailor-suggestions-header {
    padding: 10px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.suggestions-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tailor-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
    text-align: left;
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background: #f5f5f5;
}

.suggestion-item.active {
    background: #eef5ff;
}

.suggestion-order-id {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
    min-width: 80px;
}

.suggestion-customer {
    flex: 1;
    color: #444;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-date {
    color: #888;
    font-size: 13px;
    min-width: 80px;
}

.suggestion-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.suggestion-status-processing {
    background: #fff3cd;
    color: #856404;
}

.suggestion-status-completed {
    background: #d4edda;
    color: #155724;
}

.suggestion-status-on-hold {
    background: #cce5ff;
    color: #004085;
}

.tailor-suggestions-loading,
.tailor-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.tailor-suggestions-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   AUTOCOMPLETE DROPDOWN (for search & inspection)
   ======================================== */
.tailor-autocomplete-wrapper {
    position: relative;
    flex: 1;
}

.tailor-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: -2px;
}

.tailor-autocomplete-dropdown.visible {
    display: block;
}

.tailor-autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

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

.tailor-autocomplete-item:hover,
.tailor-autocomplete-item.active {
    background: #f5f5f5;
}

.tailor-autocomplete-item.active {
    background: #eef5ff;
}

.tailor-autocomplete-item.no-results {
    color: #888;
    justify-content: center;
    cursor: default;
}

.tailor-autocomplete-item.no-results:hover {
    background: white;
}

.tailor-autocomplete-loading {
    padding: 16px;
    text-align: center;
    color: #888;
}

.autocomplete-order-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-order-id {
    color: #1a1a2e;
    font-weight: 700;
}

.autocomplete-customer {
    color: #666;
    font-size: 13px;
}

.autocomplete-order-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-date {
    color: #888;
    font-size: 12px;
}

.autocomplete-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.autocomplete-status-processing {
    background: #fff3cd;
    color: #856404;
}

.autocomplete-status-completed {
    background: #d4edda;
    color: #155724;
}

.autocomplete-status-on-hold {
    background: #cce5ff;
    color: #004085;
}

/* ========================================
   RECENT ORDERS LIST (below search)
   ======================================== */
.tailor-recent-orders {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tailor-recent-orders-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tailor-recent-orders-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.recent-orders-icon {
    font-size: 18px;
}

.tailor-recent-orders-list {
    padding: 0;
}

.tailor-recent-order-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    gap: 16px;
}

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

.tailor-recent-order-item:hover {
    background: #f5f5f5;
}

.tailor-recent-order-item .order-id {
    font-weight: 700;
    color: #1a1a2e;
    min-width: 80px;
}

.tailor-recent-order-item .order-customer {
    flex: 1;
    color: #444;
    font-size: 14px;
}

.tailor-recent-order-item .order-date {
    color: #888;
    font-size: 13px;
    min-width: 80px;
}

.tailor-recent-order-item .order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.tailor-recent-order-item .order-status-processing {
    background: #fff3cd;
    color: #856404;
}

.tailor-recent-order-item .order-status-completed {
    background: #d4edda;
    color: #155724;
}

.tailor-recent-order-item .order-status-on-hold {
    background: #cce5ff;
    color: #004085;
}

.tailor-recent-orders-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.tailor-load-more-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.tailor-load-more-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.tailor-loading,
.tailor-empty,
.tailor-error {
    padding: 30px;
    text-align: center;
    color: #888;
}

.tailor-error {
    color: #c00;
}

/* ========================================
   ORDER CONTAINER
   ======================================== */
.tailor-order-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tailor-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a1a, #333) !important;
    color: white !important;
}

.tailor-order-info h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: white !important;
}

.tailor-customer-details {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.tailor-customer-details span {
    display: flex;
    gap: 6px;
}

.tailor-btn {
    padding: 10px 20px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.tailor-btn:hover {
    background: #f0f0f0;
}

.tailor-btn-primary {
    background: #1a1a1a;
    color: white;
}

.tailor-btn-primary:hover {
    background: #333;
}

.tailor-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.tailor-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.tailor-btn-small {
    padding: 6px 14px;
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.tailor-btn-small:hover {
    background: #e0e0e0;
    color: #333;
}

/* Excel Button */
.tailor-btn-excel {
    background: linear-gradient(135deg, #217346 0%, #1d6540 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(33, 115, 70, 0.3);
}

.tailor-btn-excel:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d6540 0%, #185536 100%);
    box-shadow: 0 4px 12px rgba(33, 115, 70, 0.4);
    transform: translateY(-1px);
}

.tailor-btn-excel:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tailor-btn-excel .btn-icon {
    font-size: 18px;
}

/* Small Excel Button (for order cards) */
.tailor-btn-excel.tailor-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(33, 115, 70, 0.2);
}

.tailor-btn-excel.tailor-btn-small .btn-icon {
    font-size: 14px;
}

.tailor-btn-excel.tailor-btn-small:hover:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 115, 70, 0.3);
}

/* Order Actions Container */
.tailor-order-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Excel Download Modal */
.tailor-excel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tailor-excel-modal .tailor-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.tailor-excel-modal .tailor-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.tailor-excel-modal .tailor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.tailor-excel-modal .tailor-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.tailor-excel-modal .tailor-modal-body {
    padding: 24px;
}

.excel-download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.excel-download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f9f7;
    border: 1px solid #217346;
    border-radius: 8px;
    color: #217346;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.excel-download-link:hover {
    background: #217346;
    color: white;
}

.excel-download-link .file-icon {
    font-size: 24px;
}

/* ========================================
   ITEM TABS
   ======================================== */
.tailor-item-tabs {
    display: flex;
    gap: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.tailor-tab {
    padding: 16px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    background: white;
}

.tailor-tab:hover {
    color: #1a1a1a;
    background: #fafafa;
}

.tailor-tab.active {
    color: #1a1a1a;
    background: white;
    border-bottom-color: #1a1a1a;
}

.tailor-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tailor-status-pending {
    background: #fff3cd;
    color: #856404;
}

.tailor-status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.tailor-status-completed {
    background: #d4edda;
    color: #155724;
}

/* ========================================
   ITEM CONTENT
   ======================================== */
.tailor-item-content {
    padding: 24px;
}

.tailor-item-detail {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ========================================
   STATUS CONTROLS
   ======================================== */
.tailor-status-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.tailor-status-controls label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tailor-status-buttons {
    display: flex;
    gap: 8px;
}

.tailor-status-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tailor-status-btn:hover {
    border-color: #999;
}

.tailor-status-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}

.tailor-status-btn[data-status="pending"].active {
    background: #ffc107;
    border-color: #ffc107;
    color: #1a1a1a;
}

.tailor-status-btn[data-status="in_progress"].active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.tailor-status-btn[data-status="completed"].active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */
.tailor-collapsible {
    transition: all 0.3s ease;
}

.tailor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.tailor-section-header h3 {
    margin: 0;
    padding: 16px 20px;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.tailor-toggle-btn {
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    width: 12px;
    height: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: #666;
    transition: all 0.3s ease;
}

.toggle-icon::before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

.toggle-icon::after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

/* Collapsed state */
.tailor-collapsible.collapsed .toggle-icon::after {
    transform: rotate(90deg);
    opacity: 1;
}

.tailor-collapsible:not(.collapsed) .toggle-icon::after {
    transform: rotate(0deg);
    opacity: 0;
}

.tailor-section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.tailor-collapsible.collapsed .tailor-section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Section header backgrounds for collapsible */
/* Override Avada's h3 background on all section headers with dark backgrounds */
.tailor-portal .tailor-section-header h3,
.tailor-portal .tailor-section-header h3.fusion-responsive-typography-calculated {
    background: transparent !important;
    background-color: transparent !important;
}

.tailor-3dscan-section .tailor-section-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

.tailor-3dscan-section .tailor-section-header h3,
.tailor-3dscan-section .tailor-section-header h3.fusion-responsive-typography-calculated {
    color: white !important;
    background: none !important;
    background-color: transparent !important;
}

.tailor-3dscan-section .tailor-toggle-btn .toggle-icon::before,
.tailor-3dscan-section .tailor-toggle-btn .toggle-icon::after {
    background: white;
}

.tailor-fabric-section .tailor-section-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tailor-embroidery-section .tailor-section-header {
    background: #8B4513 !important;
}

.tailor-embroidery-section .tailor-section-header h3,
.tailor-embroidery-section .tailor-section-header h3.fusion-responsive-typography-calculated {
    color: white !important;
    background: none !important;
    background-color: transparent !important;
}

.tailor-embroidery-section .tailor-toggle-btn .toggle-icon::before,
.tailor-embroidery-section .tailor-toggle-btn .toggle-icon::after {
    background: white;
}

.tailor-design-section .tailor-section-header {
    background: #1a1a1a !important;
    border-radius: 10px 10px 0 0;
}

.tailor-design-section .tailor-section-header h3,
.tailor-design-section .tailor-section-header h3.fusion-responsive-typography-calculated {
    color: white !important;
    background: none !important;
    background-color: transparent !important;
}

.tailor-design-section .tailor-toggle-btn .toggle-icon::before,
.tailor-design-section .tailor-toggle-btn .toggle-icon::after {
    background: white;
}

.tailor-measurements-section .tailor-section-header {
    background: #1a1a1a !important;
    border-radius: 10px 10px 0 0;
}

.tailor-measurements-section .tailor-section-header h3,
.tailor-measurements-section .tailor-section-header h3.fusion-responsive-typography-calculated {
    color: white !important;
    background: none !important;
    background-color: transparent !important;
}

.tailor-measurements-section .tailor-toggle-btn .toggle-icon::before,
.tailor-measurements-section .tailor-toggle-btn .toggle-icon::after {
    background: white;
}

/* ========================================
   SETTINGS MODAL
   ======================================== */
.tailor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tailor-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.tailor-modal-container {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.tailor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.tailor-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.tailor-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.tailor-modal-close:hover {
    color: #1a1a1a;
}

.tailor-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.tailor-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* Settings Groups */
.tailor-setting-group {
    margin-bottom: 24px;
}

.tailor-setting-group:last-child {
    margin-bottom: 0;
}

.tailor-setting-group > label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tailor-setting-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.tailor-setting-group select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.tailor-setting-hint {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #888;
}

.tailor-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.tailor-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.tailor-checkbox-label span {
    font-size: 14px;
    color: #333;
}

.tailor-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ========================================
   3D SCAN SECTION
   ======================================== */
.tailor-3dscan-section {
    border: 2px solid #6366f1;
    background: linear-gradient(135deg, #f0f0ff, #e8e8ff);
}

.tailor-3dscan-section .tailor-section-content {
    padding: 0;
}

.tailor-3dscan-container {
    padding: 24px;
}

/* Customer Email Display */
.tailor-3dscan-email {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
    margin-bottom: 20px;
}

.tailor-3dscan-email .email-label {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tailor-3dscan-email .email-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    background: #f0f0ff;
    padding: 4px 12px;
    border-radius: 4px;
}

.tailor-3dscan-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.tailor-load-scan-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.tailor-load-scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.tailor-3dscan-hint {
    margin: 16px 0 0 0;
    color: #666;
    font-size: 14px;
}

.tailor-3dscan-loading {
    text-align: center;
    padding: 40px 20px;
}

.tailor-3dscan-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tailor-3dscan-loading p {
    margin: 16px 0 0 0;
    color: #666;
}

.tailor-3dscan-results {
    /* Container for scan images when loaded */
}

.tailor-3dscan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tailor-3dscan-item {
    text-align: center;
}

.tailor-3dscan-image {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.tailor-3dscan-image:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.tailor-3dscan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tailor-3dscan-label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tailor-3dscan-info {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tailor-3dscan-info .scan-date {
    color: #666;
    font-size: 13px;
}

.tailor-refresh-scan-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: #f0f0ff;
    color: #6366f1;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tailor-refresh-scan-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.tailor-3dscan-error {
    text-align: center;
    padding: 30px 20px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.tailor-3dscan-error .error-message {
    color: #c53030;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.tailor-retry-scan-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tailor-retry-scan-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* ========================================
   SECTIONS
   ======================================== */
.tailor-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.tailor-section h3 {
    margin: 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ========================================
   FABRIC SECTION
   ======================================== */
.tailor-fabric-section {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

.tailor-fabric-section .tailor-section-content {
    padding: 0;
}

.tailor-fabric-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.tailor-fabric-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.tailor-fabric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tailor-fabric-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.tailor-fabric-sku {
    font-size: 13px;
    color: #666;
    font-family: monospace;
}

.tailor-fabric-material {
    font-size: 14px;
    color: #444;
}

/* ========================================
   EMBROIDERY SECTION
   ======================================== */
.tailor-embroidery-section {
    border: 2px solid #8B4513;
    background: linear-gradient(135deg, #FFF8DC, #FAEBD7);
}

.tailor-embroidery-section .tailor-section-content {
    padding: 0;
}

.tailor-embroidery-content {
    padding: 20px;
}

.tailor-embroidery-chinese {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'SimHei', sans-serif;
    font-size: 15px;
    line-height: 2;
    color: #333;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #DEB887;
    white-space: pre-wrap;
    margin: 0;
}

.tailor-embroidery-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tailor-embroidery-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-radius: 6px;
    border: 1px solid #DEB887;
}

.tailor-embroidery-row .embroidery-label {
    font-weight: 600;
    color: #8B4513;
    min-width: 100px;
    font-size: 13px;
}

.tailor-embroidery-row .embroidery-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.tailor-embroidery-text {
    flex-direction: column;
    gap: 8px;
}

.embroidery-text-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.embroidery-line {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #FFF8DC;
    border-radius: 4px;
    border-left: 3px solid #8B4513;
}

.embroidery-line .line-number {
    font-size: 12px;
    color: #8B4513;
    font-weight: 600;
    min-width: 60px;
}

.embroidery-line .line-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ========================================
   DESIGN SECTION
   ======================================== */
.tailor-design-section {
    border: none;
    background: transparent;
}

.tailor-design-section .tailor-section-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0;
}

.tailor-design-category {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 16px;
    overflow: hidden;
}

.tailor-design-category:first-of-type {
    margin-top: 16px;
}

.tailor-design-category-title {
    margin: 0;
    padding: 14px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 18px;
}

.tailor-design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.tailor-design-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.tailor-design-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.tailor-design-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f0f0f0;
}

.tailor-design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tailor-design-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tailor-design-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tailor-design-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ========================================
   MEASUREMENTS SECTION
   ======================================== */
.tailor-measurements-section {
    border: none;
    background: transparent;
}

.tailor-measurements-section .tailor-section-content {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.tailor-measurements-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 0;
}

.tailor-measurement-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tailor-measurement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-bottom: 1px solid #e8e8e8;
}

.tailor-measurement-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.section-icon {
    font-size: 20px;
}

.tailor-measurement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.tailor-measurement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.tailor-measurement-item:hover {
    background: #fafafa;
}

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

.tailor-measurement-item.empty-value {
    background: #fafafa;
}

.tailor-measurement-item.empty-value:hover {
    background: #f5f5f5;
}

.measurement-label {
    font-size: 13px;
    color: #555;
}

.measurement-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'SF Mono', Monaco, monospace;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.measurement-value.no-value {
    color: #bbb;
    font-weight: 400;
    background: #f8f8f8;
    border: 1px dashed #ddd;
}

.measurement-unit {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

/* ========================================
   GENERELT ROW LAYOUT (matching other cards)
   ======================================== */
.tailor-measurement-row-card {
    grid-column: 1 / -1; /* Full width */
}

.tailor-measurement-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
}

.tailor-measurement-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.tailor-measurement-row-item:last-child {
    border-right: none;
}

.tailor-measurement-row-item:hover {
    background: #fafafa;
}

.tailor-measurement-row-item.empty-value {
    background: #fafafa;
}

.tailor-measurement-row-item.empty-value:hover {
    background: #f5f5f5;
}

/* ========================================
   NOTES CARDS
   ======================================== */
.tailor-notes-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    grid-column: 1 / -1;
}

.tailor-notes-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.tailor-notes-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.tailor-notes-content {
    margin: 0;
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.tailor-notes-important {
    border-color: #ffc107;
    background: #fffbf0;
}

.tailor-notes-important .tailor-notes-header {
    background: #fff3cd;
    border-color: #ffc107;
}

/* ========================================
   ERROR & NO ITEMS
   ======================================== */
.tailor-error,
.tailor-no-items {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tailor-error h2 {
    margin: 0 0 12px 0;
    color: #c00;
}

.tailor-error p {
    margin: 0 0 24px 0;
    color: #666;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .tailor-portal,
    .tailor-portal-login {
        padding: 12px;
    }

    .tailor-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px;
    }

    .tailor-header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tailor-customer-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }

    .tailor-customer-details {
        flex-direction: column;
        gap: 8px;
    }

    .tailor-item-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tailor-tab {
        padding: 14px 18px;
        font-size: 14px;
    }

    .tailor-item-content {
        padding: 16px;
    }

    .tailor-status-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tailor-status-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .tailor-status-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .tailor-3dscan-email {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .tailor-3dscan-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tailor-3dscan-info {
        flex-direction: column;
        gap: 10px;
    }

    .tailor-design-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .tailor-measurements-dashboard {
        grid-template-columns: 1fr;
    }

    .tailor-fabric-card {
        flex-direction: column;
        text-align: center;
    }

    .tailor-search-input-group {
        flex-direction: column;
    }

    .tailor-login-box {
        padding: 30px 20px;
    }

    .tailor-embroidery-row {
        flex-direction: column;
        gap: 6px;
    }

    .tailor-embroidery-row .embroidery-label {
        min-width: auto;
    }

    /* Responsive Generelt row - 2x2 grid on tablet/mobile */
    .tailor-measurement-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tailor-measurement-row-item {
        border-bottom: 1px solid #f0f0f0;
        border-right: 1px solid #f0f0f0;
    }

    .tailor-measurement-row-item:nth-child(2),
    .tailor-measurement-row-item:nth-child(4) {
        border-right: none;
    }

    .tailor-measurement-row-item:nth-child(3),
    .tailor-measurement-row-item:nth-child(4) {
        border-bottom: none;
    }

    /* Modal responsive */
    .tailor-modal-container {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 480px) {
    .tailor-design-grid {
        grid-template-columns: 1fr;
    }

    .tailor-design-image {
        height: 100px;
    }

    /* Responsive Generelt row - stack on small mobile */
    .tailor-measurement-row-grid {
        grid-template-columns: 1fr;
    }

    .tailor-measurement-row-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .tailor-measurement-row-item:last-child {
        border-bottom: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .tailor-portal {
        background: white;
        padding: 0;
    }

    .tailor-header,
    .tailor-status-controls,
    .tailor-item-tabs,
    .tailor-btn,
    .tailor-3dscan-section,
    .tailor-toggle-btn,
    .tailor-settings-btn,
    .tailor-modal {
        display: none !important;
    }

    .tailor-order-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .tailor-customer-header {
        background: #f5f5f5 !important;
        color: #1a1a1a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tailor-item-content {
        display: block !important;
    }

    .tailor-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Expand all sections when printing */
    .tailor-collapsible.collapsed .tailor-section-content {
        max-height: none;
        opacity: 1;
        padding: inherit;
    }

    .tailor-measurement-item.empty-value {
        background: #f9f9f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .measurement-value.no-value {
        border: 1px dashed #ccc !important;
    }

    .tailor-embroidery-section {
        border-color: #8B4513 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tailor-embroidery-chinese {
        border: 1px solid #8B4513 !important;
    }

    .tailor-measurement-row-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ========================================
   DASHBOARD NAVIGATION STYLES
   ======================================== */
.tailor-dashboard { padding: 20px; max-width: 900px; margin: 0 auto; }
.tailor-dashboard-welcome { text-align: center; margin-bottom: 30px; }
.tailor-dashboard-welcome h2 { font-size: 24px; color: #333; margin-bottom: 10px; }
.tailor-dashboard-welcome p { color: #666; font-size: 16px; }
.tailor-dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tailor-dashboard-card { display: block; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 30px 20px; text-align: center; text-decoration: none; color: inherit; transition: all 0.3s ease; }
.tailor-dashboard-card:hover { border-color: #2271b1; box-shadow: 0 4px 12px rgba(34,113,177,0.15); transform: translateY(-2px); }
.tailor-card-icon { font-size: 48px; margin-bottom: 15px; }
.tailor-dashboard-card h3 { font-size: 20px; color: #333; margin-bottom: 10px; }
.tailor-dashboard-card p { font-size: 14px; color: #666; line-height: 1.5; }

/* Section Navigation */
.tailor-section-nav { display: flex; align-items: center; gap: 20px; padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; margin-bottom: 20px; }
.tailor-back-link { color: #2271b1; text-decoration: none; font-size: 14px; }
.tailor-back-link:hover { text-decoration: underline; }
.tailor-section-nav h2 { margin: 0; font-size: 20px; color: #333; }

/* Placeholder Box */
.tailor-placeholder-box { max-width: 400px; margin: 40px auto; text-align: center; padding: 40px; background: #f8f9fa; border-radius: 12px; border: 2px dashed #ddd; }
.tailor-placeholder-box p { color: #666; margin: 0; }

/* Responsive Dashboard */
@media (max-width: 600px) {
    .tailor-dashboard-grid { grid-template-columns: 1fr; }
    .tailor-section-nav { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   INSPECTION MODULE STYLES
   ======================================== */

/* Container */
.tailor-inspection-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Panel */
.tailor-inspection-search {
    margin-bottom: 30px;
}

.tailor-inspection-search .tailor-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 20px;
}

.tailor-inspection-search .tailor-search-box h3 {
    margin: 0 0 10px 0;
    color: #1a1a2e;
    font-size: 20px;
}

.tailor-inspection-search .tailor-search-box p {
    color: #666;
    margin: 0 0 20px 0;
}

.tailor-inspection-search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Inspection Panel */
.tailor-inspection-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Order Header */
.inspection-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
}

.inspection-order-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #fff !important;
    background: none !important;
}

.inspection-order-info .order-date {
    font-size: 14px;
    opacity: 0.8;
}

/* Progress Bar */
.inspection-progress-container {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.inspection-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-percentage {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
}

.inspection-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.inspection-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.inspection-progress-fill.complete {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
}

/* Item Sections */
.inspection-item-section {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 25px;
}

.inspection-item-section:last-of-type {
    border-bottom: none;
}

.inspection-item-header {
    margin-bottom: 15px;
}

.inspection-item-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
}

/* QC Section */
.inspection-qc-section {
    background: #fafafa;
}

.inspection-qc-section .inspection-item-header h4 {
    color: #d32f2f;
}

/* Checklist */
.inspection-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspection-checklist h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

/* Check Item */
.inspection-check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.inspection-check-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 4px rgba(34,113,177,0.1);
}

.inspection-check-item.checked {
    background: #f0f9f0;
    border-color: #4CAF50;
}

/* Custom Checkbox */
.inspection-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.inspection-checkbox-label input[type="checkbox"] {
    display: none;
}

.inspection-checkbox-label .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inspection-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.inspection-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.check-label {
    font-weight: 500;
    color: #333;
}

.check-value {
    color: #666;
    font-size: 14px;
    margin-left: auto;
    padding-left: 10px;
}

/* Note Input */
.inspection-note-input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.inspection-note-input:focus {
    outline: none;
    border-color: #2271b1;
}

.inspection-note-input::placeholder {
    color: #aaa;
}

/* Notes Section */
.inspection-notes-section {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.inspection-notes-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
    background: none !important;
}

.inspection-notes-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.inspection-notes-section textarea:focus {
    outline: none;
    border-color: #2271b1;
}

/* Action Buttons */
.inspection-actions {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

.inspection-actions .tailor-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspection-actions .tailor-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.inspection-actions .tailor-btn-secondary:hover {
    background: #e0e0e0;
}

.inspection-actions .tailor-btn-primary {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.inspection-actions .tailor-btn-primary:hover:not(:disabled) {
    background: #43A047;
}

.inspection-actions .tailor-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Completed Banner */
.inspection-completed-banner {
    padding: 15px 25px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

/* Error State */
.tailor-error {
    padding: 40px;
    text-align: center;
    color: #d32f2f;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .inspection-order-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .inspection-check-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .inspection-note-input {
        width: 100%;
    }

    .check-value {
        margin-left: 36px;
    }

    .inspection-actions {
        flex-direction: column;
    }

    .inspection-actions .tailor-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .inspection-actions,
    .tailor-btn-secondary {
        display: none !important;
    }

    .inspection-progress-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================
   PLACE ORDER MODULE STYLES
   ======================================== */

/* Container */
.place-order-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with search and filters */
.place-order-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.place-order-search {
    flex: 1;
    min-width: 200px;
}

.place-order-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.place-order-search input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.place-order-filters select {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 160px;
}

.place-order-filters select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Order List */
.place-order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place-order-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.place-order-empty {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    color: #888;
}

/* Order Card */
.place-order-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.place-order-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.place-order-card.is-placed {
    opacity: 0.7;
}

.place-order-card.is-placed:hover {
    opacity: 1;
}

/* Card Header */
.place-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.place-order-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.place-order-order-id {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
}

.place-order-customer {
    color: #666;
    font-size: 14px;
}

.place-order-date {
    color: #888;
    font-size: 13px;
}

/* Placement Status Badge */
.place-order-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.place-order-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.place-order-status-badge.placed {
    background: #d4edda;
    color: #155724;
}

/* Card Body - Items */
.place-order-card-body {
    padding: 16px 20px;
}

.place-order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.place-order-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
}

.place-order-item.approved {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.place-order-item-icon {
    font-size: 18px;
}

.place-order-item-name {
    color: #333;
}

.place-order-item-status {
    font-size: 12px;
    margin-left: 4px;
}

.place-order-item-status.approved {
    color: #4CAF50;
}

.place-order-item-status.pending {
    color: #888;
}

/* Card Footer */
.place-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.place-order-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.place-order-progress-bar {
    width: 100px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.place-order-progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.place-order-placement-date {
    font-size: 12px;
    color: #888;
}

/* Footer with load more */
.place-order-footer {
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .place-order-header {
        flex-direction: column;
    }

    .place-order-filters select {
        width: 100%;
    }

    .place-order-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .place-order-card-info {
        flex-wrap: wrap;
    }

    .place-order-items {
        flex-direction: column;
    }

    .place-order-item {
        width: 100%;
    }

    .place-order-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .place-order-progress-bar {
        width: 150px;
    }
}

/* =========================================
   APPROVAL MODAL STYLES
   ========================================= */

.tailor-approval-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

.approval-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.approval-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 1400px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.approval-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
}

.approval-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.approval-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.approval-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.approval-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 400px;
}

.approval-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    gap: 16px;
}

.approval-footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.approval-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.approval-modal-footer .approval-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 24px;
    border-left: 1px solid #ddd;
}

.approval-modal-footer .approval-item-icon {
    font-size: 24px;
}

.approval-modal-footer .approval-item-type {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.approval-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

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

/* Item Tabs */
.approval-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.approval-tab {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    white-space: nowrap;
}

.approval-tab:hover {
    border-color: #1a1a1a;
}

.approval-tab.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.approval-tab.approved {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

.approval-tab.active.approved {
    background: #22c55e;
    color: #fff;
}

/* Item Content */
.approval-item-content {
    padding: 24px;
}

.approval-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.approval-item-icon {
    font-size: 48px;
}

.approval-item-type {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.approval-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.approval-badge.approved {
    background: #dcfce7;
    color: #166534;
}

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

/* Item Details Grid */
.approval-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.approval-detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.approval-detail-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.approval-fabric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.approval-fabric img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.approval-fabric span {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.approval-config-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.approval-config-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.config-key {
    color: #666;
    flex-shrink: 0;
}

.config-value {
    color: #1a1a1a;
    font-weight: 500;
}

.approval-measurements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.approval-measurement-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.measurement-key {
    font-size: 12px;
    color: #666;
}

.measurement-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.approval-warning {
    padding: 12px 16px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 13px;
}

.approval-error {
    padding: 12px 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* Item Actions */
.approval-item-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.approval-item-actions .tailor-btn {
    flex: 1;
}

/* Loading States */
.approval-loading,
.approval-loading-small {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: #666;
    font-size: 14px;
}

.approval-loading-small {
    padding: 40px 24px;
}

/* Place Order Button */
.approval-place-order-btn {
    min-width: 160px;
}

.approval-place-order-btn.ready {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* Success Button */
.tailor-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.tailor-btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Secondary Button */
.tailor-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.tailor-btn-secondary:hover {
    background: #d1d5db;
}

/* Responsive Approval Modal */
@media (max-width: 768px) {
    .approval-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .approval-modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .approval-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .approval-actions {
        width: 100%;
    }

    .approval-place-order-btn {
        width: 100%;
    }

    .approval-item-header {
        flex-wrap: wrap;
    }

    .approval-badge {
        margin-left: 0;
        margin-top: 8px;
    }

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

    .approval-measurements-grid {
        grid-template-columns: 1fr;
    }

    .approval-item-actions {
        flex-direction: column;
    }

    .approval-item-actions .tailor-btn {
        width: 100%;
    }
}

/* Excel Preview Container */
.approval-excel-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0;
    min-height: 400px;
    overflow: auto;
}

.approval-loading-excel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #666;
    font-size: 15px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a4a5e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Microsoft Office Viewer iframe styling */
.approval-excel-container iframe {
    width: 100%;
    height: 65vh;
    min-height: 450px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

/* Item info base styles (used in modal footer) */
.approval-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Approval error styling */
.approval-error {
    padding: 40px 20px;
    text-align: center;
    color: #c0392b;
    background: #fdf2f2;
    border-radius: 8px;
    margin: 16px 0;
}