/* Core styles */
:root {
  --red: #c91522;
  --red2: #8e0e17;
  --black: #151515;
  --gray: #666;
  --light: #f3f4f6;
  --white: #fff;
  --line: #d9dce1;
  --green: #18864b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter,Segoe UI,Arial,sans-serif;
  background: #eef0f3;
  color: #202124;
}
a {
  text-decoration: none;
  color: inherit;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%,#3a3a3a 0,#151515 42%,#090909 100%);
  position: relative;
}
.login-page:before,.login-page:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 2px solid rgba(201,21,34,.3);
  transform: rotate(45deg);
  animation: float 8s ease-in-out infinite;
}
.login-page:before {
  left: -260px;
  top: -180px;
}
.login-page:after {
  right: -260px;
  bottom: -200px;
  animation-delay: -4s;
}
.login-card {
  width: min(930px,92vw);
  min-height: 520px;
  background: rgba(255,255,255,.98);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  box-shadow: 0 30px 80px #0009;
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: rise .7s ease;
}
.login-brand {
  background: linear-gradient(145deg,#1a1a1a,#343434);
  color: #fff;
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.login-brand:after {
  content: "";
  height: 7px;
  background: var(--red);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -8px 30px var(--red);
}
.login-brand img {
  width: 140px;
  filter: drop-shadow(0 10px 18px #0008);
  animation: pulse 3s ease-in-out infinite;
}
.login-brand h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 24px 0 10px;
}
.login-brand p {
  color: #ccc;
}
.login-form {
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form h2 {
  font-size: 30px;
  margin: 0;
}
.login-form>p {
  color: #777;
  margin: 8px 0 30px;
}
.field {
  margin-bottom: 17px;
}
.field label {
  font-weight: 650;
  font-size: 13px;
  display: block;
  margin-bottom: 7px;
}
.input,.select,.textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  outline: none;
}
.input:focus,.select:focus,.textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #c9152218;
}
.textarea {
  min-height: 90px;
  resize: vertical;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  background: #333;
  color: #fff;
}
.btn-red {
  background: linear-gradient(135deg,var(--red),var(--red2));
  box-shadow: 0 8px 18px #c9152233;
}
.btn-light {
  background: #e5e7eb;
  color: #222;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #171717;
  color: #ddd;
  position: fixed;
  width: 250px;
  height: 100vh;
  overflow: auto;
  z-index: 3;
}
.brand {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #333;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand strong {
  color: #fff;
}
.nav {
  padding: 14px 10px;
}
.nav-title {
  font-size: 10px;
  color: #858585;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 14px 12px 7px;
}
.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 14px;
}
.nav a:hover,.nav a.active {
  background: var(--red);
  color: #fff;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 69px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.content {
  padding: 26px;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.page-title h1 {
  margin: 0;
  font-size: 25px;
}
.page-title p {
  margin: 5px 0 0;
  color: #777;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid #e2e4e8;
  border-radius: 13px;
  padding: 20px;
  box-shadow: 0 5px 16px #1515150a;
}
.metric {
  position: relative;
  overflow: hidden;
}
.metric:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--red);
}
.metric span {
  color: #777;
  font-size: 13px;
}
.metric strong {
  display: block;
  font-size: 29px;
  margin-top: 8px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid #eceef1;
  font-size: 13px;
}
th {
  background: #2b2b2b;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eee;
  font-size: 11px;
  font-weight: 750;
}
.badge.red {
  background: #ffe2e4;
  color: #a7111a;
}
.badge.green {
  background: #dff5e8;
  color: #126b3c;
}
.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.flash {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #dff5e8;
  color: #126b3c;
  transition: .3s;
}
.flash.error {
  background: #ffe2e4;
  color: #9d1119;
}
.flash.hide {
  opacity: 0;
  transform: translateY(-8px);
}
.empty {
  text-align: center;
  padding: 40px;
  color: #888;
}
.menu-button {
  display: none;
}
.footer {
  padding: 15px 26px;
  color: #777;
  font-size: 12px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(25px);  }
  to {
    opacity: 1;
    transform: none;  }
}
@keyframes float {
  50% {
    transform: rotate(50deg) translateY(35px);  }
}
@keyframes pulse {
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 12px 24px #c9152270);  }
}
@media(max-width:950px) {
  .grid {
    grid-template-columns: repeat(2,1fr);  }
  .form-grid {
    grid-template-columns: 1fr 1fr;  }
  .span-3 {
    grid-column: span 2;  }
}
@media(max-width:720px) {
  .login-card {
    grid-template-columns: 1fr;  }
  .login-brand {
    display: none;  }
  .login-form {
    padding: 36px;  }
  .layout {
    display: block;  }
  .sidebar {
    transform: translateX(-100%);
    transition: .25s;  }
  .menu-open .sidebar {
    transform: none;  }
  .main {
    grid-column: auto;  }
  .menu-button {
    display: inline-flex;  }
  .content {
    padding: 18px;  }
  .grid,.form-grid {
    grid-template-columns: 1fr;  }
  .span-2,.span-3 {
    grid-column: auto;  }
}
/* Revision */
.sidebar {
  display: flex;
  flex-direction: column;
}
.brand small {
  display: block;
  color: #999;
  margin-top: 3px;
}
.nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.account-nav {
  margin-top: auto;
  border-top: 1px solid #353535;
  padding-top: 10px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 15px;
}
.page-title {
  align-items: center;
}
.section-gap {
  height: 18px;
}
.form-submit {
  align-self: end;
}
.password-card {
  max-width: 560px;
}
.report-switch,.export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.report-filters .input,.report-filters .select {
  width: 180px;
}
.table-wrap table {
  table-layout: fixed;
  min-width: max-content;
}
.table-wrap th,.table-wrap td {
  text-align: left;
  vertical-align: middle;
}
.inventory-table .w100 {
  width: 100px;
}
.inventory-table .w250 {
  width: 250px;
}
.inventory-table th:nth-child(1),.inventory-table td:nth-child(1),.inventory-table th:nth-child(2),.inventory-table td:nth-child(2),.inventory-table th:nth-child(6),.inventory-table td:nth-child(6),.inventory-table th:nth-child(7),.inventory-table td:nth-child(7),.inventory-table th:nth-child(8),.inventory-table td:nth-child(8),.inventory-table th:nth-child(9),.inventory-table td:nth-child(9) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}
.inventory-table th:nth-child(3),.inventory-table td:nth-child(3),.inventory-table th:nth-child(4),.inventory-table td:nth-child(4),.inventory-table th:nth-child(5),.inventory-table td:nth-child(5),.inventory-table th:nth-child(10),.inventory-table td:nth-child(10) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}
.movement-table th,.movement-table td {
  min-width: 125px;
}
.movement-table th:nth-child(5),.movement-table td:nth-child(5),.movement-table th:nth-child(9),.movement-table td:nth-child(9) {
  min-width: 220px;
}
.qty-sign {
  font-weight: 800;
}
.qty-in {
  color: #167447;
}
.qty-out {
  color: #c01823;
}
.frame-modal {
  position: fixed;
  inset: 0;
  background: #000a;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.frame-modal.open {
  display: flex;
}
.frame-modal-card {
  width: min(1040px,96vw);
  height: min(760px,92vh);
  background: #fff;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px #0008;
}
.frame-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #202020;
  color: #fff;
  font-size: 26px;
  z-index: 2;
  cursor: pointer;
}
.modal-page {
  background: #fff;
  padding: 30px;
  color: #202124;
}
.modal-page h2 {
  margin: 0 0 5px;
}
.modal-page>p {
  color: #777;
  margin: 0 0 24px;
}
@media(max-width:720px) {
  .report-filters .input,.report-filters .select {
    width: 100%;  }
  .frame-modal {
    padding: 8px;  }
  .frame-modal-card {
    width: 100%;
    height: 96vh;  }
  .modal-page {
    padding: 24px 18px;  }
  .account-nav {
    margin-top: 25px;  }
}
/* Revision v3 */
.table-wrap {
  max-height: 64vh;
  overflow: auto;
  position: relative;
}
.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  text-align: left;
  box-shadow: inset 0 -1px 0 #555;
}
.low-stock-link {
  display: block;
}
.watchlist-card {
  margin-top: 20px;
}
.watchlist-card .table-wrap {
  max-height: 360px;
}
.stock-warning {
  background: #fff4d6;
  color: #8a5a00;
}
.stock-critical {
  background: #ffe0e2;
  color: #a30914;
}
.stock-current.low {
  color: #9a6500;
  font-weight: 800;
}
.stock-current.out {
  color: #b20f1a;
  font-weight: 800;
}
.modal-page {
  background: #eef0f3;
  padding: 28px 30px;
  min-height: 100vh;
}
.modal-page .form-grid {
  gap: 20px 15px;
}
.modal-page .field {
  margin: 0;
}
.modal-page .input,.modal-page .select {
  min-height: 48px;
}
.modal-page .span-2 .input {
  width: 100%;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.field-error {
  display: block;
  min-height: 16px;
  color: #b20f1a;
  font-size: 11px;
  margin-top: 4px;
}
.input.invalid,.select.invalid {
  border-color: #c91522;
  box-shadow: 0 0 0 3px #c915221c;
}
.form-message {
  display: none;
  padding: 11px 13px;
  border-radius: 8px;
  margin: 0 0 18px;
  font-weight: 650;
}
.form-message.error {
  display: block;
  background: #ffe2e4;
  color: #9d1119;
}
.form-message.success {
  display: block;
  background: #dcf5e6;
  color: #126b3c;
}
.submit-button:disabled,.export-button[aria-disabled=true] {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}
.submit-button.loading,.export-button.loading {
  filter: saturate(.7);
}
.export-button {
  gap: 8px;
  transition: transform .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease;
}
.export-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #1112;
}
.export-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 7px #1112;
}
.export-button:focus-visible {
  outline: 3px solid #c9152240;
  outline-offset: 2px;
}
.pdf-button:hover {
  background: #b5121b;
  color: #fff;
}
.excel-button:hover {
  background: #1b6e3a;
  color: #fff;
}
.export-icon {
  font-size: 15px;
  font-weight: 900;
}
.metric-link {
  display: block;
}
.metric-link:hover .metric {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px #15151518;
}
.metric {
  transition: transform .18s ease,box-shadow .18s ease;
}
.report-filters {
  align-items: end;
}
.filter-field {
  min-width: 165px;
}
.filter-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}
.status-cell {
  text-align: left;
}
.watchlist-table th:nth-child(1),.watchlist-table td:nth-child(1) {
  width: 100px;
  min-width: 100px;
}
.watchlist-table th:nth-child(2),.watchlist-table td:nth-child(2),.watchlist-table th:nth-child(3),.watchlist-table td:nth-child(3) {
  width: 250px;
  min-width: 250px;
}
.watchlist-table th:nth-child(4),.watchlist-table td:nth-child(4) {
  width: 180px;
  min-width: 180px;
}
.watchlist-table th:nth-child(5),.watchlist-table td:nth-child(5),.watchlist-table th:nth-child(6),.watchlist-table td:nth-child(6) {
  width: 120px;
  min-width: 120px;
}
@media(max-width:720px) {
  .modal-page {
    padding: 24px 18px;  }
  .modal-page .form-grid {
    grid-template-columns: 1fr;  }
  .modal-page .span-2,.modal-page .span-3 {
    grid-column: auto;  }
  .report-filters {
    display: grid;
    grid-template-columns: 1fr;  }
  .filter-field {
    min-width: 0;  }
}
/* Revision v4 */
:root {
  --dashboard-green: #17652d;
  --dashboard-bg: #edf8ef;
  --dashboard-line: #cedbd0;
}
.dashboard-heading,.settings-heading {
  margin: 2px 0 28px;
}
.dashboard-heading>strong,.settings-heading>strong {
  display: block;
  color: #25452d;
  font-size: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.dashboard-heading>small,.settings-heading>small {
  display: block;
  color: #17652d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-top: 7px;
}
.dashboard-heading h1,.settings-heading h1 {
  margin: 4px 0 0;
  font-size: 27px;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.dashboard-metrics>.metric-link {
  min-width: 0;
}
.metric-v4 {
  height: 100%;
  min-height: 94px;
  background: #fff;
  border: 1px solid var(--dashboard-line);
  border-radius: 13px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 12px #15151508;
  transition: .18s ease;
}
.metric-v4:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px #15151512;
}
.metric-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #edf5ef;
  color: var(--dashboard-green);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
}
.metric-copy {
  min-width: 0;
}
.metric-copy small,.metric-copy em {
  display: block;
  color: #526157;
  font-size: 11px;
  font-style: normal;
}
.metric-copy strong {
  display: block;
  color: #132919;
  font-size: 23px;
  line-height: 1.05;
  margin: 3px 0;
}
.metric-copy em {
  font-size: 9px;
  white-space: normal;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(320px,1fr);
  gap: 15px;
}
.dashboard-panel,.settings-card {
  background: #fff;
  border: 1px solid var(--dashboard-line);
  border-radius: 14px;
  overflow: hidden;
}
.panel-heading,.settings-card-title {
  padding: 18px 19px;
  border-bottom: 1px solid #e5ebe6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-heading h2,.settings-card-title h2 {
  font-size: 15px;
  margin: 0;
}
.panel-heading p,.settings-card-title p {
  font-size: 10px;
  color: #68746b;
  margin: 4px 0 0;
}
.panel-heading>a {
  font-size: 11px;
  color: var(--dashboard-green);
  font-weight: 850;
}
.dashboard-table-scroll,.watch-scroll {
  max-height: 365px;
  overflow: auto;
}
.recent-table,.watch-compact {
  table-layout: auto;
  min-width: 100%;
  white-space: nowrap;
}
.recent-table th,.watch-compact th {
  background: #edf8ef;
  color: #274c31;
}
.recent-table td,.watch-compact td {
  height: 58px;
}
.recent-table td small,.watch-compact td small {
  display: block;
  color: #718077;
  font-size: 9px;
  margin-top: 3px;
}
.movement-pill {
  display: inline-block;
  background: #e3f3e5;
  color: #17652d;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}
.healthy-stock {
  height: 280px!important;
  text-align: center!important;
  color: #445c4a;
}
.healthy-stock span {
  display: grid;
  margin: 0 auto 12px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e7f6e9;
  color: #2e8b47;
}
.healthy-stock strong {
  display: block;
  font-size: 11px;
}
.settings-heading {
  margin-bottom: 26px;
}
.settings-card {
  margin-bottom: 16px;
}
.settings-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 15px;
  padding: 18px 20px;
}
.settings-form .span-2 {
  grid-column: 1/-1;
}
.settings-form .textarea {
  min-height: 78px;
}
.settings-save {
  grid-column: 1/-1;
  text-align: right;
}
.help-text {
  display: block;
  color: #788078;
  font-size: 9px;
  margin-top: 4px;
}
.settings-lists {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
  align-items: start;
}
.quick-add {
  display: flex;
  gap: 8px;
  padding: 13px;
}
.quick-add .select {
  max-width: 105px;
}
.quick-add .btn {
  white-space: nowrap;
}
.settings-rows {
  max-height: 330px;
  overflow: auto;
  border-top: 1px solid #e6e9e6;
}
.settings-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid #ecefec;
}
.settings-row>small {
  grid-column: 1;
  color: #6b756d;
  font-size: 9px;
  margin-top: -6px;
}
.active-check {
  white-space: nowrap;
  font-size: 10px;
  color: #5c665e;
}
.settings-card:nth-child(4) {
  grid-column: span 3;
}
.settings-card:nth-child(4) .settings-rows {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
@media(max-width:1250px) {
  .dashboard-metrics {
    grid-template-columns: repeat(3,1fr);  }
  .dashboard-panels {
    grid-template-columns: 1fr;  }
  .settings-lists {
    grid-template-columns: repeat(2,1fr);  }
  .settings-card:nth-child(4) {
    grid-column: auto;  }
  .settings-card:nth-child(4) .settings-rows {
    display: block;  }
}
@media(max-width:760px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;  }
  .dashboard-panels,.settings-lists,.settings-form {
    grid-template-columns: 1fr;  }
  .settings-form .span-2,.settings-save {
    grid-column: auto;  }
  .metric-v4 {
    min-height: 82px;  }
  .quick-add {
    flex-wrap: wrap;  }
  .quick-add .select {
    max-width: none;  }
  .settings-card:nth-child(4) {
    grid-column: auto;  }
}
/* Revision v5 */
:root {
  --dashboard-green: #b3121d;
  --dashboard-bg: #fff4f5;
  --dashboard-line: #ead5d7;
}
.dashboard-heading>strong,.settings-heading>strong {
  color: #3a2527;
}
.dashboard-heading>small,.settings-heading>small,.panel-heading>a {
  color: #b3121d;
}
.metric-icon {
  background: #ffe8ea;
  color: #b3121d;
}
.metric-copy strong {
  color: #251719;
}
.recent-table th,.watch-compact th {
  background: #fff1f2;
  color: #7f1018;
}
.movement-pill {
  background: #ffe3e6;
  color: #9c111b;
}
.healthy-stock {
  color: #5d4548;
}
.healthy-stock span {
  background: #ffe6e8;
  color: #b3121d;
}
.watch-row {
  cursor: pointer;
  transition: background-color .16s ease;
}
.watch-row:hover,.watch-row:focus {
  background: #ffe8ea;
  outline: none;
}
.dashboard-panels {
  align-items: stretch;
  grid-template-columns: minmax(0,3fr) minmax(0,2fr);
}
.dashboard-panel {
  height: 430px;
}
.dashboard-table-scroll,.watch-scroll {
  height: calc(100% - 72px);
  max-height: none;
}
.watch-compact {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.watch-compact th,.watch-compact td {
  white-space: normal;
}
.watch-compact th:nth-child(1) {
  width: 38%;
}
.watch-compact th:nth-child(2) {
  width: 25%;
}
.watch-compact th:nth-child(3) {
  width: 21%;
}
.watch-compact th:nth-child(4) {
  width: 16%;
}
.filter-panel {
  background: #fff;
  border: 1px solid #dddfe3;
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 15px;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(135px,1fr)) 115px 55px;
  gap: 9px;
  align-items: center;
}
.filter-row .select {
  min-width: 0;
}
.clear-filter {
  height: 38px;
  align-self: center;
}
.search-row {
  display: block;
  width: calc((100% - 215px)/4);
  min-width: 135px;
  margin-top: 10px;
}
.search-row>input[type=hidden],.search-row>datalist {
  display: none;
}
.inventory-table .w150 {
  width: 150px;
}
.inventory-table th:nth-child(2),.inventory-table td:nth-child(2) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}
.report-filters .select {
  width: auto;
}
.quantity-summary {
  grid-column: 1/-1;
  background: #fff1f2;
  border: 1px solid #f0c8cc;
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quantity-summary span {
  color: #6f5558;
  font-size: 12px;
}
.quantity-summary strong {
  color: #a40f19;
  font-size: 22px;
}
.availability-note {
  display: block;
  color: #6f5558;
  font-size: 10px;
  margin-top: 4px;
}
@media(max-width:1100px) {
  .filter-row {
    grid-template-columns: repeat(2,1fr) 115px 55px;  }
  .search-row {
    width: calc((100% - 197px)/2);  }
  .dashboard-panels {
    grid-template-columns: 1fr;  }
}
@media(max-width:720px) {
  .filter-row {
    grid-template-columns: 1fr;  }
  .search-row {
    width: 100%;
    min-width: 0;  }
  .dashboard-panel {
    height: auto;
    min-height: 390px;  }
  .dashboard-table-scroll,.watch-scroll {
    height: auto;
    max-height: 360px;  }
  .clear-filter {
    width: 100%;  }
}
/* Revision v6 */
.section-company-heading {
  margin: 2px 0 10px;
}
.section-company-heading strong {
  display: block;
  color: #3a2527;
  font-size: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.section-company-heading small {
  display: block;
  color: #b3121d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-top: 7px;
}
.section-company-heading+.page-title {
  margin-top: 0;
}
.movement-table th:nth-child(1),.movement-table td:nth-child(1) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}
.movement-table th:nth-child(2),.movement-table td:nth-child(2) {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}
.movement-table th:nth-child(3),.movement-table td:nth-child(3) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}
.movement-table .transaction-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-inventory-table table {
  table-layout: fixed;
  min-width: max-content;
}
.report-inventory-table th,.report-inventory-table td {
  text-align: left;
  vertical-align: middle;
}
.report-inventory-table .w-type {
  width: 100px;
}
.report-inventory-table .w-id {
  width: 150px;
}
.report-inventory-table .w-name,.report-inventory-table .w-category,.report-inventory-table .w-brand,.report-inventory-table .w-condition {
  width: 250px;
}
.report-inventory-table .w-serial,.report-inventory-table .w-unit,.report-inventory-table .w-qty,.report-inventory-table .w-min {
  width: 100px;
}
.report-inventory-table .w-location {
  width: 180px;
}
.report-inventory-table th:nth-child(1),.report-inventory-table td:nth-child(1) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}
.report-inventory-table th:nth-child(2),.report-inventory-table td:nth-child(2) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}
.report-inventory-table th:nth-child(3),.report-inventory-table td:nth-child(3),.report-inventory-table th:nth-child(4),.report-inventory-table td:nth-child(4),.report-inventory-table th:nth-child(5),.report-inventory-table td:nth-child(5),.report-inventory-table th:nth-child(11),.report-inventory-table td:nth-child(11) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}
.report-inventory-table th:nth-child(6),.report-inventory-table td:nth-child(6),.report-inventory-table th:nth-child(7),.report-inventory-table td:nth-child(7),.report-inventory-table th:nth-child(9),.report-inventory-table td:nth-child(9),.report-inventory-table th:nth-child(10),.report-inventory-table td:nth-child(10) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}
.report-inventory-table th:nth-child(8),.report-inventory-table td:nth-child(8) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.report-filters .search-row {
  width: calc((100% - 215px)/4);
  min-width: 135px;
}
.report-filters .search-row .input {
  width: 100%;
  min-width: 0;
}
.settings-heading>small {
  margin-top: 0;
}
.settings-lists {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.settings-card:nth-child(4) {
  grid-column: auto;
}
.settings-card:nth-child(4) .settings-rows {
  display: block;
}
.settings-lists .settings-card-title {
  min-height: 74px;
  align-items: flex-start;
}
.settings-lists .settings-card-title p {
  max-width: 55%;
  text-align: right;
}
.settings-lists .quick-add {
  min-height: 75px;
}
.settings-lists .settings-row {
  grid-template-columns: minmax(0,1fr) auto auto;
}
.audit-table table {
  table-layout: fixed;
  min-width: 1240px;
}
.audit-table .audit-date {
  width: 170px;
}
.audit-table .audit-user {
  width: 170px;
}
.audit-table .audit-action {
  width: 190px;
}
.audit-table .audit-record {
  width: 160px;
}
.audit-table .audit-ip {
  width: 130px;
}
.audit-table .audit-details {
  width: 420px;
}
.audit-table th,.audit-table td {
  text-align: left;
}
.audit-table .audit-details-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
@media(max-width:1400px) {
  .settings-lists {
    grid-template-columns: repeat(2,minmax(0,1fr));  }
}
@media(max-width:1100px) {
  .report-filters .search-row {
    width: calc((100% - 197px)/2);  }
}
@media(max-width:720px) {
  .section-company-heading {
    margin-bottom: 9px;  }
  .settings-lists {
    grid-template-columns: 1fr;  }
  .report-filters .search-row {
    width: 100%;  }
  .movement-table th:nth-child(2),.movement-table td:nth-child(2) {
    width: 175px;
    min-width: 175px;
    max-width: 175px;  }
}
/* Revision v10 */
.settings-card-title,.settings-card-title h2,.settings-card-title p {
  text-align: left;
}
.inventory-table table {
  width: 1880px;
  min-width: 1880px;
  table-layout: fixed;
}
.inventory-table th:nth-child(1),.inventory-table td:nth-child(1) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}
.inventory-table th:nth-child(2),.inventory-table td:nth-child(2) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}
.inventory-table th:nth-child(3),.inventory-table td:nth-child(3) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}
.inventory-table th:nth-child(4),.inventory-table td:nth-child(4) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}
.inventory-table th:nth-child(5),.inventory-table td:nth-child(5) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
}
.inventory-table th:nth-child(6),.inventory-table td:nth-child(6) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.inventory-table th:nth-child(7),.inventory-table td:nth-child(7),.inventory-table th:nth-child(8),.inventory-table td:nth-child(8),.inventory-table th:nth-child(10),.inventory-table td:nth-child(10),.inventory-table th:nth-child(11),.inventory-table td:nth-child(11),.inventory-table th:nth-child(12),.inventory-table td:nth-child(12) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}
.inventory-table th:nth-child(9),.inventory-table td:nth-child(9) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.inventory-table th,.inventory-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.4;
}
.inventory-table th:last-child,.inventory-table td:last-child {
  text-align: left;
}
.report-inventory-table table {
  width: 1880px;
  min-width: 1880px;
  table-layout: fixed;
}
.report-inventory-table th:nth-child(1),.report-inventory-table td:nth-child(1) {
  width: 110px;
}
.report-inventory-table th:nth-child(2),.report-inventory-table td:nth-child(2) {
  width: 110px;
}
.report-inventory-table th:nth-child(3),.report-inventory-table td:nth-child(3) {
  width: 250px;
}
.report-inventory-table th:nth-child(4),.report-inventory-table td:nth-child(4) {
  width: 250px;
}
.report-inventory-table th:nth-child(5),.report-inventory-table td:nth-child(5) {
  width: 250px;
}
.report-inventory-table th:nth-child(6),.report-inventory-table td:nth-child(6) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.report-inventory-table th:nth-child(7),.report-inventory-table td:nth-child(7),.report-inventory-table th:nth-child(8),.report-inventory-table td:nth-child(8),.report-inventory-table th:nth-child(10),.report-inventory-table td:nth-child(10),.report-inventory-table th:nth-child(11),.report-inventory-table td:nth-child(11),.report-inventory-table th:nth-child(12),.report-inventory-table td:nth-child(12) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}
.report-inventory-table th:nth-child(9),.report-inventory-table td:nth-child(9) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.report-inventory-table th,.report-inventory-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.4;
}
.report-inventory-table th:last-child,.report-inventory-table td:last-child {
  text-align: left;
}
.movement-table table {
  width: 2150px;
  min-width: 2150px;
  table-layout: fixed;
}
.movement-table th:nth-child(1),.movement-table td:nth-child(1) {
  width: 110px;
}
.movement-table th:nth-child(2),.movement-table td:nth-child(2) {
  width: 180px;
}
.movement-table th:nth-child(3),.movement-table td:nth-child(3) {
  width: 110px;
}
.movement-table th:nth-child(4),.movement-table td:nth-child(4) {
  width: 180px;
}
.movement-table th:nth-child(5),.movement-table td:nth-child(5) {
  width: 250px;
}
.movement-table th:nth-child(6),.movement-table td:nth-child(6) {
  width: 180px;
}
.movement-table th:nth-child(7),.movement-table td:nth-child(7),.movement-table th:nth-child(8),.movement-table td:nth-child(8),.movement-table th:nth-child(9),.movement-table td:nth-child(9) {
  width: 110px;
}
.movement-table th:nth-child(10),.movement-table td:nth-child(10) {
  width: 250px;
}
.movement-table th:nth-child(11),.movement-table td:nth-child(11),.movement-table th:nth-child(12),.movement-table td:nth-child(12) {
  width: 110px;
}
.movement-table th:nth-child(13),.movement-table td:nth-child(13) {
  width: 180px;
}
.movement-table th:nth-child(14),.movement-table td:nth-child(14) {
  width: 160px;
}
.movement-table th,.movement-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.4;
}
.movement-table th:nth-child(12),.movement-table td:nth-child(12) {
  text-align: left;
}
.quantity-summary {
  grid-column: auto;
  align-self: end;
  margin-bottom: 17px;
  min-height: 47px;
  padding: 8px 12px;
}
.quantity-summary span {
  font-size: 11px;
}
.quantity-summary strong {
  font-size: 18px;
}
.settings-heading p {
  margin: 6px 0 20px;
  color: #777;
  max-width: 720px;
}
.condition-required label:after {
  content: " *";
  color: var(--red);
  font-weight: 800;
}
@media(max-width:950px) {
  .quantity-summary {
    grid-column: auto;  }
}
@media(max-width:720px) {
  .quantity-summary {
    grid-column: auto;  }
}

/* v2 costing, asset register, and depreciation */
[hidden] { display: none !important; }
.movement-table table { width: 2920px; min-width: 2920px; }
.movement-table th,.movement-table td { min-width: 120px; }
.movement-table th:nth-child(5),.movement-table td:nth-child(5),
.movement-table th:nth-child(14),.movement-table td:nth-child(14),
.movement-table th:last-child,.movement-table td:last-child { min-width: 210px; }
.movement-table td strong,.asset-table td strong { display: block; }
.movement-table td small,.asset-table td small { display: block; margin-top: 3px; color: var(--gray); }
.cost-in { color: #197744; font-weight: 800; }
.cost-out { color: var(--red); font-weight: 800; }
.input-pair { display: grid; grid-template-columns: 1fr 115px; gap: 8px; }
.opening-balance-option { padding: 12px 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
.form-message.notice { display: block; margin: 12px 0; padding: 12px 14px; color: #7c2d12; background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; }
.summary-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 0 18px; }
.summary-cards article { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 25px rgba(34,20,21,.05); }
.summary-cards small { display: block; margin-bottom: 6px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.summary-cards strong { font-size: 22px; color: #202124; }
.asset-table table { min-width: 2300px; table-layout: auto; }
.asset-table th,.asset-table td { white-space: normal; min-width: 120px; vertical-align: top; }
.asset-table th:nth-child(3),.asset-table td:nth-child(3),.asset-table th:nth-child(13),.asset-table td:nth-child(13) { min-width: 220px; }
.depreciation-generate { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.depreciation-generate .input { width: auto; min-width: 150px; }
.depreciation-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; align-items: start; }
.run-list { padding: 14px; position: sticky; top: 78px; max-height: calc(100vh - 105px); overflow: auto; }
.run-list h2 { margin: 4px 6px 12px; font-size: 17px; }
.run-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; margin: 4px 0; color: inherit; text-decoration: none; border: 1px solid transparent; border-radius: 10px; }
.run-row:hover,.run-row.active { background: #fff5f5; border-color: #efd0d3; }
.run-row strong,.run-row small { display: block; }
.run-row small { margin-top: 3px; color: var(--gray); font-size: 11px; }
.run-detail { min-width: 0; }
.run-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.run-heading h2 { margin: 0; }
.run-heading p { margin: 5px 0 0; color: var(--gray); }
.run-actions { display: flex; gap: 8px; }
.run-detail .table-wrap table { min-width: 1450px; }
.empty-state { padding: 40px; text-align: center; }
@media(max-width:1050px) {
  .depreciation-layout { grid-template-columns: 1fr; }
  .run-list { position: static; max-height: 300px; }
  .summary-cards { grid-template-columns: 1fr; }
}
@media(max-width:720px) {
  .input-pair { grid-template-columns: 1fr; }
  .depreciation-generate,.run-heading,.run-actions { display: grid; width: 100%; }
  .depreciation-generate .input { width: 100%; }
}

/* v2.1 inventory / asset entry separation and accounting layout */
.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.inventory-table {
  max-height: 68vh;
  scrollbar-gutter: stable;
}
.inventory-table table {
  width: 100%;
  min-width: 1530px;
  table-layout: fixed;
}
.inventory-table.no-costs table {
  min-width: 1110px;
}
.inventory-table col.col-type { width: 90px; }
.inventory-table col.col-item { width: 200px; }
.inventory-table col.col-description { width: 230px; }
.inventory-table col.col-category { width: 150px; }
.inventory-table col.col-unit { width: 80px; }
.inventory-table col.col-location { width: 140px; }
.inventory-table col.col-quantity { width: 120px; }
.inventory-table col.col-money { width: 135px; }
.inventory-table col.col-status { width: 115px; }
.inventory-table th,.inventory-table td,
.inventory-table th:nth-child(n),.inventory-table td:nth-child(n) {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 13px 12px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  vertical-align: middle;
  line-height: 1.35;
}
.inventory-table thead th {
  height: 46px;
  min-height: 46px;
  vertical-align: middle;
  word-break: normal;
}
.inventory-table tbody tr:hover {
  background: #fff7f7;
}
.inventory-table td small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
}
.inventory-table td strong {
  display: block;
  color: #202124;
}
.inventory-table .inventory-money,
.inventory-table .inventory-qty {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.inventory-table .badge {
  white-space: nowrap;
}
.type-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.type-stock {
  color: #135c37;
  background: #dcf5e7;
}
.type-material {
  color: #805500;
  background: #fff0c7;
}
.accounting-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.modal-workflow-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 20px;
  padding: 11px 13px;
  color: #5e4b4d;
  background: #fff;
  border: 1px solid #e1d6d7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
}
@media(max-width:720px) {
  .page-title {
    align-items: flex-start;
    gap: 15px;
  }
  .page-actions {
    width: 100%;
    justify-content: stretch;
  }
  .page-actions .btn {
    flex: 1 1 150px;
  }
  .modal-workflow-note {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v2.1.1 dashboard and transaction layout refinements */
@media(min-width:1251px) {
  .dashboard-metrics {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
}
.metric-v4 {
  min-height: 90px;
  padding: 13px;
  gap: 10px;
}
.metric-copy strong {
  font-size: 20px;
}
.dashboard-panel {
  height: clamp(430px,calc(100vh - 360px),560px);
}
.transaction-summary-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
  margin: 0 0 2px;
}
.transaction-summary-strip .quantity-summary {
  grid-column: auto;
  align-self: stretch;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
}
.transaction-summary-strip .quantity-summary span {
  font-size: 10px;
}
.transaction-summary-strip .quantity-summary strong {
  font-size: 16px;
}
.transaction-summary-strip.serialized-summary {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
@media(max-width:950px) {
  .transaction-summary-strip,
  .transaction-summary-strip.serialized-summary {
    grid-template-columns: 1fr;
  }
}
@media(max-width:720px) {
  .dashboard-panel {
    height: auto;
  }
  .transaction-summary-strip {
    grid-column: auto;
  }
}

/* v2.2 automatic asset identification and dashboard 4/2 alignment */
@media(min-width:1251px) {
  .dashboard-panels {
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  }
}
.generated-identifier[readonly] {
  color: #8e111a;
  background: #fff8f8;
  font-weight: 800;
  letter-spacing: .025em;
}
.asset-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* v2.2.2 depreciation and report layout refinements */
@media(min-width:1051px) {
  .depreciation-layout {
    grid-template-columns: 330px minmax(0,1fr);
  }
}
.run-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
}
.run-row > span:first-child {
  min-width: 0;
}
.run-row strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-row small {
  font-size: 10px;
  white-space: nowrap;
}
.run-detail .table-wrap table {
  width: 1420px;
  min-width: 1420px;
  table-layout: fixed;
}
.run-detail .table-wrap th:nth-child(1) { width: 165px; }
.run-detail .table-wrap th:nth-child(2) { width: 85px; }
.run-detail .table-wrap th:nth-child(3) { width: 145px; }
.run-detail .table-wrap th:nth-child(4) { width: 220px; }
.run-detail .table-wrap th:nth-child(5) { width: 65px; }
.run-detail .table-wrap th:nth-child(6) { width: 125px; }
.run-detail .table-wrap th:nth-child(7) { width: 150px; }
.run-detail .table-wrap th:nth-child(8) { width: 145px; }
.run-detail .table-wrap th:nth-child(9) { width: 145px; }
.run-detail .table-wrap th:nth-child(10) { width: 135px; }
.run-detail .table-wrap th:nth-child(4),
.run-detail .table-wrap td:nth-child(4) {
  white-space: nowrap;
}
.run-detail .table-wrap th:nth-child(5),
.run-detail .table-wrap td:nth-child(5) {
  text-align: center;
}
.report-filters .filter-row {
  grid-template-columns: minmax(155px,.72fr) minmax(155px,.72fr) minmax(180px,1fr) minmax(180px,1fr) minmax(220px,1.15fr) 90px;
  gap: 10px;
}
.report-filters .filter-row > .input,
.report-filters .filter-row > .select,
.report-filters .filter-row > .btn {
  width: 100%;
  min-width: 0;
}
.report-filters .filter-row > .btn {
  height: 48px;
  padding-inline: 12px;
}
@media(max-width:1250px) {
  .report-filters .filter-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .report-filters .filter-row > .btn {
    grid-column: 1/-1;
  }
}
@media(max-width:720px) {
  .report-filters .filter-row {
    grid-template-columns: 1fr;
  }
  .report-filters .filter-row > .btn {
    grid-column: auto;
  }
}

/* v2.2.3 dashboard recent-transaction table */
.recent-panel .dashboard-table-scroll {
  height: calc(100% - 72px);
  max-height: none;
  overflow-x: auto;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dashboard-recent-table {
  width: 1660px;
  min-width: 1660px;
  table-layout: fixed;
}
.dashboard-recent-table.no-costs {
  width: 1110px;
  min-width: 1110px;
}
.dashboard-recent-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.dashboard-recent-table th,
.dashboard-recent-table td {
  white-space: nowrap;
}
.dashboard-recent-table th:nth-child(1) { width: 110px; }
.dashboard-recent-table th:nth-child(2) { width: 180px; }
.dashboard-recent-table th:nth-child(3) { width: 85px; }
.dashboard-recent-table th:nth-child(4) { width: 125px; }
.dashboard-recent-table th:nth-child(5) { width: 250px; }
.dashboard-recent-table th:nth-child(6) { width: 155px; }
.dashboard-recent-table th:nth-child(7) { width: 95px; }
.dashboard-recent-table th:nth-child(8) { width: 115px; }
.dashboard-recent-table th:nth-child(9) { width: 125px; }
.dashboard-recent-table th:nth-child(10) { width: 150px; }
.dashboard-recent-table th:nth-child(11) { width: 130px; }
.dashboard-recent-table th:nth-child(12) { width: 140px; }
@media(max-width:720px) {
  .recent-panel .dashboard-table-scroll {
    height: 360px;
    max-height: 360px;
  }
}

/* v2.2.4 asset unit edit locking */
.asset-lock-notice {
  margin: 8px 0 14px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}
.view-only-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

/* v2.3 serialized Asset/Rental transaction flow */
[data-equipment-unit][readonly] {
  color: #111827;
  background: #fff;
  font-weight: 700;
}

/* v2.4 Asset/Rental equipment-master entry */
.asset-item-entry-layout {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(270px,.9fr);
  gap: 18px;
  align-items: start;
}
.asset-item-form {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-content: start;
}
.existing-equipment-panel {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #ddd2d3;
  border-radius: 12px;
}
.existing-equipment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.existing-equipment-heading h3 {
  margin: 0;
  font-size: 15px;
}
.existing-equipment-heading p {
  margin: 3px 0 0;
  color: #777;
  font-size: 10px;
}
.existing-equipment-heading > span {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  padding: 4px 7px;
  place-items: center;
  color: #9d1119;
  background: #ffe9eb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.existing-equipment-search {
  width: 100%;
  min-height: 40px!important;
  margin-bottom: 10px;
  font-size: 12px;
}
.existing-equipment-list {
  max-height: calc(100vh - 265px);
  min-height: 250px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.existing-equipment-item {
  padding: 10px 4px;
  border-bottom: 1px solid #ece7e8;
}
.existing-equipment-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.existing-equipment-item strong {
  min-width: 0;
  color: #202124;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.existing-equipment-item small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 10px;
  line-height: 1.35;
}
.existing-equipment-empty {
  padding: 28px 10px;
  color: #777;
  text-align: center;
  font-size: 11px;
}
.type-asset {
  color: #7a1b23;
  background: #ffe1e4;
}
.type-rental {
  color: #145a4a;
  background: #dff4ee;
}
@media(max-width:850px) {
  .asset-item-entry-layout {
    grid-template-columns: 1fr;
  }
  .existing-equipment-list {
    max-height: 300px;
  }
}
@media(max-width:560px) {
  .asset-item-form {
    grid-template-columns: 1fr;
  }
  .asset-item-form .span-2 {
    grid-column: auto;
  }
}
