@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Outfit:wght@500;600;700;800&display=swap');
:root {
  --ink: #15261e;
  --muted: #758079;
  --green: #176b45;
  --green2: #25a66b;
  --pale: #edf7f1;
  --line: #e5ebe7;
  --bg: #f6f8f7;
  --white: #fff;
  --shadow: 0 10px 35px rgba(22, 48, 35, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
strong,
.brand {
  font-family: Manrope, sans-serif;
}
.app-shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  padding: 25px 18px;
  background: #0f2d20;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}
.brand-mark,
.login-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #37bd7b, #1b7950);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 22px #071c1266;
}
.brand b {
  display: block;
}
.brand small {
  display: block;
  color: #9eb5a8;
  font: 11px 'DM Sans';
  margin-top: 2px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: #afc2b8;
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #fff1;
  color: #fff;
  transform: translateX(2px);
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 #38b978;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff18;
  padding-top: 20px;
}
.sidebar-foot > a {
  display: block;
  color: #9eb5a8;
  padding: 12px 5px;
}
.user-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.user-chip > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #2e7654;
  border-radius: 50%;
  font-weight: 700;
}
.user-chip b,
.user-chip small {
  display: block;
  font-size: 12px;
}
.user-chip small {
  color: #9eb5a8;
  margin-top: 2px;
}
.app-shell > main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 {
  font-size: 20px;
  margin: 0 0 2px;
}
.topbar p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.top-actions {
  font-size: 12px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ab573;
  margin-right: 6px;
  box-shadow: 0 0 0 4px #2ab57322;
}
.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
}
.content {
  padding: 28px 32px;
  max-width: 1600px;
  margin: auto;
}
.alert {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
  background: #e9f7ef;
  color: #167044;
  animation: slide 0.35s;
}
.alert.error {
  background: #fff0ee;
  color: #a63c30;
}
.welcome {
  background: linear-gradient(120deg, #103b29, #1b6847);
  color: #fff;
  padding: 28px 32px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.welcome:after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 50px solid #ffffff08;
  border-radius: 50%;
  right: 12%;
  top: -95px;
}
.welcome h2 {
  font-size: 25px;
  margin: 7px 0;
}
.welcome p {
  color: #b8cfc3;
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #45c887;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 15px #183d2920;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.welcome .btn {
  z-index: 1;
  background: #fff;
  color: var(--green);
  border: 0;
}
.btn.small {
  font-size: 11px;
  padding: 7px 10px;
}
.btn.full {
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  box-shadow: 0 4px 15px #183d2908;
  position: relative;
  transition: 0.25s;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat > i {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
}
.stat i.green {
  background: #e8f8ef;
  color: #168553;
}
.stat i.orange {
  background: #fff5e5;
  color: #c17c10;
}
.stat i.blue {
  background: #eaf4ff;
  color: #277bb8;
}
.stat i.red {
  background: #ffeded;
  color: #c84a42;
}
.stat > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 13px;
}
.stat strong {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}
.stat small {
  color: #98a29c;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 18px #183d2907;
}
.panel-head {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font-size: 15px;
  margin: 0 0 3px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.panel-head > a {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.bars {
  height: 220px;
  padding: 30px 30px 20px;
  display: flex;
  align-items: end;
  gap: 18px;
}
.bar-wrap {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}
.bar {
  width: min(34px, 70%);
  background: linear-gradient(#3fbc7d, #1d7851);
  border-radius: 7px 7px 3px 3px;
  min-height: 7px;
  position: relative;
  transition: 0.4s;
}
.bar span {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #173526;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
}
.bar:hover span {
  opacity: 1;
}
.quick-actions {
  padding: 8px 18px;
}
.quick-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.quick-actions a:last-child {
  border: 0;
}
.quick-actions a > b {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--green);
}
.quick-actions a > span {
  flex: 1;
  font-weight: 600;
}
.quick-actions small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 9px;
  color: #87938c;
  background: #fafbfa;
}
th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
tbody tr {
  transition: 0.15s;
}
tbody tr:hover {
  background: #fbfdfc;
}
tbody tr:last-child td {
  border: 0;
}
.badge {
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}
.badge.payee {
  background: #e7f8ee;
  color: #198353;
}
.badge.non_payee {
  background: #fff0ee;
  color: #b04940;
}
.badge.partielle {
  background: #fff5df;
  color: #a36c14;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 35px;
}
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.list-toolbar h2 {
  font-size: 18px;
  margin: 0 0 3px;
}
.list-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #ecefec;
  padding: 4px;
  border-radius: 10px;
}
.tabs a {
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 12px;
}
.tabs a.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 7px #0001;
  font-weight: 600;
}
.selection-bar {
  display: none;
  background: #143c2a;
  color: #fff;
  border-radius: 11px;
  padding: 11px 16px;
  margin-bottom: 12px;
  align-items: center;
  gap: 14px;
}
.selection-bar.show {
  display: flex;
  animation: slide 0.25s;
}
.selection-bar strong {
  margin-left: auto;
}
.selection-bar small {
  color: #a8c3b5;
}
.attachment {
  display: block;
  color: var(--green);
  font-size: 9px;
  margin-top: 3px;
}
.form-layout {
  max-width: 780px;
  margin: auto;
}
.form-card {
  padding-bottom: 20px;
}
.form-card > .form-grid,
.form-card > .btn,
.form-card > .form-total {
  margin-left: 20px;
  margin-right: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.form-grid .wide {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: #536158;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4df;
  background: #fff;
  padding: 11px 12px;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  transition: 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #4ba67a;
  box-shadow: 0 0 0 3px #3dad7518;
}
label small {
  color: #95a098;
  font-weight: 400;
}
.form-total {
  background: var(--pale);
  padding: 13px 15px;
  border-radius: 9px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 25px 80px #102c1e44;
  width: min(500px, calc(100% - 25px));
  animation: pop 0.2s;
}
dialog::backdrop {
  background: #0c2116aa;
  backdrop-filter: blur(3px);
}
.dialog-card {
  padding: 25px;
  display: grid;
  gap: 15px;
  position: relative;
}
.dialog-card h3 {
  font-size: 19px;
  margin: 0;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 23px;
  color: #859087;
  cursor: pointer;
}
.stock-stats {
  grid-template-columns: repeat(3, 1fr);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-icon,
.pos-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--pale);
  border-radius: 12px;
  font-size: 23px;
}
.product-info {
  flex: 1;
}
.product-info h3 {
  font-size: 14px;
  margin: 3px 0;
}
.product-info small,
.product-info p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.stock-level {
  min-width: 120px;
  text-align: right;
}
.stock-level strong {
  font-size: 18px;
  display: block;
}
.stock-level span,
.stock-level small {
  font-size: 9px;
  color: var(--muted);
}
.stock-level > div {
  height: 4px;
  background: #edf0ee;
  border-radius: 5px;
  margin: 7px 0 2px;
}
.stock-level i {
  height: 100%;
  display: block;
  background: #34ad71;
  border-radius: 5px;
}
.stock-level.low strong,
.stock-level.low small {
  color: #c44b42;
}
.stock-level.low i {
  background: #df6158;
}
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
  align-items: start;
}
.pos-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pos-search input {
  max-width: 420px;
  background: #fff;
}
.pos-search span {
  font-size: 11px;
  color: var(--muted);
}
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pos-product {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 14px;
  display: grid;
  gap: 5px;
  cursor: pointer;
  transition: 0.2s;
  color: var(--ink);
}
.pos-product:hover {
  border-color: #68ac88;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pos-product small {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}
.pos-product b {
  font-size: 12px;
  min-height: 32px;
}
.pos-product em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}
.pos-product i {
  font-size: 9px;
  color: #8c978f;
  font-style: normal;
}
.cart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  position: sticky;
  top: 106px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cart-head {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.cart-head h2 {
  font-size: 15px;
  margin: 0;
}
.cart-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 0;
}
.cart-head button {
  border: 0;
  background: none;
  color: #bd534a;
  font-size: 10px;
  cursor: pointer;
}
.cart-items {
  max-height: 275px;
  overflow: auto;
  min-height: 165px;
}
.empty-cart {
  height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ba49f;
}
.empty-cart span {
  font-size: 25px;
  margin-bottom: 9px;
}
.empty-cart b {
  font-size: 12px;
}
.empty-cart p {
  font-size: 10px;
  margin: 4px;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cart-line > div:first-child {
  grid-column: 1;
}
.cart-line b,
.cart-line small {
  display: block;
  font-size: 11px;
}
.cart-line small {
  color: var(--muted);
  margin-top: 2px;
}
.cart-line > strong {
  grid-column: 2;
  font-size: 11px;
}
.qty-control {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}
.qty-control button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  width: 23px;
  height: 23px;
  cursor: pointer;
}
.remove {
  position: absolute;
  right: 5px;
  top: 2px;
  border: 0;
  background: none;
  color: #b7bdb9;
  cursor: pointer;
}
.cart-panel form {
  padding: 15px 18px;
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line);
}
.cart-totals p,
.change {
  display: flex;
  justify-content: space-between;
  margin: 0 0 7px;
  font-size: 11px;
}
.cart-totals .grand {
  border-top: 1px dashed #dce2de;
  padding-top: 11px;
  font-size: 14px;
}
.grand strong {
  color: var(--green);
  font-size: 17px;
}
.change {
  background: #f2f7f4;
  padding: 9px;
  border-radius: 7px;
}
.checkout {
  padding: 13px;
}
.sale-success {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #e8f8ef;
  border: 1px solid #c8ead7;
  color: #176c45;
  padding: 12px 15px;
  border-radius: 11px;
  margin-bottom: 16px;
}
.sale-success > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #26a668;
  color: #fff;
  display: grid;
  place-items: center;
}
.sale-success b,
.sale-success small {
  display: block;
}
.sale-success small {
  margin-top: 2px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
}
.login-visual {
  background: linear-gradient(145deg, #0d2b1d, #195a3d);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 80px;
  display: flex;
  align-items: center;
}
.visual-copy {
  z-index: 1;
  max-width: 550px;
}
.visual-copy h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 15px 0;
}
.visual-copy h1 em {
  font-style: normal;
  color: #4fd08b;
}
.visual-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: #b8cfc3;
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 70px solid #ffffff08;
}
.orb-a {
  width: 380px;
  height: 380px;
  right: -150px;
  top: -100px;
}
.orb-b {
  width: 300px;
  height: 300px;
  left: -100px;
  bottom: -100px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: min(380px, 100%);
}
.login-logo {
  color: #fff;
  margin-bottom: 30px;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 7px;
}
.login-card > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.login-card label {
  margin: 15px 0;
}
.login-card .btn {
  margin-top: 7px;
  padding: 13px;
}
.login-help {
  display: block;
  text-align: center;
  color: #99a29d;
  margin-top: 20px;
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-layout {
    grid-template-columns: 1fr 330px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .app-shell > main {
    display: block;
  }
  .menu {
    display: block;
  }
  .topbar {
    padding: 15px 18px;
    justify-content: flex-start;
    gap: 15px;
  }
  .top-actions {
    margin-left: auto;
    display: none;
  }
  .content {
    padding: 18px;
  }
  .welcome {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
  .dashboard-grid,
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
  }
  .list-toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .tabs {
    overflow: auto;
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .stats-grid,
  .stock-stats,
  .pos-product-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .product-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stock-level {
    width: 100%;
  }
  .content {
    padding: 12px;
  }
  .welcome {
    padding: 22px;
  }
  .topbar {
    height: 74px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .bars {
    padding: 25px 12px;
  }
  .selection-bar {
    flex-wrap: wrap;
  }
  .selection-bar strong {
    margin-left: 0;
  }
  .login-panel {
    padding: 25px;
  }
}
.mobile-nav {
  display: none;
}
.sidebar nav .menu-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.2s,
    stroke-width 0.2s;
}
.sidebar nav a:hover .menu-icon {
  transform: translateY(-1px) scale(1.06);
}
.sidebar nav a.active .menu-icon {
  stroke-width: 2.1;
}
.product-photo {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.product-photo img,
.pos-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card {
  position: relative;
}
.product-card.has-edit {
  padding-right: 60px;
}
.edit-product {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #cfe3d7;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #edf7f1);
  color: var(--green);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 5px 13px #183d2915;
  transition: 0.2s;
}
.edit-product svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edit-product:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #176b4535;
}
.edit-product:active {
  transform: scale(0.94);
}
.edit-product:focus-visible {
  outline: 3px solid #35ad7540;
  outline-offset: 2px;
}
.pos-photo {
  height: 125px;
  border-radius: 9px;
  margin-bottom: 5px;
  background: #eef3ef;
}
.pos-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}
.image-input input {
  padding: 8px;
}
.date-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.date-filters label {
  min-width: 170px;
}
.filter-reset {
  color: #a44b43;
  font-size: 11px;
  margin: 0 5px 10px;
}
.founder-credit {
  display: inline-block;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ffffff25;
  color: #c5d8ce;
  letter-spacing: 0.5px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.settings-card {
  overflow: hidden;
}
.settings-form {
  padding: 20px;
}
.settings-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--green);
  display: grid;
  place-items: center;
}
.password-zone {
  margin: 5px 0 18px;
  padding: 15px;
  background: #f8faf9;
  border-radius: 10px;
}
.password-zone h4 {
  margin: 0;
  font: 600 12px Manrope;
}
.access-card {
  background: linear-gradient(145deg, #123b29, #1d6c49);
  color: #fff;
  padding: 23px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.access-card > span {
  font-size: 23px;
}
.access-card h3 {
  font-size: 15px;
  margin: 15px 0 7px;
}
.access-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #bdd1c6;
  margin: 0;
}
.company-settings,
.users-settings {
  grid-column: 1/-1;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f5f9f6;
  padding: 11px;
  border-radius: 9px;
}
.switch-label input,
.mini-switch input {
  width: auto;
}
.user-settings-list {
  padding: 5px 20px;
}
.user-setting-row {
  display: grid;
  grid-template-columns: 38px minmax(160px, 1fr) 130px 80px auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.user-setting-row:last-child {
  border: 0;
}
.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-setting-row b,
.user-setting-row small {
  display: block;
}
.user-setting-row b {
  font-size: 12px;
}
.user-setting-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.user-setting-row select {
  padding: 8px;
}
.mini-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}
.brand b,
.brand small {
  max-width: 145px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .company-settings,
  .users-settings {
    grid-column: auto;
  }
  .user-setting-row {
    grid-template-columns: 38px 1fr;
  }
  .user-setting-row select,
  .user-setting-row .mini-switch,
  .user-setting-row .btn {
    grid-column: 2;
  }
}
@media (max-width: 800px) {
  .date-filters {
    flex-wrap: wrap;
  }
  .date-filters label {
    flex: 1;
    min-width: 130px;
  }
}
@media (max-width: 800px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background: #f3f6f4;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    z-index: 50;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    height: 66px;
    padding: 6px 4px;
    background: #fff;
    border: 1px solid #dfe8e2;
    border-radius: 20px;
    box-shadow: 0 12px 40px #112d2060;
    backdrop-filter: blur(16px);
  }
  .mobile-nav > a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #87938c;
    font-size: 9px;
    font-weight: 600;
    border-radius: 14px;
    transition: 0.2s;
  }
  .mobile-nav > a > svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav > a.active {
    color: var(--green);
    background: var(--pale);
  }
  .mobile-nav > a:active {
    transform: scale(0.93);
  }
  .mobile-pos {
    position: relative;
  }
  .mobile-pos-icon {
    width: 42px;
    height: 42px;
    margin-top: -25px;
    border-radius: 15px;
    background: linear-gradient(145deg, #23885b, #135f3d);
    color: #fff;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    box-shadow: 0 7px 16px #176b4555;
  }
  .mobile-pos-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav .mobile-pos.active {
    background: transparent;
  }
  .mobile-nav .mobile-pos.active .mobile-pos-icon {
    background: linear-gradient(145deg, #35af76, #176b45);
  }
  .topbar {
    position: sticky;
    top: 0;
    background: #ffffffee;
    backdrop-filter: blur(14px);
    border-bottom-color: #e4ebe6;
  }
  .content {
    padding-bottom: 18px;
  }
  .panel,
  .stat,
  .product-card,
  .cart-panel {
    border-radius: 17px;
  }
  .welcome {
    border-radius: 20px;
  }
  .app-shell > main {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .mobile-nav.items-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .mobile-nav.items-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-nav.items-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 520px) {
  .mobile-nav > a span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pos-search {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }
  .pos-search input {
    max-width: none;
  }
  .pos-search span {
    padding-left: 4px;
  }
}
.settings-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ffffff24;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.settings-logout span {
  font-size: 16px;
}
.topbar-title {
  min-width: 0;
}
.top-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.top-profile > form {
  margin: 0;
}
.top-profile-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 11px;
  transition: 0.2s;
}
.top-profile-user:hover {
  background: var(--pale);
}
.top-avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(145deg, #2da66d, #176b45);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 5px 12px #176b4530;
}
.top-profile-copy {
  min-width: 0;
}
.top-profile-copy b,
.top-profile-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-profile-copy b {
  font-size: 11px;
  max-width: 150px;
}
.top-profile-copy small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.top-logout {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #eadfdd;
  border-radius: 10px;
  background: transparent;
  color: #a44840;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.top-logout:hover {
  background: #fff1ef;
  border-color: #e4c5c1;
}
.top-logout svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 800px) {
  .topbar {
    justify-content: space-between;
  }
  .topbar-title {
    flex: 1;
  }
  .top-profile {
    gap: 5px;
  }
  .top-profile-user {
    padding: 3px;
    gap: 6px;
  }
  .top-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .top-profile-copy b {
    max-width: 90px;
    font-size: 10px;
  }
  .top-profile-copy small {
    display: none;
  }
  .top-logout {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .top-logout span {
    display: none;
  }
}
@media (max-width: 420px) {
  .topbar-title p {
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-profile-copy b {
    max-width: 70px;
  }
  .topbar {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
.role-pill,
.account-status {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}
.role-pill.admin {
  background: #e9efff;
  color: #365fa8;
}
.role-pill.directrice {
  background: #efe9ff;
  color: #7150a5;
}
.role-pill.caissier {
  background: #e7f7ee;
  color: #267b50;
}
.account-status.active {
  background: #e8f8ef;
  color: #198353;
}
.account-status.inactive {
  background: #f1f2f1;
  color: #7e8781;
}
.selection-total {
  display: grid;
  gap: 1px;
  padding-left: 14px;
  border-left: 1px solid #ffffff25;
}
.selection-total small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.selection-total strong {
  font-size: 12px;
}
.batch-payment-btn {
  margin-left: auto;
  background: #fff;
  color: var(--green);
  border: 0;
}
.batch-payment-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dialog-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--pale);
  color: var(--green);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .selection-bar {
    align-items: flex-start;
  }
  .selection-total {
    padding-left: 8px;
  }
  .batch-payment-btn {
    width: 100%;
    margin-left: 0;
  }
}
.toolbar-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.history-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(110px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  margin-bottom: 15px;
}
.history-filters .btn {
  height: 39px;
}
.event-badge,
.movement-badge,
.payment-method {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}
.event-badge.creation {
  background: #e8f5ff;
  color: #31749d;
}
.event-badge.modification {
  background: #fff5df;
  color: #9b6b18;
}
.event-badge.paiement {
  background: #e6f8ed;
  color: #1c8051;
}
.event-badge.annulation_paiement {
  background: #ffebe9;
  color: #b34339;
}
.cancelled-mark {
  display: block;
  color: #b34339;
  font-size: 8px;
  margin-top: 4px;
}
.event-amount {
  font-weight: 700;
  color: var(--green);
}
.event-amount.negative {
  color: #bd443b;
}
.eyebrow.danger {
  color: #bf443c;
}
.dialog-note.warning {
  background: #fff3e7;
  color: #985b1f;
}
.danger-btn {
  background: #b94239;
  color: #fff;
  border-color: #b94239;
}
.edit-warning {
  margin: 0 20px 15px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #fff4e5;
  color: #98601e;
  font-size: 11px;
}
.movement-badge.entree {
  background: #e6f8ed;
  color: #1c8051;
}
.movement-badge.sortie,
.movement-badge.ajustement {
  background: #ffebe9;
  color: #b34339;
}
.movement-badge.vente {
  background: #eaf1ff;
  color: #3568a5;
}
.movement-quantity {
  font-weight: 700;
}
.movement-quantity.positive {
  color: #1b8352;
}
.movement-quantity.negative {
  color: #b34339;
}
.table-subtitle {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.payment-method.especes {
  background: #e6f8ed;
  color: #1c8051;
}
.payment-method.virement {
  background: #eaf1ff;
  color: #3568a5;
}
.sale-items-cell {
  max-width: 300px;
  white-space: normal;
  line-height: 1.5;
}
.pos-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pos-page-toolbar > span {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .history-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-filters .search-field {
    grid-column: 1/-1;
  }
  .history-filters .btn {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .history-filters {
    grid-template-columns: 1fr;
  }
  .history-filters .search-field {
    grid-column: auto;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions .btn {
    flex: 1;
  }
  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pos-page-toolbar {
    gap: 10px;
  }
  .pos-page-toolbar > span {
    display: none;
  }
}
.clients-settings {
  grid-column: 1/-1;
}
.client-settings-list {
  padding: 5px 20px;
}
.client-setting-row {
  display: grid;
  grid-template-columns: 40px minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.client-setting-row:last-child {
  border: 0;
}
.client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8f7ef;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.client-main b,
.client-main small,
.client-contact span,
.client-contact b {
  display: block;
}
.client-main b {
  font-size: 12px;
}
.client-main small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.client-contact span {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.client-contact b {
  font-size: 10px;
  margin-top: 3px;
}
@media (max-width: 800px) {
  .clients-settings {
    grid-column: auto;
  }
  .client-setting-row {
    grid-template-columns: 40px 1fr auto;
  }
  .client-contact {
    grid-column: 2;
  }
  .client-setting-row > .btn {
    grid-column: 3;
    grid-row: 1;
  }
}
.settings-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collapse-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  font-size: 21px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.2s;
}
.collapse-toggle:hover {
  background: var(--pale);
}
.settings-collapsible:not(.collapsed) .collapse-toggle {
  transform: rotate(180deg);
}
.settings-collapsible.collapsed > :not(.panel-head) {
  display: none;
}
.settings-collapsible:not(.collapsed) > :not(.panel-head) {
  animation: settingsReveal 0.25s ease;
}
.settings-collapsible .panel-head {
  cursor: default;
}
@keyframes settingsReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 520px) {
  .settings-head-actions > .btn {
    font-size: 0;
    padding: 0;
    width: 34px;
    height: 34px;
  }
  .settings-head-actions > .btn::first-letter {
    font-size: 15px;
  }
  .settings-card .panel-head {
    padding: 15px;
  }
  .settings-card .panel-head p {
    max-width: 175px;
  }
}
.settings-collapsible {
  position: relative;
  padding-bottom: 52px;
}
.settings-collapsible.collapsed > .collapse-toggle,
.settings-collapsible:not(.collapsed) > .collapse-toggle {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: auto;
  height: 34px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e8df;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f1f8f4);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px #183d2912;
  z-index: 2;
}
.settings-collapsible:not(.collapsed) > .collapse-toggle {
  transform: translateX(-50%);
}
.collapse-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}
.settings-collapsible:not(.collapsed) > .collapse-toggle svg {
  transform: rotate(180deg);
}
.collapse-toggle:hover {
  background: var(--pale);
  box-shadow: 0 6px 15px #183d2920;
}
.settings-collapsible.collapsed {
  min-height: 116px;
}
.settings-collapsible.collapsed > :not(.panel-head):not(.collapse-toggle) {
  display: none;
}
.settings-collapsible:not(.collapsed) > :not(.panel-head):not(.collapse-toggle) {
  animation: settingsReveal 0.25s ease;
}
.readonly-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #cfe4d8;
  border-radius: 12px;
  background: #f2f9f5;
  color: #315b46;
  font-size: 13px;
  line-height: 1.5;
}
.settings-readonly input:disabled {
  background: #f5f7f6;
  color: #53635b;
  cursor: not-allowed;
  opacity: 1;
}
.password-field {
  display: block;
  position: relative;
  width: 100%;
}
.password-field > input {
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b8880;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}
.password-toggle:hover,
.password-toggle.visible {
  background: var(--pale);
  color: var(--green);
}
.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle.visible svg circle {
  fill: currentColor;
  stroke: currentColor;
}
.forgot-link {
  display: block;
  text-align: right;
  margin: -7px 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.forgot-link:hover {
  text-decoration: underline;
}
.back-login {
  display: inline-flex;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.back-login:hover {
  color: var(--green);
}
.reset-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--pale);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 22px;
}
.alert.info {
  background: #eef5ff;
  color: #365f8e;
  font-size: 11px;
  line-height: 1.5;
}
.reset-page .login-card .btn {
  margin-top: 17px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 4px;
  flex-wrap: wrap;
}
.pagination > a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #5f6d65;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 10px #183d2908;
  transition: 0.2s;
}
.pagination > a:hover {
  border-color: #7ab395;
  color: var(--green);
  transform: translateY(-1px);
}
.pagination .page-number.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 5px 13px #176b4540;
}
.pagination .page-arrow {
  font-size: 20px;
}
.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}
.page-dots {
  color: var(--muted);
  padding: 0 3px;
}
.pagination small {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.login-wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 32px;
  position: relative;
}
.wordmark-emblem {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1c7a50, #2fba78);
  display: grid;
  place-items: center;
  box-shadow: 0 11px 25px #176b4540;
  position: relative;
  overflow: hidden;
  animation: wordmarkFloat 4s ease-in-out infinite;
}
.wordmark-emblem:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 7px solid #ffffff15;
  border-radius: 50%;
  right: -12px;
  top: -11px;
}
.wordmark-emblem svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
.wordmark-emblem .leaf {
  fill: #ffffff12;
}
.wordmark-emblem circle {
  fill: #f2c85d;
  stroke: #f2c85d;
}
.wordmark-copy {
  display: grid;
  line-height: 1;
}
.wordmark-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.1px;
  color: #779086;
  margin-bottom: 6px;
}
.wordmark-copy > b {
  font:
    800 24px/1 Manrope,
    sans-serif;
  letter-spacing: -1px;
  color: #15261e;
  white-space: nowrap;
}
.wordmark-copy > b strong {
  color: #209462;
  font: inherit;
  position: relative;
}
.wordmark-copy > b strong:after {
  content: '';
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2db879, #f0c95e);
  transform: skewX(-20deg);
}
.wordmark-copy > small {
  font-size: 8px;
  letter-spacing: 0.65px;
  color: #8b9790;
  margin-top: 9px;
}
.login-card h2 {
  position: relative;
}
.login-card h2:after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efc65b;
  margin-left: 7px;
  vertical-align: top;
  margin-top: 4px;
}
@keyframes wordmarkFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-3px) rotate(-2deg);
  }
}
@media (max-width: 420px) {
  .wordmark-emblem {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
    border-radius: 16px;
  }
  .wordmark-copy > b {
    font-size: 20px;
  }
  .wordmark-kicker {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  .login-wordmark {
    gap: 10px;
  }
}
.login-visual {
  isolation: isolate;
}
.login-visual:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 48%, #2da86d33, transparent 38%),
    linear-gradient(90deg, transparent 42%, #071f15aa 100%);
  z-index: 0;
}
.visual-copy {
  max-width: 490px;
}
.aviculture-showcase {
  position: absolute;
  z-index: 1;
  right: -4%;
  top: 4%;
  bottom: 0;
  width: 58%;
  pointer-events: none;
}
.aviculture-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(55px) scale(0.96);
  animation: avicultureSlide 18s ease-in-out infinite;
}
.aviculture-slide.slide-two {
  animation-delay: 6s;
}
.aviculture-slide.slide-three {
  animation-delay: 12s;
}
.aviculture-slide img {
  width: 100%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: lighten;
  filter: saturate(0.92) contrast(1.03) drop-shadow(0 24px 30px #0007);
  -webkit-mask-image: radial-gradient(ellipse 72% 86% at 55% 48%, #000 53%, transparent 92%);
  mask-image: radial-gradient(ellipse 72% 86% at 55% 48%, #000 53%, transparent 92%);
}
.aviculture-slide figcaption {
  position: absolute;
  right: 10%;
  bottom: 8%;
  min-width: 215px;
  padding: 12px 16px 12px 48px;
  border: 1px solid #ffffff25;
  border-radius: 14px;
  background: #0b291dc7;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 30px #05160f55;
  color: #fff;
}
.aviculture-slide figcaption > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #35ba7b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
}
.aviculture-slide figcaption b,
.aviculture-slide figcaption small {
  display: block;
}
.aviculture-slide figcaption b {
  font-size: 11px;
}
.aviculture-slide figcaption small {
  font-size: 8px;
  color: #a9c5b6;
  margin-top: 3px;
}
.showcase-progress {
  position: absolute;
  right: 11%;
  bottom: 4%;
  display: flex;
  gap: 5px;
}
.showcase-progress i {
  width: 22px;
  height: 3px;
  border-radius: 5px;
  background: #ffffff2d;
  overflow: hidden;
  position: relative;
}
.showcase-progress i:after {
  content: '';
  position: absolute;
  inset: 0;
  background: #43c986;
  transform: scaleX(0);
  transform-origin: left;
  animation: showcaseProgress 18s linear infinite;
}
.showcase-progress i:nth-child(2):after {
  animation-delay: 6s;
}
.showcase-progress i:nth-child(3):after {
  animation-delay: 12s;
}
@keyframes avicultureSlide {
  0% {
    opacity: 0;
    transform: translateX(55px) scale(0.96);
  }
  5%,
  29% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  33%,
  100% {
    opacity: 0;
    transform: translateX(-35px) scale(1.02);
  }
}
@keyframes showcaseProgress {
  0% {
    transform: scaleX(0);
  }
  4% {
    transform: scaleX(0);
  }
  31% {
    transform: scaleX(1);
  }
  32%,
  100% {
    transform: scaleX(0);
  }
}
@media (max-width: 1300px) {
  .visual-copy {
    max-width: 430px;
  }
  .visual-copy h1 {
    font-size: 42px;
  }
  .aviculture-showcase {
    right: -9%;
    width: 60%;
  }
  .aviculture-slide figcaption {
    right: 14%;
  }
}
@media (max-width: 1000px) {
  .aviculture-showcase {
    opacity: 0.72;
    right: -15%;
    width: 64%;
  }
  .visual-copy {
    max-width: 400px;
  }
}
.invoice-fast-filter {
  align-items: end;
}
.invoice-fast-filter .client-search-label {
  min-width: 280px;
  flex: 1;
  position: relative;
}
.client-search-label input {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23176b45' stroke-width='1.7'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='m12 12 4 4'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  padding-right: 40px;
}
.client-search-label small {
  font-size: 8px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .invoice-fast-filter .client-search-label {
    flex-basis: 100%;
    min-width: 100%;
  }
}
.cashier-welcome {
  background: linear-gradient(120deg, #123e2b, #247a52);
}
.cashier-welcome:before {
  content: 'CAISSE';
  position: absolute;
  right: 24%;
  font: 800 75px Manrope;
  color: #ffffff08;
  letter-spacing: 8px;
}
.cashier-dashboard-grid {
  grid-template-columns: 1.55fr 0.8fr;
}
.cashier-tools {
  overflow: hidden;
}
.privacy-note {
  display: flex;
  gap: 10px;
  margin: 5px 18px 18px;
  padding: 13px;
  border-radius: 11px;
  background: #f2f7f4;
  border: 1px solid #e1ebe5;
}
.privacy-note > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e3f3e9;
  display: grid;
  place-items: center;
}
.privacy-note div {
  flex: 1;
}
.privacy-note b,
.privacy-note small {
  display: block;
}
.privacy-note b {
  font-size: 10px;
  color: var(--green);
}
.privacy-note small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .cashier-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .cashier-welcome:before {
    display: none;
  }
  .cashier-welcome h2 {
    font-size: 21px;
  }
}
.visual-copy {
  position: relative;
  z-index: 2;
}
.attachment-button {
  color: var(--green);
  border-color: #cfe2d7;
  background: #f7fbf9;
  white-space: nowrap;
}
.attachment-button:hover {
  background: var(--pale);
}
.no-attachment {
  color: #9aa49e;
  font-size: 9px;
}
.invoice-mobile-client,
.invoice-detail-toggle,
.invoice-detail-row {
  display: none;
}
.invoice-main-cell b {
  display: block;
}
.invoice-actions-col {
  width: 1%;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .invoice-list-panel {
    overflow: hidden;
  }
  .invoice-table-wrap {
    overflow: visible;
  }
  .invoice-table {
    table-layout: auto;
    white-space: normal;
  }
  .invoice-table th,
  .invoice-table td {
    padding: 11px 7px;
  }
  .invoice-table .invoice-secondary-col,
  .invoice-table .invoice-client-col {
    display: none;
  }
  .invoice-table th {
    font-size: 8px;
  }
  .invoice-select {
    width: 28px;
    text-align: center;
  }
  .invoice-select input {
    width: 16px;
    height: 16px;
  }
  .invoice-main-cell {
    min-width: 88px;
  }
  .invoice-main-cell b {
    font-size: 10px;
  }
  .invoice-mobile-client {
    display: block;
    max-width: 110px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .invoice-total-cell {
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
  }
  .invoice-status-cell {
    white-space: nowrap;
  }
  .invoice-status-cell .badge {
    display: inline-flex;
    padding: 4px 6px;
    font-size: 8px;
  }
  .invoice-actions-col {
    width: 34px;
  }
  .invoice-actions-col .row-actions {
    display: none;
  }
  .invoice-detail-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid #dce8e1;
    border-radius: 10px;
    background: #f5faf7;
    color: var(--green);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.22s;
  }
  .invoice-detail-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.22s;
  }
  .invoice-detail-toggle[aria-expanded='true'] {
    display: flex;
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }
  .invoice-detail-toggle[aria-expanded='false'] {
    display: flex;
  }
  .invoice-detail-toggle[aria-expanded='true'] svg {
    transform: rotate(180deg);
  }
  .invoice-row.details-open {
    background: #f8fbf9;
  }
  .invoice-detail-row:not([hidden]) {
    display: table-row;
  }
  .invoice-detail-row > td {
    padding: 0 12px 14px;
    background: #f8fbf9;
    border-bottom: 1px solid var(--line);
  }
  .invoice-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e1ebe5;
    border-radius: 13px;
    background: #fff;
  }
  .invoice-mobile-details > div:last-child {
    grid-column: 1/-1;
  }
  .invoice-mobile-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .invoice-mobile-details dd {
    margin: 0;
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  .invoice-mobile-details .attachment-button {
    width: 100%;
  }
  .invoice-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 9px;
  }
  .invoice-mobile-actions .btn {
    width: 100%;
  }
}
.attachment-viewer {
  width: min(1050px, calc(100% - 30px));
  max-width: none;
  height: min(88vh, 850px);
  padding: 0;
  overflow: hidden;
  background: #edf2ef;
}
.attachment-viewer[open] {
  display: block;
}
.attachment-viewer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.attachment-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.attachment-viewer-head span {
  display: block;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.attachment-viewer-head h3 {
  margin: 3px 0 0;
  font-size: 14px;
}
.attachment-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.viewer-icon-button {
  height: 38px;
  border: 1px solid #dbe6df;
  border-radius: 10px;
  background: #f7faf8;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.viewer-icon-button:hover {
  background: var(--pale);
  border-color: #bad6c6;
}
.viewer-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attachment-viewer-close.dialog-close {
  position: static;
  width: 38px;
  padding: 0;
  color: #a44840;
  font-size: 22px;
}
.attachment-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
}
.attachment-zoom-bar button {
  height: 32px;
  min-width: 34px;
  border: 1px solid #d9e5de;
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.attachment-zoom-bar button:hover {
  background: var(--pale);
}
.attachment-zoom-bar .zoom-fit {
  font-size: 9px;
}
.attachment-zoom-bar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attachment-zoom-bar output {
  min-width: 58px;
  text-align: center;
  color: #526159;
  font-size: 9px;
  font-weight: 700;
}
.attachment-viewer-body {
  min-height: 0;
  padding: 12px;
  overflow: auto;
}
.attachment-viewer-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 20px #173d2920;
}
.attachment-viewer-body iframe[hidden],
.attachment-image-stage[hidden] {
  display: none;
}
.attachment-image-stage {
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  height: max-content;
  display: grid;
  place-items: center;
  padding: 4px;
}
.attachment-preview-image {
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 25px #173d2930;
  transition:
    width 0.18s ease,
    height 0.18s ease;
}
@media (max-width: 700px) {
  .attachment-viewer {
    width: calc(100% - 12px);
    height: calc(100dvh - 24px);
    border-radius: 17px;
  }
  .attachment-viewer-head {
    padding: 11px 12px;
  }
  .attachment-viewer-head h3 {
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .attachment-download span {
    display: none;
  }
  .attachment-download {
    width: 38px;
    padding: 0;
  }
  .attachment-zoom-bar {
    padding: 6px;
  }
  .attachment-zoom-bar .zoom-fit span {
    display: none;
  }
  .attachment-viewer-body {
    padding: 7px;
  }
}
.btn.invoice-cancel-btn {
  color: #b5423a;
  border-color: #edcbc7;
  background: #fff6f5;
}
.btn.invoice-cancel-btn:hover {
  background: #ffeceb;
  border-color: #dda9a3;
}
.brand-wordmark {
  gap: 10px;
  padding: 0 2px 27px;
  isolation: isolate;
}
.brand-emblem {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  border-radius: 16px;
  background: linear-gradient(145deg, #168250, #2ab875);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px #061c1255;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.brand-emblem:before,
.brand-emblem:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #ffffff0c;
}
.brand-emblem:before {
  width: 34px;
  height: 34px;
  right: -15px;
  top: -13px;
}
.brand-emblem:after {
  width: 31px;
  height: 31px;
  right: -11px;
  bottom: -19px;
}
.brand-emblem svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
.brand-emblem .brand-leaf {
  fill: #ffffff08;
}
.brand-emblem circle {
  fill: #efc64f;
  stroke: #efc64f;
}
.brand-wordmark:hover .brand-emblem {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 13px 28px #061c1270;
}
.brand-copy {
  display: block;
  min-width: 0;
}
.brand-copy .brand-kicker {
  margin: 0 0 5px;
  color: #91b7a3;
  font:
    700 6px/1 Outfit,
    sans-serif;
  letter-spacing: 2.05px;
}
.brand-copy .brand-name {
  display: block;
  max-width: none;
  color: #fff;
  font:
    800 17px/1 Outfit,
    sans-serif;
  letter-spacing: -0.75px;
  overflow: visible;
}
.brand-name span,
.brand-name strong {
  font: inherit;
}
.brand-name strong {
  color: #47ce8b;
  position: relative;
}
.brand-name strong:after {
  content: '';
  position: absolute;
  left: 1px;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #42c987, #edc84f);
  transform: skewX(-18deg);
}
.brand-copy .brand-tagline {
  margin-top: 7px;
  max-width: none;
  color: #9ab4a6;
  font:
    500 6px/1 Outfit,
    sans-serif;
  letter-spacing: 0.35px;
  overflow: visible;
}
.wordmark-copy > b {
  font-family: Outfit, Manrope, sans-serif;
}
.sidebar-foot > a.mds-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: #ffffff08;
  color: #fff;
  transition: 0.25s;
}
.sidebar-foot > a.mds-credit:hover {
  background: #ffffff10;
  border-color: #45c88755;
  transform: translateY(-2px);
}
.mds-credit-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #fff;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 14px #071c1245;
}
.mds-credit-mark img {
  position: absolute;
  height: 44px;
  width: auto;
  max-width: none;
  left: -8px;
  top: -1px;
  display: block;
}
.mds-credit-copy {
  min-width: 0;
}
.mds-credit-copy b,
.mds-credit-copy small {
  display: block;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mds-credit-copy b {
  font:
    700 9px/1.2 Outfit,
    sans-serif;
}
.mds-credit-copy small {
  margin-top: 4px;
  color: #9eb5a8;
  font-size: 8px;
}
.mds-credit-copy i {
  color: #49cb89;
  font-style: normal;
}
.mds-site-link {
  display: inline-block;
  color: #f0c850;
  border-bottom: 1px solid #f0c85099;
  transition: 0.2s;
}
.mds-site-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.mds-help-link {
  color: var(--green);
  font-weight: 800;
}
.mds-help-link:hover {
  text-decoration: underline;
}
.back-link {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.table-link {
  color: var(--green);
  font-weight: 700;
}
.table-link:hover {
  text-decoration: underline;
}
.invoice-detail-toolbar h2,
.client-page-toolbar h2 {
  margin: 2px 0 3px;
}
.invoice-detail-hero,
.client-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: linear-gradient(125deg, #113d2a, #1d754e);
  color: #fff;
  box-shadow: var(--shadow);
}
.invoice-detail-hero h2,
.client-profile-hero h2 {
  margin: 5px 0;
  font-size: 23px;
}
.invoice-detail-hero p,
.client-profile-hero p {
  margin: 0;
  color: #bad0c4;
}
.invoice-detail-hero .badge {
  font-size: 11px;
}
.invoice-detail-stats .small-value {
  font-size: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}
.detail-note {
  margin: 15px 20px 20px;
  padding: 13px;
  background: #f5f8f6;
  border-radius: 10px;
}
.detail-note p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.client-detail-list {
  padding: 12px 20px;
}
.client-detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.client-detail-list p:last-child {
  border: 0;
}
.client-detail-list span {
  color: var(--muted);
  font-size: 10px;
}
.client-detail-list b {
  font-size: 10px;
  text-align: right;
}
.contact-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}
.timeline-list {
  padding: 10px 20px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child {
  border: 0;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: #2aaa6f;
  box-shadow: 0 0 0 4px #2aaa6f18;
}
.timeline-item b,
.timeline-item small,
.timeline-item em {
  display: block;
}
.timeline-item b {
  font-size: 11px;
}
.timeline-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.timeline-item em {
  margin-top: 4px;
  color: #b3443c;
  font-size: 9px;
  font-style: normal;
}
.timeline-item.is-cancelled {
  opacity: 0.7;
}
.timeline-item.is-cancelled .timeline-dot {
  background: #c24d44;
}
.timeline-list.compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 25px;
}
.attachment-version-list {
  padding: 8px 18px;
}
.attachment-version-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.attachment-version-list > div:last-child {
  border: 0;
}
.attachment-version-list > div > span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--pale);
  display: grid;
  place-items: center;
}
.attachment-version-list p {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.attachment-version-list b,
.attachment-version-list small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-version-list b {
  font-size: 10px;
}
.attachment-version-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.client-profile-hero {
  justify-content: flex-start;
}
.client-profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 17px;
  background: #ffffff18;
  display: grid;
  place-items: center;
  font: 800 22px Outfit;
}
.client-profile-contact {
  margin-left: auto;
  text-align: right;
}
.client-profile-contact span,
.client-profile-contact small {
  display: block;
}
.client-profile-contact small {
  margin-top: 4px;
  color: #b9cec3;
}
.client-ledger-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.7fr);
}
@media (max-width: 900px) {
  .detail-grid,
  .client-ledger-grid {
    grid-template-columns: 1fr;
  }
  .timeline-list.compact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .invoice-detail-toolbar .toolbar-actions,
  .client-page-toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .invoice-detail-hero,
  .client-profile-hero {
    padding: 19px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .client-profile-contact {
    width: 100%;
    margin-left: 76px;
    text-align: left;
  }
  .invoice-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid .panel {
    min-width: 0;
  }
  .contact-actions .btn {
    flex: 1;
  }
}
.cash-session-gate {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin: auto;
  max-width: 1000px;
}
.cash-session-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1a8557, #2cb879);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 29px;
  box-shadow: 0 12px 28px #176b4535;
}
.cash-session-gate h2 {
  margin: 7px 0;
}
.cash-session-gate p {
  margin: 0;
  color: var(--muted);
}
.cash-session-gate form {
  display: flex;
  align-items: end;
  gap: 10px;
}
.cash-session-gate form label {
  flex: 1;
}
.cash-session-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #cfe8da;
  border-radius: 13px;
  background: #eef9f3;
}
.cash-session-strip b,
.cash-session-strip small {
  display: block;
}
.cash-session-strip b {
  font-size: 11px;
}
.cash-session-strip small {
  margin: 3px 0 0 17px;
  color: var(--muted);
  font-size: 9px;
}
.pos-history-filters {
  grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(95px, 1fr)) auto;
}
.sale-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}
.sale-status.completed {
  background: #e7f8ee;
  color: #198353;
}
.sale-status.cancelled {
  background: #ffebe9;
  color: #b34339;
}
.sale-status.open {
  background: #eaf1ff;
  color: #3568a5;
}
.cancelled-sale-row td {
  color: #87918b;
  background: #fff9f8;
}
.cancelled-sale-row td > b,
.cancelled-sale-row .sale-items-cell {
  text-decoration: line-through;
}
.session-difference {
  font-weight: 800;
}
.session-difference.negative {
  color: #b34339;
}
.session-difference.positive {
  color: #198353;
}
.sale-success > a {
  margin-left: auto;
}
@media (max-width: 950px) {
  .cash-session-gate {
    grid-template-columns: auto 1fr;
  }
  .cash-session-gate form {
    grid-column: 1/-1;
  }
  .pos-history-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-history-filters .search-field {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .cash-session-gate {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .cash-session-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .cash-session-gate form {
    grid-column: auto;
    display: grid;
  }
  .cash-session-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .cash-session-strip .toolbar-actions {
    width: 100%;
  }
  .cash-session-strip .btn {
    flex: 1;
  }
  .pos-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .pos-page-toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pos-page-toolbar .toolbar-actions .btn:last-child {
    grid-column: 1/-1;
  }
  .sale-success {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sale-success > a {
    width: 100%;
    margin-left: 44px;
  }
  .pos-history-filters {
    grid-template-columns: 1fr;
  }
  .pos-history-filters .search-field {
    grid-column: auto;
  }
}
.permission-fieldset {
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.permission-fieldset legend {
  padding: 0 7px;
  color: var(--green);
  font: 700 10px Outfit;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.permission-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: #f5f8f6;
  font-size: 9px;
}
.permission-grid input {
  width: auto;
  accent-color: var(--green);
}
.movement-badge.retour {
  background: #e5f8ee;
  color: #197e50;
}
.movement-badge.inventaire {
  background: #eeeaff;
  color: #654da0;
}
@media (max-width: 520px) {
  .permission-grid {
    grid-template-columns: 1fr;
  }
}
.reset-support {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid #d5eadf;
  border-radius: 15px;
  background: linear-gradient(145deg, #f1faf5, #fff);
}
.reset-support-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px #167a4f29;
}
.reset-support strong,
.reset-support span {
  display: block;
}
.reset-support strong {
  margin-bottom: 4px;
  color: #123e2b;
  font-size: 11px;
}
.reset-support span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.install-app-zone,
.setting-link-zone {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.install-app-zone p,
.setting-link-zone p {
  margin: 0 0 14px;
}
.install-app-zone small {
  display: block;
  margin-top: 10px;
}
.backup-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  max-width: 650px;
  margin-bottom: 17px;
}
.info-callout {
  margin-top: 16px;
  padding: 16px 19px;
  border: 1px solid #d6e8dd;
  border-radius: 13px;
  background: #eff8f3;
}
.info-callout b {
  font-size: 11px;
  color: var(--green);
}
.info-callout p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.view-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 11px;
  background: #e9eeeb;
}
.view-tabs a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.view-tabs a.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 3px 9px #163e2914;
}
.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}
.status.paid {
  background: #e7f8ee;
  color: #198353;
}
.status.unpaid {
  background: #ffebe9;
  color: #b34339;
}
.status.partial {
  background: #fff5df;
  color: #a36c14;
}
@media (max-width: 600px) {
  .backup-summary {
    grid-template-columns: 1fr;
  }
  .reset-card {
    padding-top: 12px;
  }
  .view-tabs {
    display: flex;
  }
  .view-tabs a {
    flex: 1;
    text-align: center;
  }
}
.invoice-items-editor {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #f8fbf9;
}
.invoice-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.invoice-items-head b,
.invoice-items-head small {
  display: block;
}
.invoice-items-head b {
  font: 700 11px Manrope;
}
.invoice-items-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.invoice-item-row {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) minmax(80px, 0.7fr) minmax(100px, 1fr) 105px 30px;
  gap: 9px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.invoice-item-row:last-child {
  border-bottom: 0;
}
.invoice-line-total {
  align-self: end;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--green);
  font: 700 10px Manrope;
  white-space: nowrap;
}
.invoice-line-remove {
  width: 30px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #fff0ee;
  color: #ad433a;
  font-size: 18px;
  cursor: pointer;
}
.invoice-line-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .invoice-items-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .invoice-item-row {
    grid-template-columns: 1fr 1fr;
  }
  .invoice-item-row > label:first-child {
    grid-column: 1/-1;
  }
  .invoice-line-total {
    justify-content: flex-start;
  }
  .invoice-line-remove {
    justify-self: end;
  }
  .invoice-items-head .btn {
    width: 100%;
  }
}
.invoice-item-row {
  grid-template-columns: minmax(145px, 1.15fr) minmax(160px, 1.4fr) 75px 95px 95px 100px 30px;
}
.invoice-item-row input[readonly] {
  background: #edf3ef;
  color: #617169;
}
.movement-badge.perte {
  background: #ffe9e6;
  color: #a93d35;
}
.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.finance-toolbar h2 {
  margin: 4px 0;
  font-size: 25px;
}
.finance-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.finance-period-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.finance-period-filter label {
  min-width: 145px;
}
.finance-period-filter .btn {
  height: 39px;
}
.finance-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 9px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 15px;
  background: #e9efeb;
}
.finance-mode-tabs a {
  padding: 12px 16px;
  border-radius: 11px;
  color: #6f7d75;
  transition: 0.2s;
}
.finance-mode-tabs a:hover {
  background: #ffffff80;
}
.finance-mode-tabs a.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 5px 14px #173d2913;
}
.finance-mode-tabs span,
.finance-mode-tabs small {
  display: block;
}
.finance-mode-tabs span {
  font: 700 12px Manrope;
}
.finance-mode-tabs small {
  margin-top: 2px;
  font-size: 8px;
}
.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.finance-kpi {
  min-height: 125px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px #183d2908;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s;
}
.finance-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.finance-kpi > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.finance-kpi > strong {
  font: 800 17px Outfit;
  color: #1b3327;
}
.finance-kpi > small {
  color: #8a968f;
  font-size: 8px;
  line-height: 1.4;
}
.finance-kpi.featured {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #123c2a, #1e774f);
  box-shadow: 0 12px 26px #176b4527;
}
.finance-kpi.featured.negative {
  background: linear-gradient(145deg, #60352f, #9b5148);
}
.finance-kpi.featured > span,
.finance-kpi.featured > small {
  color: #d1e3d9;
}
.finance-kpi.featured.negative > span,
.finance-kpi.featured.negative > small {
  color: #f0d7d3;
}
.finance-kpi.featured > strong {
  color: #fff;
}
.cash-kpis {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}
.finance-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}
.finance-trend-panel,
.finance-category-panel {
  min-width: 0;
  overflow: hidden;
}
.finance-legend {
  display: flex;
  gap: 12px;
  font-size: 8px;
  color: var(--muted);
}
.finance-legend span:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 3px;
  background: #257a56;
}
.finance-legend .outcome:before {
  background: #d7a548;
}
.finance-bar-chart {
  height: 285px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(32px, 1fr);
  align-items: end;
  gap: 4px;
  padding: 22px 17px 13px;
  overflow-x: auto;
  background: repeating-linear-gradient(to top, transparent 0, transparent 54px, #e9eeeb 55px);
}
.finance-bar-chart.daily {
  grid-auto-columns: minmax(24px, 1fr);
}
.finance-bar-column {
  height: 245px;
  display: grid;
  grid-template-rows: 220px 18px;
  align-items: end;
  gap: 5px;
}
.finance-bars {
  height: 220px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.finance-bars i {
  display: block;
  width: min(12px, 42%);
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: #267c57;
  border: 1px solid #185f40;
  transition: height 0.45s ease;
}
.finance-bars i.outcome {
  background: #e3b655;
  border-color: #b98b31;
}
.finance-bar-column small {
  text-align: center;
  color: #7e8a83;
  font-size: 7px;
}
.finance-bar-column small.muted-label {
  color: transparent;
}
.finance-category-bars {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}
.finance-category-bars header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.finance-category-bars header span {
  font-size: 9px;
}
.finance-category-bars header b {
  font-size: 9px;
  white-space: nowrap;
}
.finance-category-bars > div > div {
  height: 7px;
  border-radius: 8px;
  background: #edf1ee;
  overflow: hidden;
}
.finance-category-bars i {
  height: 100%;
  display: block;
  border-radius: 8px;
  background: var(--bar-color, #647b70);
}
.finance-category-bars small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}
.finance-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}
.financial-value {
  font-weight: 800;
}
.financial-value.positive {
  color: #17764b;
}
.financial-value.negative {
  color: #a8443c;
}
.finance-client-list {
  padding: 8px 18px;
}
.finance-client-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.finance-client-list a:last-child {
  border-bottom: 0;
}
.finance-client-list > a > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--pale);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}
.finance-client-list b,
.finance-client-list small {
  display: block;
}
.finance-client-list b {
  font-size: 10px;
}
.finance-client-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.finance-client-list strong {
  font-size: 9px;
}
.finance-methodology {
  margin-top: 12px;
  border: 1px solid #dce7e0;
  border-radius: 14px;
  background: #f9fbfa;
}
.finance-methodology summary {
  padding: 14px 17px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.finance-methodology > div {
  padding: 0 17px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 20px;
}
.finance-methodology p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}
.expense-filters {
  grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(105px, 1fr)) auto;
}
.expense-category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--category-color);
}
.expense-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
}
.expense-status.paid {
  background: #e6f7ed;
  color: #197a4d;
}
.expense-status.unpaid {
  background: #fff4dc;
  color: #996714;
}
.expense-status.cancelled {
  background: #ffebe8;
  color: #a94139;
}
.cancelled-expense-row {
  opacity: 0.7;
  background: #fff9f8;
}
.cancelled-expense-row td > b {
  text-decoration: line-through;
}
.expense-form {
  width: min(720px, calc(100vw - 30px));
}
.expense-form .form-grid {
  margin: 0;
}
.expense-list-panel .table-wrap {
  min-height: 200px;
}
@media (max-width: 1250px) {
  .finance-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cash-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 950px) {
  .finance-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .finance-chart-grid,
  .finance-detail-grid {
    grid-template-columns: 1fr;
  }
  .expense-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .expense-filters .search-field {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .mobile-nav.items-6 {
    grid-template-columns: repeat(6, 1fr);
  }
  .mobile-nav.items-6 > a {
    font-size: 8px;
  }
  .mobile-nav.items-6 > a > svg {
    width: 19px;
    height: 19px;
  }
  .finance-toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .finance-toolbar .toolbar-actions .btn {
    padding: 9px 7px;
  }
  .finance-period-filter {
    flex-wrap: wrap;
  }
  .finance-period-filter label {
    flex: 1;
    min-width: 120px;
  }
  .finance-chart-grid {
    gap: 12px;
  }
  .finance-bar-chart {
    height: 265px;
  }
  .finance-methodology > div {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .finance-mode-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .finance-kpi-grid,
  .cash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-kpi {
    min-height: 115px;
  }
  .finance-kpi > strong {
    font-size: 15px;
  }
  .finance-period-filter .btn {
    width: 100%;
  }
  .expense-filters {
    grid-template-columns: 1fr;
  }
  .expense-filters .search-field {
    grid-column: auto;
  }
  .invoice-item-row {
    grid-template-columns: 1fr 1fr;
  }
  .invoice-item-row > label:first-child,
  .invoice-item-row > label:nth-child(2) {
    grid-column: 1/-1;
  }
  .invoice-line-total {
    justify-content: flex-start;
  }
}
@media (max-width: 420px) {
  .mobile-nav.items-6 {
    left: 5px;
    right: 5px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .mobile-nav.items-6 > a span {
    max-width: 46px;
  }
  .finance-kpi-grid,
  .cash-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .finance-kpi {
    padding: 14px;
  }
  .finance-toolbar h2 {
    font-size: 22px;
  }
}

.cash-control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.cash-control-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}
.cash-control-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.cash-control-filters {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
}
.cash-control-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.cash-control-kpi {
  min-height: 122px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px #183d2908;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cash-control-kpi:after {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  right: -17px;
  top: -17px;
  border: 12px solid #1d7a5210;
  border-radius: 50%;
}
.cash-control-kpi > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.cash-control-kpi > strong {
  font: 800 18px Outfit;
  color: #183d2a;
}
.cash-control-kpi > small {
  color: #8a968f;
  font-size: 8px;
  line-height: 1.45;
}
.cash-control-kpi.is-negative {
  border-color: #edc6c2;
  background: #fff9f8;
}
.cash-control-kpi.is-negative > strong {
  color: #a6423a;
}
.cash-control-kpi.is-positive,
.cash-control-kpi.is-balanced {
  border-color: #cbe7d7;
  background: #f8fdf9;
}
.cash-control-kpi.is-positive > strong,
.cash-control-kpi.is-balanced > strong {
  color: #17764b;
}
.cash-control-kpi.is-warning {
  border-color: #efdaa8;
  background: #fffcf3;
}
.cash-control-kpi.is-warning > strong {
  color: #a06d19;
}
.cash-control-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.7fr);
  gap: 16px;
  margin-bottom: 18px;
}
.cash-control-chart,
.cash-control-method {
  min-width: 0;
  overflow: hidden;
}
.remittance-chart {
  height: 235px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 23px 18px 14px;
  overflow-x: auto;
  background: repeating-linear-gradient(to top, transparent 0, transparent 48px, #edf1ee 49px);
}
.remittance-chart-group {
  height: 195px;
  min-width: 34px;
  flex: 1;
  display: grid;
  grid-template-rows: 172px 18px;
  gap: 5px;
  align-items: end;
}
.remittance-bars {
  height: 172px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.remittance-bars i {
  display: block;
  width: min(13px, 42%);
  min-height: 3px;
  border-radius: 5px 5px 1px 1px;
  background: #267c57;
  border: 1px solid #185f40;
  transition: height 0.45s;
}
.remittance-bars i.remitted {
  background: #e6b84d;
  border-color: #bb8c2a;
}
.remittance-chart-group > span {
  text-align: center;
  color: #77847c;
  font-size: 7px;
}
.cash-control-method dl {
  margin: 0;
  padding: 8px 20px 17px;
}
.cash-control-method dl > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cash-control-method dl > div:last-child {
  border-bottom: 0;
}
.cash-control-method dt {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.cash-control-method dd {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.cash-control-list-title {
  margin-top: 3px;
}
.cash-control-legend {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.remittance-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.remittance-status.open {
  background: #e9f1ff;
  color: #376ba6;
}
.remittance-status.missing {
  background: #fff4dc;
  color: #996714;
}
.remittance-status.pending {
  background: #eaf1ff;
  color: #3568a5;
}
.remittance-status.validated {
  background: #e6f8ed;
  color: #1c8051;
}
.remittance-status.disputed {
  background: #ffebe9;
  color: #b34339;
}
.cash-control-table th,
.cash-control-table td {
  padding: 11px 10px;
}
.cash-difference {
  font-weight: 800;
}
.cash-difference.negative {
  color: #b34339;
}
.cash-difference.positive {
  color: #168153;
}
.cash-difference.neutral {
  color: #7b8880;
}
.cash-control-actions {
  min-width: 190px;
  flex-wrap: wrap;
}
.cash-session-detail {
  margin-top: 18px;
  padding: 22px;
  scroll-margin-top: 105px;
}
.cash-session-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}
.cash-session-detail-head h2 {
  margin: 5px 0 3px;
}
.cash-session-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.cash-session-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cash-session-summary > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbf9;
}
.cash-session-summary span,
.cash-session-summary b {
  display: block;
}
.cash-session-summary span {
  color: var(--muted);
  font-size: 8px;
}
.cash-session-summary b {
  margin-top: 7px;
  font-size: 11px;
}
.remittance-detail-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 16px;
  border: 1px solid #d3e7db;
  border-radius: 12px;
  background: #f3faf6;
}
.remittance-detail-card h3 {
  margin: 7px 0 3px;
  font-size: 12px;
}
.remittance-detail-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}
.cash-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 17px;
}
.cash-detail-grid h3 {
  font-size: 13px;
}
.remittance-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.remittance-events li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.remittance-events li:last-child {
  border: 0;
}
.remittance-events b,
.remittance-events time {
  display: inline-block;
  margin-left: 6px;
  font-size: 8px;
}
.remittance-events time {
  color: var(--muted);
}
.remittance-events p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}
.event-badge.submitted,
.event-badge.resubmitted {
  background: #e6f8ed;
  color: #1c8051;
}
.event-badge.updated,
.event-badge.reopened {
  background: #fff5df;
  color: #9b6b18;
}
.event-badge.validated {
  background: #e6f8ed;
  color: #1c8051;
}
.event-badge.disputed {
  background: #ffebe9;
  color: #b34339;
}
.form-grid.compact {
  margin: 0;
  gap: 11px;
}
@media (max-width: 1250px) {
  .cash-control-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .cash-session-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 950px) {
  .cash-control-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .cash-control-toolbar .toolbar-actions {
    width: 100%;
  }
  .cash-control-overview,
  .cash-detail-grid {
    grid-template-columns: 1fr;
  }
  .cash-control-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .cash-control-filters .btn {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .mobile-nav.items-7 {
    left: 5px;
    right: 5px;
    grid-template-columns: repeat(7, 1fr);
    padding-left: 2px;
    padding-right: 2px;
  }
  .mobile-nav.items-7 > a {
    font-size: 7px;
    gap: 2px;
  }
  .mobile-nav.items-7 > a > svg {
    width: 17px;
    height: 17px;
  }
  .mobile-nav.items-7 > a span {
    max-width: 43px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 700px) {
  .cash-control-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cash-control-kpi {
    min-height: 108px;
    padding: 14px;
  }
  .cash-control-kpi > strong {
    font-size: 15px;
  }
  .cash-control-list-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .cash-control-table th:nth-child(3),
  .cash-control-table td:nth-child(3),
  .cash-control-table th:nth-child(5),
  .cash-control-table td:nth-child(5),
  .cash-control-table th:nth-child(6),
  .cash-control-table td:nth-child(6),
  .cash-control-table th:nth-child(7),
  .cash-control-table td:nth-child(7),
  .cash-control-table th:nth-child(9),
  .cash-control-table td:nth-child(9),
  .cash-control-table th:nth-child(10),
  .cash-control-table td:nth-child(10) {
    display: none;
  }
  .cash-control-table th,
  .cash-control-table td {
    padding: 10px 7px;
    font-size: 9px;
  }
  .cash-control-actions {
    min-width: 92px;
    flex-direction: column;
  }
  .cash-control-actions .btn {
    width: 100%;
  }
  .cash-session-detail {
    padding: 15px;
  }
  .cash-session-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .remittance-detail-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .cash-session-detail-head {
    flex-direction: column;
  }
  .cash-control-toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cash-control-toolbar .toolbar-actions .btn {
    padding: 9px 7px;
  }
  .cash-control-method dl > div {
    grid-template-columns: 90px 1fr;
  }
}
@media (max-width: 520px) {
  .cash-control-filters {
    grid-template-columns: 1fr;
  }
  .cash-control-toolbar h2 {
    font-size: 21px;
  }
  .remittance-chart {
    height: 210px;
  }
  .cash-control-table th:nth-child(2),
  .cash-control-table td:nth-child(2) {
    display: none;
  }
}
.payment-method.mobile_money {
  background: #eaf1ff;
  color: #3568a5;
}
.payment-method.credit {
  background: #fff4dc;
  color: #996714;
}
.pos-payment-hint {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f7f5;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .cash-control-table th:nth-child(8),
  .cash-control-table td:nth-child(8),
  .cash-control-table th:nth-child(11),
  .cash-control-table td:nth-child(11) {
    display: none;
  }
  .cash-control-table th:nth-child(9),
  .cash-control-table td:nth-child(9) {
    display: table-cell;
  }
}
.credit-client-label {
  margin-top: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #f0dba8;
}
.credit-toolbar {
  align-items: flex-end;
}
.credit-stats {
  margin-top: 16px;
}
.credit-tabs {
  width: max-content;
  margin: 0 0 16px;
}
.credit-filters {
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(120px, 0.7fr)) auto;
}
.credit-list-panel {
  overflow: hidden;
}
.credit-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
}
.credit-status.unpaid {
  background: #fff0ee;
  color: #aa433b;
}
.credit-status.partial {
  background: #fff4dc;
  color: #986615;
}
.credit-status.paid {
  background: #e6f7ed;
  color: #168052;
}
.credit-status.cancelled {
  background: #eef0ef;
  color: #6e7872;
}
.credit-row.paid {
  background: #fbfefc;
}
.credit-row.cancelled {
  opacity: 0.7;
}
.credit-session-warning a {
  text-decoration: underline;
  font-weight: 800;
}
.credit-payment-reference[hidden] {
  display: none;
}
.repay-credit-button:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.payment-method.mobile_money {
  background: #eaf1ff;
  color: #3568a5;
}
.payment-method.especes {
  background: #e7f8ee;
  color: #198353;
}
@media (max-width: 800px) {
  .mobile-nav.items-8 {
    left: 3px;
    right: 3px;
    grid-template-columns: repeat(8, 1fr);
    padding-left: 1px;
    padding-right: 1px;
  }
  .mobile-nav.items-8 > a {
    font-size: 6px;
    gap: 2px;
  }
  .mobile-nav.items-8 > a > svg {
    width: 16px;
    height: 16px;
  }
  .mobile-nav.items-8 > a span {
    max-width: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .credit-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .credit-toolbar .toolbar-actions {
    width: 100%;
  }
  .credit-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-filters .search-field {
    grid-column: 1/-1;
  }
  .credit-table th:nth-child(3),
  .credit-table td:nth-child(3),
  .credit-table th:nth-child(4),
  .credit-table td:nth-child(4),
  .credit-payment-table th:nth-child(4),
  .credit-payment-table td:nth-child(4),
  .credit-payment-table th:nth-child(6),
  .credit-payment-table td:nth-child(6) {
    display: none;
  }
}
@media (max-width: 520px) {
  .credit-stats {
    gap: 8px;
  }
  .credit-stats .stat {
    padding: 14px;
  }
  .credit-stats .stat strong {
    font-size: 15px;
  }
  .credit-filters {
    grid-template-columns: 1fr;
  }
  .credit-filters .search-field {
    grid-column: auto;
  }
  .credit-tabs {
    width: 100%;
  }
  .credit-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 9px;
  }
  .credit-table th:nth-child(2),
  .credit-table td:nth-child(2),
  .credit-table th:nth-child(6),
  .credit-table td:nth-child(6),
  .credit-payment-table th:nth-child(1),
  .credit-payment-table td:nth-child(1),
  .credit-payment-table th:nth-child(7),
  .credit-payment-table td:nth-child(7) {
    display: none;
  }
}
@media (max-width: 700px) {
  .cash-control-table th:nth-child(8),
  .cash-control-table td:nth-child(8),
  .cash-control-table th:nth-child(10),
  .cash-control-table td:nth-child(10) {
    display: table-cell;
  }
  .cash-control-table th:nth-child(9),
  .cash-control-table td:nth-child(9),
  .cash-control-table th:nth-child(11),
  .cash-control-table td:nth-child(11),
  .cash-control-table th:nth-child(12),
  .cash-control-table td:nth-child(12) {
    display: none;
  }
}

/* Pilotage de la ferme avicole */
.farm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px;
  margin-bottom: 14px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(120deg, #103d29 0%, #18714a 66%, #249d67 100%);
  box-shadow: 0 13px 35px #154f3530;
  position: relative;
  overflow: hidden;
}
.farm-hero:before,
.farm-hero:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 34px solid #ffffff0b;
}
.farm-hero:before {
  width: 185px;
  height: 185px;
  right: 20%;
  top: -100px;
}
.farm-hero:after {
  width: 105px;
  height: 105px;
  right: 3%;
  bottom: -78px;
}
.farm-hero > div {
  position: relative;
  z-index: 1;
}
.farm-hero h2 {
  margin: 6px 0;
  font-size: 25px;
}
.farm-hero p {
  margin: 0;
  color: #c3dacd;
}
.farm-hero .eyebrow {
  color: #63dda0;
}
.farm-hero .btn:not(.primary) {
  background: #ffffff14;
  border-color: #ffffff30;
  color: #fff;
  backdrop-filter: blur(6px);
}
.farm-hero .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #176b45;
}
.farm-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}
.farm-tabs a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 9px;
  color: #69766e;
  font-size: 11px;
  font-weight: 700;
  transition: 0.2s;
}
.farm-tabs a:hover {
  background: #f0f7f3;
  color: var(--green);
}
.farm-tabs a.active {
  background: #153e2c;
  color: #fff;
  box-shadow: 0 5px 13px #143e2c2e;
}
.farm-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}
.farm-kpis article {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 15px #183d2908;
  position: relative;
  overflow: hidden;
}
.farm-kpis article:after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  right: -19px;
  top: -19px;
  background: #36ae7430;
}
.farm-kpis article.warning:after {
  background: #e0a03f45;
}
.farm-kpis article.warning {
  border-color: #efd6ac;
  background: #fffaf2;
}
.farm-kpis span,
.farm-kpis small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.farm-kpis strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 18px;
  white-space: nowrap;
}
.farm-kpis small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.farm-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
  gap: 17px;
}
.farm-flock-list {
  padding: 7px 18px;
}
.farm-flock-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.farm-flock-list > a:last-child {
  border: 0;
}
.farm-flock-list > a:hover b {
  color: var(--green);
}
.farm-flock-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ecf7f1;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.farm-flock-list b,
.farm-flock-list small {
  display: block;
}
.farm-flock-list b {
  font-size: 11px;
}
.farm-flock-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.farm-flock-list i {
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 5px;
  background: #edf2ef;
  overflow: hidden;
}
.farm-flock-list i em {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #2dac70, #e5c04d);
}
.farm-alerts {
  overflow: hidden;
}
.farm-alerts > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.farm-alerts > a:hover {
  background: #fafcfb;
}
.farm-alerts > a > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: #fff6e8;
  display: grid;
  place-items: center;
}
.farm-alerts b,
.farm-alerts small {
  display: block;
}
.farm-alerts b {
  font-size: 10px;
}
.farm-alerts small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.farm-status,
.farm-health-type,
.product-source {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.farm-status.planned {
  background: #edf0f7;
  color: #63708d;
}
.farm-status.raising {
  background: #e8f7ef;
  color: #17794d;
}
.farm-status.ready {
  background: #fff4dc;
  color: #986611;
}
.farm-status.closed {
  background: #eeeeec;
  color: #777d78;
}
.farm-health-type.vaccination {
  background: #e8f1ff;
  color: #326ba5;
}
.farm-health-type.treatment {
  background: #fff1df;
  color: #a36812;
}
.farm-health-type.veterinary {
  background: #f1eaff;
  color: #6b4aa0;
}
.farm-health-type.observation {
  background: #e8f7ef;
  color: #17794d;
}
.product-source {
  margin-top: 8px;
}
.product-source.purchase {
  background: #eef2f0;
  color: #66756c;
}
.product-source.farm {
  background: #e5f8ed;
  color: #167948;
}
.product-source.mixed {
  background: #fff1db;
  color: #99620e;
}
.farm-flock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}
.farm-flock-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid #2bab6f;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px #183d2908;
}
.farm-flock-card.planned {
  border-top-color: #8993a9;
}
.farm-flock-card.ready {
  border-top-color: #e5b73b;
}
.farm-flock-card.closed {
  border-top-color: #a4aaa6;
  opacity: 0.85;
}
.farm-flock-card header,
.farm-flock-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.farm-flock-card header > div > span {
  font-size: 8px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.7px;
}
.farm-flock-card h3 {
  margin: 4px 0 0;
  font-size: 14px;
}
.farm-flock-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 15px 0;
}
.farm-flock-numbers > div {
  padding: 9px;
  border-radius: 9px;
  background: #f5f8f6;
}
.farm-flock-numbers span,
.farm-flock-numbers b {
  display: block;
}
.farm-flock-numbers span {
  color: var(--muted);
  font-size: 8px;
}
.farm-flock-numbers b {
  margin-top: 4px;
  font-size: 11px;
}
.farm-flock-card footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.farm-flock-detail {
  margin-bottom: 18px;
  overflow: hidden;
}
.farm-flock-detail .panel-head h2 {
  margin: 5px 0 3px;
  font-size: 18px;
}
.farm-detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.farm-detail-kpis > div {
  padding: 15px;
  background: #fff;
}
.farm-detail-kpis span,
.farm-detail-kpis b {
  display: block;
}
.farm-detail-kpis span {
  color: var(--muted);
  font-size: 8px;
}
.farm-detail-kpis b {
  margin-top: 6px;
  font-size: 12px;
}
.farm-cost-breakdown {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding-top: 1px;
  background: var(--line);
}
.farm-cost-breakdown > div {
  padding: 14px 15px;
  background: #f8faf9;
}
.farm-cost-breakdown span,
.farm-cost-breakdown b {
  display: block;
}
.farm-cost-breakdown span {
  color: var(--muted);
  font-size: 8px;
}
.farm-cost-breakdown b {
  margin-top: 6px;
  font-size: 11px;
}
.farm-cost-breakdown .total {
  background: #edf7f1;
}
.farm-cost-breakdown .featured {
  background: #153e2c;
  color: #fff;
}
.farm-cost-breakdown .featured span {
  color: #afd0be;
}
.farm-filter {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.farm-filter label {
  min-width: 240px;
}
.farm-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.farm-input-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 15px #183d2908;
}
.farm-input-card > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.farm-input-card h3 {
  margin: 7px 0 12px;
  font-size: 13px;
}
.farm-input-card strong {
  display: block;
  font-size: 19px;
}
.farm-input-card strong small {
  font-size: 9px;
  color: var(--muted);
}
.farm-input-card p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 8px;
}
.farm-input-card > b {
  font-size: 9px;
  color: var(--green);
}
.farm-input-card.low {
  border-color: #ebcda0;
  background: #fffaf1;
}
.farm-input-card.low strong {
  color: #aa6b10;
}
.movement-badge.purchase,
.movement-badge.adjustment_in,
.movement-badge.transfert_ferme {
  background: #e5f8ed;
  color: #197d4e;
}
.movement-badge.consumption,
.movement-badge.adjustment_out {
  background: #fff0e7;
  color: #a6522b;
}
.farm-dialog {
  max-height: 88vh;
  overflow: auto;
}
.farm-dialog h3 {
  margin-top: -7px;
}
.farm-dialog .form-grid {
  margin: 0;
}
.farm-daily-table td:last-child {
  max-width: 230px;
  white-space: normal;
}
.finance-methodology {
  margin-top: 16px;
}
@media (max-width: 1250px) {
  .farm-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .farm-flock-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .farm-input-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .farm-detail-kpis,
  .farm-cost-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .farm-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .farm-hero .toolbar-actions {
    width: 100%;
  }
  .farm-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .farm-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .farm-flock-detail .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .farm-flock-detail .panel-head .toolbar-actions {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .mobile-nav.items-9 {
    left: 2px;
    right: 2px;
    grid-template-columns: repeat(9, 1fr);
    padding-left: 1px;
    padding-right: 1px;
  }
  .mobile-nav.items-9 > a {
    font-size: 5.5px;
    gap: 1px;
  }
  .mobile-nav.items-9 > a > svg {
    width: 15px;
    height: 15px;
  }
  .mobile-nav.items-9 > a span {
    max-width: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .farm-tabs {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .farm-tabs a {
    padding: 9px 11px;
  }
  .farm-daily-table th:nth-child(6),
  .farm-daily-table td:nth-child(6),
  .farm-daily-table th:nth-child(7),
  .farm-daily-table td:nth-child(7),
  .farm-daily-table th:nth-child(8),
  .farm-daily-table td:nth-child(8),
  .farm-daily-table th:nth-child(9),
  .farm-daily-table td:nth-child(9) {
    display: none;
  }
}
@media (max-width: 620px) {
  .farm-hero {
    padding: 20px;
  }
  .farm-hero h2 {
    font-size: 21px;
  }
  .farm-hero .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .farm-hero .toolbar-actions .btn:last-child {
    grid-column: 1/-1;
  }
  .farm-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .farm-kpis article {
    padding: 14px;
  }
  .farm-kpis strong {
    font-size: 15px;
  }
  .farm-flock-cards,
  .farm-input-grid {
    grid-template-columns: 1fr;
  }
  .farm-detail-kpis,
  .farm-cost-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .farm-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .farm-filter label {
    min-width: 0;
  }
  .farm-filter .btn {
    width: 100%;
  }
  .farm-flock-list > a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .farm-flock-list > a > .farm-status {
    grid-column: 2;
  }
  .farm-dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .farm-dialog .form-grid .wide {
    grid-column: auto;
  }
  .farm-flock-card footer {
    align-items: stretch;
  }
  .farm-flock-card footer .btn {
    flex: 1;
  }
  .farm-flock-card footer form {
    display: flex;
    flex: 1;
  }
  .farm-flock-card footer form .btn {
    width: 100%;
  }
}
.forced-password-logout {
  margin-top: -8px;
  text-align: center;
}
.forced-password-logout .btn {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* Caisse disponible pendant une coupure de connexion */
.pos-offline-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dce6e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #153e2c0b;
  transition: 0.25s;
}
.pos-offline-status > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.pos-offline-status b,
.pos-offline-status small {
  display: block;
}
.pos-offline-status b {
  font-size: 11px;
}
.pos-offline-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.pos-network-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #edf2ef;
  display: grid;
  place-items: center;
}
.pos-network-icon i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #95a39b;
  box-shadow: 0 0 0 5px #95a39b1c;
}
.pos-offline-status.is-online {
  border-color: #cce8d7;
  background: #f2fbf6;
}
.pos-offline-status.is-online .pos-network-icon {
  background: #dff5e8;
}
.pos-offline-status.is-online .pos-network-icon i {
  background: #21a868;
  box-shadow: 0 0 0 5px #21a8681e;
}
.pos-offline-status.is-offline {
  border-color: #efd59e;
  background: #fff9ed;
}
.pos-offline-status.is-offline .pos-network-icon {
  background: #ffedc9;
}
.pos-offline-status.is-offline .pos-network-icon i {
  background: #d68b16;
  box-shadow: 0 0 0 5px #d68b161e;
  animation: offlinePulse 1.4s infinite;
}
.pos-offline-status.has-conflict {
  border-color: #efc7c2;
  background: #fff5f3;
}
.pos-offline-status.has-conflict .pos-network-icon {
  background: #ffe4e0;
}
.pos-offline-status.has-conflict .pos-network-icon i {
  background: #c94f43;
}
.pos-queue-count {
  padding: 6px 9px;
  border-radius: 20px;
  background: #153e2c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.pos-offline-actions {
  display: flex;
  gap: 7px;
}
.pos-offline-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.offline-queue-card {
  max-height: min(660px, 88vh);
}
.offline-queue-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.offline-queue-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafcfb;
}
.offline-queue-item b,
.offline-queue-item small {
  display: block;
}
.offline-queue-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.offline-queue-item > span {
  align-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  background: #fff1d5;
  color: #946316;
  font-size: 8px;
  font-weight: 800;
}
.offline-queue-item.conflict {
  border-color: #efc7c2;
  background: #fff8f7;
}
.offline-queue-item.conflict > span {
  background: #ffe5e1;
  color: #a93f36;
}
.offline-queue-item.syncing > span {
  background: #e6f2ff;
  color: #356b9f;
}
.offline-queue-item p {
  grid-column: 1/-1;
  margin: 3px 0 0;
  color: #a3473e;
  font-size: 9px;
  line-height: 1.45;
}
.pos-product.out-of-stock {
  opacity: 0.45;
  filter: grayscale(0.35);
  cursor: not-allowed;
}
.offline-sale-success {
  animation: slide 0.3s;
}
.offline-sale-success > a {
  margin-left: auto;
}
@keyframes offlinePulse {
  50% {
    box-shadow: 0 0 0 9px #d68b1608;
  }
}
@media (max-width: 720px) {
  .pos-offline-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pos-offline-status > div:nth-child(2) {
    width: calc(100% - 50px);
    flex: none;
  }
  .pos-queue-count {
    margin-left: 46px;
  }
  .pos-offline-actions {
    width: 100%;
    margin-left: 46px;
  }
  .pos-offline-actions .btn {
    flex: 1;
  }
  .offline-sale-success > a {
    width: 100%;
    margin-left: 44px;
  }
}

/* Navigation mobile des comptes de direction */
.manager-menu-button,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}
.manager-menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #dce7e1;
  border-radius: 13px;
  background: #f3f8f5;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--green);
  cursor: pointer;
  transition: 0.2s;
}
.manager-menu-button > span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  transition:
    transform 0.25s,
    opacity 0.2s;
}
.manager-menu-button:hover {
  background: var(--pale);
  border-color: #c8dfd2;
}
.sidebar-close {
  position: absolute;
  top: 17px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #ffffff0d;
  color: #fff;
  place-items: center;
  cursor: pointer;
}
.sidebar-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.sidebar-close:hover {
  background: #ffffff18;
}
.sidebar-backdrop {
  border: 0;
  padding: 0;
  background: #071b126e;
  backdrop-filter: blur(3px);
}
@media (max-width: 800px) {
  body.manager-mobile-nav {
    padding-bottom: 0;
  }
  body.manager-mobile-nav.menu-open {
    overflow: hidden;
  }
  .manager-mobile-nav .manager-menu-button {
    display: flex;
  }
  .manager-mobile-nav .sidebar {
    width: min(320px, 86vw);
    z-index: 90;
    padding-top: 20px;
    box-shadow: 18px 0 55px #061a1166;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .manager-mobile-nav .sidebar.open {
    transform: translateX(0);
  }
  .manager-mobile-nav .sidebar-close {
    display: grid;
  }
  .manager-mobile-nav .sidebar .brand {
    padding-right: 47px;
    padding-bottom: 22px;
  }
  .manager-mobile-nav .sidebar nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 3px;
  }
  .manager-mobile-nav .sidebar nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }
  .manager-mobile-nav .sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 80;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s,
      visibility 0.25s;
  }
  .manager-mobile-nav .sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .manager-mobile-nav .content {
    padding-bottom: 18px;
  }
  .manager-mobile-nav .topbar {
    gap: 11px;
  }
  .manager-menu-button[aria-expanded='true'] > span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  .manager-menu-button[aria-expanded='true'] > span:nth-child(2) {
    opacity: 0;
  }
  .manager-menu-button[aria-expanded='true'] > span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
}
@media (max-width: 430px) {
  .manager-mobile-nav .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .manager-mobile-nav .manager-menu-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .manager-mobile-nav .topbar-title h1 {
    font-size: 15px;
  }
  .manager-mobile-nav .topbar-title p {
    max-width: 105px;
  }
  .manager-mobile-nav .top-profile-copy {
    display: none;
  }
  .manager-mobile-nav .sidebar {
    width: min(305px, 88vw);
  }
}
