/*
    Theme Name: Audditio
    Theme URI: https://audditio.com/
    Description: Audditio is multipurpose proffesional wordpress theme, desined to develope any kind of website using wordpress. It also works like a framework with many prebuild functionality which will make a developer's life easy.
    Author: MyCodeGarden
    Author URI: https://mycodegarden.org/
    Tags: wordpress, theme, woocommerce, blog, developer, framework, multipurpose, proffesional, ecommerce
    Requires at least: 5.0
    Tested up to: 5.4
    Requires PHP: 7.0
    Text Domain: audditio
    Version: 0.0.1
    */

.field-msg,
.field-error,
.error-input {
    float: left;
    color: #F00;
    width: 100%;
    font-size: 12px;
}

.right {
    float: right;
}

/* ==========================================================================
   Email Verification Styles
   ========================================================================== */
.email-verification-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f8fafc;
    min-height: 100vh;
    width: 100%;
}
.verification-card {
    background: #ffffff;
    max-width: 550px;
    width: 100%;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}
.verification-icon-wrap {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 25px auto;
}
.verification-icon-wrap.success-icon-wrap {
    background: #f0fdf4;
    color: #16a34a;
}
.animated-envelope {
    animation: float 3s ease-in-out infinite;
}
.animated-checkmark {
    animation: pulse 2s infinite;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}
.verification-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.verification-card p.subtitle {
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
}
.verification-card p.description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
}
.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.actions-wrapper .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.actions-wrapper .resend-verification-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.actions-wrapper .resend-verification-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.actions-wrapper .success-btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}
.actions-wrapper .success-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}
.actions-wrapper .logout-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    text-decoration: none;
}
.actions-wrapper .logout-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

/* ==========================================================================
   Add Warehouse Modal Styles
   ========================================================================== */
body.popup_opened {
    overflow: hidden;
}
.popup_wrap.aud_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.popup_wrap.aud_popup .popup_row {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.popup_wrap.aud_popup .warehouse_modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}
.popup_wrap.aud_popup .warehouse_modal h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-align: left;
}
.popup_wrap.aud_popup .warehouse_modal .close_warehouse_popup {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s;
    text-decoration: none;
}
.popup_wrap.aud_popup .warehouse_modal .close_warehouse_popup:hover {
    color: #374151;
}

/* Compact the form spacing */
.popup_wrap.aud_popup .form-group {
    margin-bottom: 8px;
}
.popup_wrap.aud_popup .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

/* Override theme input heights in modal */
.popup_wrap.aud_popup .form-group input,
.popup_wrap.aud_popup .form-group select {
    padding: 10px 12px !important;
    font-size: 13px;
}

/* Align checkbox group inline with input height */
.popup_wrap.aud_popup .default_checkbox_group {
    justify-content: flex-end;
    padding-bottom: 8px;
    height: 36px;
}
.popup_wrap.aud_popup .checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}
.popup_wrap.aud_popup .checkbox_label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Style textarea to look like theme's inputs */
.popup_wrap.aud_popup textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    resize: none;
}
.popup_wrap.aud_popup textarea:focus {
    border-color: var(--primary-color);
}

/* Form actions positioning */
.popup_wrap.aud_popup .form_actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.popup_wrap.aud_popup .form_actions .btn {
    padding: 10px 24px;
    font-size: 13px;
}
.popup_wrap.aud_popup .field-msg.error {
    margin-top: 4px;
    color: #ef4444;
    text-align: left;
}
.popup_wrap.aud_popup .error-input {
    border-color: #ef4444 !important;
}

/* ==========================================================================
   Warehouse List Popup styles
   ========================================================================== */
.popup_wrap.aud_popup[data-popup="warehouse_list"] .popup_row {
    max-width: 850px;
}
.warehouse_list_container {
    max-height: 380px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.wh_list_table_wrap {
    width: 100%;
    overflow-x: auto;
}
.wh_list_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #374151;
    background: #fff;
}
.wh_list_table th,
.wh_list_table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.wh_list_table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 10;
}
.wh_list_table tr:hover {
    background: #f8fafc;
}
.wh_badge.default {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.btn_select_wh {
    padding: 6px 12px !important;
    font-size: 12px !important;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn_select_wh:hover {
    background: var(--secondary-color);
}
.no_wh_msg {
    padding: 30px 0;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

/* Support Page Styles */

/* FAQ Section */
.faq-card {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.faq-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    margin-top: 0;
}

.section-desc {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 74, 230, 0.05);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 74, 230, 0.08);
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-item.active .faq-question {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.faq-question i {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px 24px;
    border-top: 1px solid transparent;
    background: #ffffff;
}

.faq-item.active .faq-answer {
    border-top: 1px solid #f1f5f9;
}

.faq-answer p {
    margin: 15px 0 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Sidebar Contact Cards */
.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.08);
}

.contact-card.info-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.contact-card.info-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
}

.contact-card.info-card p {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.contact-card.detail-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 18px;
}

.contact-icon.bg-blue {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.contact-icon.bg-green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.contact-icon.bg-orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.contact-text {
    flex-grow: 1;
}

.contact-text h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.contact-text p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.contact-text .phone-num,
.contact-text .email-addr {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-text .phone-num a,
.contact-text .email-addr a {
    color: #0f172a;
    transition: color 0.2s ease;
    text-decoration: none;
}

.contact-text .phone-num a:hover,
.contact-text .email-addr a:hover {
    color: var(--primary-color);
}

.contact-text .card-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-text .address-text {
    line-height: 1.5;
    color: #475569;
}

/* Bulk Order Page Layout */
.bulk_order_page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

.bulk-card {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Bulk actions button row */
.bulk-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.bulk-actions-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    height: 48px;
    box-sizing: border-box;
}

/* Download Sample file styling */
.download-sample-wrap {
    margin-bottom: 25px;
}

.download-sample-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.download-sample-link:hover {
    color: var(--secondary-color);
}

/* Choose Express Type select spacing */
.select-express-group, .choose-type-group {
    margin-bottom: 25px;
}

.select-express-group select {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.select-express-group select:focus {
    border-color: var(--primary-color);
}

/* Choose type: Courier Selection checkbox button */
.courier-selection-wrap {
    margin-top: 10px;
}

.checkbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    user-select: none;
}

.checkbox-btn input {
    display: none;
}

.checkbox-btn span {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkbox-btn input:checked + span {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.checkbox-btn input:checked + span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* Instructions and Notes styling */
.instructions-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    margin-top: 30px;
}

.instructions-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.instructions-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 12px;
}

.instructions-section p strong {
    color: var(--secondary-color);
}

.notes-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.notes-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 15px;
}

.notes-card ol {
    margin: 0;
    padding-left: 20px;
}

.notes-card ol li {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 15px;
}

/* ==========================================================================
   Courier Slip Settings & 50/50 Live Preview Layout
   ========================================================================== */
.content_wrap.settings_designer_wrap,
.settings_designer_wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: start;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.designer_left,
.designer_right {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.designer_right {
    position: sticky;
    top: 24px;
}

.designer_alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.designer_alert.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.designer_card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 28px;
    box-sizing: border-box;
}

.designer_section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.designer_section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.designer_section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-top: 0;
    margin-bottom: 16px;
}

/* Designer Card Form Styles */
.designer_card .form-group {
    margin-bottom: 18px;
}

.designer_card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #475569);
    margin-bottom: 6px;
}

.designer_card .form-group input[type="text"],
.designer_card .form-group select,
.designer_card .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main, #0f172a);
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.designer_card .form-group textarea {
    resize: vertical;
    min-height: 75px;
}

.designer_card .form-group input[type="text"]:focus,
.designer_card .form-group select:focus,
.designer_card .form-group textarea:focus {
    border-color: var(--primary-color, #111827);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.designer_card .form-group input[type="file"] {
    display: block;
    width: 100%;
    font-size: 13px;
    color: var(--text-muted, #475569);
}

.designer_card .form-group input[type="file"]::file-selector-button {
    border: 1px solid var(--border-color, #cbd5e1);
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #f8fafc;
    color: var(--text-main, #334155);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.designer_card .form-group input[type="file"]::file-selector-button:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.current_logo_preview {
    margin-top: 10px;
}
.current_logo_preview small {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}
.current_logo_preview img {
    max-height: 40px;
    border: 1px solid var(--border-color, #cbd5e1);
    padding: 4px;
    border-radius: 6px;
    background: #f8fafc;
    display: block;
}

/* Toggle Switch Styles */
.toggle_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.toggle_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #334155);
    position: relative;
    padding-left: 48px;
    min-height: 22px;
}

.toggle_item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle_slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.toggle_slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle_item input:checked + .toggle_slider {
    background-color: var(--primary-color, #111827);
}

.toggle_item input:checked + .toggle_slider::before {
    transform: translateX(16px);
}

.toggle_label {
    line-height: 22px;
}

.designer-save-btn {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    background: var(--primary-color, #111827);
    border: 1px solid var(--primary-color, #111827);
    color: #ffffff;
    transition: background 0.2s ease;
}

.designer-save-btn:hover {
    background: var(--primary-hover, #1e293b);
}

/* Live Preview Panes (50% Space) */
.preview_header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview_container {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 580px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Courier Slip Layout Core */
.slip_preview_sheet, .print_slip_sheet {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
    color: #000000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Live Preview Sheet - Wider Layout with subtle edge gap */
.slip_preview_sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

.slip_preview_sheet.size-4x6 {
    width: 100% !important;
    min-height: 600px;
    padding: 20px 22px;
}

.slip_preview_sheet.size-4x3 {
    width: 100% !important;
    min-height: 390px;
    padding: 14px 18px;
}

.slip_preview_sheet.size-3x5 {
    width: 100% !important;
    max-width: 90% !important;
    min-height: 520px;
    padding: 16px 18px;
}

.slip_preview_sheet.size-A5 {
    width: 100% !important;
    min-height: 700px;
    padding: 24px 28px;
}

/* Print Slip Sheet - Exact Physical Paper Dimensions */
.print_slip_sheet.size-4x6 {
    width: 4in;
    min-height: 6in;
    padding: 15px;
}

.print_slip_sheet.size-4x3 {
    width: 4in;
    min-height: 3in;
    padding: 8px 12px;
}

.print_slip_sheet.size-3x5 {
    width: 3in;
    min-height: 5in;
    padding: 8px;
}

.print_slip_sheet.size-A5 {
    width: 148mm;
    min-height: 210mm;
    padding: 25px;
}

.print_slip_sheet + .print_slip_sheet {
    page-break-before: always;
    break-before: page;
}

@media print {
    body.print-slip-body { background: #fff !important; }
    .print_slip_sheet {
        margin: 0 auto !important;
        box-shadow: none !important;
        page-break-after: always;
        break-after: page;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .print_slip_sheet:last-of-type {
        page-break-after: auto;
        break-after: auto;
    }
}

/* Font Sizing scale */
.slip_preview_sheet.font-small, .print_slip_sheet.font-small {
    font-size: 11.5px;
}
.slip_preview_sheet.font-medium, .print_slip_sheet.font-medium {
    font-size: 13.5px;
}
.slip_preview_sheet.font-large, .print_slip_sheet.font-large {
    font-size: 15.5px;
}

/* Compact type and spacing for the narrow 3x5 shipping label. */
.print_slip_sheet.size-3x5.font-small { font-size: 10px; }
.print_slip_sheet.size-3x5.font-medium { font-size: 11px; }
.print_slip_sheet.size-3x5.font-large { font-size: 12px; }

/* A 4x3 label needs compact vertical spacing while retaining 4-inch width. */
.print_slip_sheet.size-4x3.font-small { font-size: 9px; }
.print_slip_sheet.size-4x3.font-medium { font-size: 10px; }
.print_slip_sheet.size-4x3.font-large { font-size: 11px; }

.print_slip_sheet.size-4x3 .slip_header_logo,
.print_slip_sheet.size-4x3 .slip_barcode_wrap,
.print_slip_sheet.size-4x3 .slip_info_block,
.print_slip_sheet.size-4x3 .slip_addresses_block,
.print_slip_sheet.size-4x3 .slip_products_block,
.print_slip_sheet.size-4x3 .slip_cod_block {
    margin-bottom: 4px;
    padding-bottom: 3px;
}

.print_slip_sheet.size-4x3 .slip_addresses_block { line-height: 1.15; }
.print_slip_sheet.size-4x3 .addr_label { margin-bottom: 1px; }
.print_slip_sheet.size-4x3 .addr_val { font-size: 0.82em; }

.print_slip_sheet.size-3x5 .slip_header_logo {
    padding-bottom: 5px;
    margin-bottom: 6px;
}

.print_slip_sheet.size-3x5 .logo_txt { font-size: 1.2em; }
.print_slip_sheet.size-3x5 .badge_txt { padding: 1px 6px; }

.print_slip_sheet.size-3x5 .slip_barcode_wrap,
.print_slip_sheet.size-3x5 .slip_info_block,
.print_slip_sheet.size-3x5 .slip_addresses_block,
.print_slip_sheet.size-3x5 .slip_products_block {
    margin-bottom: 7px;
    padding-bottom: 6px;
}

.print_slip_sheet.size-3x5 .slip_info_block { gap: 2px; line-height: 1.25; }
.print_slip_sheet.size-3x5 .slip_addresses_block { line-height: 1.25; }
.print_slip_sheet.size-3x5 .addr_label { margin-bottom: 2px; }
.print_slip_sheet.size-3x5 .addr_val { font-size: 0.86em; }

/* Inner Sections */
.preview_logo_section, .slip_header_logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.logo_placeholder, .logo_txt {
    font-weight: 900;
    font-size: 1.3em;
    letter-spacing: -0.5px;
}

.badge_preview, .badge_txt {
    border: 2px solid #000;
    padding: 2px 8px;
    font-weight: 900;
    font-size: 0.85em;
    text-transform: uppercase;
}

/* Barcode */
.preview_barcode_section, .slip_barcode_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
}

.mock_barcode {
    display: flex;
    gap: 1.5px;
    height: 40px;
    width: 90%;
    margin-bottom: 4px;
}

.barcode_line {
    background: #000;
    height: 100%;
}

.barcode_line.thin { width: 1.5px; }
.barcode_line.medium { width: 3px; }
.barcode_line.thick { width: 5px; }

.mock_awb, .awb_text {
    font-weight: 800;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.barcode_svg svg {
    display: block;
    /* The generator fits whole modules to the slip; never rescale the bars. */
    max-width: none;
    height: 18mm;
    margin: 0 auto 5px;
    color-rendering: optimizeSpeed;
    shape-rendering: crispEdges;
}

@media print {
    .barcode_svg svg {
        /* Avoid print rasterisation and interpolation that soften bar edges. */
        image-rendering: pixelated;
        shape-rendering: crispEdges;
    }
}

/* Order Info */
.preview_order_details, .slip_info_block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
    line-height: 1.4;
}

/* Addresses Grid */
.preview_shipper_consignee_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
}

.preview_shipper, .preview_consignee {
    font-size: 0.9em;
    line-height: 1.4;
}

.preview_shipper {
    border-right: 1px dashed #000;
    padding-right: 10px;
}

.grid_title, .addr_label {
    display: block;
    font-weight: 800;
    font-size: 0.8em;
    text-decoration: underline;
    margin-bottom: 4px;
}

.slip_addresses_block {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
    line-height: 1.4;
}

.addr_val {
    font-size: 0.9em;
}

/* Compact labels have very little vertical space. Scale only long addresses,
   leaving normal addresses and larger label formats unchanged. */
.size-3x5 .preview_shipper.address-compact,
.size-3x5 .preview_consignee.address-compact,
.print_slip_sheet.size-3x5 .addr_val.address-compact {
    font-size: 0.72em;
    line-height: 1.2;
}

.size-3x5 .preview_shipper.address-tight,
.size-3x5 .preview_consignee.address-tight,
.print_slip_sheet.size-3x5 .addr_val.address-tight {
    font-size: 0.62em;
    line-height: 1.12;
}

.size-3x5 .preview_shipper,
.size-3x5 .preview_consignee,
.print_slip_sheet.size-3x5 .addr_val {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Products Table */
.preview_products, .slip_products_block {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
}

.preview_prod_table, .slip_table {
    width: 100%;
    border-collapse: collapse;
}

.preview_prod_table th, .slip_table th {
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    font-weight: 800;
    font-size: 0.85em;
}

.preview_prod_table td, .slip_table td {
    padding: 6px 0;
    font-size: 0.85em;
    line-height: 1.3;
}

/* COD Indicator */
.preview_cod_section, .slip_cod_block {
    margin-bottom: 7px;
    padding-bottom: 7px;
    border-bottom: 1px dashed #000;
}

.slip_cod_block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cod_amount_box {
    border: 2px solid #000;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cod_label, .cod_title {
    font-weight: 800;
    font-size: 0.8em;
}

.cod_val {
    font-weight: 900;
    font-size: 1.5em;
}

.barcode_svg {
    width: 100%;
    overflow: visible;
    line-height: 0;
}

.code128_barcode {
    display: block;
    max-width: none;
    min-height: 0;
    flex-shrink: 0;
}

.slip_barcode_wrap {
    break-inside: avoid;
    page-break-inside: avoid;
    flex-shrink: 0;
}

.barcode_print_error {
    line-height: 1.3;
    text-align: center;
    font-weight: bold;
}

.cod_val_amt {
    font-weight: 900;
    font-size: 1.15em;
    white-space: nowrap;
}

.cod_val_mode {
    font-weight: 900;
    font-size: 1em;
    margin-left: 4px;
}

.print_slip_sheet.size-3x5 .slip_cod_block {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.slip_shipping_cost {
    display: block;
    white-space: nowrap;
    margin-bottom: 7px;
    padding-bottom: 7px;
    line-height: 1.2;
}

.slip_shipping_cost strong,
.slip_shipping_cost span {
    display: inline;
}

/* Footer message */
.preview_footer, .slip_footer_block {
    text-align: center;
    font-size: 0.8em;
    line-height: 1.4;
    padding-top: 5px;
}

/* JS helper toggle class */
.slip_preview_sheet .hide {
    display: none !important;
}

/* Printable Page Adjustments */
body.print-slip-body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.tracking-back-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pincode-status {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
}
.pincode-status.checking { color: #64748b; }
.pincode-status.valid { color: #15803d; }
.pincode-status.invalid { color: #dc2626; }
.pincode-status.unverified { color: #b45309; }
.rate-calc-form input.pincode-valid { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.1); }
.rate-calc-form input.pincode-invalid { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.1); }
.rate-calc-form input.pincode-unverified { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.1); }
/* ==========================================================================
   Tracking Page Styles
   ========================================================================== */
.tracking_dashboard_wrap{
    padding: 0 20px;
}
.public-tracking-wrapper {
    background: radial-gradient(circle at top right, #f1f5f9, #f8fafc);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.public-tracking-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.public-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.public-logo img {
    height: 40px;
    object-fit: contain;
}

.login-nav-btn {
    font-size: 14px;
    padding: 8px 18px !important;
}

.public-hero {
    text-align: center;
    margin-bottom: 40px;
}

.public-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.public-hero p {
    font-size: 16px;
    color: #64748b;
}

/* Dashboard spacing adjustments */
/* .tracking_dashboard_wrap {
    padding-top: 20px;
} */

.tracking-hero {
    margin-bottom: 25px;
}

/* Tracking Search Card */
.tracking-search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 18px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 52px !important;
    font-size: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
    outline: none;
    height: auto !important;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color, #2563eb);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.track-submit-btn {
    padding: 16px 30px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    background-color: var(--primary-color, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-submit-btn:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
}

/* Error Block */
.tracking-error-card {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 35px;
}

.tracking-error-card .error-icon-wrap {
    font-size: 36px;
    color: #ef4444;
    margin-bottom: 12px;
}

.tracking-error-card h3 {
    margin: 0 0 8px 0;
    color: #991b1b;
    font-size: 18px;
    font-weight: 700;
}

.tracking-error-card p {
    color: #b91c1c;
    margin: 0;
    font-size: 14px;
}

/* Welcome Tracker Block */
.tracking-welcome-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.tracking-welcome-card .welcome-image {
    font-size: 64px;
    color: var(--primary-color, #2563eb);
    margin-bottom: 24px;
    opacity: 0.85;
}

.tracking-welcome-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.tracking-welcome-card p {
    font-size: 15px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Results Tracking Cards */
.tracking-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

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

.card-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header .badge.pending { background: #fef3c7; color: #d97706; }
.card-header .badge.pickup-scheduled { background: #e0f2fe; color: #0284c7; }
.card-header .badge.in-transit { background: #e0e7ff; color: #4f46e5; }
.card-header .badge.out-for-delivery { background: #fae8ff; color: #c026d3; }
.card-header .badge.delivered { background: #dcfce7; color: #15803d; }
.card-header .badge.cancelled { background: #fee2e2; color: #b91c1c; }

.courier-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-header .header-right {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
}

.card-header .header-right strong {
    color: #0f172a;
}

/* Timeline Graphics */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.timeline-progress-bar {
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #cbd5e1;
    z-index: 1;
}

.timeline-progress-fill {
    height: 100%;
    background: var(--primary-color, #2563eb);
    transition: width 0.4s ease-in-out;
}

.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
}

.timeline-step .step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.timeline-step.active .step-icon {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 0 2px var(--primary-color, #2563eb), 0 0 12px rgba(37,99,235,0.4);
}

.timeline-step.active:last-of-type .step-icon {
    background: #22c55e;
    box-shadow: 0 0 0 2px #22c55e, 0 0 12px rgba(34,197,94,0.4);
}

.timeline-step .step-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.timeline-step.active .step-label {
    color: #0f172a;
    font-weight: 700;
}

.timeline-step .step-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Timeline notices for Special Statuses */
.timeline-cancelled-notice, .timeline-failed-notice {
    text-align: center;
    padding: 20px 0;
}

.cancelled-icon, .failed-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.cancelled-icon { color: #ef4444; }
.failed-icon { color: #f97316; }

.timeline-cancelled-notice h4, .timeline-failed-notice h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.timeline-cancelled-notice p, .timeline-failed-notice p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Details Grid */
.tracking-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.details-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-card h3 i {
    color: var(--primary-color, #2563eb);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.5;
}

.details-item .detail-label {
    color: #64748b;
    font-weight: 500;
}

.details-item .detail-val {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.details-item .detail-val.text-primary {
    color: var(--primary-color, #2563eb);
}

/* Live Activity Scan History Card */
.scan-history-card {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.scan-history-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.scan-history-list {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color, #e2e8f0);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.scan-history-item {
    position: relative;
}
.scan-dot {
    position: absolute;
    left: -27px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--border-color, #e2e8f0);
}
.scan-history-item.latest-scan .scan-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.scan-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.scan-title {
    font-size: 14px;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.scan-code-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.scan-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    flex-wrap: wrap;
}
.scan-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Public Footer */
.public-tracking-footer {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 13px;
}

/* ==========================================================================
   Rate Calculator Styles
   ========================================================================== */
.calculator_wrap {
    padding: 0 20px;
}
   .calc-hero {
    margin-bottom: 25px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.calc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.calc-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.rate-calc-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.rate-calc-form .form-row.dimensions-row {
    margin-bottom: 15px;
}

.rate-calc-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rate-calc-form .form-group.half {
    width: 50%;
}

.rate-calc-form .form-group.third {
    width: 33.33%;
}

.rate-calc-form label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.rate-calc-form label .required {
    color: #ef4444;
}

.rate-calc-form input, .rate-calc-form select {
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    height: auto !important;
}

.rate-calc-form input:focus, .rate-calc-form select:focus {
    border-color: var(--primary-color, #2563eb);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.dimensions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.dimensions-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.volumetric-info-tip {
    font-size: 11px;
    color: #64748b;
    cursor: help;
    display: flex;
    align-items: center;
    gap: 4px;
}

.calc-btn {
    width: 100%;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none !important;
    background: var(--primary-color, #2563eb) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: background 0.2s;
}

.calc-btn:hover {
    background: #1d4ed8 !important;
}

/* Results Panel Placeholder */
.results-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.results-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.calc-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    margin: auto;
    max-width: 320px;
    padding: 40px 0;
}

.calc-placeholder .placeholder-icon {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.calc-placeholder h3 {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.calc-placeholder p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Loading/Error states in Results */
.calc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 40px 0;
}

.calc-loading i {
    font-size: 40px;
    color: var(--primary-color, #2563eb);
    margin-bottom: 16px;
}

.calc-loading p {
    font-size: 14px;
    color: #475569;
}

.calc-error-box {
    background: #fff5f5;
    border: 1px solid #ffe3e3;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin: auto;
    max-width: 380px;
}

.calc-error-box i {
    font-size: 32px;
    color: #ef4444;
    margin-bottom: 12px;
}

.calc-error-box p {
    font-size: 14px;
    color: #c53030;
    margin: 0;
    line-height: 1.5;
}

/* Active Results Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.results-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.courier-rates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 5px;
}

.courier-rate-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.courier-rate-card:hover {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 4px 12px rgba(37,99,235,0.06);
    transform: translateY(-2px);
}

.courier-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.courier-avatar {
    width: 124px;
    height: 58px;
    flex: 0 0 124px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--primary-color, #2563eb);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.courier-avatar img {
    width: 112px;
    height: 46px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.courier-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.courier-info .badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.courier-info .badge.express { background: #dcfce7; color: #15803d; }
.courier-info .badge.surface { background: #f1f5f9; color: #475569; }
.courier-info .badge.air { background: #e0f2fe; color: #0369a1; }

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

.courier-pricing .price {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.shipping-charge-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   Profile Settings Page Styles
   ========================================================================== */
.content_wrap.profile_settings_wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 0 24px 40px;
    width: 100%;
}

.profile_sidebar_column {
    width: 320px;
    flex-shrink: 0;
}

.profile_main_column {
    flex: 1;
    min-width: 0;
}
.profile_summary_card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.profile_avatar_wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}
.profile_avatar_circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--sidebar-bg, #131927);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
}
.profile_avatar_circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar_upload_badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: var(--primary-color, #111827);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
}
.avatar_upload_badge:hover {
    background: var(--accent-color, #e53935);
    transform: scale(1.08);
}
.profile_name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 4px;
}
.profile_email {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin-bottom: 14px;
    word-break: break-all;
}
.profile_badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.badge_role {
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-main, #0f172a);
    padding: 4px 10px;
    border-radius: 20px;
}
.badge_verified {
    font-size: 12px;
    font-weight: 600;
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 20px;
}
.profile_divider {
    border: 0;
    height: 1px;
    background: var(--border-light, #f1f5f9);
    margin: 18px 0;
}
.kyc_verification_status {
    text-align: left;
    margin-bottom: 20px;
}
.kyc_verification_status h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light, #94a3b8);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.kyc_status_list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kyc_status_list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light, #f1f5f9);
    font-size: 13px;
    color: var(--text-main, #0f172a);
}
.kyc_status_list li:last-child {
    border-bottom: none;
}
.content_wrap.profile_settings_wrap .card a {
    text-align: center;
}
.status_tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}
.status_tag.verified {
    background: #dcfce7;
    color: #15803d;
}
.status_tag.pending {
    background: #fef3c7;
    color: #b45309;
}
.status_tag.optional {
    background: #f1f5f9;
    color: var(--text-muted, #64748b);
}
.outline_btn.w-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.outline_btn.w-full:hover {
    background: #f8fafc;
    border-color: var(--primary-color, #111827);
}
.profile_tabs_bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.profile_tab_btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.profile_tab_btn:hover {
    background: #f8fafc;
    color: var(--text-main, #0f172a);
    border-color: #cbd5e1;
}
.profile_tab_btn.active {
    background: var(--primary-color, #111827);
    color: #ffffff;
    border-color: var(--primary-color, #111827);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}
.profile_section_card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.tab_pane {
    display: none;
}
.tab_pane.active {
    display: block;
}
.section_title_wrap {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.section_title_wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section_title_wrap p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
}
.form_grid {
    display: grid;
    gap: 18px;
    margin-bottom: 16px;
}
.form_grid.two_col {
    grid-template-columns: 1fr 1fr;
}
.form_grid.three_col {
    grid-template-columns: 1fr 1fr 1fr;
}

.badge_inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}
.input_disabled {
    background: #f8fafc !important;
    color: var(--text-muted, #64748b) !important;
    cursor: not-allowed;
    border-color: var(--border-color, #e2e8f0) !important;
}
.field_help {
    font-size: 12px;
    color: var(--text-light, #94a3b8);
}
.input_with_icon {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    overflow: hidden;
}
.input_prefix {
    padding: 10px 12px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color, #e2e8f0);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}
.input_with_icon input {
    border: none !important;
    border-radius: 0 !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #111827) !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}
.profile_form_footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.primary_btn.save_profile_btn {
    background: var(--primary-color, #111827);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
    transition: all 0.2s ease;
}
.primary_btn.save_profile_btn:hover {
    background: var(--primary-hover, #1e293b);
    transform: translateY(-1px);
}
.profile_alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.profile_alert.success_alert {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.profile_alert.error_alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   Change Password Page Styles
   ========================================================================== */
.content_wrap.change_password_wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 0 24px 40px;
    width: 100%;
}

.password_main_column {
    flex: 1;
    min-width: 0;
}

.password_sidebar_column {
    width: 340px;
    flex-shrink: 0;
}

.password_card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.card_header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.content_wrap.change_password_wrap .card a {
    text-align: center;
}
.icon_bubble {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    color: var(--primary-color, #111827);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.card_header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 4px;
}
.card_header p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
}
.password_input_wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password_input_wrap input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main, #0f172a);
    background: var(--card-bg, #ffffff);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}
.password_input_wrap input:focus {
    border-color: var(--primary-color, #111827) !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}
.toggle_pwd_btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light, #94a3b8);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.toggle_pwd_btn:hover {
    color: var(--text-main, #0f172a);
}
.pwd_strength_meter {
    margin-top: 6px;
    display: none;
}
.meter_bar {
    width: 100%;
    height: 6px;
    background: var(--border-color, #e2e8f0);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.bar_fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}
.strength_text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}
.pwd_requirements {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.req_item {
    font-size: 12px;
    color: var(--text-light, #94a3b8);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.req_item.valid {
    color: var(--success-color, #10b981);
}
.req_item.valid i {
    color: var(--success-color, #10b981);
}
.form_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light, #f1f5f9);
}
.primary_btn.save_pwd_btn {
    background: var(--primary-color, #111827);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
    transition: all 0.2s ease;
}
.primary_btn.save_pwd_btn:hover {
    background: var(--primary-hover, #1e293b);
    transform: translateY(-1px);
}
.outline_btn {
    padding: 11px 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.outline_btn:hover {
    background: #f8fafc;
    border-color: var(--primary-color, #111827);
}
.password_alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.password_alert.success_alert {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.password_alert.error_alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.security_tips_card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.security_tips_card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.security_tips_card h3 i {
    color: var(--primary-color, #111827);
}
.security_tips_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.security_tips_list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tip_icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary-color, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tip_content strong {
    display: block;
    font-size: 13px;
    color: var(--text-main, #0f172a);
    margin-bottom: 2px;
}
.tip_content p {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.4;
}
.card_divider {
    border: 0;
    height: 1px;
    background: var(--border-light, #f1f5f9);
    margin: 20px 0;
}
.security_summary_box h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light, #94a3b8);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.summary_row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 12px;
}
.summary_row span {
    color: var(--text-muted, #64748b);
}
.summary_row strong {
    color: var(--text-main, #0f172a);
    font-size: 13px;
}
.need_help_box {
    margin-top: 18px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.need_help_box i {
    font-size: 18px;
    color: var(--primary-color, #111827);
}
.need_help_box p {
    margin: 2px 0 0;
}
.need_help_box a {
    color: var(--primary-color, #111827);
    text-decoration: none;
    font-weight: 600;
}
.need_help_box a:hover {
    text-decoration: underline;
}

.content_wrap.profile_settings_wrap .card a,
.content_wrap.change_password_wrap .card a {
    text-align: center;
}
