@import url('./font-roboto.css?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('./font-inconsolata.css?family=Inconsolata:wght@200..900&display=swap');
@import url('./font-material.css?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block');

.dotmatrix {
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}
.highlight-change {
    background-color: #e8fbe8; /* light green */
    border-left: 4px solid #4CAF50;
    font-weight: 600;
  }

.permissions-box {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}
/* datatable style */

.material-symbols-outlined {
    font-weight: 400;
    font-variation-settings: "FILL" 0, "GRAD" 0, "opsz" 100;
}

.w3-card,
.w3-card-2 {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06), 0 2px 10px 0 rgba(0, 0, 0, 0.04);
}

.w3-card-1 {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3), 0 2px 10px 0 rgba(0, 0, 0, 0.2) !important;
}
body,
td,
th {
    font-size: 0.9rem;

}

body,
h1,
h2,
h3,
h4,
h5 {
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #333;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: #333;
}
.install-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none; 
  z-index: 1000;
}

.install-alert button {
  margin-top: 10px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #ccc;
    cursor: all-scroll;
}

.logo img {
    width: 100%;
}

.tagline {
    text-align: center;
    color: #aaa;
}

.w3-dropdown {
    display: none;
    min-width: 140px;
    height: auto;
    overflow: auto;
    position: absolute;
    right: 50px;
    z-index: 1001;
}

.header ul {
    list-style: none;
    width: auto;
    padding: 0;
    margin: 0;
    float: right;
}

.header li {
    float: left;
    padding: 0 0 0 25px;
}

.header li span:last-child {
    padding: 3px 0 0 5px;
}

.flat-ul {
    list-style: none;
    height: auto;
    padding: 0;
    margin: 0;
}

.sidebar {
    left: -300px;
    width: 300px;
    transition: 0.3s;
    position: relative;
    z-index: 1002;
}

.flat-ul li {
    float: left;
}

.w3-button,
.w3-input {
    transition: 0.3s;
}

.pad-btn {
    padding-left: 40px;
    padding-right: 40px;
}

a {
    text-decoration: none;
}

h3,
p {
    margin: 0;
}

.resp-menu {
    display: none;
    width: 40px;
    height: 40px;
    float: right;
    text-align: center;
    font-size: 38px;
}

a span,
.w3-button span {
    float: left;
}

.wrapper {
    /* height: 100vh; */
    position: relative;
}

.copyright {
    bottom: 0;
    padding: 6px 0;
}

label {
    color: #444;
}

input::placeholder {
    color: #999 !important;
}

.w3-responsive {
    padding-bottom: 10px;
}

table {
    font-size: 14px;
}

table th,
table td {
    padding: 10px 8px;
    vertical-align: top;
}

table th {
    font-weight: 400 !important;
    min-width: 75px;
}

.fixed-tbl tbody td {
    background-color: #fff;
}

.w3-hoverable tbody tr:hover,
.w3-ul.w3-hoverable li:hover {
    background-color: #eee;
}

.sidebar .active {
    background-color: #eee;
    color: #333 !important;
}

.sidebar .w3-button {
    padding-top: 12px;
    padding-bottom: 12px;
}

.w3-button span:first-child {
    margin-right: 6px;
}

.sidebar .w3-button span:last-child {
    margin-top: 2px;
}

.default_active {
    background-color: #ccc !important;
}

td:last-child .w3-tag {
    font-size: 18px;
}

.dt-buttons {
    padding: 16px 0;
}

.dt-column-title {
    margin-right: 6px;
}

.dt-search {
    min-width: 300px;
    max-width: 400px;
    padding: 0 0 8px;
}

.dt-buttons {
    padding: 8px 0 0 !important;
}

.dt-search input {
    width: 100%;
}

.dt-paging {
    margin: 16px 0;
    text-align: left;
}

.dt-paging button {
    margin: 0 2px;
    padding: 3px 10px !important;
}

.dt-filter-dropdown {
    min-height: 38px;
    padding: 6px 12px !important;
    background-color: white;
}

.dt-filter-dropdown option {
    padding: 8px;
}

.dt-filter-dropdown[multiple] {
    height: auto;
    min-height: 100px;
}

.dataTables_filter input {
    min-width: 250px;
}

#datatable-filters {
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#datatable-filters label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.w3-modal {
    z-index: 1004;
}

.close,
.close2 {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    text-align: center;
}

.close span,
.close2 span {
    float: none !important;
    margin: 1px 0 0 -2px !important;
}

#spinner {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1003;
    background-color: rgba(0, 0, 0, 0.65);
}

.spin_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spin_container .w3-light-grey {
    padding: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: solid 3px;
    border-color: #ddd;
    border-left-color: #343a40 !important;
    border-radius: 50%;
    font-size: 50px;
    animation: spin 2s linear infinite;
}

.table-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.fixed-columns-head {
    position: sticky;
    left: 0;
    z-index: 10;
}

.fixed-columns-head:nth-child(1),
.fixed-columns-head:nth-child(2),
.fixed-columns-head:nth-child(3),
.fixed-columns-head:nth-child(4) {
    background-color: #eef7ff;
}

.fixed-columns {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 10;
}

.fixed-column-1 {
    left: 0;
    width: 40px;
}

.fixed-column-2 {
    left: 40px;
     width: auto;
     /* border: 1px solid red; */
}
td{
    font-size: 12px;
   
}
th{
    font-size: 12px;
    
}
.fixed-column-3 {
    left: 115px;
     width: auto;
}

.fixed-column-4 {
    left: 170px;
}

.display th:nth-child(4),
.display td:nth-child(4) {
    border-right: 2px solid #ec116c;
}

.showhide_pane {
    position: relative;
}

.show_hide {
    position: absolute;
    right: 16px;
    top: 34px;
    cursor: pointer;
}

.login-banner,
.login-pannel {
    height: 100vh;
    background-color: #18191A;
}

.login-pannel h1 {
    font-weight: 700;
    color: #aaa;
}

.lp {
    background-color: #242526;
}

.lp input {
    background-color: #242526 !important;
    border: solid 2px #374151 !important;
    color: #fff !important;
}

.lp input::placeholder {
    color: #aaa;
}

.login-banner {
    background: url(../imgs/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 600px) {

    body,
    td,
    th {
        font-size: 0.88rem;

    }

    .dt-buttons .dt-button span {
        float: none;
    }

    .dt-buttons .dt-button {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .filters .w3-input {
        margin: 0 0 6px;
        width: 100%;
        float: left;
    }

    .fixed-columns-head,
    .fixed-columns {
        position: relative;
        left: 0;
        z-index: 10;
    }

    .w3-ft {
        width: 100%;
    }
}

.w3-ft {
    padding: 0 6px 0 0;
}

@media screen and (max-width: 992px) {
    .lp {
        margin: 50px auto auto !important;
    }

    .menu,
    .login-banner {
        display: none;
    }

    .resp-menu {
        display: block;
    }

    .wrapper {
        height: 100%;
    }

    .copyright {
        width: 100%;
        position: relative;
    }

    .header li {
        float: left;
        padding: 10px 0 0 16px;
    }

    .wrapper {
        margin-left: 0 !important;
    }

    /* .filters .w3-input {
        margin: 0 2px 6px;
        width: calc((100% / 2) - 4px);
    } */
}

.w3-light-grey {
    min-height: 100%;
    background: #ffffff;
    background-image: linear-gradient(to bottom, #f2f2ff, #eef7ff 80%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.w3-gradient {
    background: linear-gradient(to right, #e95362, #f98652);
    color: #fff !important;
}

/* .filters input, */
.filters select {
    margin-right: 6px;
    width: calc((100% - 42px) / 8);
    float: left;
}

.filters select:last-of-type {
    margin-right: 0;
}

#dt-dropdown-filters {
    padding: 0 !important;
}

#dt-dropdown-filters select {
    margin: 8px 0 0 !important;
    width: calc((100% / 6) - 3px) !important;
}

.dt-filter-dropdown:not([value=""]) {
    color: #777 !important;
}

.dt-filter-dropdown:hover {
    color: #333 !important;
}

.dt-filter-dropdown option[value=""] {
    color: #999 !important;
    font-style: italic !important;
}

.dt-filter-dropdown option:not([value=""]) {
    color: #333 !important;
}

#dt-dropdown-filters label {
    display: none !important;
}

.apexcharts-canvas {
    height: 250px;
}

.apexcharts-legend {
    max-height: 280px !important;
}

.apexcharts-legend-text {
    font-size: 10px !important;
}

.truncate-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* chart */
#chart1,
#donutChart1,
#chart2,
#donutChart2,
#chart3,
#donutChart3 {
    position: relative;
    width: 100%;
    height: 100%;
}

.apexcharts-legend {
    max-height: 100% !important;
    overflow-y: auto !important;
}

.apexcharts-legend-series {
    display: flex !important;
    align-items: center !important;
    margin: 4px 0 !important;
}

.apexcharts-legend::-webkit-scrollbar {
    width: 3px;
}

.apexcharts-legend::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.apexcharts-legend::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.apexcharts-legend::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 480px) {
    .apexcharts-legend {
        padding: 5px !important;
        max-height: 120px !important;
    }

    .apexcharts-legend-series {
        margin: 2px 0 !important;
    }
}

@media (max-width: 360px) {
    .apexcharts-legend {
        max-height: 100px !important;
        padding: 3px !important;
    }

    .apexcharts-legend-series {
        margin: 1px 0 !important;
    }
}

#chart2,
#donutChart2 {
    position: relative;
    width: 100%;
    height: 100%;
}

.apexcharts-legend {
    max-height: 100% !important;
    overflow-y: auto !important;
    padding-right: 5px !important;
}

.apexcharts-legend-series {
    display: flex !important;
    align-items: center !important;
    margin: 4px 0 !important;
    min-width: fit-content !important;
}

.apexcharts-legend::-webkit-scrollbar {
    width: 3px;
}

.apexcharts-legend::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.apexcharts-legend::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.apexcharts-legend::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.apexcharts-legend-text {
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

@media (max-width: 480px) {
    .apexcharts-legend {
        padding: 5px !important;
        max-height: 120px !important;
    }

    .apexcharts-legend-series {
        margin: 2px 0 !important;
    }
}

@media (max-width: 360px) {
    .apexcharts-legend {
        max-height: 100px !important;
        padding: 3px !important;
    }

    .apexcharts-legend-series {
        margin: 1px 0 !important;
    }

    .apexcharts-legend-text {
        font-size: 7px !important;
    }
}

.mask {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.chartbox {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.chartbox .w3-col.m6.w3-padding-small {
    display: flex;
}

.charts {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dt-search {
    padding-top: 16px;
}

.dt-search label {
    display: none;
}




/* Smooth horizontal scroll only when enabled */
.dataTables_wrapper {
  -webkit-overflow-scrolling: touch;
}

/* Prevent fixed columns from breaking layout */
table.dataTable th,
table.dataTable td {
  vertical-align: middle;
  text-align: left;
}

/* Optional: nicer scrollbar (Chrome / Edge) */
.dataTables_wrapper::-webkit-scrollbar {
  height: 8px;
}
.dataTables_wrapper::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 25px;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 999;
  padding: 6px 0;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #f1f1f1;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}
/* ================== PAGE / MODAL BACKDROP ================== */
.edit-billty::before{
    content: none;
}

/* ================= MODAL OVERLAY ================= */
.kr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ================= HIDE ================= */
.kr-hidden {
  display: none;
}

/* ================= MODAL BOX ================= */
.kr-modal-box {
  background: #ffffff;
  width: auto;
  max-width: 95%;
  min-width: 320px;
  animation-duration: 0.4s;
}

/* ================= ANIMATION ================= */
.kr-animate-bottom {
  animation-name: krSlideUp;
}

@keyframes krSlideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================= CARD SHADOW ================= */
.kr-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* ================= ROUNDED ================= */
.kr-rounded {
  border-radius: 10px;
}

/* ================= HEADER ================= */
.kr-modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid #e6e6e6;
}

/* ================= FLEX ================= */
.kr-flex {
  display: flex;
  align-items: center;
}

/* ================= TITLE ================= */
.kr-modal-title {
  margin: 0;
  padding: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* ================= BODY ================= */
.kr-modal-body {
  padding: 16px;
}

/* ================= OPTIONAL POP ================= */
.kr-pop {
  background-color: #ffffff;
}



/* Force black text for readonly / disabled selects */
select:disabled,
select[readonly] {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important; /* Chrome fix */
  opacity: 1 !important;
}
.bill-print-area label{
margin-right: 8px !important;
}
/* Optional: cursor clarity */
/* select:disabled {
  cursor: not-allowed;
} */

/* .edit-billty input[readonly]{
    cursor: not-allowed
} */


.weighment-modal {
  max-width: 900px;
  border-radius: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.w3-input[readonly] {
  cursor: not-allowed;
}


/* makes selected text appear uppercase in UI */
#edit_div_billty select,
#edit_div_billty input#brgstin {
  text-transform: uppercase;
}

/* soft red highlight */
.billty-required-missing {
  background: #ffe5e5 !important;
  border: 1px solid #ff9a9a !important;
}

#b-companyInfo{
    min-height: 80px;
}

.profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.profile-info {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.profile-info strong {
  display: block;
}

.profile-info small {
  color: #666;
}

.profile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
}

.profile-menu li a:hover {
  background: #f5f5f5;
}

.profile-menu {
  position: absolute;
  right: -100px;
  top: 48px;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  overflow: hidden;
  z-index: 999;
}

.profile-header {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #317efb, #4facfe);
  color: #fff;
}

.profile-avatar {
  position: relative;
}

.profile-avatar img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.upload-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
}

.upload-btn span {
  font-size: 16px;
  color: #317efb;
}

.profile-basic small {
  opacity: 0.9;
}

.profile-actions {
  padding: 10px;
}

.expand-item button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.expand-item button:hover {
  background: #f5f5f5;
  border-radius: 8px;
}

.expand-body {
  display: none;
  padding: 8px 10px 12px;
  animation: slideDown 0.25s ease;
}

.expand-body input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.save-btn {
  width: 100%;
  padding: 8px;
  background: #317efb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn:hover {
  background: #2563eb;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-container{
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
}

.toast{
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #222;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-6px);
  transition: 180ms ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.toast.success{ background: #1f9d55; }
.toast.error{ background: #e11d48; }
.toast.info{ background: #2563eb; }


@media print {

  /* Hide everything */
  body * {
    visibility: hidden !important;

  }

  /* Show only bill */
  .bill-print-area,
  .bill-print-area * {
    visibility: visible !important;
  }

  /* Position & SCALE bill properly */
  .bill-print-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) ;
    transform-origin: center center;
    width: 100%;
    margin: 0 auto;
    padding: 6mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .dash-div1{
    display: none !important;
  }

  .billty-required-missing {
    border: none !important;
    border-bottom: 1px solid black !important;
}
  /* Remove background overlays */
  body {
    background: white !important;
  }

  /* Hide buttons explicitly */
  .w3-hide-print,
  button {
    display: none !important;
  }
select {
  appearance: none;          /* Standard */
  -webkit-appearance: none;  /* Chrome, Safari */
  -moz-appearance: none;     /* Firefox */
  background-image: none;
  
  
}
#companySelect{
    border: none !important;
}

}


@page {
  size: A4 landscape;
  margin: 0;
}