:focus {
  outline: 0;
}

::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
  background-color: #F5F5F5;
}

::-webkit-scrollbar{
  width:8px;
  background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb{
  background-color: #000000;
}


.loading {
  display: none;
  position: fixed;
  top:60px;
  right: 20px;
  z-index:999999;
}

.wallet-card .wallet-footer .webcame{
  display:inline-block;
  text-align: center;
  align-items: flex-start;
  justify-content: space-between;
  margin:auto;
}

.wallet-card .wallet-footer .webcame canvas {
    width:600px;
    height:auto;
    border-radius: 10px;
    overflow:hidden;
}


div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
    float: right;
}


/* --------------------------------
    Pagination
-----------------------------------*/
div.dataTables_paginate ul.pagination{
  float: right;
}
div.dataTables_info {
    padding-top: 8px;
    padding-left: 10px;
    white-space: nowrap;
}

.pagination>li>a, .pagination>li>span {
  margin: 0 1px;
  color: #333;
  padding:5px 10px;
  line-height:33px;
  font-weight:500;
  font-size:14px;
  background-color: #FFFFFF;
  border:solid 1px #eee;
}

.pagination>li>a:hover{
    color: #ffffff;
    background:#1B3155;
    border-color:#1B3155;
}

.pagination>li:first-child>a, .pagination>li:first-child>span{
    margin-left: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius:20px;
}

.pagination>li:last-child>a, .pagination>li:last-child>span {
    border-top-right-radius: 20px;
    border-bottom-right-radius:20px;
}

.pagination>.active>a, .pagination>.active>a:focus,
.pagination>.active>a:hover, .pagination>.active>span,
.pagination>.active>span:focus, .pagination>.active>span:hover {
    z-index: 2;
    color: #ffffff;
    cursor: default;
    background:#1B3155;
    border-color:#1B3155;
  
}
.avatar-section {
  position: relative;
}
.avatar-section input[type="file"] {
  display: inline-block;
  opacity: 0;
  position: absolute;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 30px;
  padding-bottom: 67px;
  width: 85%;
  z-index: 99;
  margin-top: 10px;
  cursor:pointer;
}


/* -----  ID Card -----------*/
.id-card{
  position: relative;
  width:300px;
  height:430px;
  margin:auto;
  border-radius:30px;
  overflow: hidden;
  box-shadow: 0 5px 20px 0 rgb(0 0 0 / 9%);
}

.id-card .body-id-card{
    background:url(../img/bg-id-card.png) no-repeat center;
    height:100%;
    width: 100%;
    padding: 30px;
}

.id-card .body-id-card .avatar{
  margin-bottom: 10px;
}

.id-card .body-id-card h3{
  font-size: 16px;
  text-align: center;
  margin: auto;
}

.id-card .body-id-card p{
  font-size: 14px;
  text-transform: uppercase;
  color: #333333;
  font-weight:600;
}

.id-card .body-id-card .barcode{
  position: relative;
  display: inline-block;
  background:#ffffff;
  height: 155px;
  width: 155px;
  box-shadow: 0 5px 20px 0 rgb(0 0 0 / 9%);
  margin-top: 30px;
  border:solid 2px #ffffff;
  overflow: hidden;
  text-align: center;
}

.id-card .body-id-card .barcode img{
  height:150px;
  width: 150px;
  text-align: center;
  display: inline-block;
}


/* --------- WEBCAME -----------*/
.webcam-capture-body{
  display: inline-block;
  text-align: center;
  margin: auto;
}

.webcam-capture,
.webcam-capture video{
  display: inline-block;
  width:100%!important;
  height: auto!important;
  margin:auto;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
}


.webcam-capture-body .webcam-camera{
  position: relative;
  background:#ffffff;
  padding:20px;
  border:solid 1px #eeeeee;
  border-radius:20px;
  width:100%;
  height: auto;
}

.webcam-capture-body .webcam-camera img{
  width:100%;
  object-fit: cover;
  background: #eeeeee;
  border: solid 1px #eeeeee;
  border-radius: 10px;
  margin-bottom: 10px;
}


.webcam-capture-body  input[type="file"] {
  display: inline-block;
  opacity:0;
  position: absolute;
  margin-left: 0px;
  margin-right: 0px;
  padding-top:15px;
  padding-left:25px;
  width: 100%;
  height: 60px;
  z-index: 99;
  cursor: pointer;
}




.select {
  cursor: pointer;
  background-color: transparent;
  box-shadow: none;
  border: 0px;
  font-size: 15px;
  font-weight: 500;
}

@media only screen and (max-width:690px){
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height:auto;
  }
}
@media only screen and (max-width:480px){
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height:230px;
  }
  
  div.dataTables_filter label {
    float:left;
  }
  div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: 180px;
  }

  .wallet-card {
    padding:10px 15px;
    position: relative;
    z-index: 1;
  }

  .id-card {
      position: relative;
      width:250px;
      height:auto;
      border-radius: 30px;
  }

  .stat-box .value {
      font-size:15px;
  }

  .hidden-sm{
    display: none;
  }
}

@media print {
  .hidden-print {
    display: none !important;
  }
  a[href]:after {
    content: none !important;
  }

 header, footer, aside, nav, form, iframe, .menu, .hero, .adslot{
    display: none;
  }

}


@page:right{
  @bottom-right {
    content: counter(page);
  }
}

@page:left{
  @bottom-left {
    content: counter(page);
  }
}

/* OVERRIDE MAIN THEME COLORS TO BLUE/PASTEL */
:root {
  --theme-blue-dark: #112B47;
  --theme-blue-mid: #5C95D4;
  --theme-pastel: #D3E3F0;
  --bg-danger: #D3E3F0 !important; /* Fix loader background */
}

/* Redefine previous main color (pink/red) which used danger classes */
.bg-danger { background-color: var(--theme-blue-dark) !important; color: #fff !important; }
.btn-danger { background-color: var(--theme-blue-dark) !important; border-color: var(--theme-blue-dark) !important; color: #fff !important; }
.text-danger { color: var(--theme-blue-dark) !important; }

.bg-primary { background-color: var(--theme-blue-mid) !important; color: #fff !important; }
.btn-primary { background-color: var(--theme-blue-mid) !important; border-color: var(--theme-blue-mid) !important; color: #fff !important; }
.text-primary { color: var(--theme-blue-mid) !important; }

/* FRESH DESIGN OVERRIDES */
body { 
    background-color: var(--theme-pastel) !important; 
    font-family: 'Source Sans Pro', sans-serif; 
}
.appHeader { 
    background-color: transparent !important; 
    border-bottom: none !important;
    box-shadow: none !important;
}
.appHeader .left .headerButton ion-icon,
.appHeader .right .headerButton ion-icon {
    color: var(--theme-blue-dark) !important;
}
.appHeader .pageTitle { 
    color: var(--theme-blue-dark) !important; 
    font-weight: bold; 
}
.appCapsule, #appCapsule {
    padding-bottom: 80px; /* Space for bottom nav */
}
.section .card, .card {
    background: #F6F9FA !important; 
    border-radius: 25px !important; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important; 
    border: 2px solid #fff !important;
}
.section-title {
    color: var(--theme-blue-dark) !important;
    font-weight: bold;
}
.form-group.basic .form-control, .form-group.basic .custom-select {
    border-bottom-color: var(--theme-blue-mid);
}

/* STICKY HEADER */
.appHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    transition: all 0.3s ease;
}
.appHeader.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}
.appHeader.scrolled .pageTitle, .appHeader.scrolled .left .headerButton ion-icon, .appHeader.scrolled .right .headerButton ion-icon {
    color: var(--theme-blue-dark) !important;
}

/* MOBILE TABLE AS CARDS */
@media (max-width: 768px) {
    #swdatatable thead { display: none; }
    #swdatatable, #swdatatable tbody, #swdatatable tr { display: block; width: 100%; }
    #swdatatable tr.card-tr { 
        background: #fff; 
        border-radius: 15px; 
        margin-bottom: 15px; 
        padding: 15px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
        border: 1px solid #eee;
    }
    #swdatatable td { 
        display: block !important;
        position: relative;
        border-top: 1px solid #f9f9f9; 
        padding: 12px 0 12px 40%;
        min-height: 45px;
        text-align: right;
        white-space: normal !important;
        word-wrap: break-word;
    }
    #swdatatable td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
        position: absolute;
        left: 0;
        top: 12px;
        width: 35%;
        text-align: left;
    }
    #swdatatable td .right-content {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }
    #swdatatable td .right-content .time-badge,
    #swdatatable td .right-content .status-badge {
        display: inline-block;
        min-width: 80px;
        text-align: center;
    }
    #swdatatable td:first-child { border-top: none; }
    #swdatatable .hidden-sm { display: flex !important; }
    
    /* Fix DataTables wrapper on mobile */
    .dataTables_wrapper { padding: 0 10px; }
    .dataTables_wrapper .row { display: flex; flex-direction: column; gap: 10px; }
    .dataTables_wrapper .col-sm-12 { width: 100%; margin-bottom: 10px;}
    .dataTables_filter { text-align: left !important; }
}
/* RECALL PASIEN STYLES */
#swdatatable-recall td, #swdatatable-recall th {
    padding: 6px 8px;
    font-size: 12px;
}
.status-dropdown {
    height: 28px !important;
    padding: 2px 5px !important;
    font-size: 11px !important;
    border-radius: 4px;
    border: 1px solid #ccc;
}
@media (max-width: 768px) {
    #swdatatable-recall thead {
        display: none;
    }
    #swdatatable-recall tr {
        display: block;
        margin-bottom: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        padding: 8px;
    }
    #swdatatable-recall td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f1f1;
        padding: 4px 0;
        font-size: 11px;
    }
    #swdatatable-recall td:last-child {
        border-bottom: none;
    }
    #swdatatable-recall td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex-basis: 40%;
        text-align: left;
    }
    #swdatatable-recall td .right-content {
        flex-basis: 60%;
        text-align: right;
    }
}

/* FIX APP BOTTOM MENU SYMMETRY */
.appBottomMenu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}
.appBottomMenu .item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.appBottomMenu .item .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.appBottomMenu .action-button-large {
    margin-top: -15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RECALL PASIEN MOBILE CARD LAYOUT */
@media (max-width: 768px) {
    #swdatatable-recall thead {
        display: none !important;
    }
    #swdatatable-recall tbody tr {
        display: block !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    #swdatatable-recall tbody td {
        display: none !important; 
        border: none !important;
        padding: 0 !important;
    }
    /* Only show the first column which contains the mobile card */
    #swdatatable-recall tbody td:nth-child(1) {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }
    .desktop-only {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .mobile-card {
        display: none !important;
    }
    .desktop-only {
        display: inline !important;
    }
}
@media (max-width: 768px) {
    #swdatatable-recall tbody td:nth-child(1)::before {
        display: none !important;
    }
}

/* RECALL PASIEN DATATABLES COMPACT */
.dataTables_wrapper .dataTables_length label, 
.dataTables_wrapper .dataTables_filter label {
    font-size: 12px;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    height: 30px;
    padding: 2px 10px;
    font-size: 12px;
}


/* Fix Ellipsis click */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.dataTables_wrapper .dataTables_paginate .ellipsis {
    cursor: pointer !important;
}

/* RECALL PASIEN DATATABLES SEARCH & LENGTH COMPACT */
.dataTables_wrapper .row:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.dataTables_wrapper .row:first-child .col-sm-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 5px;
}
.dataTables_wrapper .dataTables_length {
    text-align: left !important;
    margin-top: 0 !important;
}
.dataTables_wrapper .dataTables_filter {
    text-align: right !important;
    margin-top: 0 !important;
}
.dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 150px;
    margin-left: 0 !important;
    display: inline-block;
}
.dataTables_wrapper .dataTables_length select {
    width: auto !important;
    display: inline-block;
}
/* FORCE DATATABLES SEARCH AND LENGTH SIDE BY SIDE */
.dataTables_wrapper .row:first-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 5px;
}
.dataTables_wrapper .row:first-child > div {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 5px !important;
}
div.dataTables_wrapper div.dataTables_length {
    text-align: left !important;
    margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_filter {
    text-align: right !important;
    margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_filter label {
    display: flex !important;
    justify-content: flex-end;
    margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_filter input {
    width: 100% !important;
    max-width: 150px;
    margin-left: 0 !important;
}
div.dataTables_wrapper div.dataTables_length select {
    width: auto !important;
    margin: 0 !important;
}

/* RECALL PASIEN MULTI-SELECT STYLES */
.recall-multiselect-wrapper {
    position: relative;
    user-select: none;
}
.recall-multiselect-trigger {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #1B3155;
    border-radius: 12px;
    padding: 5px 10px;
    min-height: 32px;
    font-size: 11px;
    transition: all 0.2s ease;
}
.recall-multiselect-trigger:hover {
    border-color: #0984e3;
}
.recall-multiselect-trigger .selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2d3436;
    font-weight: 500;
}
.recall-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 280px;
    max-width: 360px;
    z-index: 1060;
    background: #ffffff;
    border: 1px solid #dcdde1;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 12px;
    box-sizing: border-box;
}
#wrapper_card_servicetype .recall-multiselect-dropdown,
#dropdown_card_servicetype {
    left: auto !important;
    right: 0 !important;
}
#modal-filter-recall .recall-multiselect-dropdown {
    min-width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
}
.recall-multiselect-search {
    border-radius: 8px;
    font-size: 12px;
    height: 32px;
    margin-bottom: 8px;
}
.recall-multiselect-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    padding: 0 2px;
}
.recall-multiselect-actions a {
    text-decoration: none;
    font-weight: 600;
}
.recall-multiselect-list {
    display: flex !important;
    flex-direction: column !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 0 !important;
    margin: 4px 0 !important;
    gap: 3px !important;
}
.recall-multiselect-list::-webkit-scrollbar {
    width: 6px;
}
.recall-multiselect-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}
.recall-multiselect-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.recall-multiselect-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.recall-multiselect-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    padding: 7px 10px !important;
    margin: 0 0 3px 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 11.5px !important;
    color: #2c3e50 !important;
    background: #fff;
    border: 1px solid #f1f2f6;
    box-sizing: border-box !important;
    transition: all 0.15s ease-in-out !important;
    user-select: none;
}
.recall-multiselect-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.recall-multiselect-item.is-checked {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #1e40af !important;
    font-weight: 600 !important;
}
.recall-multiselect-item.is-hidden {
    display: none !important;
}
.recall-multiselect-item input[type="checkbox"] {
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    accent-color: #1B3155 !important;
}
.recall-multiselect-item .recall-item-label {
    flex: 1 1 auto !important;
    text-align: left !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    white-space: normal !important;
}
.recall-multiselect-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid #e9ecef;
}
.recall-multiselect-footer .btn-close-multiselect {
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 8px;
    background: #1B3155;
    border-color: #1B3155;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}
.recall-multiselect-footer .btn-close-multiselect:hover {
    background: #0984e3;
    border-color: #0984e3;
}
.recall-badge-count {
    background: #1B3155;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

