
/*--------------------loading---section-----------------------*/
.loadingdivcls{ position:fixed; top:0px; left:0px; width:100%; height:100%; background:rgba(0,0,0,.3); z-index:99999;}
.loadingdivcls span{position:absolute; z-index:999; top:50%; left:50%; -moz-transform:translate(-50%,-50%); -o-transform:translate(-50%,-50%); -webkit-transform:translate(-50%,-50%); -ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%); width:100px; height:100px; background:rgba(255,255,255,1); -o-border-radius:5px; -ms-border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;border-radius:5px; border:3px solid #e8e3e3}
.loadingdivcls span img{position:absolute; z-index:999; top:50%; left:50%;-moz-transform:translate(-50%,-50%); -o-transform:translate(-50%,-50%); -webkit-transform:translate(-50%,-50%); -ms-transform:translate(-50%,-50%); transform:translate(-50%,-50%);}
.my-custom-scrollbar {
    position: relative;
    height: 150px;
    overflow: auto;
    }
    .table-wrapper-scroll-y {
    display: block;
    }
    .bgChange:hover{
    background-color: #E9ECEF;
    cursor: pointer;
    }
    .mat-autocomplete-panel mat-option {
        height: 25px;
        line-height: 25px;
        font-size: 13px;
     }
     .mat-autocomplete-panel .mat-option:hover {
    background-color: #eaf3ff !important;
    color: #000 !important;
}

.mat-autocomplete-panel .mat-option.mat-active {
    background-color: #eaf3ff !important;
    color: #000 !important;
}
.product-highlight {
    color: #007bff;
    font-weight: bold;
}
     .mat-form-field-infix {
        /* width: 145px !important; */
     }
     .mat-form-field-infix{
      border-top:0px solid transparent !important;
     }
     .mat-form-field-wrapper{
        padding-bottom: 15px !important;
     }
     .mat-form-field-appearance-legacy .mat-form-field-infix{
        padding: 1px 0  !important;
     }
     .mat-form-field{
        line-height:1.625 !important;
        width: 100%;
     }
     .mat-option{
      height: 20px !important;
      line-height: 30px !important;
      font-size: 12px !important;
      padding: 0 10px !important;
  }
  /* Chrome, Safari, Edge, Opera */
   input::-webkit-outer-spin-button,
   input::-webkit-inner-spin-button {
   -webkit-appearance: none;
   margin: 0;
   }
   /* Firefox */
   input[type=number] {
   -moz-appearance: textfield;
   }
   .table-group {
    width: 100%;
    border-collapse: collapse !important;
    border: 1px solid #000 !important;
}

.table-group th,
.table-group td {
    border: 1px solid #000 !important;
    padding: 6px;
}

.group-header {
    border: 1px solid #000 !important;
    padding: 8px;
    font-weight: bold;
    background: #e9e9e9;
}

.group-header {
    background: #d9e8fb;
    border: 1px solid #555;
    padding: 8px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    border-radius: 4px 4px 0 0;
}

.group-total td {
    font-weight: bold;
    border-top: 2px solid #bcc4d1 !important;
    background: #fafafa;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}
@media print {

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .table-group {
        border-collapse: collapse !important;
        width: 100%;
    }

    .table-group,
    .table-group th,
    .table-group td {
        border: 1px solid #bcc4d1 !important;
    }

    .group-header {
        border: 1px solid #bcc4d1 !important;
        background: #e9e9e9 !important;
        font-weight: bold;
        padding: 8px;
    }

    .group-total td {
        border-top: 2px solid #bcc4d1 !important;
        font-weight: bold;
    }
}
.invoice-table{
    width:100%;
    border-collapse:collapse;
}

.invoice-table th,
.invoice-table td{
    border:1px solid #bcc4d1;
    padding:6px 8px;
}

.product-header td{
    background:#f5f5f5;
    font-size:15px;
    font-weight:600;
    padding:10px 8px;
}

.group-total td{
    background:#fafafa;
    font-weight:bold;
}
.text-decoration-underline{
    text-decoration:underline !important;
}
mat-form-field.small {
  --mat-form-field-container-height: 20px;
  --mat-form-field-container-vertical-padding: 3px;
  margin-bottom: -25px !important;
  font-size: 0.875rem !important;
}
.mat-mdc-option{
  min-height: 20px !important; 
  font-size: 0.855rem !important;
  padding: 0px !important;
  transition: background-color 0.25s ease, color 0.25s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
.mdc-text-field--filled{
  background-color: transparent !important;
}
.mdc-text-field{
  padding: 0 10px !important;
}
.mat-mdc-dialog-surface {
  scrollbar-width: none !important;
  padding: 10px;
  }
  .mat-form-field-appearance-outline .mat-form-field-infix{
   padding: 5px !important;
  }
  input.mat-input-element{
   margin-bottom: -3px !important;
  }
  .checkbox-readonly {
  pointer-events: none;   /* block clicking */
}
.tally-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.tally-product {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 70%;
}

.tally-qty {
  width: 15%;
  text-align: right;
  padding-right: 10px;
}

.tally-rate {
  width: 15%;
  text-align: right;
  padding-right: 10px;
}
.tally-autocomplete {
  min-width: 200px !important;
}

.tally-autocomplete .mat-option {
  padding: 0 15px !important;
}

.tally-autocomplete .tally-header {
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  cursor: default !important;
}
.tally-dashboard {
  background: #f2f3f5;
  min-height: 100vh;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
}


/* ==========================
   TOP BAR
========================== */

.tally-topbar {
  height: 62px;
  background: #17365d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.company-section {
  display: flex;
  align-items: center;
}

.company-logo {
  width: 38px;
  height: 38px;
  background: #f4b400;
  color: #17365d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: bold;
  margin-right: 12px;
}

.company-name {
  font-size: 14px;
  font-weight: 600;
}

.company-info {
  font-size: 10px;
  margin-top: 3px;
  color: #d5dfeb;
}

.top-actions {
  display: flex;
  gap: 7px;
}

.top-btn {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  position: relative;
}

.notification-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff4d4d;
  border-radius: 50%;
  top: 7px;
  right: 7px;
}


/* ==========================
   LAYOUT
========================== */

.tally-layout {
  display: flex;
  min-height: calc(100vh - 95px);
}


/* ==========================
   SIDEBAR
========================== */

.tally-sidebar {
  width: 210px;
  min-width: 210px;
  background: #fff;
  border-right: 1px solid #ddd;
  padding-top: 12px;
}

.sidebar-title {
  font-size: 9px;
  font-weight: 600;
  color: #999;
  padding: 12px 15px 6px;
  letter-spacing: .5px;
}

.tally-menu {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  cursor: pointer;
  font-size: 12px;
  color: #444;
  border-left: 3px solid transparent;
}

.tally-menu i {
  width: 25px;
  font-size: 14px;
}

.tally-menu b {
  margin-left: auto;
  font-size: 9px;
  color: #aaa;
  font-weight: normal;
}

.tally-menu:hover {
  background: #f1f5fa;
}

.tally-menu.active {
  background: #e9f0f8;
  color: #17365d;
  border-left-color: #f4b400;
  font-weight: 600;
}

.sidebar-divider {
  border-top: 1px solid #eee;
  margin: 10px 0;
}


/* ==========================
   CONTENT
========================== */

.tally-content {
  flex: 1;
  padding: 18px;
  max-width: 1600px;
}


/* ==========================
   PAGE HEADING
========================== */

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.page-heading h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.page-heading span {
  font-size: 11px;
  color: #888;
}

.date-range {
  display: flex;
  gap: 5px;
}

.date-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

.date-btn:hover {
  background: #17365d;
  color: #fff;
}


/* ==========================
   SECTION
========================== */

.section {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.section-title {
  background: #f5f6f7;
  border-bottom: 1px solid #ddd;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.flex-title {
  display: flex;
  justify-content: space-between;
}

.flex-title a {
  color: #17365d;
  font-size: 10px;
  cursor: pointer;
}


/* ==========================
   SUMMARY
========================== */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tally-box {
  border-right: 1px solid #ddd;
}

.tally-box:last-child {
  border-right: 0;
}

.box-header {
  padding: 7px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.sales-header {
  background: #3478c7;
}

.purchase-header {
  background: #5c7cfa;
}

.receipt-header {
  background: #2e9d65;
}

.payment-header {
  background: #c44b4b;
}

.box-body {
  padding: 12px;
}

.big-number {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.box-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding: 6px 0;
  font-size: 10px;
}

.box-row span {
  color: #777;
}


/* ==========================
   VOUCHERS
========================== */

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.voucher-item {
  min-height: 85px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: .15s;
}

.voucher-item:hover {
  background: #f2f6fa;
}

.voucher-item i {
  font-size: 22px;
  margin-bottom: 7px;
}

.voucher-item span {
  font-size: 10px;
  font-weight: 600;
}

.voucher-key {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 8px;
  color: #aaa;
}

.sales i {
  color: #3478c7;
}

.purchase i {
  color: #5c7cfa;
}

.receipt i {
  color: #2e9d65;
}

.payment i {
  color: #c44b4b;
}

.journal i {
  color: #7950f2;
}

.contra i {
  color: #f08c00;
}

.debit i {
  color: #d6336c;
}

.credit i {
  color: #20c997;
}


/* ==========================
   TWO COLUMN
========================== */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}


/* ==========================
   REPORT TABLE
========================== */

.report-table {
  font-size: 11px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 8px 12px;
  align-items: center;
}

.table-head {
  background: #fafafa;
  color: #888;
  font-size: 10px;
  border-bottom: 1px solid #eee;
}

.table-row {
  border-bottom: 1px solid #eee;
}

.table-row:hover {
  background: #f8fafc;
}

.table-row strong {
  text-align: right;
}

.overdue {
  background: #fff5f5;
}

.overdue strong {
  color: #c92a2a;
}


/* ==========================
   TASKS
========================== */

.task-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.task-column {
  border-right: 1px solid #ddd;
}

.task-column:last-child {
  border-right: 0;
}

.task-column-header {
  padding: 8px 10px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.task-column-header b {
  background: #17365d;
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 9px;
}

.task-scroll {
  max-height: 230px;
  overflow-y: auto;
}

.tally-task {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none !important;
}

.tally-task:hover {
  background: #f5f8fb;
}

.task-status {
  width: 5px;
  height: 30px;
  margin-right: 9px;
  border-radius: 3px;
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-description {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  font-size: 9px;
  color: #999;
  margin-top: 3px;
}

.task-meta span {
  margin-left: 7px;
}

.tally-task > i {
  color: #aaa;
}


/* Existing Angular classes */

.task-status.warning {
  background: #f0ad4e;
}

.task-status.success {
  background: #28a745;
}

.task-status.danger {
  background: #dc3545;
}

.task-status.info {
  background: #17a2b8;
}


/* ==========================
   DAY BOOK
========================== */

.daybook {
  font-size: 10px;
}

.daybook-head,
.daybook-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  padding: 9px 12px;
}

.daybook-head {
  background: #fafafa;
  color: #888;
}

.daybook-row {
  border-top: 1px solid #eee;
}

.daybook-row:hover {
  background: #f8fafc;
}

.voucher-badge {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 8px;
}

.sales-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.payment-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.receipt-badge {
  background: #dcfce7;
  color: #15803d;
}

.purchase-badge {
  background: #fef3c7;
  color: #92400e;
}


/* ==========================
   STATUS BAR
========================== */

.tally-statusbar {
  height: 33px;
  background: #17365d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 15px;
  font-size: 9px;
}

.tally-statusbar .ml-auto {
  margin-left: auto;
}


/* ==========================
   RESPONSIVE
========================== */

@media(max-width: 1100px) {

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voucher-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .task-dashboard {
    grid-template-columns: 1fr;
  }

  .task-column {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

}


@media(max-width: 768px) {

  .tally-sidebar {
    width: 55px;
    min-width: 55px;
  }

  .tally-menu span,
  .sidebar-title,
  .tally-menu b {
    display: none;
  }

  .tally-menu {
    justify-content: center;
    padding: 0;
  }

  .tally-menu i {
    width: auto;
  }

  .company-name {
    font-size: 11px;
  }

  .company-info {
    display: none;
  }

  .tally-content {
    padding: 10px;
  }

  .page-heading {
    display: block;
  }

  .date-range {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .tally-box {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .voucher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .daybook {
    overflow-x: auto;
  }

  .daybook-head,
  .daybook-row {
    min-width: 650px;
  }

  .tally-statusbar {
    display: none;
  }

}
.always-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.cursor-pointer{
  cursor: pointer;
}
.sales-account-submenu {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-left: 20px;
  margin: 0;
  list-style: none;
}
.company-name {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 18px;
  font-weight: 500;
  margin: 17px 18px 6px 8px;
  white-space: nowrap;
}

.company-name:hover {
  color: #fff;
  text-decoration: none;
}
ng-multiselect-dropdown .dropdown-btn .selected-item {
    width: 250px !important;
    max-width: 250px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}
    /*--------------------loading---section-----------------------*/
