/* ========================================
   OMS Orders Table Styles - Modern & Responsive
======================================== */

.oms-orders-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset WordPress default styles - QUAN TRỌNG */
.oms-orders-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
}

.oms-orders-wrapper * {
    box-sizing: border-box;
}

/* ========================================
   FILTER SECTION
======================================== */

.oms-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.oms-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oms-filter label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 14px;
}

.oms-filter select,
.oms-locked-input {
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
    height: 40px;
    transition: all 0.3s ease;
}

.oms-filter select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.oms-locked-input {
    background: #e9ecef !important;
    color: #495057;
    font-weight: 600;
    cursor: not-allowed;
}

.lock-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    color: #6c757d;
}

/* ========================================
   TABLE CONTAINER - NO SCROLL
======================================== */

.oms-table-container {
    overflow-x: hidden; /* ẨN scroll hoàn toàn */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   TABLE STYLES - AUTO FIT
======================================== */

.oms-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed; /* QUAN TRỌNG: Bắt table fit vào width */
}

/* Table Header */
.oms-orders-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.oms-orders-table thead th {
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: clamp(11px, 1.1vw, 13px); /* Tự động scale font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal !important; /* ✅ CHO PHÉP BREAK XUỐNG DÒNG */
    line-height: 1.3 !important; /* ✅ THÊM LINE HEIGHT CHO ĐẸP */
    word-wrap: break-word !important; /* ✅ THÊM WORD WRAP */
    word-break: break-word !important; /* ✅ THÊM WORD BREAK */
    overflow-wrap: break-word !important; /* ✅ THÊM OVERFLOW WRAP */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.oms-orders-table thead th:last-child {
    border-right: none;
}

/* Table Body */
.oms-orders-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.oms-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.oms-orders-table tbody tr.paid {
    background: #d4edda;
}

.oms-orders-table tbody tr.paid:hover {
    background: #c3e6cb;
}

.oms-orders-table tbody td {
    padding: 14px 12px;
    font-size: clamp(12px, 1.2vw, 14px); /* Tự động scale font */
    color: #495057;
    vertical-align: middle;
    word-wrap: break-word; /* Wrap text dài */
    word-break: break-word; /* Break word nếu quá dài */
    overflow-wrap: break-word; /* Wrap ở bất kỳ điểm nào */
    hyphens: auto; /* Tự động thêm gạch nối */
}

/* ========================================
   COLUMN WIDTH - FIXED %
======================================== */

.col-checkbox {
    width: 5%;
    text-align: center !important;
}

.col-code {
    width: 11%;
}

.col-date {
    width: 12%;
}

.col-reason {
    width: 28%; /* Column này sẽ wrap nếu text dài */
}

.col-amount {
    width: 13%;
    text-align: right;
}

.col-status {
    width: 18%;
}

.col-actions {
    width: 13%;
    text-align: center;
}

/* Amount Value */
.amount-value {
    font-weight: 700;
    color: #e74c3c;
    font-size: clamp(13px, 1.3vw, 15px); /* Tự động scale */
    white-space: nowrap;
}

/* ========================================
   STATUS BADGES
======================================== */

.status-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.status-badge.paid {
    background: #28a745;
    color: #fff;
}

.status-badge.pending {
    background: #ffc107;
    color: #000;
}

.status-badge.partner-paid {
    background: #28a745;
    color: #fff;
    font-size: clamp(9px, 0.9vw, 11px); /* Nhỏ hơn 1 chút */
}

.status-badge.partner-pending {
    background: #ff9800;
    color: #fff;
    font-size: clamp(9px, 0.9vw, 11px); /* Nhỏ hơn 1 chút */
}

.status-time {
    font-size: clamp(8px, 0.85vw, 10px); /* Tự động scale */
    opacity: 0.9;
    font-weight: 500;
}

/* ========================================
   ACTION BUTTONS
======================================== */

.action-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: auto;
}

.btn-pay {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 8px;
    font-size: clamp(10px, 1vw, 12px); 
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    margin: 0;
    height: auto;
    min-height: auto;
    width: auto;
}

.btn-pay.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-pay.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-pay.btn-partner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
}

.btn-pay.btn-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    color: #fff;
}

/* ========================================
   PAYMENT SUMMARY (Sticky Bottom)
======================================== */

.oms-payment-summary {
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    z-index: 100;
    bottom: 10px
}

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

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.summary-info {
    color: #fff;
    font-size: 15px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.summary-info strong {
    font-weight: 700;
}

.summary-info span {
    font-weight: 700;
    font-size: 17px;
    color: #ffd700;
}

.summary-item {
    white-space: nowrap;
}

.btn-pay-multiple {
    padding: 12px 28px !important;
    background: #ffd700 !important;
    color: #1a1a1a !important;
    border: 2px solid #ffed4e !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
    white-space: nowrap;
    margin: 0 !important; /* ✅ FIX KHOẢNG TRẮNG */
    height: auto !important; /* ✅ FIX HEIGHT */
    min-height: auto !important; /* ✅ FIX MIN HEIGHT */
}

.btn-pay-multiple:hover {
    background: #ffed4e !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
    border-color: #fff !important;
}

/* ========================================
   CHECKBOX STYLES
======================================== */

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* ========================================
   EMPTY STATE
======================================== */

.empty-state {
    text-align: center !important;
    padding: 60px 20px !important;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.empty-text {
    font-weight: 600;
    font-size: 16px;
    color: #6c757d;
}

/* ========================================
   LINK STYLES
======================================== */

.page-content a {
    text-decoration: none !important;
}

/* ========================================
   RESPONSIVE - LARGE SCREEN (1400px+)
======================================== */

@media (min-width: 1400px) {
    /* Giữ font size tối đa ở màn hình lớn */
    .oms-orders-table thead th {
        font-size: 13px;
    }
    
    .oms-orders-table tbody td {
        font-size: 14px;
    }
    
    .amount-value {
        font-size: 15px;
    }
    
    .status-badge {
        font-size: 12px;
    }
    
    .btn-pay {
        font-size: 12px;
    }
}

/* ========================================
   RESPONSIVE - TABLET (768px - 1024px)
======================================== */

@media (max-width: 1024px) {
    .oms-orders-table thead th {
        padding: 12px 10px;
        font-size: clamp(10px, 1vw, 12px);
    }
    
    .oms-orders-table tbody td {
        padding: 12px 10px;
        font-size: clamp(11px, 1.1vw, 13px);
    }
    
    .col-reason {
        width: 26%; /* Thu nhỏ lại 1 chút */
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: clamp(9px, 0.95vw, 11px);
    }
    
    .btn-pay{
        padding: 8px 14px;
        font-size: clamp(9px, 0.95vw, 11px);
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 767px)
======================================== */

@media (max-width: 767px) {
    
.btn-pay.btn-primary {
background:green;
box-shadow: 0 4px 12px rgba(102, 234, 104, 0.4);
}
    /* Filter Section */
    .oms-filter {
        padding: 15px;
    }
    
    .oms-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .oms-filter select,
    .oms-locked-input {
        width: 100%;
        min-width: auto;
    }
    
    /* Table Container */
    .oms-table-container {
        border-radius: 8px;
        overflow-x: visible; /* Cho phép card layout */
    }
    
    /* Hide default table structure, use card layout */
    .oms-orders-table {
        table-layout: auto; /* Reset table-layout cho mobile */
    }
    
    .oms-orders-table thead {
        display: none;
    }
    
    .oms-orders-table,
    .oms-orders-table tbody,
    .oms-orders-table tr,
    .oms-orders-table td {
        display: block;
        width: 100%;
    }
    
    .oms-orders-table tbody tr {
        margin-bottom: 16px;
        border: 2px solid #dee2e6;
        border-radius: 12px;
        padding: 0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .oms-orders-table tbody tr.paid {
        border-color: #28a745;
        background: #d4edda;
    }
    
    .oms-orders-table tbody tr:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    
    .oms-orders-table tbody td {
        position: relative;
        padding: 12px 16px;
        text-align: right;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px; /* Fixed font cho mobile */
        word-wrap: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
    
    .oms-orders-table tbody td:last-child {
        border-bottom: none;
    }
    
    /* Add label before content */
    .oms-orders-table tbody td:before {
        content: attr(data-label);
        font-weight: 700;
        color: black;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        flex-shrink: 0;
    }
    
    /* Checkbox column - special layout */
    .col-checkbox {
        justify-content: center;
        padding: 10px 16px;
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }
    
    .col-checkbox:before {
        display: none;
    }
    
    /* Code column - prominent */
    .col-code {
        font-size: 16px;
        padding: 14px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border-bottom: none;
    }
    
    .col-code strong {
        color: #fff;
        font-size: 17px;
    }
    
    .col-code:before {
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Amount column */
    .col-amount {
        text-align: right;
    }
    
    .amount-value {
        font-size: 16px;
    }
    
    /* Status container - adjust for mobile */
    .status-container {
        align-items: flex-end;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-left: 50px;
    }
    
    .status-badge.partner-paid,
    .status-badge.partner-pending {
        font-size: 10px;
    }
    
    /* Action buttons - full width */
    .col-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        background: #f8f9fa;
    }
    
    .col-actions:before {
        margin-bottom: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-pay {
        width: 50% !important; /* ✅ GIỮ WIDTH 50% */
        min-width: fit-content !important;
        text-align: center;
        padding: 10px 16px !important;
        font-size: clamp(12px, 1vw, 14px) !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    /* Payment Summary */
    .summary-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .summary-info {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }
    
    .btn-pay-multiple {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Empty state */
    .empty-state {
        padding: 40px 20px !important;
    }
    
    .empty-icon {
        font-size: 48px;
    }
    
    .empty-text {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
======================================== */

@media (max-width: 480px) {
    .oms-orders-wrapper {
        margin: 15px 0;
    }
    
    .oms-filter {
        padding: 12px;
        border-radius: 8px;
    }
    
    .oms-table-container {
        border-radius: 8px;
    }
    
    .oms-orders-table tbody tr {
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .oms-orders-table tbody td {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .col-code {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .col-code strong {
        font-size: 16px;
    }
    
    .oms-payment-summary {
        padding: 15px;
        border-radius: 10px;
    }
    
    .summary-info {
        font-size: 13px;
    }
    
    .btn-pay-multiple {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}

/* Share Link Button Styles - GIỐNG HỆT NÚT THANH TOÁN */
.btn-share {
    display: inline-block !important;
    padding: 8px 14px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: clamp(9px, 0.95vw, 12px) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: auto !important;
    width: auto !important;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
}

.btn-share:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(23,162,184,0.4) !important;
    color: #fff !important;
}

.btn-share-multiple {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
    border: 2px solid #17a2b8 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(23,162,184,0.3) !important;
    white-space: nowrap !important;
    margin: 0 10px 0 0 !important;
    height: auto !important;
    min-height: auto !important;
}

.btn-share-multiple:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(23,162,184,0.5) !important;
    border-color: #138496 !important;
}

.summary-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.btn-partner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: #fff !important;
}

.btn-partner:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .btn-share {
        padding: 10px 16px !important;
        font-size: clamp(11px, 1vw, 13px) !important;
        width: 50% !important;
        min-width: fit-content !important;
    }

    .summary-actions {
        flex-direction: row !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .btn-share-multiple,
    .btn-pay-multiple {
        width: auto !important;
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 10px 5px !important;
    }
}

/* ========================================
   SHARE LINK MODAL - Modern & Beautiful
======================================== */

.oms-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    animation: omsModalFadeIn 0.3s ease-out;
}

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

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

.oms-share-modal-content {
    position: relative;
    max-width: 600px;
    margin: 10% auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: omsModalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes omsModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.oms-share-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oms-share-modal-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.oms-share-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none  !important;
    color: #fff  !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.oms-share-modal-close:hover {
    background: rgba(255, 255, 255, 0.3)  !important;
    transform: rotate(90deg);
}

.oms-share-modal-body {
    padding: 24px;
}

.oms-share-modal-body label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.oms-share-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

#oms-share-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
}

#oms-share-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-copy-modal {
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.btn-copy-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

.btn-copy-modal:active {
    transform: translateY(0);
}

.oms-share-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 20px;
}

.oms-share-status.copying {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffc107 !important;
}

.oms-share-status.success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #28a745 !important;
}

.oms-share-status.error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #dc3545 !important;
}

.oms-share-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

.oms-share-modal-footer small {
    display: block;
    color: #6c757d !important;
    font-size: 12px;
    text-align: center;
    margin: 0;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 767px) {
    .oms-share-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .oms-share-modal-header {
        padding: 16px 20px;
    }

    .oms-share-modal-header h3 {
        font-size: 18px;
    }

    .oms-share-modal-body {
        padding: 20px;
    }

    .oms-share-input-wrapper {
        flex-direction: column;
    }

    #oms-share-input {
        font-size: 13px;
    }

    .btn-copy-modal {
        width: 100%;
        padding: 14px 20px;
    }

    .oms-share-modal-footer {
        padding: 12px 20px;
    }

    .oms-share-modal-footer small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .oms-share-modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .oms-share-modal-header h3 {
        font-size: 16px;
    }

    #oms-share-input {
        padding: 10px 12px;
        font-size: 12px;
    }
}









/* ========================================
   CUSTOM CHECKBOX - White BG + Black Mark
======================================== */

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checked State - Black Check Mark */
input[type="checkbox"]:checked {
    background: #fff;
    border-color: #667eea;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Indeterminate State - Black Minus */
input[type="checkbox"]:indeterminate {
    background: #fff;
    border-color: #667eea;
}

input[type="checkbox"]:indeterminate::after {
    content: "−";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Disabled State */
input[type="checkbox"]:disabled {
    background: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Focus State */
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}


/* ========================================
   TOAST NOTIFICATIONS - Modern & Beautiful
======================================== */

/* ========================================
   TOAST NOTIFICATIONS - ULTRA WOW Edition 🔥
======================================== */

/* Container với stacking effect */
#oms-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
}

/* Base Toast - Glassmorphism + Glow */
.oms-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 360px;
    max-width: 480px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateX(450px) scale(0.8) rotate(5deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    overflow: hidden;
    cursor: pointer;
}

/* Show Animation */
.oms-toast-show {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    animation: toastBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastBounce {
    0% { 
        transform: translateX(450px) scale(0.8) rotate(5deg);
        opacity: 0;
    }
    60% { 
        transform: translateX(-15px) scale(1.05) rotate(-2deg);
    }
    80% { 
        transform: translateX(5px) scale(0.98) rotate(1deg);
    }
    100% { 
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Progress Bar - Auto countdown */
.oms-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform-origin: left;
    animation: toastProgress 3s linear forwards;
    border-radius: 0 0 16px 16px;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Glow Effect Behind Toast */
.oms-toast::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(30px);
    opacity: 0.6;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Icon với animation */
.oms-toast-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    animation: iconPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-5deg);
    }
}

/* Message */
.oms-toast-message {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.6;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* ====================================
   TOAST TYPES - Vibrant Colors
==================================== */

/* SUCCESS - Green Glow */
.oms-toast-success {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(209, 250, 229, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 
        0 20px 60px rgba(16, 185, 129, 0.3),
        0 10px 30px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.oms-toast-success::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}
.oms-toast-success::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent);
}
.oms-toast-success .oms-toast-icon {
    color: #059669;
    animation: iconPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), iconGlow 2s ease-in-out infinite;
}
.oms-toast-success .oms-toast-message {
    color: #065f46;
}

/* ERROR - Red Glow */
.oms-toast-error {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 226, 226, 0.98) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 20px 60px rgba(239, 68, 68, 0.3),
        0 10px 30px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.oms-toast-error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}
.oms-toast-error::after {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4), transparent);
}
.oms-toast-error .oms-toast-icon {
    color: #dc2626;
    animation: iconPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), iconShake 0.5s ease-in-out;
}
.oms-toast-error .oms-toast-message {
    color: #991b1b;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-10deg); }
    50% { transform: translateX(8px) rotate(10deg); }
    75% { transform: translateX(-8px) rotate(-10deg); }
}

/* WARNING - Orange Glow */
.oms-toast-warning {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 
        0 20px 60px rgba(245, 158, 11, 0.3),
        0 10px 30px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.oms-toast-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}
.oms-toast-warning::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4), transparent);
}
.oms-toast-warning .oms-toast-icon {
    color: #d97706;
    animation: iconPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), iconBounce 1s ease-in-out infinite;
}
.oms-toast-warning .oms-toast-message {
    color: #92400e;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* INFO - Blue Glow */
.oms-toast-info {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.3),
        0 10px 30px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.oms-toast-info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}
.oms-toast-info::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
}
.oms-toast-info .oms-toast-icon {
    color: #2563eb;
    animation: iconPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), iconGlow 2s ease-in-out infinite;
}
.oms-toast-info .oms-toast-message {
    color: #1e40af;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15)); }
    50% { filter: drop-shadow(0 4px 16px currentColor); }
}

/* ====================================
   HOVER & INTERACTIONS
==================================== */
.oms-toast:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.oms-toast:hover::after {
    opacity: 0.8;
}

.oms-toast:active {
    transform: translateY(-2px) scale(1);
}

/* ====================================
   MOBILE RESPONSIVE - WOW EDITION
==================================== */
@media (max-width: 767px) {
    #oms-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        gap: 12px;
    }
    
    .oms-toast {
        min-width: auto;
        max-width: none;
        width: calc(100% - 24px);
        margin: 0 auto;
        padding: 16px 18px;
        border-radius: 18px;
        transform: translateY(-100px) scale(0.9);
        box-shadow: 
            0 15px 45px rgba(0, 0, 0, 0.25),
            0 8px 20px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .oms-toast-show {
        transform: translateY(0) scale(1);
        animation: toastSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes toastSlideDown {
        0% { 
            transform: translateY(-100px) scale(0.9);
            opacity: 0;
        }
        60% { 
            transform: translateY(10px) scale(1.03);
        }
        80% { 
            transform: translateY(-5px) scale(0.99);
        }
        100% { 
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
    
    .oms-toast-icon {
        font-size: 26px;
    }
    
    .oms-toast-message {
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Swipe indicator hint */
    .oms-toast::after {
        opacity: 0.7;
        animation: mobileGlow 2s ease-in-out infinite;
    }
    
    @keyframes mobileGlow {
        0%, 100% { 
            opacity: 0.7;
            transform: translate(-50%, -50%) scale(1);
        }
        50% { 
            opacity: 0.9;
            transform: translate(-50%, -50%) scale(1.05);
        }
    }
}

@media (max-width: 480px) {
    #oms-toast-container {
        top: 8px;
        right: 8px;
        left: 8px;
        gap: 10px;
    }
    
    .oms-toast {
        width: calc(100% - 16px);
        padding: 14px 16px;
        border-radius: 16px;
        border-width: 2px;
    }
    
    .oms-toast-icon {
        font-size: 24px;
    }
    
    .oms-toast-message {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.5;
    }
    
    /* Extra glow for small screens */
    .oms-toast::before {
        height: 3px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .oms-toast {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .oms-toast-icon {
        font-size: 22px;
    }
    
    .oms-toast-message {
        font-size: 12px;
    }
}

/* ====================================
   STACKING ANIMATION
==================================== */
.oms-toast:nth-child(1) { 
    z-index: 100;
}
.oms-toast:nth-child(2) { 
    z-index: 99;
    margin-top: -8px;
    transform: translateY(8px) scale(0.98);
    opacity: 0.9;
}
.oms-toast:nth-child(3) { 
    z-index: 98;
    margin-top: -16px;
    transform: translateY(16px) scale(0.96);
    opacity: 0.8;
}
.oms-toast:nth-child(4) { 
    z-index: 97;
    margin-top: -24px;
    transform: translateY(24px) scale(0.94);
    opacity: 0.7;
}
.oms-toast:nth-child(5) { 
    z-index: 96;
    margin-top: -32px;
    transform: translateY(32px) scale(0.92);
    opacity: 0.6;
}

/* Exit Animation */
.oms-toast-exit {
    animation: toastExit 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes toastExit {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateX(450px) scale(0.7) rotate(10deg);
    }
}

/* Ripple effect on click */
.oms-toast:active::before {
    animation: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
    transform: scaleX(1);
    transition: transform 0.6s ease-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .oms-toast {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(148, 163, 184, 0.3);
    }
    
    .oms-toast-message {
        color: #e2e8f0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}











