:root{
  --sidebar-w: 300px;
  --sidebar-collapsed: 92px;
  --sidebar-mobile-w: 262px;
  --brand-h: 70px;

  --logo-box: 44px;
  --logo-box-collapsed: 54px;
  --logo-font: 22px;
  --logo-font-collapsed: 26px;

  --item-height: 46px;
  --subitem-height: 39px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --coa-inline-width: 620px;
}

body[data-theme="light"]{
  --bg-body:#f6f7fb;
  --bg-soft:#eef2f7;
  --bg-card:#ffffff;
  --bg-card-2:#f8fafc;
  --bg-input:#ffffff;
  --bg-topbar:#e6edf8;
  --bg-sidebar:#e6edf8;
  --bg-sidebar-soft:#e6edf8;
  --bg-sidebar-search:rgba(255,255,255,.82);
  --bg-hover:rgba(72,109,219,.10);
  --bg-active:rgba(72,109,219,.14);
  --bg-open:rgba(255,255,255,.62);
  --bg-icon-soft:rgba(15,23,42,.06);
  --bg-button-dark:#0f172a;
  --bg-button-dark-hover:#1e293b;
  --bg-button-light:#ffffff;
  --bg-progress:#e9edf5;
  --bg-overlay:rgba(2,6,23,.35);

  --text-main:#0f172a;
  --text-soft:#475569;
  --text-muted:#64748b;
  --text-on-dark:#0f172a;
  --text-on-dark-muted:rgba(15,23,42,.60);
  --text-active:#1d4ed8;
  --text-danger:#dc2626;
  --text-success:#15803d;
  --text-warning:#b45309;

  --border:#dbe3ef;
  --border-strong:#c7d4e5;
  --border-soft:rgba(15,23,42,.08);
  --border-input:rgba(15,23,42,.10);
  --line:rgba(72,109,219,.18);
  --shadow-card:0 10px 30px rgba(15,23,42,.05);
  --shadow-dropdown:0 18px 50px rgba(15,23,42,.14);

  --company-grad-start:#486ddb;
  --company-grad-end:#6d92ff;
  --user-grad-start:#334155;
  --user-grad-end:#475569;

  --scroll-track:transparent;
  --scroll-thumb:rgba(72,109,219,.32);
  --scroll-thumb-hover:rgba(72,109,219,.48);

  --coa-search-bg:#ffffff;
  --coa-search-color:#0f172a;
  --coa-search-border:#d7e0ea;
  --coa-search-placeholder:#7b8a9a;
  --coa-search-focus:#4f8cff;
  --coa-search-focus-shadow:0 0 0 4px rgba(79,140,255,.12);
  --coa-search-icon:#7b8a9a;
  --coa-search-match-bg:#eef5ff;
  --coa-search-match-border:#bfdbfe;
  --coa-search-match-text:#1d4ed8;
}

body[data-theme="dark"]{
  --bg-body:#0b1220;
  --bg-soft:#111827;
  --bg-card:#111827;
  --bg-card-2:#182233;
  --bg-input:#162133;
  --bg-topbar:#0b1220;
  --bg-sidebar:#0b1220;
  --bg-sidebar-soft:rgba(255,255,255,.03);
  --bg-sidebar-search:rgba(255,255,255,.05);
  --bg-hover:rgba(148,163,184,.12);
  --bg-active:rgba(59,130,246,.18);
  --bg-open:rgba(255,255,255,.03);
  --bg-icon-soft:rgba(255,255,255,.06);
  --bg-button-dark:#3b82f6;
  --bg-button-dark-hover:#2563eb;
  --bg-button-light:#162133;
  --bg-progress:#223047;
  --bg-overlay:rgba(0,0,0,.55);

  --text-main:#e5edf8;
  --text-soft:#cbd5e1;
  --text-muted:#94a3b8;
  --text-on-dark:#e5edf8;
  --text-on-dark-muted:rgba(226,232,240,.65);
  --text-active:#bfdbfe;
  --text-danger:#f87171;
  --text-success:#4ade80;
  --text-warning:#fbbf24;

  --border:#223047;
  --border-strong:#314259;
  --border-soft:rgba(226,232,240,.08);
  --border-input:rgba(226,232,240,.12);
  --line:rgba(148,163,184,.18);
  --shadow-card:0 10px 30px rgba(0,0,0,.28);
  --shadow-dropdown:0 18px 50px rgba(0,0,0,.38);

  --company-grad-start:#3b82f6;
  --company-grad-end:#60a5fa;
  --user-grad-start:#334155;
  --user-grad-end:#475569;

  --scroll-track:transparent;
  --scroll-thumb:rgba(100,116,139,.45);
  --scroll-thumb-hover:rgba(148,163,184,.62);

  --coa-search-bg:#162133;
  --coa-search-color:#e5edf8;
  --coa-search-border:#2a3a52;
  --coa-search-placeholder:#8ea1b8;
  --coa-search-focus:#60a5fa;
  --coa-search-focus-shadow:0 0 0 4px rgba(96,165,250,.14);
  --coa-search-icon:#8ea1b8;
  --coa-search-match-bg:rgba(59,130,246,.12);
  --coa-search-match-border:rgba(96,165,250,.28);
  --coa-search-match-text:#bfdbfe;

  --modal-close-filter: invert(1) grayscale(100%);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

html{
  scrollbar-width:thin;
  scrollbar-color:var(--scroll-thumb) var(--scroll-track);
  scroll-behavior:smooth;
}

body{
  background:var(--bg-body);
  color:var(--text-main);
  font-family:"Segoe UI", Tahoma, Arial, sans-serif;
  margin:0;
  transition:background .25s ease, color .25s ease;
}

*{
  scrollbar-width:thin;
  scrollbar-color:var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar{ width:12px; height:12px; }
*::-webkit-scrollbar-track{ background:var(--scroll-track); }
*::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--scroll-thumb), color-mix(in srgb, var(--scroll-thumb) 75%, transparent));
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
}
*::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, var(--scroll-thumb-hover), color-mix(in srgb, var(--scroll-thumb-hover) 75%, transparent));
  border:3px solid transparent;
  background-clip:padding-box;
}
*::-webkit-scrollbar-corner{ background:transparent; }

.app{
  min-height:100vh;
  display:flex;
}

.overlay{
  position:fixed;
  inset:0;
  background:var(--bg-overlay);
  display:none;
  z-index:9998;
}
.overlay.show{ display:block; }

.swipe-edge{
  position:fixed;
  top:0;
  right:0;
  width:18px;
  height:100vh;
  height:100dvh;
  min-height:var(--app-height, 100dvh);
  z-index:9997;
  background:transparent;
  display:none;
}

.sidebar{
  width:var(--sidebar-w);
  background:var(--bg-sidebar);
  color:var(--text-on-dark);
  height:100vh;
  height:100dvh;
  min-height:var(--app-height, 100dvh);
  position:sticky;
  top:0;
  overflow:hidden;
  transition:width .22s ease, transform .25s ease, background .25s ease;
  flex:0 0 auto;
  z-index:9999;
  border-left:1px solid var(--border-soft);
}

.sidebar .brand{
  height:var(--brand-h);
  padding:0 16px;
  border-bottom:1px solid var(--border-soft);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  background:var(--bg-topbar);
}

.brand-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}

.brand .logo-box{
  width:var(--logo-box);
  height:var(--logo-box);
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.10);
  flex:0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.brand .logo-box i{
  font-size:var(--logo-font);
  color:var(--text-on-dark);
}
.brand .brand-name-wrap{ min-width:0; }
.brand .brand-text{
  font-weight:800;
  letter-spacing:.2px;
  font-size:16px;
  line-height:1;
  color:var(--text-on-dark);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand .brand-sub{
  font-size:12px;
  color:var(--text-on-dark-muted);
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-scroll{
  height:calc(100vh - var(--brand-h));
  height:calc(100dvh - var(--brand-h));
  height:calc(var(--app-height, 100dvh) - var(--brand-h));
  padding-bottom:max(14px, env(safe-area-inset-bottom));
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:12px 10px 14px;
}

.search-box{
  height:42px;
  border:1px solid var(--border-input);
  border-radius:12px;
  background:var(--bg-sidebar-search);
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  margin-bottom:14px;
  overflow:hidden;
}
.search-box i{
  font-size:15px;
  color:var(--text-on-dark-muted);
}
.search-box input{
  border:0;
  outline:0;
  background:transparent;
  width:100%;
  color:var(--text-on-dark);
  font-size:14px;
}
.search-box input::placeholder{ color:var(--text-on-dark-muted); }

.menu, .submenu-list{
  list-style:none;
  padding:0;
  margin:0;
}
.menu-item{ margin-bottom:6px; }

.menu-link,
.submenu-link,
.nested-toggle{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:var(--item-height);
  padding:0 12px;
  text-decoration:none;
  color:var(--text-on-dark);
  border-radius:var(--radius-md);
  transition:background .18s ease, color .18s ease, border-color .18s ease;
  cursor:pointer;
  user-select:none;
  border:1px solid transparent;
}
.submenu-link,
.nested-toggle{
  min-height:var(--subitem-height);
  font-size:14px;
  border-radius:var(--radius-sm);
  padding:0 12px 0 8px;
}
.menu-link:hover,
.submenu-link:hover,
.nested-toggle:hover{
  background:var(--bg-hover);
  color:var(--text-on-dark);
}
.menu-link.active,
.submenu-link.active,
.nested-toggle.active{
  background:var(--bg-active);
  color:var(--text-active);
  border-color:rgba(96,165,250,.18);
  font-weight:600;
}
.menu-icon{
  width:24px;
  min-width:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  color:var(--text-on-dark-muted);
}
.menu-title{
  flex:1;
  font-size:16px;
  font-weight:700;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.menu-arrow{
  width:18px;
  min-width:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  color:var(--text-on-dark-muted);
  transition:transform .22s ease, opacity .18s ease;
}
.has-sub.open > .menu-link,
.nested-item.open > .nested-toggle{
  background:var(--bg-open);
  border-color:var(--border-soft);
}
.has-sub.open > .menu-link .menu-arrow,
.nested-item.open > .nested-toggle .menu-arrow{
  transform:rotate(-90deg);
}
.submenu-wrap{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .24s ease;
}
.has-sub.open > .submenu-wrap,
.nested-item.open > .submenu-wrap{
  grid-template-rows:1fr;
}
.submenu,
.nested-submenu{
  overflow:hidden;
  position:relative;
}
.submenu{
  padding-right:34px;
  margin-top:6px;
}
.submenu::before{
  content:"";
  position:absolute;
  top:6px;
  bottom:6px;
  right:24px;
  width:2px;
  background:var(--line);
  border-radius:999px;
}
.submenu-link{
  color:var(--text-on-dark);
  font-weight:500;
}
.nested-item{ margin:4px 0; }
.nested-toggle .menu-title{
  font-size:14px;
  font-weight:600;
}
.nested-submenu{
  margin-right:16px;
  padding-right:12px;
}
.nested-submenu::before{
  content:"";
  position:absolute;
  top:6px;
  bottom:6px;
  right:0;
  width:2px;
  background:var(--line);
  border-radius:999px;
}
.nested-submenu .submenu-link{
  font-size:13px;
  color:var(--text-on-dark-muted);
}

.content{
  flex:1;
  min-width:0;
  padding-top:calc(var(--brand-h) + 20px);
  padding-inline:18px;
  padding-bottom:18px;
  background:var(--bg-body);
  transition:background .25s ease;
}

.topbar{
  position:fixed;
  top:0;
  right:var(--sidebar-w);
  left:0;
  height:var(--brand-h);
  background:var(--bg-topbar);
  border-bottom:1px solid var(--border-soft);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  z-index:9990;
  transition:right .22s ease, background .25s ease;
}
.topbar .btn,
.topbar-icon-btn,
.company-trigger{
  border-color:var(--border-input)!important;
  color:var(--text-on-dark)!important;
  background:rgba(255,255,255,.06);
}
.topbar .btn:hover,
.topbar-icon-btn:hover,
.company-trigger:hover{
  background:rgba(255,255,255,.12)!important;
}
.topbar-center{ flex:1; }
.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-inline-start:auto;
}
.topbar-icon-btn,
.company-trigger{
  width:40px;
  height:40px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.topbar-icon-btn i,
.company-trigger i{
  font-size:18px;
  line-height:1;
}
.topbar-badge{
  position:absolute;
  top:-4px;
  left:-4px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--bg-topbar);
}

.company-menu-wrap{ position:relative; }
.company-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:280px;
  background:var(--bg-card);
  color:var(--text-main);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-dropdown);
  padding:10px;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:all .18s ease;
  z-index:10020;
}
.company-menu-wrap.open .company-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.company-dropdown-head{
  font-size:12px;
  font-weight:700;
  color:var(--text-muted);
  padding:6px 8px 10px;
}
.company-dropdown-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:12px;
}
.company-dropdown-item:hover{ background:var(--bg-card-2); }
.company-dropdown-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--company-grad-start), var(--company-grad-end));
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  font-size:17px;
}
.company-dropdown-icon.user{
  background:linear-gradient(135deg, var(--user-grad-start), var(--user-grad-end));
}
.company-dropdown-text{ min-width:0; }
.company-dropdown-title{
  font-size:14px;
  font-weight:700;
  color:var(--text-main);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.company-dropdown-sub{
  font-size:12px;
  color:var(--text-muted);
  margin-top:2px;
}
.company-dropdown-divider{
  height:1px;
  background:var(--border);
  margin:8px 4px;
}
.company-dropdown-action{
  height:42px;
  border-radius:12px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  color:var(--text-danger);
  transition:background .18s ease;
}
.company-dropdown-action:hover{
  background:rgba(220,38,38,.08);
  color:var(--text-danger);
}

.page-title{ color:var(--text-main); }
.page-breadcrumb{ color:var(--text-muted); }

.cardx{
  background:var(--bg-card);
  border-radius:16px;
  box-shadow:var(--shadow-card);
  border:1px solid var(--border);
  color:var(--text-main);
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.metric-icon-box{
  background:var(--bg-icon-soft);
  color:var(--text-main);
}
.muted{ color:var(--text-muted)!important; }
.success-text{ color:var(--text-success)!important; }
.danger-text{ color:var(--text-danger)!important; }

.progress{ background:var(--bg-progress); }
.progress-bar{ background:var(--bg-button-dark); }

.chart-wrap{
  position:relative;
  width:100%;
  height:320px;
  min-height:320px;
}

.demo-card{ margin-top:16px; }
.form-modern-label{
  font-size:14px;
  font-weight:700;
  color:var(--text-main);
  margin-bottom:8px;
  display:block;
}

.search-select{ position:relative; }
.search-select-btn{
  width:100%;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-card);
  color:var(--text-main);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 14px;
  padding-right:44px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-select-btn:hover{ background:var(--bg-card-2); }
.search-select-btn::after,
.modal-search-select-btn::after{
  content:"\F26E";
  font-family:"bootstrap-icons";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%) scale(.86);
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(25,135,84,.12);
  color:#198754;
  font-size:13px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index:2;
}
.search-select.has-value > .search-select-btn::after,
.modal-search-select.has-value > .modal-search-select-btn::after{
  opacity:1;
  visibility:visible;
  transform:translateY(-50%) scale(1);
}

.search-select.open .search-select-btn{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}
.search-select-value{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
}
.search-select-value i{
  color:var(--text-muted);
  font-size:15px;
}
.search-select-text{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.search-select-arrow{
  position:absolute;
  left:8px;
  top:50%;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-50%);
  color:var(--text-muted);
  transition:transform .18s ease, opacity .18s ease, visibility .18s ease;
  z-index:2;
}
.search-select.open .search-select-arrow{ transform:translateY(-50%) rotate(180deg); }
.search-select.has-value .search-select-arrow{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.search-select-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:0;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-dropdown);
  padding:10px;
  z-index:1050;
  display:none;
}
.search-select.open .search-select-menu{ display:block; }
.search-select-search{
  position:relative;
  margin-bottom:10px;
}
.search-select-search i{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
  font-size:14px;
}
.search-select-search input{
  width:100%;
  height:42px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-card-2);
  color:var(--text-main);
  padding:0 38px 0 12px;
  outline:none;
}
.search-select-search input:focus{ border-color:#4f8cff; }
.search-select-list{
  max-height:220px;
  overflow:auto;
  display:grid;
  gap:6px;
}
.search-select-option{
  min-height:40px;
  border-radius:12px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  color:var(--text-main);
  transition:background .18s ease, color .18s ease;
}
.search-select-option i{
  color:var(--text-muted);
  font-size:14px;
}
.search-select-option:hover{ background:var(--bg-card-2); }
.search-select-option.active{
  background:var(--bg-active);
  color:var(--text-active);
}
.search-select-option.active i{ color:var(--text-active); }

.modern-date-picker{ position:relative; }
.modern-date-btn{
  width:100%;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-card);
  color:var(--text-main);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 14px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.modern-date-btn:hover{ background:var(--bg-card-2); }
.modern-date-picker.open .modern-date-btn{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}
.modern-date-value-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.modern-date-value-wrap i{
  color:var(--text-muted);
  font-size:15px;
}
.modern-date-value{
  direction:ltr;
  unicode-bidi:embed;
  font-variant-numeric:tabular-nums;
}
.modern-date-arrow{
  color:var(--text-muted);
  transition:transform .18s ease;
}
.modern-date-picker.open .modern-date-arrow{ transform:rotate(180deg); }
.modern-date-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:320px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-dropdown);
  padding:14px;
  z-index:1060;
  display:none;
}
.modern-date-picker.open .modern-date-panel{ display:block; }
.modal-modern-date-picker{
  position:static;
}
.modal-modern-date-picker .modern-date-panel{
  right:0;
  left:0;
  width:auto;
  max-width:none;
  min-width:286px;
  box-sizing:border-box;
  overflow:hidden;
  padding:12px;
  border-radius:16px;
}
.modal-modern-date-picker .modern-date-header{
  margin-bottom:8px;
  align-items:center;
  gap:8px;
}
.modal-modern-date-picker .modern-date-title{
  font-size:14px;
  text-align:center;
}
.modal-modern-date-picker .modern-date-inline-select{
  min-height:34px;
  font-size:12px;
}
.modal-modern-date-picker .modern-date-nav{
  width:32px;
  height:32px;
}
.modal-modern-date-picker .modern-date-weekdays{
  gap:4px;
  margin-bottom:8px;
}
.modal-modern-date-picker .modern-date-weekdays span{
  width:auto;
  min-width:0;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}
.modal-modern-date-picker .modern-date-day{
  width:auto;
  min-width:0;
  height:34px;
  font-size:13px;
}
.modal-modern-date-picker .modern-date-inline-select--year{
  flex-basis:92px;
}
.modal-modern-date-picker .modern-date-footer{
  padding-top:10px;
}
.modern-date-header{
  display:grid;
  grid-template-columns:36px 36px minmax(0,1fr) 36px;
  align-items:center;
  column-gap:8px;
  margin-bottom:12px;
}
.modern-date-header .modern-date-close{
  border:1px solid rgba(239,68,68,.2);
  background:rgba(239,68,68,.08);
  color:#dc2626;
}
.modern-date-header .modern-date-close:hover{
  background:rgba(239,68,68,.14);
  border-color:rgba(239,68,68,.28);
}
.modern-date-footer-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.modern-date-ghost-pill{
  border:1px solid var(--border);
  background:var(--bg-card-2);
  color:var(--text-main);
  min-width:64px;
  height:30px;
  padding:0 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  transition:all .18s ease;
}
.modern-date-ghost-pill:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.modern-date-title{
  font-size:15px;
  font-weight:800;
  color:var(--text-main);
  text-align:center;
  width:100%;
}
 .modern-date-title-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1;
  min-width:0;
  width:100%;
  text-align:center;
}
.modern-date-title-wrap--selects{
  justify-content:center;
  align-items:center;
  flex-wrap:nowrap;
  position:relative;
  z-index:3;
  width:100%;
}
.modern-date-inline-select{
  min-height:36px;
  position:relative;
  z-index:3;
  pointer-events:auto;
  touch-action:manipulation;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-card-2);
  color:var(--text-main);
  padding:0 34px 0 12px;
  outline:none;
  font-size:13px;
  font-weight:800;
  text-align:center;
  text-align-last:center;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:14px 14px;
}
.modern-date-inline-select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.modern-date-inline-select--month{
  flex:1 1 58%;
  min-width:0;
}
.modern-date-inline-select--year{
  flex:0 0 108px;
}

.modern-date-head-trigger{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}
.modern-date-chip-btn{
  border:none;
  background:transparent;
  color:var(--text-main);
  font-size:15px;
  font-weight:800;
  padding:2px 6px;
  border-radius:10px;
  line-height:1.2;
  transition:background .18s ease,color .18s ease;
}
.modern-date-chip-btn:hover{
  background:var(--bg-card-2);
}
.modern-date-chip-btn.is-active{
  color:var(--accent);
}
.modern-date-alt-view{
  display:none;
}
.modern-date-alt-view.open{
  display:block;
}
.modern-date-choice-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.modern-date-choice{
  min-height:42px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-card-2);
  color:var(--text-main);
  font-size:13px;
  font-weight:700;
  padding:8px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  transition:all .18s ease;
}
.modern-date-choice:hover{
  border-color:var(--accent);
  transform:translateY(-1px);
}
.modern-date-choice.active{
  background:#4f8cff;
  border-color:#4f8cff;
  color:#fff;
}
.modern-date-nav{
  width:34px;
  height:34px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-card-2);
  color:var(--text-main);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.modern-date-weekdays{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
  margin-bottom:6px;
}
.modern-date-weekdays span{
  text-align:center;
  font-size:12px;
  font-weight:700;
  color:var(--text-muted);
  padding:4px 0;
}
.modern-date-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
}
.modern-date-day{
  height:38px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:var(--text-main);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:13px;
  font-variant-numeric:tabular-nums;
  transition:all .18s ease;
}
.modern-date-day:hover{ background:var(--bg-card-2); }
.modern-date-day.muted{
  color:var(--text-muted);
  opacity:.45;
}
.modern-date-day.today{ border-color:#4f8cff; }
.modern-date-day.active,
.modern-date-day.range-start,
.modern-date-day.range-end,
.modern-date-day.single-selected{
  background:#4f8cff;
  color:#fff!important;
  border-color:#4f8cff;
  font-weight:700;
  box-shadow:0 8px 18px rgba(79,140,255,.22);
}
.modern-date-day.in-range{
  background:rgba(79,140,255,.14);
  border-color:rgba(79,140,255,.08);
  border-radius:10px;
}
.modern-date-day.range-start:not(.range-end),
.modern-date-day.range-end:not(.range-start){
  position:relative;
}
.modern-date-day.range-start:not(.range-end)::after,
.modern-date-day.range-end:not(.range-start)::before{
  content:'';
  position:absolute;
  top:4px;
  bottom:4px;
  width:50%;
  background:rgba(79,140,255,.14);
  z-index:-1;
}
.modern-date-day.range-start:not(.range-end)::after{
  inset-inline-end:-2px;
  border-radius:0 10px 10px 0;
}
.modern-date-day.range-end:not(.range-start)::before{
  inset-inline-start:-2px;
  border-radius:10px 0 0 10px;
}
.modern-date-footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
}
.modern-date-footer-start{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.modern-date-mode-switch{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--bg-card-2);
}
.modern-date-mode-btn{
  border:0;
  background:transparent;
  color:var(--text-muted);
  min-width:54px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  transition:all .18s ease;
}
.modern-date-mode-btn.active{
  background:#4f8cff;
  color:#fff;
  box-shadow:0 6px 16px rgba(79,140,255,.22);
}
.date-hint{
  font-size:12px;
  color:var(--text-muted);
  margin-top:7px;
}


.modern-date-header--range{
  grid-template-columns:36px minmax(0,1fr) 36px;
}
.modern-date-footer--compact{
  justify-content:flex-start;
}
.modern-date-footer-start--single-row{
  width:100%;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.modern-date-footer-start--single-row .modern-date-mode-switch,
.modern-date-footer-start--single-row .modern-date-footer-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.modern-date-footer .btn,
.modern-date-footer .modern-date-ghost-pill,
.modern-date-footer .modern-date-mode-btn{
  white-space:nowrap;
}
.modern-date-footer .btn{
  min-width:64px;
  height:30px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
@media (max-width: 767.98px){
  .modern-date-panel{
    width:min(320px, calc(100vw - 24px));
    padding:12px;
  }
  .modern-date-header{
    margin-bottom:10px;
    column-gap:6px;
  }
  .modern-date-head-trigger{
    gap:4px;
  }
  .modern-date-chip-btn{
    font-size:14px;
    padding:2px 4px;
  }
  .modern-date-footer{
    margin-top:12px;
  }
  .modern-date-footer-start,
  .modern-date-footer-actions{
    width:100%;
  }
  .modern-date-footer-start--single-row{
    display:flex;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding-bottom:2px;
  }
  .modern-date-footer-start--single-row::-webkit-scrollbar{
    display:none;
  }
  .modern-date-footer-start--single-row .modern-date-mode-switch{
    flex:0 0 auto;
    gap:3px;
    padding:3px;
  }
  .modern-date-footer-start--single-row .modern-date-footer-actions{
    flex:0 0 auto;
    width:auto;
    gap:6px;
  }
  .modern-date-footer .btn,
  .modern-date-footer .modern-date-ghost-pill,
  .modern-date-footer .modern-date-mode-btn{
    height:32px;
    min-width:auto;
    padding:0 12px;
    font-size:12px;
    flex:0 0 auto;
  }
}
.table{ color:var(--text-main); }
.table > :not(caption) > * > *{
  padding:.85rem .75rem;
  border-bottom-color:var(--border);
  background:transparent;
}
.table thead th{
  color:var(--text-muted);
  font-weight:600;
}
.table-responsive{ border-radius:14px; }

.badge-soft-success{
  background:rgba(34,197,94,.12);
  color:var(--text-success);
  border:1px solid rgba(34,197,94,.18);
}
.badge-soft-warning{
  background:rgba(245,158,11,.12);
  color:var(--text-warning);
  border:1px solid rgba(245,158,11,.18);
}
.badge-soft-danger{
  background:rgba(239,68,68,.12);
  color:var(--text-danger);
  border:1px solid rgba(239,68,68,.18);
}

.btn-outline-secondary{
  --bs-btn-color: var(--text-soft);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text-main);
  --bs-btn-hover-bg: var(--bg-card-2);
  --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--text-main);
  --bs-btn-active-bg: var(--bg-card-2);
  --bs-btn-active-border-color: var(--border-strong);
}
.btn-outline-dark{
  --bs-btn-color: var(--text-main);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bg-button-dark);
  --bs-btn-hover-border-color: var(--bg-button-dark);
}
.btn-dark{
  --bs-btn-bg: var(--bg-button-dark);
  --bs-btn-border-color: var(--bg-button-dark);
  --bs-btn-hover-bg: var(--bg-button-dark-hover);
  --bs-btn-hover-border-color: var(--bg-button-dark-hover);
  --bs-btn-color:#fff;
}

.action-group{
  display:inline-flex;
  align-items:center;
  gap:0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border-strong);
  background:var(--bg-card);
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.action-btn{
  min-width:36px;
  height:34px;
  border:0;
  background:transparent;
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:all .18s ease;
}
.action-btn + .action-btn{ border-inline-start:1px solid var(--border); }
.action-btn i{
  font-size:14px;
  line-height:1;
}
.action-btn:hover{
  background:var(--bg-card-2);
  color:var(--text-main);
}
.action-btn.view:hover{
  background:rgba(59,130,246,.10);
  color:#2563eb;
}
.action-btn.edit:hover{
  background:rgba(245,158,11,.12);
  color:#d97706;
}
.action-btn.delete:hover{
  background:rgba(239,68,68,.10);
  color:#dc2626;
}

/* COA */
.coa-shell{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  margin-top:16px;
  box-shadow:var(--shadow-card);
}
.coa-head{
  background:var(--bg-card);
  border-bottom:1px solid var(--border);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.coa-head-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.coa-head-title .icon-box{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:var(--bg-card-2);
  color:var(--text-main);
  border-radius:8px;
  font-size:1rem;
}
.coa-head-title h3{
  margin:0;
  color:var(--text-main);
  font-size:1.05rem;
  font-weight:800;
}
.coa-head-title p{
  margin:2px 0 0;
  color:var(--text-muted);
  font-size:.84rem;
}
.coa-tools{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.coa-tools-inline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.coa-tools-group{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
.coa-tools-group .action-group{
  border-radius:10px;
}
.coa-tools-group .action-btn{
  min-width:38px;
  height:38px;
}
.coa-tools-group .action-btn i{
  font-size:1rem;
}
.coa-tools-group .action-btn.add:hover{
  background:rgba(34,197,94,.10);
  color:#16a34a;
}
.coa-search{
  position:relative;
  min-width:240px;
  flex:1 1 260px;
  max-width:420px;
}
.coa-search i{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--coa-search-icon);
  font-size:14px;
  pointer-events:none;
  transition:color .18s ease;
}
.coa-search .form-control{
  min-width:240px;
  min-height:38px;
  height:38px;
  border-radius:10px;
  padding-right:38px;
  background:var(--coa-search-bg);
  color:var(--coa-search-color);
  border:1px solid var(--coa-search-border);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.coa-search .form-control::placeholder{ color:var(--coa-search-placeholder); }
.coa-search .form-control:hover{
  border-color:color-mix(in srgb, var(--coa-search-border) 70%, var(--coa-search-focus) 30%);
}
.coa-search .form-control:focus{
  border-color:var(--coa-search-focus);
  box-shadow:var(--coa-search-focus-shadow);
  background:var(--coa-search-bg);
  color:var(--coa-search-color);
}
.coa-search .form-control:focus + i{ color:var(--coa-search-focus); }

.coa-summary{
  padding:12px 16px;
  background:var(--bg-card-2);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.coa-summary-boxes{
  display:flex;
  align-items:center;
  gap:0;
}
.coa-summary-box{
  min-width:90px;
  padding:0 16px;
  border-left:1px solid var(--border);
  text-align:center;
}
.coa-summary-box:last-child{ border-left:0; }
.coa-head-icon-btn{
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:10px;
}
.coa-head-icon-btn i{ font-size:1rem; }
.coa-summary-box .v{
  display:block;
  font-size:1.3rem;
  font-weight:800;
  color:var(--text-main);
  line-height:1;
}
.coa-summary-box .k{
  display:block;
  font-size:.84rem;
  color:var(--text-muted);
  margin-top:4px;
}
.coa-selected-inline{
  color:var(--text-soft);
  font-size:.94rem;
}
.coa-selected-inline strong{ color:var(--text-main); }

.coa-wrap{
  padding:14px 10px 44px 10px;
  overflow-x:hidden;
  overflow-y:visible;
  background:var(--bg-card);
  direction:rtl;
  height:auto !important;
  min-height:0;
  max-height:none !important;
  box-sizing:border-box;
  overscroll-behavior-x:contain;
  overflow-anchor:none;
}
.coa-wrap.allow-x-scroll{ overflow-x:auto; }
.coa-wrap::-webkit-scrollbar{ width:10px; height:10px; }
.coa-wrap::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--scroll-thumb), color-mix(in srgb, var(--scroll-thumb) 72%, transparent));
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.coa-wrap::-webkit-scrollbar-track{ background:transparent; }

.coa-tree{
  position:relative;
  display:inline-block;
  width:auto;
  min-width:100%;
  max-width:none;
  padding-bottom:18px;
  box-sizing:border-box;
}
.coa-tree,
.coa-tree ul{
  list-style:none;
  margin:0;
  padding:0;
}
.coa-node{ position:relative; }
.coa-node::before{
  content:"";
  position:absolute;
  right:16px;
  top:-6px;
  bottom:-6px;
  border-right:1px dashed var(--line);
}
.coa-node:last-child::before{ bottom:26px; }
.coa-tree > .coa-node:last-child{
  padding-bottom:10px;
}

.coa-row{
  position:relative;
  min-height:40px;
  padding:6px 8px;
  margin:1px 0;
  display:block;
  cursor:pointer;
  transition:.15s ease;
  width:100%;
}
.coa-row::before{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:18px;
  border-top:1px dashed var(--line);
  transform:translateY(-50%);
}
.coa-row:hover{ background:var(--bg-card-2); }
.coa-row.active{ background:var(--bg-active); }
.coa-row.is-match{
  background:var(--coa-search-match-bg);
  outline:1px solid var(--coa-search-match-border);
  outline-offset:-1px;
}
.coa-row.is-match .coa-name,
.coa-row.is-match .coa-code{
  color:var(--coa-search-match-text);
}

.row-flash{ animation:rowFlash 1.8s ease; }
.new-account-highlight{ animation:newAccountGlow 2s ease; }
@keyframes rowFlash{
  0%{background:#fff7d6;}
  100%{background:transparent;}
}
@keyframes newAccountGlow{
  0%{background:#dff7e7;}
  70%{background:#dff7e7;}
  100%{background:transparent;}
}

.coa-main{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
  max-width:100%;
  flex-wrap:nowrap;
  cursor:pointer;
}
.coa-name-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
}
.coa-primary-info{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:0 1 auto;
  overflow:hidden;
}
.coa-inline-group{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
  flex-wrap:nowrap;
}
.coa-tree .coa-tree{ margin-right:26px; }
.coa-toggle{
  width:16px;
  height:16px;
  border:0;
  background:transparent;
  color:var(--text-muted);
  display:grid;
  place-items:center;
  padding:0;
  flex:0 0 auto;
  font-size:.72rem;
}
.coa-toggle.empty{ visibility:hidden; }
.coa-node.collapsed > .coa-row .coa-toggle i{ transform:rotate(-90deg); }
.coa-node.collapsed > ul{ display:none; }

.coa-icon{
  width:18px;
  text-align:center;
  flex:0 0 auto;
  font-size:1.05rem;
}
.coa-icon.folder{ color:color-mix(in srgb, var(--text-active) 65%, #2563eb); }
.coa-icon.file{ color:var(--text-muted); }

.coa-name{
  color:var(--text-main);
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}
.coa-code{
  color:var(--text-soft);
  font-size:.93rem;
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
  direction:ltr;
}
.coa-mini-badge{
  font-size:.72rem;
  color:var(--text-soft);
  background:var(--bg-card-2);
  border-radius:999px;
  padding:3px 8px;
  white-space:nowrap;
  border:1px solid var(--border);
  flex:0 0 auto;
}
.coa-meta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  min-width:max-content;
}
.coa-mini-badge.danger{
  color:var(--text-danger);
  background:rgba(239,68,68,.10);
  border-color:rgba(239,68,68,.18);
}

.coa-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:none;
  transition:opacity .15s ease, visibility .15s ease;
  flex:0 0 56px;
  width:56px;
  min-width:56px;
  max-width:56px;
  overflow:hidden;
  background:transparent;
  padding-right:0;
  margin-right:4px;
  margin-inline-start:0;
}
.coa-row.active .coa-actions{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.coa-icon-btn{
  width:28px;
  height:28px;
  border:0;
  background:transparent;
  color:var(--text-soft);
  border-radius:6px;
  display:grid;
  place-items:center;
  margin:0;
}
.coa-icon-btn:hover{
  background:var(--bg-card-2);
  color:var(--text-main);
}
.account-delete-btn{ color:var(--text-danger); }
.account-delete-btn:hover{
  background:rgba(239,68,68,.08);
  color:var(--text-danger);
}

.coa-bottom{
  padding:26px 16px;
  border-top:1px solid var(--border);
  background:var(--bg-card);
  text-align:center;
}
.coa-bottom h4{
  margin:0 0 10px;
  color:var(--text-main);
  font-size:1.9rem;
  font-weight:700;
}
.coa-bottom p{
  margin:0 0 12px;
  color:var(--text-muted);
  font-size:1rem;
}
.coa-bottom .btn-link{
  text-decoration:none;
  font-size:1.15rem;
  font-weight:700;
}
.coa-bottom .btn-link i{ margin-left:6px; }

.coa-tree-measure{
  position:absolute!important;
  visibility:hidden!important;
  pointer-events:none!important;
  right:-99999px!important;
  top:-99999px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}

.inline-add-anchor{
  list-style:none;
  display:block;
  width:100%;
}
.inline-add-shell{
  margin:8px 0 10px;
  border:1px solid var(--border);
  background:var(--bg-card-2);
  border-radius:10px;
  padding:10px;
  width:min(100%, var(--coa-inline-width));
  min-width:0;
  max-width:100%;
  display:block;
  box-sizing:border-box;
}
.inline-add-shell.compact-width{
  width:min(100%, var(--coa-inline-width));
  min-width:0;
  max-width:100%;
}
.inline-add-shell .inline-add-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  color:var(--text-main);
  font-weight:700;
}
.inline-add-shell .inline-add-grid{
  display:grid;
  grid-template-columns:max-content minmax(0, 1fr) auto;
  gap:8px;
  align-items:end;
  width:100%;
}
.inline-add-shell .form-control{
  min-width:0;
  max-width:100%;
}
.inline-add-shell .form-label{
  font-size:.82rem;
  margin-bottom:4px;
  color:var(--text-soft);
}
.inline-add-shell .inline-actions{
  display:flex;
  gap:6px;
  align-items:end;
}
.inline-add-shell .inline-error{
  margin-top:8px;
  color:#b42318;
  font-size:.84rem;
}
.code-preview{
  background:var(--bg-input);
  font-weight:700;
  direction:ltr;
  color:var(--text-main);
  width:auto;
  min-width:7ch;
  max-width:12ch;
  text-align:center;
  padding-left:.55rem;
  padding-right:.55rem;
}

/* ===== Modal ===== */
.erp-modal{
  z-index:20050;
  padding:.75rem !important;
}
.erp-modal-backdrop{
  z-index:20040 !important;
}
.erp-modal .modal-dialog{
  width:min(100%, 880px);
  max-width:min(100%, 880px);
  min-height:calc(100dvh - 1.5rem);
  margin:.75rem auto;
  display:flex;
  align-items:center;
  justify-content:center;
  transform-origin:center center;
  transition:transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
  will-change:transform, opacity;
}
.erp-modal.fade .modal-dialog{
  opacity:0;
  transform:translate3d(0, 26px, 0) scale(.965);
}
.erp-modal.show .modal-dialog{
  opacity:1;
  transform:translate3d(0, 0, 0) scale(1);
}
.erp-modal .modal-content{
  width:100%;
  margin-inline:auto;
  background:var(--bg-card);
  color:var(--text-main);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-dropdown);
  overflow:hidden;
  position:relative;
  z-index:20060;
  display:flex;
  flex-direction:column;
  max-height:min(86vh, 860px);
}
.erp-modal .modal-header{
  background:var(--bg-topbar);
  color:var(--text-main);
  border-bottom:1px solid var(--border);
  padding:14px 16px;
  position:sticky;
  top:0;
  z-index:6;
  backdrop-filter:blur(10px);
}
.erp-modal .modal-title{
  font-size:1rem;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}
.erp-modal .modal-body{
  background:var(--bg-card);
  padding:16px;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  overscroll-behavior:contain;
  scroll-padding-top:18px;
  scroll-padding-bottom:18px;
}
.erp-modal .modal-body::-webkit-scrollbar,
.erp-modal .modal-search-select-list::-webkit-scrollbar,
.erp-modal .search-select-list::-webkit-scrollbar,
.erp-modal .modern-date-grid::-webkit-scrollbar,
.quick-entry-results-body::-webkit-scrollbar{
  width:10px;
  height:10px;
}
.erp-modal .modal-body::-webkit-scrollbar-thumb,
.erp-modal .modal-search-select-list::-webkit-scrollbar-thumb,
.erp-modal .search-select-list::-webkit-scrollbar-thumb,
.erp-modal .modern-date-grid::-webkit-scrollbar-thumb,
.quick-entry-results-body::-webkit-scrollbar-thumb{
  border:2px solid transparent;
  background-clip:padding-box;
}
.quick-entry-results-card{
  margin-top:14px;
}
.quick-entry-results-body{
  max-height:320px;
  overflow:auto;
}
.quick-entry-empty{
  padding:20px;
  text-align:center;
  color:var(--text-muted);
}
.quick-entry-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.quick-entry-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--bg-card);
  color:var(--text-muted);
  font-size:12px;
  font-weight:800;
  border-bottom:1px solid var(--border);
  padding:12px 10px;
  white-space:nowrap;
}
.quick-entry-table tbody td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  color:var(--text-main);
  vertical-align:middle;
}
.quick-entry-table tbody tr:hover td{
  background:var(--bg-card-2);
}
.quick-entry-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:var(--bg-active);
  color:var(--text-active);
}
.quick-entry-files-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  background:var(--bg-card-2);
  border:1px solid var(--border);
  font-size:12px;
  font-weight:800;
}
.quick-entry-title-cell{
  min-width:180px;
  font-weight:700;
}
.quick-entry-client-cell,
.quick-entry-date-cell,
.quick-entry-type-cell{
  white-space:nowrap;
}
.erp-modal .modal-footer{
  background:color-mix(in srgb, var(--bg-card) 90%, transparent);
  border-top:1px solid var(--border);
  padding:12px 16px;
  position:sticky;
  bottom:0;
  z-index:6;
  backdrop-filter:blur(10px);
}
.erp-modal .btn-close{
  filter:var(--modal-close-filter, none);
  opacity:.9;
}
.modal-backdrop.show{
  opacity:.45;
}

.erp-form-label{
  font-size:13px;
  font-weight:700;
  color:var(--text-main);
  margin-bottom:7px;
}
.erp-inline-field{
  display:flex;
  align-items:stretch;
  width:100%;
  position:relative;
}
.erp-inline-field{ --erp-inline-span-width:108px; }
.erp-inline-span{
  min-width:108px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  font-size:13px;
  font-weight:700;
  color:var(--text-main);
  background:var(--bg-card-2);
  border:1px solid var(--border);
  border-left:0;
  border-radius:0 14px 14px 0;
  white-space:nowrap;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.erp-inline-field > .form-control,
.erp-inline-field > .erp-file-box,
.erp-inline-field > .search-select,
.erp-inline-field > .modern-date-picker,
.erp-inline-field > .modal-search-select{
  flex:1 1 auto;
  min-width:0;
}
.erp-inline-field > .form-control,
.erp-inline-field > .erp-file-box .erp-form-control,
.erp-inline-field > .search-select .search-select-btn,
.erp-inline-field > .modern-date-picker .modern-date-btn,
.erp-inline-field > .modal-search-select .modal-search-select-btn{
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.erp-inline-field > .erp-file-box{
  border-radius:14px 0 0 14px;
}
.erp-inline-field:focus-within .erp-inline-span{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
  background:color-mix(in srgb, var(--bg-card-2) 82%, #4f8cff 18%);
}
.erp-inline-field:focus-within > .form-control,
.erp-inline-field:focus-within > .erp-file-box .erp-form-control,
.erp-inline-field:focus-within > .search-select .search-select-btn,
.erp-inline-field:focus-within > .modern-date-picker .modern-date-btn,
.erp-inline-field:focus-within > .modal-search-select .modal-search-select-btn{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}
.erp-inline-field .erp-file-box{
  margin:0;
}
@media (max-width: 575.98px){
  .erp-inline-field{ --erp-inline-span-width:92px; }
  .erp-inline-span{
    min-width:92px;
    padding:0 10px;
    font-size:12px;
  }
  .erp-modal{
    padding:.35rem !important;
  }
  .erp-modal .modal-dialog{
    width:min(100%, 100%);
    max-width:100%;
    min-height:calc(100dvh - .7rem);
    margin:.35rem auto;
  }
  .erp-modal.fade .modal-dialog{
    transform:translate3d(0, 18px, 0) scale(.975);
  }
  .erp-modal .modal-content{
    max-height:calc(100dvh - .7rem);
    border-radius:16px;
  }
  .erp-modal .modal-header,
  .erp-modal .modal-footer{
    padding:12px 12px;
  }
  .erp-modal .modal-body{
    padding:12px;
  }
}
.erp-form-control,
.erp-form-select{
  min-height:46px;
  background:var(--bg-input);
  color:var(--text-main);
  border:1px solid var(--border);
  border-radius:14px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.erp-form-control:focus,
.erp-form-select:focus{
  background:var(--bg-input);
  color:var(--text-main);
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}
.erp-form-control::placeholder{
  color:var(--text-muted);
}
.erp-file-box{
  border:1px dashed var(--border-strong);
  background:var(--bg-card-2);
  border-radius:16px;
  padding:14px;
  transition:border-color .18s ease, background .18s ease;
}
.erp-file-box:hover{
  border-color:#4f8cff;
}
.erp-file-note{
  font-size:12px;
  color:var(--text-muted);
  margin-top:8px;
}
.erp-file-list{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.erp-file-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--bg-card);
  border:1px solid var(--border);
  color:var(--text-main);
  font-size:12px;
  max-width:100%;
}
.erp-file-chip span{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.erp-modal .input-group-text{
  background:var(--bg-card-2);
  color:var(--text-main);
  border:1px solid var(--border);
  min-width:92px;
  justify-content:center;
  font-weight:700;
}
.erp-modal .input-group .form-control,
.erp-modal .input-group .form-select{
  border-color:var(--border);
}
.erp-modal .input-group:focus-within .input-group-text{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}

/* searchable select inside modal */
.modal-search-select{
  position:relative;
}
.modal-search-select-btn{
  width:100%;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-input);
  color:var(--text-main);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 14px;
  padding-right:44px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.modal-search-select-btn:hover{
  background:var(--bg-card-2);
}
.search-select-btn,
.modal-search-select-btn{
  position:relative;
  padding-left:44px;
}
.search-select-clear,
.modal-search-select-clear{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--text-muted);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:background .18s ease, color .18s ease, opacity .18s ease, visibility .18s ease;
  z-index:3;
}
.search-select.has-value > .search-select-clear,
.modal-search-select.has-value > .modal-search-select-clear,
.search-select.has-value .search-select-clear,
.modal-search-select.has-value .modal-search-select-clear{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.search-select-clear:hover,
.modal-search-select-clear:hover{
  background:rgba(220,53,69,.10);
  color:#dc3545;
}
.search-select-clear:focus-visible,
.modal-search-select-clear:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(79,140,255,.16);
}
.select-required-proxy{
  position:absolute;
  inset:auto auto 0 0;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  padding:0;
  margin:0;
  border:0;
}
.modal-search-select.open .modal-search-select-btn{
  border-color:#4f8cff;
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}
.modal-search-select-value{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
}
.modal-search-select-value i{
  color:var(--text-muted);
  font-size:15px;
}
.modal-search-select-text{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.modal-search-select-arrow{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
  transition:transform .18s ease, opacity .18s ease;
}
.modal-search-select.open .modal-search-select-arrow{
  transform:translateY(-50%) rotate(180deg);
}
.modal-search-select.has-value .modal-search-select-arrow{
  opacity:0;
  pointer-events:none;
}
.modal-search-select-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:0;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-dropdown);
  padding:10px;
  z-index:21000;
  display:none;
}
.modal-search-select.open .modal-search-select-menu{
  display:block;
}
.modal-search-select-search{
  position:relative;
  margin-bottom:10px;
}
.modal-search-select-search i{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
  font-size:14px;
}
.modal-search-select-search input{
  width:100%;
  height:42px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-card-2);
  color:var(--text-main);
  padding:0 38px 0 12px;
  outline:none;
}
.modal-search-select-search input:focus{
  border-color:#4f8cff;
}
.modal-search-select-list{
  max-height:220px;
  overflow:auto;
  display:grid;
  gap:6px;
}
.modal-search-select-option{
  min-height:40px;
  border-radius:12px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  color:var(--text-main);
  transition:background .18s ease, color .18s ease;
}
.modal-search-select-option i{
  color:var(--text-muted);
  font-size:14px;
}
.modal-search-select-option:hover{
  background:var(--bg-card-2);
}
.modal-search-select-option.active{
  background:var(--bg-active);
  color:var(--text-active);
}
.modal-search-select-option.active i{
  color:var(--text-active);
}

body.sidebar-collapsed .sidebar{ width:var(--sidebar-collapsed); }
body.sidebar-collapsed .topbar{ right:var(--sidebar-collapsed); }
body.sidebar-collapsed .brand{ justify-content:center; }
body.sidebar-collapsed .brand-main{ justify-content:center; gap:0; }
body.sidebar-collapsed .brand .brand-name-wrap,
body.sidebar-collapsed .search-box input,
body.sidebar-collapsed .menu-title,
body.sidebar-collapsed .menu-arrow,
body.sidebar-collapsed .submenu-wrap{
  display:none!important;
}
body.sidebar-collapsed .brand .logo-box{
  width:var(--logo-box-collapsed);
  height:var(--logo-box-collapsed);
  border-radius:16px;
}
body.sidebar-collapsed .brand .logo-box i{
  font-size:var(--logo-font-collapsed);
}
body.sidebar-collapsed .sidebar-scroll{ padding:12px 8px; }
body.sidebar-collapsed .search-box{
  justify-content:center;
  padding:0;
}
body.sidebar-collapsed .menu-link,
body.sidebar-collapsed .submenu-link,
body.sidebar-collapsed .nested-toggle{
  justify-content:center;
  padding:0;
  min-height:42px;
}
body.sidebar-collapsed .menu-icon{ margin:0; }

@media (max-width:991px){
  .swipe-edge{ display:block; }
  .sidebar{
    position:fixed;
    right:0;
    transform:translateX(110%);
    width:var(--sidebar-mobile-w);
    max-height:var(--app-height, 100dvh);
  }
  .sidebar.show{ transform:translateX(0); }
  .topbar{
    right:0;
    left:0;
  }
  .topbar-actions{ gap:8px; }
  .company-dropdown{
    left:0;
    width:260px;
  }
  .menu-title{ font-size:17px; }
  .submenu-link,
  .nested-toggle{ font-size:15px; }
  .nested-toggle .menu-title{ font-size:15px; }
  .nested-submenu .submenu-link{ font-size:14px; }
}

@media (max-width:900px){
  .inline-add-shell .inline-add-grid{
    grid-template-columns:1fr;
  }
  .inline-add-shell .inline-actions{
    justify-content:flex-start;
  }
}

@media (max-width:768px){
  .coa-head,
  .coa-summary{
    padding:12px;
  }
  .coa-tools{
    width:100%;
  }
  .coa-tools-inline{
    width:100%;
    gap:8px;
  }
  .coa-search{
    min-width:0;
    max-width:none;
    width:100%;
  }
  .coa-search .form-control{
    min-width:0;
    width:100%;
  }
  .coa-wrap{
    padding:10px 4px 30px;
    overflow-x:auto;
    overflow-y:visible;
    max-height:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
  }
  .coa-tree{ width:auto; min-width:100%; }
  .coa-name{ font-size:.92rem; }
  .coa-code{ font-size:.86rem; }
}

@media (max-width:575px){
  .modern-date-panel{
    width:100%;
    min-width:0;
  }
  .modal-modern-date-picker .modern-date-panel{
    right:0;
    left:0;
    width:auto;
    min-width:0;
    padding:10px;
  }
  .modal-modern-date-picker .modern-date-grid,
  .modal-modern-date-picker .modern-date-weekdays{
    gap:3px;
  }
  .modal-modern-date-picker .modern-date-day{
    height:32px;
    border-radius:10px;
    font-size:12px;
  }
  .modal-modern-date-picker .modern-date-title-wrap--selects{
    gap:6px;
  }
  .modal-modern-date-picker .modern-date-inline-select{
    min-height:32px;
    font-size:11px;
    padding-right:30px;
    background-position:right 8px center;
  }
  .modal-modern-date-picker .modern-date-inline-select--year{
    flex-basis:84px;
  }
  .modal-modern-date-picker .modern-date-weekdays span{
    height:28px;
    font-size:11px;
  }
  .erp-modal .modal-dialog{
    margin:12px auto;
    margin-top:1rem;
  }
  .erp-file-chip span{
    max-width:140px;
  }
}

/* Premium balance for month/year header across all date pickers */
.modern-date-header{
  grid-template-columns:38px minmax(0, max-content) 38px;
  justify-content:center;
}
.modern-date-title-wrap--selects{
  display:inline-flex;
  width:auto;
  max-width:100%;
  justify-self:center;
  justify-content:center;
  gap:8px;
  padding-inline:2px;
}
.modern-date-inline-select{
  justify-content:center;
}
.modern-date-inline-select--month{
  flex:0 0 auto;
  min-width:clamp(9rem, 22vw, 10.5rem);
  width:clamp(9rem, 22vw, 10.5rem);
  text-align:center;
  text-align-last:center;
  font-weight:700;
}
.modern-date-inline-select--year{
  flex:0 0 96px;
}
@media (max-width: 575.98px){
  .modern-date-header{
    grid-template-columns:34px minmax(0, max-content) 34px;
  }
  .modern-date-title-wrap--selects{
    gap:6px;
  }
  .modern-date-inline-select--month{
    min-width:clamp(8rem, 40vw, 9.4rem);
    width:clamp(8rem, 40vw, 9.4rem);
  }
  .modern-date-inline-select--year{
    flex-basis:84px;
  }
}

.notification-stack{
  position:fixed;
  top:88px;
  right:18px;
  width:min(380px, calc(100vw - 24px));
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:12050;
  pointer-events:none;
}
.notification-stack.pos-top-right{
  top:88px;
  right:18px;
  left:auto;
  bottom:auto;
}
.notification-stack.pos-top-left{
  top:88px;
  left:18px;
  right:auto;
  bottom:auto;
}
.notification-stack.pos-bottom-right{
  bottom:18px;
  right:18px;
  top:auto;
  left:auto;
}
.notification-stack.pos-bottom-left{
  bottom:18px;
  left:18px;
  top:auto;
  right:auto;
}

.notification-toast{
  --toast-accent:#3b82f6;
  --toast-bg:color-mix(in srgb, var(--bg-card) 90%, var(--toast-accent) 10%);
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb, var(--toast-accent) 26%, var(--border) 74%);
  background:var(--toast-bg);
  border-radius:18px;
  box-shadow:0 20px 45px rgba(15,23,42,.18);
  pointer-events:auto;
  backdrop-filter:blur(14px);
  transform:translateX(var(--enter-x, 24px)) scale(.98);
  opacity:0;
  transition:transform .22s ease, opacity .22s ease, box-shadow .22s ease;
  touch-action:pan-y;
  user-select:none;
}

.notification-toast.show{
  transform:translateX(0) scale(1);
  opacity:1;
}

.notification-toast.is-dragging{
  transition:none;
  cursor:grabbing;
}

.notification-toast.removing{
  opacity:0;
  transform:translateX(calc(var(--dismiss-x, 1) * 110%)) scale(.96);
}

.notification-toast.success{
  --toast-accent:#16a34a;
}
.notification-toast.error{
  --toast-accent:#dc2626;
}
.notification-toast.warning{
  --toast-accent:#d97706;
}
.notification-toast.info{
  --toast-accent:#2563eb;
}

.notification-toast-body{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px 16px;
}

.notification-toast-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-size:1.1rem;
  color:#fff;
  background:linear-gradient(135deg, color-mix(in srgb, var(--toast-accent) 92%, white 8%), color-mix(in srgb, var(--toast-accent) 74%, black 26%));
  box-shadow:0 10px 22px color-mix(in srgb, var(--toast-accent) 22%, transparent);
}

.notification-toast-content{
  min-width:0;
  flex:1;
}

.notification-toast-title-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.notification-toast-title{
  font-weight:800;
  line-height:1.2;
  margin-bottom:3px;
  color:var(--text-main);
}

.notification-toast-message{
  font-size:.92rem;
  line-height:1.55;
  color:var(--text-soft);
}

.notification-toast-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  color:var(--text-muted);
  font-size:.75rem;
  flex-wrap:wrap;
}
.notification-toast-countdown{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-variant-numeric:tabular-nums;
}
.notification-position-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.notification-position-controls .btn-group{
  border-radius:14px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--border);
}
.notification-position-btn{
  min-width:84px;
  border-radius:0 !important;
}

.notification-toast-close{
  width:32px;
  height:32px;
  border:none;
  border-radius:10px;
  background:color-mix(in srgb, var(--toast-accent) 10%, transparent);
  color:var(--text-main);
  display:grid;
  place-items:center;
  flex:0 0 auto;
  transition:transform .18s ease, background .18s ease;
}
.notification-toast-close:hover{
  transform:scale(1.06);
  background:color-mix(in srgb, var(--toast-accent) 16%, transparent);
}

.notification-toast-progress{
  position:absolute;
  inset-inline:10px;
  bottom:8px;
  height:4px;
  border-radius:999px;
  overflow:hidden;
  background:color-mix(in srgb, var(--toast-accent) 16%, transparent);
}

.notification-toast-progress-bar{
  height:100%;
  width:100%;
  transform-origin:right center;
  background:linear-gradient(90deg, color-mix(in srgb, var(--toast-accent) 72%, white 28%), var(--toast-accent));
  animation:toastProgress linear forwards;
}

.notification-demo-card{
  margin-top:14px;
}
.notification-demo-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.notification-demo-btn{
  border-radius:12px;
}

@keyframes toastProgress{
  from{ transform:scaleX(1); }
  to{ transform:scaleX(0); }
}

@media (max-width: 991.98px){
  .notification-stack,
  .notification-stack.pos-top-right,
  .notification-stack.pos-top-left{
    top:78px;
    width:min(100vw - 16px, 360px);
  }
  .notification-stack.pos-top-right,
  .notification-stack.pos-bottom-right{
    right:12px;
    left:auto;
  }
  .notification-stack.pos-top-left,
  .notification-stack.pos-bottom-left{
    left:12px;
    right:auto;
  }
  .notification-stack.pos-bottom-right,
  .notification-stack.pos-bottom-left{
    bottom:12px;
  }
}

@media (max-width: 575.98px){
  .notification-stack,
  .notification-stack.pos-top-right,
  .notification-stack.pos-top-left,
  .notification-stack.pos-bottom-right,
  .notification-stack.pos-bottom-left{
    left:8px;
    right:8px;
    width:auto;
  }
  .notification-toast-body{
    padding:12px 12px 15px;
  }
}



/* Journal Engine */
.journal-lines-table th,
.journal-lines-table td{
  vertical-align: middle;
}


/* Journal page modern fields */
.journal-modern-date-picker{ width:100%; }
.journal-lines-table .journal-line-select{ min-width: 240px; }
.journal-lines-table .search-select-btn{ min-height: 38px; }
.journal-lines-table .search-select-menu{ z-index: 50; }
.journal-modern-date-picker .modern-date-panel{ z-index: 60; }
