 :root {
     --primary: #0d6efd;
     --primary-soft: #e8f1ff;
     --success: #0f9d76;
     --success-soft: #e8fbf4;
     --warning-soft: #fff7df;
     --danger-soft: #fdecec;
     --dark: #0f172a;
     --muted: #64748b;
     --bg: #f4f7fb;
     --card-border: #e5eaf3;
     --sidebar-width: 260px;
     --btn-color-main: #012761;
 }

 select,
 table,
 b,
 p,
 span,
 div {
     text-transform: capitalize !important;
 }


 body,
 html {
     font-family: 'Inter', sans-serif;
     background: #f4f6f9;
     overflow-x: hidden;
     font-size: 14px !important;

 }

 .login-sec {
     /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .status-btn {
     padding: 3px 9px;
     font-weight: 500;
     font-size: 12px;
 }

 .bg-color {
     /* background: #0f393b;
          color: white;
          font-size: 14px; */
     background: #012761;
     color: white;
     font-size: 14px;
     border: #002862;
 }

 i {
     font-size: 13px;
 }

 .login-card {
     max-width: 400px;
     width: 100%;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     border: none;
 }

 /* 
       .card-header {
           background: #0f393b;
           color: white;
           text-align: center;
           padding: 22px 0px;
       } */


 .btn-login {
     background: var(--btn-color-main);
     border: none;
     padding: 10px;
     font-weight: bold;
 }

 .sidebar-brand {
     padding: 10px 0;
     border-bottom: 1px solid #e5e5e5;
 }

 .brand-box {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .sidebar-logo {
     max-width: 100px;
     /* logo width control */
     height: auto;
     border-radius: 4px;
 }



 .brand-title {
     font-size: 13px;
     font-weight: 600;
     color: #fff;
 }


 .sidebar {
     /* position: fixed;
           top: 0;
           left: 0;
           width: 250px;
           height: 100vh;
           background: #1f2937;
           transition: 0.3s;
           z-index: 1000; */
     position: fixed;
     inset: 0 auto 0 0;
     width: var(--sidebar-width);
     background: linear-gradient(180deg, #0f172a 0%, #002966 100%);
     color: #fff;
     overflow-y: auto;
     z-index: 1040;
     transition: transform 0.3s ease;
 }

 .sidebar.collapsed {
     width: 70px;
 }


 .sidebar-brand {
     padding: 8px 13px;
     border-bottom: 1px solid rgba(255, 255, 255, 0.4);
 }

 .sidebar-brand .brand-box {
     display: flex;
     align-items: center;
     gap: 0.85rem;
 }

 .brand-icon {
     width: 44px;
     height: 44px;
     border-radius: 12px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: rgba(255, 255, 255, 0.14);
     font-size: 1.15rem;
 }

 .sidebar-brand small {
     color: rgba(255, 255, 255, 0.72);
 }

 /* 
       .sidebar-brand {
           height: 60px;
           display: flex;
           align-items: center;
           justify-content: center;
           color: white;
           font-weight: 600;
           font-size: 18px;
           border-bottom: 1px solid #374151;
       } */

 .sidebar .nav-link {
     color: #ffffff;
     padding: 7px 20px;
     font-size: 14px;
     display: flex;
     align-items: center;
     transition: 0.2s;
 }

 .sidebar .nav-link i {
     width: 22px;
 }

 /* 
 .sidebar .nav-link span {
     margin-left: 10px;
 } */

 /* collapsed text hide */
 .sidebar.collapsed .nav-link span {
     display: none;
 }

 .sidebar .nav-link:hover {
     background: #374151;
     color: white;
 }

 /* .sidebar .nav-link.active {
     background: #0d6efd;
     color: white;
 } */

 /* section heading */
 .sidebar-heading {
     font-size: 12px;
     color: #9ca3af;
     padding: 10px 20px;
     text-transform: uppercase;
 }

 .sidebar.collapsed .sidebar-heading {
     display: none;
 }

 .navbar {
     position: fixed;
     left: 250px;
     top: 0;
     right: 0;
     height: 60px;
     background: #ffffff;
     z-index: 9;
     transition: 0.3s;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 }

 /* collapsed navbar */
 .sidebar.collapsed+.navbar {
     left: 70px;
 }

 /* toggle button */
 .toggle-btn {
     color: #000000;
     font-size: 20px;
     cursor: pointer;
 }

 .main-content {
     margin-top: 57px;
     margin-left: 245px;
     padding: 21px;
     transition: 0.3s;
 }

 .sidebar.collapsed~.main-content {
     margin-left: 70px;
 }

 .nav-pills .nav-link {

     padding: 8px 16px;
     background: #d9dbdd;
     color: #333;
     transition: 0.2s;
 }

 /* card */

 .card {
     /* border-radius: 10px; */
     border: none;

     box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
 }

 @media (max-width: 768px) {
     .sidebar {
         left: -250px;
     }

     .sidebar.show {
         left: 0;
     }

     .navbar {
         left: 0;
     }

     .main-content {
         margin-left: 0;
     }

 }


 ::placeholder {
     font-size: 14px;
     /* Set your desired font size */
 }

 /* Firefox < 19 (older versions) */
 :-moz-placeholder {
     font-size: 14px;
 }

 /* Internet Explorer 10+ (older versions) */
 :-ms-input-placeholder {
     font-size: 14px;
 }

 .metric-card,
 .section-card,
 .info-card {
     background: #fff;
     border: 1px solid var(--card-border);
     border-radius: 18px;
     box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
 }

 .metric-card {
     padding: 1rem;
     height: 100%;
 }

 .metric-card .metric-top {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 1rem;
 }

 .icon-circle {
     width: 44px;
     height: 44px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 12px;
     background: var(--primary-soft);
     color: var(--primary);
     font-size: 1.1rem;
 }

 .metric-card h3 {
     margin: 0.4rem 0 0.2rem;
     font-size: 1.5rem;
     font-weight: 700;
 }

 .metric-card p,
 .soft-text {
     color: var(--muted);
     margin: 0;
 }

 .section-card {
     padding: 1rem 1.1rem;
 }

 .section-card .section-title {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .flow-step {
     display: flex;
     gap: 0.85rem;
     align-items: flex-start;
     padding: 0.8rem 0;
     border-bottom: 1px dashed #e2e8f0;
 }

 .flow-step .step-no {
     width: 34px;
     height: 34px;
     border-radius: 10px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: var(--primary-soft);
     color: var(--primary);
     font-weight: 700;
 }

 .progress {
     height: 9px;
     border-radius: 999px;
     background: #eaf0f7;
 }

 .kpi-line .d-flex {
     margin-bottom: 0.4rem;
 }

 .kpi-line {
     margin-bottom: 18px;
 }

 .badge-status {
     border-radius: 9px;
     /* padding: 0.4rem 0.4rem; */
     font-size: 12px;
     font-weight: 700;
     padding: 3px 9px;
 }

 .status-active,
 .status-completed,
 .status-success {
     background: #d8f8ec !important;
     color: #0f7a5f !important;
 }

 .drop-down-style {
     width: 88px !important;
     border: none;
     font-size: 11.6px !important;
     font-weight: 700 !important;
     border-radius: 9px;
     padding: 3px 3px !important;
 }

 .btn-size {
     padding: 2px 6px !important;
     font-size: 13px !important;
     font-weight: 500 !important;
 }

 .file-upload {
     border: 2px dashed #ced4da;
     border-radius: 12px;
     padding: 20px;
     text-align: center;
     background: #fafafa;
 }

 .service-card {
     background: #ffffff;
     border-radius: 14px;
     padding: 24px;
     box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
 }

 /* Section Title */

 .section-title {
     font-size: 15px;
     font-weight: 600;
     margin-bottom: 14px;
     color: #032558;
     border-left: 4px solid #032558;
     padding-left: 10px;
 }

 /* Info Box */

 .info-box {
     background: #f8f9fa;
     border-radius: 10px;
     padding: 12px 14px;
 }

 .page-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 18px;
 }

 .page-title {
     font-weight: 600;
     font-size: 20px;
     color: #2c3e50;
 }

 /* Card Design */
 .erp-card {
     border-radius: 3px;
     border: none;
     padding: 5px;
     box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
 }



 /* Badge */
 .badge-soft {
     background: #e8f5e9;
     color: #2e7d32;
     font-weight: 500;
 }

 /* Buttons */
 /* .btn-action {
        padding: 3px 10px;
        font-size: 12px;
    } */

 /* Company cell */
 .company-box {
     display: flex;
     flex-direction: column;
 }

 .company-name {
     font-weight: 600;
     color: #000000;
 }

 .company-email {
     font-size: 12px;
     color: #7f8c8d;
 }




 /* Weekday header background */
 .fc .fc-col-header-cell {
     background: #011d55 !important;
     color: white#111827 !important;
     font-weight: 600;
     padding: 5px 0 !important;
     border-color: #e5e7eb !important;
 }

 /* Weekday text */
 .fc .fc-col-header-cell-cushion {
     color: #ffffff !important;
     text-decoration: none !important;
     font-weight: 600;
 }

 /* Top header row border fix */
 .fc .fc-scrollgrid-section-header th {
     border-color: #e5e7eb !important;
 }

 .fc .fc-button:hover {
     background: #f3f4f6;
 }


 .fc .fc-daygrid-day-number {
     color: #000000 !important;
     font-weight: 500;
 }

 .wrapper {
     background: #ffffff;
     padding: 20px;
     border-radius: 16px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
     border: 1px solid #f1f1f1;
 }

 /* Calendar container */
 #calendar {
     min-height: 80vh;
     font-family: "Inter", sans-serif;
 }

 /* Header toolbar */
 .fc .fc-toolbar {
     padding: 10px 0;
     margin-bottom: 10px;
 }

 /* Buttons */
 .fc .fc-button {
     background: #2563eb;
     border: none;
     border-radius: 8px;
     padding: 6px 12px;
     font-weight: 500;
     text-transform: capitalize;
 }

 .fc .fc-button:hover {
     background: #1d4ed8;
 }

 .fc .fc-button:disabled {
     background: #93c5fd;
 }

 /* Active button */
 .fc .fc-button-primary:not(:disabled).fc-button-active {
     background: #111827;
 }

 /* Day cells */
 .fc .fc-daygrid-day {
     transition: 0.2s;
 }

 .fc .fc-daygrid-day:hover {
     background: #f9fafb;
 }

 /* Event styling */
 /* .fc-event {
        border: none;
        border-radius: 8px;
        padding: 4px 6px;
        font-size: 12px;
        font-weight: 500;
        background: green !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    } */
 .btn-xs {
     padding: .125rem .25rem;
     font-size: .75rem;
     line-height: 1.5;
     border-radius: .15rem;
 }

 .fc-event {
     border: none !important;
     border-radius: 8px !important;
     padding: 4px 6px !important;
     font-size: 12px !important;
     font-weight: 500 !important;
 }

 /* Today highlight */
 .fc .fc-day-today {
     background: #eff6ff !important;
 }

 /* Grid lines soft */
 .fc td,
 .fc th {
     border-color: #f3f4f6 !important;
 }

 /* Header title */
 .fc-toolbar-title {
     font-size: 20px;
     font-weight: 600;
     color: #111827;
 }




 .timeline-2 {
     position: absolute;
     left: 7px;
     top: 13px;
     width: 7px;
     height: 7px;
     background: #dc3545;
     border-radius: 50%;
     transform: translateX(-50%);
 }

 .timeline-1 {
     position: absolute;
     left: 7px;
     top: 0;
     bottom: 0;
     width: 1px;
     background: #dcdcdc;
 }




 /* SELECT2 FIX INSIDE MODAL */

 .select2-container {
     width: 100% !important;
 }

 .select2-dropdown {
     z-index: 999999 !important;
 }

 .select2-container--open {
     z-index: 999999 !important;
 }

 .select2-selection--single {
     height: 38px !important;
     padding-top: 4px !important;
 }


 .custom-card {
     border: 1px solid #edf0f5;
 }

 .action-btn {
     background: #f8f9fc;
     border: 1px solid #dfe3eb;
     color: #495057;
     font-weight: 500;
     transition: all 0.2s ease;
     white-space: nowrap;
 }

 .action-btn:hover {
     background: #0d6efd;
     color: #fff;
     border-color: #0d6efd;
 }

 .action-btn i {
     font-size: 14px;
 }

 .client-tabs {
     background: #1f2937;
     border: none;
     margin-top: 15px;
 }

 .client-tabs .nav-link {
     border: none;
     color: #ffffff;
     background: transparent;
     border-radius: 10px;
     padding: 10px 18px;
     font-weight: 500;
     transition: 0.2s ease;
 }

 .client-tabs .nav-link:hover {
     background: rgba(255, 255, 255, 0.08);
     color: #fff;
 }

 .client-tabs .nav-link.active {
     background: #0d6efd;
     color: #fff;
 }




 /* Card Customization */
 .custom-card {
     background: #fff;
     border-radius: 12px;
     border: none;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
     padding: 17px;
     height: 100%;
 }

 .contact-info p {
     margin-bottom: 5px;
     font-size: 0.95rem;
     color: #444;
 }

 .info-value {
     color: #000000;
     font-weight: 600;

 }


 .metrics-container {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 12px;
 }

 .metric-item {
     padding: 12px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     gap: 12px;
     border: 1px solid rgba(0, 0, 0, 0.05);
 }

 .metric-item i {
     font-size: 1.2rem;
 }

 .metric-label {
     font-size: 0.75rem;
     font-weight: 600;
     text-transform: uppercase;
     color: #444;
     margin: 0;
 }

 .metric-value {
     font-weight: 700;
     font-size: 1.1rem;
     margin: 0;
 }

 /* Metric Colors */
 .bg-active {
     background-color: #e8f5e9;
     color: #2e7d32;
 }

 .bg-signed {
     background-color: #e3f2fd;
     color: #1565c0;
 }

 .bg-machines {
     background-color: #fff3e0;
     color: #ef6c00;
 }

 .bg-orders {
     background-color: #efebe9;
     color: #4e342e;
 }

 .bg-complaints {
     background-color: #ffebee;
     color: #c62828;
 }




 /* Action Buttons */
 .btn-action {
     text-align: left;
     background: #fff;
     border: 1px solid #e0e6ed;
     color: #334155;
     margin-bottom: 10px;
     border-radius: 1px;
     font-weight: 500;
     font-size: 13px;
     transition: all 0.2s;
 }

 .btn-action:hover {
     background: #f8fafc;
     border-color: #cbd5e1;
 }

 .btn-action i {
     margin-right: 10px;
     color: #0891b2;
 }

 /* Tabs */


 .bg-complaints2 {
     background-color: #ebedff;
     color: #0012b1;
 }

 /* Timeline */
 .timeline {
     border-left: 2px solid #e2e8f0;
     position: relative;
     list-style: none;
     padding-left: 20px;
 }

 .timeline-item {
     position: relative;
     margin-bottom: 25px;
 }

 .timeline-item::before {
     content: "";
     position: absolute;
     left: -27px;
     top: 5px;
     width: 12px;
     height: 12px;
     border-radius: 50%;
     background: #fff;
     border: 2px solid #0891b2;
 }

 .timeline-date {
     font-size: 0.85rem;
     color: #94a3b8;
     font-weight: 600;
 }

 .timeline-title {
     font-weight: 600;
     margin-bottom: 0;
 }

 .timeline-desc {
     font-size: 0.85rem;
     color: #64748b;
 }