:root {
    --primary-color: #14466a;
    --secondary-color: #2c76aa;
    --tertiary-color: #14466a;
    --success-color: #2a9e43;

}


/* Customer Login & OTP Styles & Profile */
body {
    font-family: 'Roboto', sans-serif !important;
}

/* =========================================
   1. Wrapper & Card (Shared)
   ========================================= */
.login-section-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 15px 50px;
    position: relative;
}

.login-section-wrapper::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 40px 50px;
    width: 100%;
    max-width: 480px;
    /* Default for login/otp */
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
}

/* Profile specific card override */
.profile-card-width {
    max-width: 1000px;
    /* Wider for profile form */
}

/* =========================================
   2. Headers
   ========================================= */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #7d7d7d;
    font-size: 15px;
    margin-bottom: 0;
}

/* =========================================
   3. Form Elements (Inputs & Labels)
   ========================================= */
.form-group {
    margin-bottom: 25px;
    position: relative;
    text-align: left;
    display: block !important;
    width: 100%;
}

.custom-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block !important;
    width: 100%;
    float: none;
}

.custom-label span {
    color: #dc3545;
}

.form-control-custom {
    display: block;
    width: 100%;
    height: 40px;
    padding: 12px 15px 12px 15px;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    color: #495057;
    background-color: #f8f9fa;
    background-clip: padding-box;
    border: 1px solid #e1e4e8;
    border-radius: 0px;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.form-control-custom:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--success-color);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Icon Support */
.input-with-icon .form-control-custom {
    padding-left: 15px;
}
/* .input-with-icon .form-control-custom {
    padding-left: 45px;
} */

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.form-control-custom:focus+.input-icon,
.form-control-custom:focus~.input-icon {
    color: var(--success-color);
}

/* Textarea override */
textarea.form-control-custom {
    height: auto;
    padding-top: 15px;
}

/* File Input override */
input[type="file"].form-control-custom {
    padding-top: 10px;
}

/* =========================================
   4. Buttons
   ========================================= */
.btn-custom-primary {
    background: #2b9e42;
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    margin-top: 20px;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
    color: white;
    /* Ensure text stays white */
    text-decoration: none;
}

.btn-link-custom {
    color: #14466a;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-link-custom:hover {
    text-decoration: underline;
    color: #2c76aa;
}

.btn-link-custom:disabled {
    color: #a0a0a0;
    cursor: not-allowed;
    text-decoration: none;
}

/* Google Button */
.btn-google-custom {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    color: #333;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-google-custom:hover {
    background-color: #f8f9fa;
    border-color: #d1d5db;
    text-decoration: none;
    color: #333;
}

/* =========================================
   5. OTP Specific
   ========================================= */
.otp-box {
    text-align: center;
    letter-spacing: 15px;
    font-size: 24px;
    font-weight: bold;
    padding-left: 15px;
}

/* =========================================
   6. Utilities & Dividers
   ========================================= */
.divider-custom {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 500;
}

.divider-custom::before,
.divider-custom::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider-custom::before {
    margin-right: 15px;
}

.divider-custom::after {
    margin-left: 15px;
}

/* Alerts */
.alert-custom {
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 15px;
    margin-bottom: 25px;
    border: none;
}

.alert-success-custom {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger-custom {
    background-color: #f8d7da;
    color: #842029;
}

/* Footer text */
.login-footer-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 30px;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .profile-card-width {
        max-width: 100%;
    }
}

/* =========================================
   7. Profile Image Upload (Re-added & Refined)
   ========================================= */
.profile-image-container {
    display: inline-block;
    /* Changed from flex center for the new layout */
    margin-bottom: 0;
}

.profile-image-wrapper {
    position: relative;
    width: 100px;
    /* Slightly smaller for the header layout */
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin: 0;
}

.profile-image-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-wrapper:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-overlay i {
    color: #fff;
    font-size: 24px;
}

/* Permanent Camera Badge - Always Visible */
.profile-camera-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.profile-camera-badge i {
    color: #fff;
    font-size: 14px;
}

/* Header with Profile Image Layout */

.profile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.profile-header-text {
    text-align: left;
}

.profile-header-text h2 {
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 700;
}

.profile-header-text p {
    margin-bottom: 0;
    color: #777;
}

@media (max-width: 576px) {
    .profile-header-container {
        flex-direction: column-reverse;
        /* Image on top? Or Title on top? Usually Image on top for profile is nice, but user asked for "left image right" - actually "title left, image right". On mobile, stack them. */
        text-align: center;
        gap: 20px;
    }

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

.mobile_country{
    padding-left: 90px !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    font-size: 15px;
}
.iti__selected-flag {
    border-radius: 15px 0 0 15px;
}

/* =========================
   PAGE HEADER
========================= */
/* HEADER WRAPPER */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 24px 15px;
    border-radius: 18px;
    /* box-shadow: 0 8px 24px rgba(0,0,0,0.05); */
    margin-bottom: 0px;
}

/* LEFT */
.orders-header-left h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.orders-subtext {
    font-size: 14px;
    color: #6b7280;
}

/* RIGHT */
.orders-header-right {
    text-align: right;
}

.orders-btn {
    display: inline-block;
    background: #111827;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
}

.orders-btn:hover {
    background: #000000;
}

.orders-credit {
    font-size: 13px;
    color: #374151;
}

/* MOBILE */
@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .orders-header-right {
        text-align: left;
    }
}

/* =========================
   FILTER BAR
========================= */
/* =========================
   FILTER BAR CONTAINER
========================= */
.orders-filter {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px 16px;
}

/* INNER LAYOUT */
.orders-filter-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   SEARCH INPUT
========================= */
.filter-search {
    flex: 1;
    min-width: 260px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.filter-search:focus {
    outline: none;
    background: #ffffff;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* =========================
   DROPDOWN
========================= */
.filter-select {
    height: 42px;
    min-width: 180px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    background: #ffffff;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .orders-filter-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search,
    .filter-select {
        width: 100%;
        flex:auto;
    }
}

/* =========================
   TABLE STYLE
========================= */
#ordersTable {
    border-collapse: separate;
    border: 1px solid #ccc;
    /* border-spacing: 0 10px; */
}

#ordersTable thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    border-bottom: none !important;
}

#ordersTable tbody tr {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border-radius: 12px;
    transition: all 0.25s ease;
}

#ordersTable tbody tr:hover {
    background: #f9fafb;
}
/* #ordersTable tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
} */

/* #ordersTable tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#ordersTable tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
} */

#ordersTable td {
        vertical-align: middle;
        padding: 30px 15px !important;
        border-bottom: 1px solid #ccc;
        border-radius: 0;
}
#detailServices{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
#detailReports .btn {
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
}

@media (max-width: 768px) {

    .orders-header {
        padding: 18px;
    }

    .orders-header h2 {
        font-size: 22px;
    }

    .filter-search {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    #detailServices {
        grid-template-columns: 1fr;
    }
}

/* ======================
   ORDER HEADER
====================== */
.oj-header-card {
    background: #15466a;
    /* background: linear-gradient(135deg, #2563eb, #1e40af); */
    border-radius: 16px;
    padding: 22px 26px;
    color: #ffffff;
    margin: 15px 0;
}
.oj-card{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.oj-back{
    display: flex;
    gap: 20px;
    align-items: center;
}
.oj-title {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0;
}

.oj-order-id {
    font-size: 14px;
    opacity: 0.9;
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 30px;
}


/* ======================
   SUMMARY GRID
====================== */
/* WRAPPER */
.oj-summary-grid {
    margin-bottom: 34px;
}

/* SINGLE CARD */
.oj-summary-box {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff, #fafafa);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ROW LAYOUT */
.oj-summary-row-layout {
    display: flex;
    align-items: center;
}

/* EACH COLUMN */
.oj-summary-item {
    flex: 1;
    padding: 0 14px;
    border-right: 1px solid #e5e7eb;
}

/* REMOVE LAST BORDER */
.oj-summary-item:last-child {
    border-right: none;
}

/* LABEL */
.oj-summary-item span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.4px;
}

/* VALUE */
.oj-summary-item h5 {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* MOBILE STACK */
@media (max-width: 768px) {
    .oj-summary-row-layout {
        flex-direction: column;
        gap: 14px;
    }

    .oj-summary-item {
        border-right: none;
        padding: 0;
        width: 100%;
    }
}


/* ======================
   SECTIONS
====================== */
.oj-section {
    margin: 15px;
}

.oj-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-left: 12px;
}

.oj-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 4px;
}


/* ======================
   SERVICES
====================== */
.oj-service-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.oj-service-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.oj-service-meta {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin: 14px 0;
}
.oj-service-card p ,.oj-service-card ul li{font-size: 15px;}


/* ======================
   REPORTS
====================== */
.oj-reports-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.oj-reports-grid a {
    background: #22c55e;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.oj-reports-grid a:hover {
    background: #16a34a;
}


/* ======================
   BACK BUTTON
====================== */
#backToList {
    border-radius: 30px;
    font-weight: 600;
    padding: 6px 10px;
    color: #000;
}

/* MAIN SERVICE BLOCK */
.oj-main-service {
    width: 100%;
    margin-bottom: 5px;
}

/* MAIN TITLE */
.oj-main-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2b9e42;
}

/* SERVICE GRID */
.oj-service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* EACH CARD – 33% */
.oj-service-card {
    width: calc(33.333% - 10px);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.oj-service-card:hover {
    transform: translateY(-2px);
}
.myprofile-top{
    padding: 120px 15px 50px;
}
#orderDetailView{ padding: 10px 25px;}
.order-row td a{color: #337ab7 !important;font-weight: bold;}
/* MOBILE */
@media (max-width: 992px) {
    .oj-service-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .oj-service-card {
        width: 100%;
    }
    .myprofile-top {
        padding: 40px 0px 50px;
    }
    .oj-summary-item span {
        font-size: 14px;
    }
    .oj-summary-item h5 {
        font-size: 13px;
    }
    #orderDetailView {
        padding: 10px;
    }
    .oj-card {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .oj-back {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
}
/* LINKS GRID */
.oj-links-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); */
    gap: 12px;
    margin-top: 12px;
}

/* LINK CARD */
.oj-link-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.oj-link-card:hover {
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* URL */
.oj-link-url a {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none;
    word-break: break-all;
}

.oj-link-url a:hover {
    text-decoration: underline;
}

/* META */
.oj-link-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 15px;
    color: #374151;
    flex-direction: column;
    gap: 6px;
}
