.catWarning-area {display: none;}.memberFormError {display: none;}.addProductError-area {display: none;}.purchase-suppliar-info p {margin: 0;padding: 0;font-size: 14px;font-family: tahoma;}.main-header .navbar-nav .nav-item .nav-link img{width: 40px;}.material-symbols-outlined {font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48 }.material-symbols-outlined {font-size: 26px;margin-left: -11px!important;}.dropdown-menu-right i{font-size: 25px;color: #36c95f;margin-right: 7px;}.dropdown-menu-right .pic i{color: red;}.login-form-bx{width: 90% !important;}.cards .authincation-content{box-shadow: 0 12px 23px 0 rgba(62,73,84,.08) !important;background-color: #fff !important;content: "";height: 100% !important;width: 90% !important;position: relative !important;left: 210px;top: 0;margin-top: 50px;padding: 50px !important;}.login-form-bx .box-skew1 {z-index: 1 !important;background-color: #fbfbfb !important;}.login-form-bx .box-skew1{background-image: url('../images/login.png');content: "";background-size: cover;background-position: bottom;height: 100%;position: absolute;width: 140% !important;right: -28px;top: 0;z-index: 11 !important;-webkit-transform: skew(-5deg);transform: skew(-5deg);}.login-logo img{margin-top: -13px !important;}.authincation-content p{color: #7e7e7e;margin-bottom: 15px;font-weight: 100px;}.authincation-content label{font-weight: 100px;color: #7e7e7e;}.authincation-content .tag {display: table !important;}.login-form-bx .form-control {background: #fff !important;border: 1px solid #d7dae3 !important;color: #3e4954 !important;height: 56px !important;width: 88% !important;padding: 10px;}.authincation-content .btn-primary {color: #fff;background-color:#013173 !important;border-color: #013173 !important;width: 88% !important;}.authincation-content .btn {padding: 0.938rem 1.5rem !important;border-radius: 0.75rem !important;font-weight: 500 !important;font-size: 1rem !important;}.authincation-content a{color: #000 !important;}.authincation-cont

/* Hide DataTables page length selector globally */
.dataTables_wrapper div.dataTables_length {
  display: none !important;
}
.dataTables_wrapper,
.dataTables_wrapper .dataTable,
table.dataTable {
  width: 100% !important;
}
.table-responsive > .table,
.dataTables_wrapper table.dataTable {
  min-width: 100%;
}
.dataTables_wrapper .dataTables_empty {
  width: 100% !important;
  min-height: 52px;
  text-align: center;
  vertical-align: middle;
}
.card-header > .btn,
.card-header > a.btn {
  margin-left: auto;
}
/* Stronger rule: hide any length selector variants and IDs like <table>_length */
.dataTables_wrapper .dataTables_length,
[id$="_length"],
.dataTables_length,
div.dataTables_wrapper div.dataTables_length {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
 ent h3{font-size: 23px !important;text-align: left;margin: 9px;color: #3d4465;}

/* Password toggle icon */
.input-group .password-toggle {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  color: #6c757d;
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
}
.input-group .form-control {
  padding-right: 35px;
}

/* Sidebar: prevent last menu item from being cut off at the bottom */
.layout-fixed .main-sidebar .sidebar,
.main-sidebar .sidebar {
  overflow-y: auto;
  padding-bottom: 60px;
}
.main-sidebar .sidebar nav,
.main-sidebar .sidebar .nav-sidebar {
  overflow-y: visible;
}
.layout-fixed .main-sidebar .sidebar .nav-sidebar {
  padding-bottom: 20px;
}

.page-card {
  border-radius: 16px;
  overflow: hidden;
}
.page-card .card-header {
  padding: 1.15rem 1.5rem 0.75rem;
}
.page-card .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.product-form-panel,
.clean-form-panel {
  background: #f8f9fc;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.product-form-panel .form-group,
.clean-form-panel .form-group {
  margin-bottom: 1rem;
}
.product-form-panel label,
.clean-form-panel label {
  font-weight: 600;
  color: #374151;
}
.product-form-panel .form-control,
.clean-form-panel .form-control,
.product-form-panel .select2-container .select2-selection,
.clean-form-panel .select2-container .select2-selection {
  border-radius: 10px;
  border: 1px solid #dfe5ef;
  min-height: 40px;
}
.product-form-panel .btn,
.clean-form-panel .btn,
.product-form-panel .input-group .btn,
.clean-form-panel .input-group .btn {
  border-radius: 10px;
}

.quick-sell-items-table {
  min-width: 1120px;
  table-layout: auto;
}
.quick-sell-items-table th {
  white-space: nowrap;
  background: #f3f6fb;
  color: #374151;
  padding: 0.7rem 0.75rem;
}
.quick-sell-items-table td {
  min-width: 105px;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}
.quick-sell-items-table th:nth-child(1),
.quick-sell-items-table td:nth-child(1) { min-width: 48px; }
.quick-sell-items-table th:nth-child(2),
.quick-sell-items-table td:nth-child(2) { min-width: 280px; }
.quick-sell-items-table th:nth-child(3),
.quick-sell-items-table td:nth-child(3) { min-width: 175px; }
.quick-sell-items-table th:nth-child(9),
.quick-sell-items-table td:nth-child(9) { min-width: 190px; }
.discount-control .productDiscountType {
  flex: 0 0 68px;
  width: 68px;
  height: 38px;
  padding-left: 0.35rem;
  padding-right: 0.25rem;
}
.discount-control .productDiscount {
  flex: 1 1 auto;
  min-width: 76px;
  height: 38px;
}
.quick-sell-items-table th:nth-child(6),
.quick-sell-items-table td:nth-child(6) {
  min-width: 190px;
}
.discount-control {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
}

.brand-size-modal .modal-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 1.25rem auto;
}
.brand-size-modal .modal-content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}
.brand-size-modal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 1rem;
  align-items: center;
}
.brand-size-modal .modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}
.brand-size-modal .modal-header small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}
.brand-size-modal .modal-header .close {
  font-size: 1.6rem;
  line-height: 1;
  color: #6b7280;
  opacity: 1;
  margin-left: 1rem;
}
.brand-size-modal .modal-body {
  padding: 0.9rem 1rem 1rem;
  background: #fff;
}
.brand-size-form-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.7rem;
}
.brand-size-form-box .form-control {
  border: 1px solid #dfe5ef;
  border-radius: 8px 0 0 8px;
  height: 42px;
  box-shadow: none;
  font-size: 1rem;
}
.brand-size-form-box .btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: none;
  border-radius: 0 8px 8px 0;
  min-width: 106px;
  font-weight: 600;
  height: 42px;
  padding: 0 1rem;
}
.brand-size-table {
  width: 100% !important;
  table-layout: fixed;
  border-radius: 10px;
  overflow: hidden;
  border-color: #e5e7eb;
  margin-bottom: 0;
}
.brand-size-table thead th {
  background: #f3f6fb;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #dfe5ef;
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
}
.brand-size-table thead th:nth-child(1) { width: 16%; }
.brand-size-table thead th:nth-child(2) { width: 46%; }
.brand-size-table thead th:nth-child(3) { width: 38%; }
.brand-size-table tbody td {
  padding: 0.7rem 0.6rem;
  vertical-align: middle;
  color: #374151;
  font-size: 1rem;
}
.brand-size-table tbody tr:nth-child(even) {
  background: #fbfcff;
}
.brand-size-table .btn {
  border-radius: 8px;
  padding: 0.32rem 0.55rem;
  font-size: 0.82rem;
}
.brand-size-table .btn-warning {
  background: #f5b942;
  border-color: #f5b942;
  color: white;
}
.brand-size-table .btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}
@media (max-width: 767.98px) {
  .content-wrapper .content-header .breadcrumb {
    float: none !important;
    margin-top: 0.5rem;
    padding-left: 0;
  }
  .page-card .card-body,
  .page-card .card-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .product-form-panel,
  .clean-form-panel {
    padding: 0.75rem;
  }
}

/* ============================================================
   UNIFIED THEME — consistent cards, headers, tables, buttons
   Loaded AFTER AdminLTE so these overrides take effect.
   ============================================================ */

/* ---- Cards: consistent rounded corners, soft shadow, border ---- */
.card {
  border-radius: 14px;
  border: 1px solid #e8ecf3;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
}
.card.card-warning,
.card.card-primary {
  border-radius: 14px;
}
.card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecf3;
  padding: 0.95rem 1.25rem;
}
.card .card-header:first-child {
  border-radius: 13px 13px 0 0;
}
.card .card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.card .card-title b {
  font-weight: 700;
}
.card .card-tools {
  margin-top: -0.15rem;
}
.card .card-body {
  padding: 1.25rem;
}
.card.card-outline {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.card.card-outline .card-header {
  border-bottom: 1px solid #e8ecf3;
  background: #fbfcfe;
}

/* Programmatic pages keep their custom rounded corner to avoid double-radius */
.page-card,
.expense-card,
.purchase-card,
.view_sell_page_info {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* ---- Content header (page title bar) : consistent ---- */
.content-header {
  padding: 1rem 1.5rem 0;
}
.content-header .container-fluid {
  padding: 0;
}
.content-header h1,
.content-header h2,
.content-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* ---- Buttons: consistent radius + padding ---- */
.btn {
  border-radius: 8px;
}
.btn-sm,
.btn-xs,
.btn-group-sm > .btn {
  border-radius: 6px;
}
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.btn-primary { background-color: #2563eb; border-color: #2563eb; }
.btn-success { background-color: #16a34a; border-color: #16a34a; }
.btn-info     { background-color: #0ea5e9; border-color: #0ea5e9; }
.btn-danger   { background-color: #dc2626; border-color: #dc2626; }
.btn-warning  { background-color: #f59e0b; border-color: #f59e0b; }
.btn-primary:hover,
.btn-primary:active { background-color: #1d4ed8; border-color: #1d4ed8; }
.btn-success:hover,
.btn-success:active { background-color: #15803d; border-color: #15803d; }
.btn-info:hover,
.btn-info:active     { background-color: #0284c7; border-color: #0284c7; }
.btn-danger:hover,
.btn-danger:active   { background-color: #b91c1c; border-color: #b91c1c; }
.btn-warning:hover,
.btn-warning:active  { background-color: #d97706; border-color: #d97706; }

/* ---- Legacy rounded-0 buttons now get consistent radius ---- */
.rounded-0 {
  border-radius: 8px !important;
}
.btn-rounded-pill,
.rounded-pill {
  border-radius: 50rem !important;
}

/* ---- Tables: clear column lines, striped rows, comfortable padding ----
     Applied to all data tables + plain tables inside cards for consistency. */
.table,
.dataTable,
table.table,
.card .table {
  border-collapse: collapse;
  border: 1px solid #e5e9f2;
}
.card .table thead th,
.table thead th,
.dataTable thead th {
  background: #f1f5fb;
  color: #2b3a55;
  font-weight: 700;
  border-bottom: 2px solid #dbe3ef;
  padding: 0.7rem 0.8rem !important;
  font-size: 0.9rem;
  white-space: nowrap;
  vertical-align: middle;
}
.card .table tbody td,
.table tbody td,
.dataTable tbody td {
  padding: 0.7rem 0.8rem !important;
  vertical-align: middle;
  font-size: 0.92rem;
}
/* vertical column lines + horizontal row lines */
.card .table-bordered th,
.card .table-bordered td,
.table-bordered th,
.table-bordered td,
.display.dataTable thead th,
.display.dataTable tbody td,
.dataTable thead th,
.dataTable tbody td {
  border: 1px solid #e5e9f2 !important;
}
.card .table tbody tr,
.table tbody tr,
.dataTable tbody tr {
  border-bottom: 1px solid #eef1f7;
}
/* soft zebra striping */
.card .table tbody tr:nth-child(even),
.table tbody tr:nth-child(even),
.dataTable tbody tr:nth-child(even),
.card .table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8fafd;
}
.card .table tbody tr:hover,
.table tbody tr:hover,
.dataTable tbody tr:hover {
  background-color: #eef4ff;
}
/* thead-dark / thead-light normalized */
.table .thead-dark th,
.card .table .thead-dark th,
.table thead.thead-dark th {
  background: #2b3a55;
  color: #fff;
  border-color: #2b3a55;
}
.table .thead-light th,
.card .table .thead-light th {
  background: #f1f5fb;
  color: #2b3a55;
}

/* DataTables pagination + info text consistency */
.dataTables_wrapper .dataTables_info {
  color: #6b7280;
  font-size: 0.85rem;
  padding-top: 0.8rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px;
  margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* ---- Form panels: single consistent background ---- */
.product-form-panel,
.clean-form-panel {
  background: #f8fafd;
  border: 1px solid #e8ecf3;
}
.card-subtle-bg {
  background: #f8fafd !important;
  border: 1px solid #e8ecf3 !important;
  border-radius: 14px;
}

/* ---- Shared search / filter panel ---- */
.search-panel {
  background: #f8fafd;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.search-panel .form-group {
  margin-bottom: 0.75rem;
}

/* ---- Info boxes (dashboard & elsewhere) : consistent ---- */
.info-box {
  border-radius: 12px;
  border: 1px solid #e8ecf3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* ---- Modal consistent ---- */
.modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.modal-header {
  border-bottom: 1px solid #e8ecf3;
}
.modal-footer {
  border-top: 1px solid #e8ecf3;
}

/* ---- Alerts consistent ---- */
.alert {
  border-radius: 10px;
}

/* ---- Inputs consistent radius ---- */
.form-control,
.select2-container .select2-selection--single {
  border-radius: 8px;
}

/* ============================================================
   BUY PRODUCT TABLE — wider columns + inline "Add" (+ buttons)
   ============================================================ */
.buy-items-table {
  /* Keep each field readable; the existing responsive wrapper supplies scroll
     on smaller screens instead of compressing the inputs. */
  min-width: 1620px;
  table-layout: auto;
}
.buy-items-table th {
  white-space: nowrap;
}
.buy-items-table th:nth-child(1), .buy-items-table td:nth-child(1) { min-width: 180px; } /* Type */
.buy-items-table th:nth-child(2), .buy-items-table td:nth-child(2) { min-width: 200px; } /* Brand */
.buy-items-table th:nth-child(3), .buy-items-table td:nth-child(3) { min-width: 220px; } /* Design */
.buy-items-table th:nth-child(4), .buy-items-table td:nth-child(4) { min-width: 190px; } /* Color */
.buy-items-table th:nth-child(5), .buy-items-table td:nth-child(5) { min-width: 160px; } /* Size */
.buy-items-table th:nth-child(6), .buy-items-table td:nth-child(6) { min-width: 110px; } /* Piece */
.buy-items-table th:nth-child(7), .buy-items-table td:nth-child(7) { min-width: 90px; }  /* Qty */
.buy-items-table th:last-child, .buy-items-table td:last-child { min-width: 58px; }       /* Remove */
.buy-items-table .buyrow_remove {
  background: transparent !important;
  border-color: transparent !important;
  color: #dc3545 !important;
  box-shadow: none !important;
  font-size: 1.15rem;
  line-height: 1;
}
.buy-items-table .buyrow_remove:hover,
.buy-items-table .buyrow_remove:focus {
  background: transparent !important;
  border-color: transparent !important;
  color: #a71d2a !important;
  box-shadow: none !important;
}

.buy-items-table .m-field {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}
.buy-items-table .m-field select.form-control {
  flex: 1 1 auto;
  min-width: 120px;
  border-radius: 8px 0 0 8px;
}
.buy-items-table .m-field .m-add {
  border-radius: 0 8px 8px 0;
  padding: 0 0.55rem;
  min-width: 34px;
  margin-left: -1px;
}
/* select2 inside the .m-field cell */
.buy-items-table .m-field .select2-container {
  flex: 1 1 auto;
  text-align: left;
}
.buy-items-table .m-field .select2-container .select2-selection--single {
  border-radius: 8px 0 0 8px;
  height: auto;
  min-height: 36px;
}
.buy-items-table .m-field .select2-container .select2-selection__rendered {
  line-height: 34px;
}
.buy-items-table td {
  vertical-align: middle;
}
