:root{--bg:#f4f6f8;--card:#fff;--text:#17202a;--muted:#6b7280;--accent:#111827;--line:#e5e7eb;--ok:#15803d;--warn:#b45309}
*{box-sizing:border-box} body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}
.hidden{display:none!important}.center-page{min-height:100vh;display:grid;place-items:center;padding:24px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.06)}
.login-card{width:min(420px,100%);padding:32px}.brand-mark{width:54px;height:54px;border-radius:16px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:800;font-size:26px}.brand-mark.small{width:36px;height:36px;border-radius:10px;font-size:18px}
h1{margin:18px 0 4px}h2,h3,p{margin-top:0}.muted{color:var(--muted)}label{display:block;margin:16px 0 7px;font-weight:600}input,select{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}
button{border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:700;background:var(--accent);color:#fff;cursor:pointer}.login-card button{width:100%;margin-top:20px}.error{color:#b91c1c;margin-top:12px;min-height:20px}
.app{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{background:#fff;border-right:1px solid var(--line);padding:20px;display:flex;flex-direction:column;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-size:20px}.sidebar nav{display:grid;gap:7px}.nav,.ghost{background:transparent;color:#374151;text-align:left}.nav.active{background:#111827;color:#fff}.badge{float:right;background:#ef4444;color:#fff;border-radius:99px;padding:1px 7px;font-size:12px}.ghost{margin-top:auto;border:1px solid var(--line)}
main{min-width:0}.topbar{height:90px;background:#fff;border-bottom:1px solid var(--line);padding:18px 26px;display:flex;justify-content:space-between;align-items:center}.topbar h2{margin-bottom:3px}.user-chip{background:#f3f4f6;border-radius:999px;padding:9px 13px;font-size:14px}.view{padding:26px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{padding:20px}.metric .value{font-size:28px;font-weight:800;margin-top:8px}.panel-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin-top:18px}.panel{padding:20px}.list{display:grid;gap:10px}.list-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}.status{font-size:12px;font-weight:700;padding:5px 9px;border-radius:99px;background:#ecfdf5;color:var(--ok)}.status.warn{background:#fff7ed;color:var(--warn)}
.chat-layout{display:grid;grid-template-columns:300px 1fr;height:calc(100vh - 142px);background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.conversations{border-right:1px solid var(--line);padding:14px}.conversation{padding:13px;border-radius:10px;margin-bottom:6px}.conversation.active{background:#f3f4f6}.messages{padding:20px;display:flex;flex-direction:column}.bubble{max-width:70%;padding:11px 14px;border-radius:14px;background:#f3f4f6;margin:5px 0}.bubble.me{margin-left:auto;background:#111827;color:#fff}.composer{margin-top:auto;display:flex;gap:8px}.composer input{flex:1}.composer button{width:auto}
.quote-builder{display:grid;grid-template-columns:1fr 340px;gap:18px}.quote-items{padding:20px}.summary{padding:20px;height:max-content}.summary-row{display:flex;justify-content:space-between;padding:9px 0}.summary-row.total{font-size:19px;font-weight:800;border-top:1px solid var(--line);margin-top:8px;padding-top:14px}.notice{padding:12px;border-radius:10px;background:#fff7ed;color:#92400e;margin-top:14px}
@media(max-width:900px){.app{grid-template-columns:76px 1fr}.sidebar{padding:14px 10px}.brand strong,.nav{font-size:0}.nav::first-letter{font-size:16px}.ghost{font-size:0}.grid{grid-template-columns:repeat(2,1fr)}.panel-grid,.quote-builder{grid-template-columns:1fr}.chat-layout{grid-template-columns:1fr}.conversations{display:none}}
@media(max-width:600px){.grid{grid-template-columns:1fr}.topbar{padding:14px}.view{padding:14px}.user-chip{display:none}.app{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;bottom:0;left:0;right:0;height:68px;border-right:0;border-top:1px solid var(--line);flex-direction:row;align-items:center;overflow:auto}.brand,.ghost{display:none}.sidebar nav{display:flex;width:100%;justify-content:space-around}.nav{font-size:11px!important;padding:10px 8px}.badge{display:none}main{padding-bottom:68px}}
.admin-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.row-actions{white-space:nowrap}.small-btn{padding:8px 10px;font-size:12px;margin-left:5px}.secondary{background:#fff;color:#374151;border:1px solid var(--line)}.status.inactive{background:#f3f4f6;color:#6b7280}.small-text{font-size:12px;margin-top:3px}.modal{position:fixed;inset:0;background:rgba(17,24,39,.45);display:grid;place-items:center;padding:20px;z-index:100}.modal-card{width:min(760px,100%);max-height:90vh;overflow:auto;padding:22px}.modal-title{display:flex;align-items:center;justify-content:space-between}.icon-btn{background:transparent;color:#374151;font-size:26px;padding:4px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.admin-head{align-items:flex-start;flex-direction:column}.row-actions{white-space:normal}.small-btn{margin:3px 0;display:block}.modal{padding:8px}.modal-card{border-radius:12px}}
.sidebar{overflow:hidden}.main-nav{overflow-y:auto;padding-right:4px}.main-nav::-webkit-scrollbar{width:6px}.main-nav::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:99px}.nav-group{display:grid;gap:5px;margin-bottom:12px}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;font-weight:800;padding:5px 8px 2px}.module-hero{padding:22px;display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.eyebrow{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;font-weight:800;margin-bottom:7px}.module-status{white-space:nowrap;padding:6px 10px;background:#f3f4f6;border-radius:99px;font-size:12px;font-weight:800;color:#4b5563}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.module-feature{padding:18px}.module-feature p{margin:7px 0 0}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.quick-grid button{width:100%}
@media(max-width:1100px){.module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.module-grid{grid-template-columns:1fr}.module-hero{flex-direction:column}.quick-grid{grid-template-columns:1fr}}

.permissions-layout{display:grid;grid-template-columns:260px 1fr;gap:16px}.role-list,.permission-panel{padding:18px}.role-list h4{margin:0 0 12px}.role-select{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;color:#374151;border:1px solid var(--line);margin-bottom:8px}.role-select.active{background:#111827;color:#fff}.role-select small{font-size:11px;opacity:.7}.permission-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}.permission-toolbar h3{margin-bottom:4px}.permission-group{border-bottom:1px solid var(--line);padding:15px 0}.permission-group:last-child{border-bottom:0}.permission-group-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.permission-group-title strong{margin-right:auto}.tiny-btn{padding:6px 9px;font-size:11px}.permission-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-item{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px;border:1px solid var(--line);border-radius:10px;font-weight:400}.permission-item input{width:auto;margin:3px 0 0}.permission-item span{display:flex;flex-direction:column;gap:3px}.permission-item small{font-size:11px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}@media(max-width:900px){.permissions-layout{grid-template-columns:1fr}.permission-checks{grid-template-columns:1fr}}

#taskBadge{
  margin-left:auto;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

#taskBadge.hidden{
  display:none !important;
}

/* ERGON Dashboard v2 */
.dashboard-v2-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.dashboard-v2-head h2{
  margin:0 0 5px;
}

.dashboard-v2-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(190px,1fr));
  gap:16px;
}

.dashboard-v2-card{
  text-align:left;
  cursor:pointer;
  min-height:120px;
  border:0;
  width:100%;
}

.dashboard-v2-value{
  font-size:32px;
  font-weight:700;
  margin-top:14px;
}

@media(max-width:700px){
  .dashboard-v2-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-v2-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

/* Dashboard v2 KPI visual fix */
.dashboard-v2-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:16px;
}

.dashboard-v2-card{
  display:flex !important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  min-height:135px !important;
  padding:20px !important;
  text-align:left;
  cursor:pointer;
}

.dashboard-v2-card .muted{
  display:block !important;
  font-size:15px;
  font-weight:600;
  line-height:1.3;
}

.dashboard-v2-value{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  height:auto !important;
  width:auto !important;
  overflow:visible !important;
  font-size:34px !important;
  line-height:1 !important;
  font-weight:800 !important;
  margin-top:20px !important;
  color:#0f172a !important;
}

@media(max-width:700px){
  .dashboard-v2-grid{
    grid-template-columns:1fr 1fr;
  }

  .dashboard-v2-card{
    min-height:120px !important;
    padding:16px !important;
  }

  .dashboard-v2-value{
    font-size:28px !important;
  }
}

@media(max-width:430px){
  .dashboard-v2-grid{
    grid-template-columns:1fr;
  }
}

/* Dashboard card text visibility fix */
.dashboard-v2-card{
  color:#0f172a !important;
}

.dashboard-v2-label{
  display:block !important;
  color:#475569 !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
}

.dashboard-v2-value{
  display:block !important;
  color:#0f172a !important;
  font-size:34px !important;
  font-weight:800 !important;
  line-height:1 !important;
  margin-top:18px !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Dashboard v2.1 */
.dashboard-v2-sections{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}

.dashboard-v2-section{
  padding:20px;
}

.dashboard-v2-section h3{
  margin:0 0 16px;
  color:#0f172a;
}

.dashboard-v2-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.dashboard-v2-section-head h3{
  margin:0;
}

.dashboard-v2-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.dashboard-v2-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  padding:11px 12px;
  border:0;
  border-radius:10px;
  background:#f8fafc;
  color:#0f172a;
  text-align:left;
}

button.dashboard-v2-row{
  cursor:pointer;
}

.dashboard-v2-row small{
  color:#64748b;
  white-space:nowrap;
}

.dashboard-v2-row strong{
  color:#0f172a;
}

.dashboard-v2-row.static{
  cursor:default;
}

.dashboard-v2-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@media(max-width:850px){
  .dashboard-v2-sections{
    grid-template-columns:1fr;
  }
}

/* =====================================================
   DASHBOARD - FINAL TEXT VISIBILITY OVERRIDE
   ===================================================== */

#dashboard .dashboard-v2-card,
#dashboard button.dashboard-v2-card{
    background:#ffffff !important;
    color:#0f172a !important;
}

#dashboard .dashboard-v2-card *,
#dashboard button.dashboard-v2-card *{
    color:#0f172a !important;
    -webkit-text-fill-color:#0f172a !important;
    opacity:1 !important;
    visibility:visible !important;
}

#dashboard .dashboard-v2-label{
    display:block !important;
    color:#475569 !important;
    -webkit-text-fill-color:#475569 !important;
    font-size:15px !important;
    font-weight:700 !important;
}

#dashboard .dashboard-v2-value{
    display:block !important;
    color:#111827 !important;
    -webkit-text-fill-color:#111827 !important;
    font-size:34px !important;
    font-weight:800 !important;
    line-height:1 !important;
    margin-top:18px !important;
}

#dashboard .dashboard-v2-section,
#dashboard .dashboard-v2-section *,
#dashboard .dashboard-v2-row,
#dashboard .dashboard-v2-row *{
    color:#0f172a !important;
    -webkit-text-fill-color:#0f172a !important;
}

/* =====================================================
   FIXED APP LAYOUT
   Sidebar scrolls independently
   Main panes scroll independently
   ===================================================== */

@media(min-width:601px){

  html,
  body{
    height:100%;
    overflow:hidden;
  }

  #appView.app{
    height:100vh;
    min-height:0;
    overflow:hidden;
    grid-template-rows:100%;
  }

  .sidebar{
    height:100vh;
    min-height:0;
    overflow:hidden;
  }

  .sidebar .brand{
    flex:0 0 auto;
  }

  .sidebar .main-nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }

  .sidebar #logoutBtn{
    flex:0 0 auto;
    margin-top:0;
  }

  #appView > main{
    height:100vh;
    min-height:0;
    min-width:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }

  #appView > main > .topbar{
    flex:0 0 90px;
    height:90px;
  }

  #appView > main > .view:not(.hidden){
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
  }

}


/* =====================================================
   ERGON GLOBAL SEARCH
   ===================================================== */

.ergon-global-search{
  position:relative;
  width:min(520px,42vw);
  margin:0 20px;
}

.ergon-global-search-box{
  display:flex;
  align-items:center;
  gap:9px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:0 12px;
}

.ergon-global-search-box:focus-within{
  background:#fff;
  border-color:#9ca3af;
  box-shadow:
    0 0 0 3px rgba(17,24,39,.06);
}

.ergon-global-search-icon{
  color:#6b7280;
  font-size:18px;
}

#ergonGlobalSearch{
  border:0;
  background:transparent;
  padding:11px 0;
  outline:none;
  box-shadow:none;
}

.ergon-global-search-results{
  position:absolute;
  z-index:900;
  top:calc(100% + 8px);
  left:0;
  right:0;
  max-height:430px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:
    0 18px 45px rgba(0,0,0,.14);
  padding:6px;
}

.ergon-global-result{
  display:flex;
  width:100%;
  align-items:flex-start;
  gap:12px;
  padding:11px;
  background:#fff;
  color:#111827;
  text-align:left;
  border-radius:10px;
}

.ergon-global-result:hover{
  background:#f3f4f6;
}

.ergon-global-type{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:7px;
  background:#e5e7eb;
  color:#4b5563;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

.ergon-global-main{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.ergon-global-main strong{
  white-space:normal;
}

.ergon-global-main small{
  color:#6b7280;
  font-weight:500;
}

.ergon-global-search-state{
  padding:16px;
  color:#6b7280;
  text-align:center;
  font-size:13px;
}


@media(max-width:1000px){

  .ergon-global-search{
    width:min(380px,40vw);
  }
}


@media(max-width:700px){

  .ergon-global-search{
    display:none;
  }
}


/* GLOBAL SEARCH KEYBOARD / RECENTS */

.ergon-global-result.active{
  background:#e5e7eb;
}

.ergon-global-recent-title{
  padding:9px 11px 6px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#9ca3af;
}

.ergon-global-recent{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  padding:10px 11px;
  background:#fff;
  color:#374151;
  text-align:left;
  font-weight:600;
}

.ergon-global-recent:hover{
  background:#f3f4f6;
}

/* CRM drawer close button */
.ergon-crm-close{
  background:#f3f4f6 !important;
  color:#111827 !important;
  border:1px solid #d1d5db !important;
  width:38px;
  height:38px;
  padding:0 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  line-height:1;
  border-radius:10px;
}

.ergon-crm-close:hover{
  background:#e5e7eb !important;
  color:#111827 !important;
}


/* =====================================================
   NOTIFICATIONS CENTER V2
   ===================================================== */

.notification-center-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 18px;
}

.notification-filter{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#fff;
  color:#4b5563;
  border:1px solid #e5e7eb;
  padding:8px 11px;
  border-radius:10px;
}

.notification-filter.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.notification-filter span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#f3f4f6;
  color:#4b5563;
  font-size:11px;
}

.notification-filter.active span{
  background:rgba(255,255,255,.16);
  color:#fff;
}

.notification-category{
  display:block;
  margin-bottom:4px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#9ca3af;
}

.notification-item{
  cursor:pointer;
}

.notification-item:hover{
  border-color:#d1d5db;
}

.notification-item.unread{
  border-left:4px solid #111827;
}

@media(max-width:700px){

  .notification-center-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .notification-filter{
    flex:0 0 auto;
  }
}


/* =====================================================
   NOTIFICATION SECONDARY PANES / SETTINGS V2
   ===================================================== */

.notification-subnav{
  display:flex;
  gap:7px;
  width:max-content;
  margin:14px 0 18px;
  padding:5px;
  border-radius:12px;
  background:#e5e7eb;
}

.notification-subnav-btn{
  background:transparent;
  color:#4b5563;
  padding:9px 15px;
  border-radius:9px;
}

.notification-subnav-btn.active{
  background:#fff;
  color:#111827;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.notification-subpane{
  min-width:0;
}

.notification-settings-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:14px;
}

.notification-settings-card{
  padding:18px;
}

.notification-settings-card h3{
  margin-bottom:14px;
}

.notification-setting-row{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:0;
  padding:11px 0;
  border-bottom:1px solid #e5e7eb;
  font-weight:400;
}

.notification-setting-row:last-child{
  border-bottom:0;
}

.notification-setting-row input{
  width:auto;
  margin:4px 0 0;
}

.notification-setting-row span{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.notification-setting-row small{
  color:#6b7280;
}

.notification-settings-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:15px;
}

.notification-settings-savebar{
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  margin-top:16px;
  padding:14px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
}

.notification-settings-loading{
  padding:20px;
}

@media(max-width:850px){

  .notification-settings-grid{
    grid-template-columns:1fr;
  }

  .notification-subnav{
    width:100%;
  }

  .notification-subnav-btn{
    flex:1;
  }
}


/* =====================================================
   ERGON PLATFORM - MOBILE UX V1
   ===================================================== */

.mobile-menu-btn,
.mobile-sidebar-overlay{
  display:none;
}

.topbar-title{
  min-width:0;
}

@media(max-width:900px){

  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body.mobile-nav-open{
    overflow:hidden;
  }

  .app{
    position:relative;
    display:block !important;
    width:100%;
    height:100dvh;
    min-height:100dvh;
    overflow:hidden;
  }

  .app > main{
    width:100% !important;
    max-width:100% !important;
    height:100dvh;
    min-width:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
  }

  .sidebar{
    position:fixed !important;
    z-index:1002;
    top:0;
    left:0;
    bottom:0;
    width:min(84vw,320px) !important;
    max-width:320px;
    height:100dvh;
    transform:translateX(-105%);
    transition:transform .24s ease;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    box-shadow:8px 0 30px rgba(0,0,0,.18);
  }

  body.mobile-nav-open .sidebar{
    transform:translateX(0);
  }

  .mobile-sidebar-overlay{
    display:block;
    position:fixed;
    z-index:1001;
    inset:0;
    background:rgba(17,24,39,.45);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
      opacity .22s ease,
      visibility .22s ease;
  }

  body.mobile-nav-open .mobile-sidebar-overlay{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .mobile-menu-btn{
    display:inline-flex;
    flex:0 0 42px;
    width:42px;
    height:42px;
    padding:0;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    border-radius:10px;
  }

  .mobile-menu-btn span{
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:currentColor;
  }

  .topbar{
    position:sticky;
    z-index:100;
    top:0;
    display:flex;
    align-items:center;
    gap:11px;
    width:100%;
    min-width:0;
  }

  .topbar-title{
    flex:1 1 auto;
    min-width:0;
  }

  .topbar-title h2{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .user-chip{
    flex:0 1 auto;
    min-width:0;
    max-width:36vw;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .view{
    min-width:0;
    max-width:100%;
  }

  .grid,
  .panel-grid,
  .quick-grid{
    min-width:0;
  }

  .table-wrap{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  img,
  video,
  canvas{
    max-width:100%;
    height:auto;
  }

  input,
  select,
  textarea,
  button{
    max-width:100%;
  }
}


@media(max-width:600px){

  .topbar{
    padding-left:12px;
    padding-right:12px;
  }

  .topbar-title h2{
    font-size:19px;
  }

  .topbar-title .muted{
    font-size:12px;
  }

  .user-chip{
    max-width:30vw;
    font-size:11px;
  }

  .card{
    max-width:100%;
  }

  .panel-grid,
  .quick-grid{
    grid-template-columns:1fr !important;
  }

  .modal{
    padding:10px;
  }

  .modal-card{
    width:100% !important;
    max-width:100% !important;
    max-height:calc(100dvh - 20px);
    overflow-y:auto;
  }
}


@media(max-width:420px){

  .user-chip{
    display:none;
  }

  .topbar-title h2{
    font-size:18px;
  }

  .mobile-menu-btn{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
}


/* =====================================================
   MOBILE SIDEBAR FIX V1
   ===================================================== */

@media(max-width:900px){

  .sidebar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    padding:18px 14px !important;
  }

  .sidebar .brand{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    flex:0 0 auto !important;
    margin-bottom:18px !important;
  }

  .sidebar .main-nav{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    width:100% !important;
    min-width:0 !important;
    gap:16px !important;
    flex:1 1 auto !important;
  }

  .sidebar .nav-group{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    gap:5px !important;
    margin:0 !important;
  }

  .sidebar .nav-label{
    display:block !important;
    width:100% !important;
    padding:0 10px 5px !important;
    font-size:11px !important;
    line-height:1.3 !important;
  }

  .sidebar .nav{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-height:46px !important;
    margin:0 !important;
    padding:11px 12px !important;
    text-align:left !important;
    white-space:normal !important;
  }

  .sidebar .nav.active{
    width:100% !important;
  }

  .sidebar #logoutBtn{
    flex:0 0 auto !important;
    width:100% !important;
    margin-top:18px !important;
  }
}


/* =====================================================
   MOBILE CONTENT UX V2
   Cards / forms / tables / actions
   ===================================================== */

@media(max-width:900px){

  main{
    padding-bottom:24px;
  }

  .view{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .grid,
  .panel-grid,
  .module-grid,
  .quick-grid,
  .form-grid{
    grid-template-columns:1fr !important;
    width:100% !important;
    min-width:0 !important;
  }

  .card,
  .panel,
  .module-hero,
  .module-feature{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .card{
    overflow-wrap:anywhere;
  }

  input,
  select,
  textarea{
    width:100% !important;
    max-width:100% !important;
    min-height:44px;
    font-size:16px !important;
  }

  textarea{
    min-height:100px;
  }

  button,
  .button,
  .btn{
    min-height:44px;
    touch-action:manipulation;
  }

  .modal-actions,
  .row-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .modal-actions button,
  .row-actions button{
    flex:1 1 auto;
  }

  .table-wrap{
    width:100%;
    max-width:100%;
    overflow-x:auto !important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }

  .data-table,
  table{
    width:max-content;
    min-width:100%;
  }

  th,
  td{
    white-space:nowrap;
  }

  .summary,
  .quote-items{
    width:100% !important;
  }

  .quote-builder{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:14px !important;
  }

  .admin-head{
    display:flex;
    flex-direction:column;
    align-items:stretch !important;
    gap:12px;
  }

  .admin-head > button{
    width:100%;
  }
}


@media(max-width:600px){

  main{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .view{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .card,
  .panel,
  .module-hero,
  .module-feature{
    padding:14px !important;
    border-radius:12px;
  }

  .grid,
  .panel-grid,
  .module-grid{
    gap:10px !important;
  }

  .metric .value{
    font-size:28px;
  }

  h1{
    font-size:26px;
  }

  h2{
    font-size:20px;
  }

  h3{
    font-size:17px;
  }

  .modal{
    align-items:flex-end !important;
    padding:0 !important;
  }

  .modal-card{
    width:100% !important;
    max-width:100% !important;
    max-height:92dvh !important;
    margin:0 !important;
    border-radius:18px 18px 0 0 !important;
    overflow-y:auto !important;
  }

  .modal-title{
    position:sticky;
    top:0;
    z-index:2;
    background:inherit;
  }

  .modal-actions{
    position:sticky;
    bottom:0;
    z-index:2;
    padding-top:10px;
    background:inherit;
  }
}


/* =====================================================
   MOBILE UX FIX V3
   CRM / Quotes / Projects
   ===================================================== */

@media(max-width:900px){

  /* Prevent right-side clipping */
  #customers,
  #customers *,
  #quotes,
  #quotes *,
  #projects,
  #projects *{
    box-sizing:border-box;
  }

  #customers,
  #quotes,
  #projects{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:hidden;
  }


  /* =========================
     CRM
     ========================= */

  #customers #ergon-crm-root{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  #customers .ergon-crm-toolbar{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  #customers .ergon-crm-toolbar input,
  #customers .ergon-crm-toolbar select,
  #customers .ergon-crm-toolbar button{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  #customers .ergon-crm-tablebox{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  #customers .ergon-crm-table{
    min-width:720px !important;
    width:720px !important;
  }

  #customers .ergon-crm-table th,
  #customers .ergon-crm-table td{
    overflow:visible !important;
    text-overflow:clip !important;
  }

  #customers .ergon-crm-foot{
    position:sticky;
    left:0;
    display:flex !important;
    width:100% !important;
    min-width:100% !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:12px 4px 4px !important;
    white-space:normal !important;
  }

  #customers .ergon-crm-pagination{
    display:flex !important;
    flex:0 0 auto !important;
    gap:7px !important;
  }

  #customers .ergon-crm-page{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    font-size:20px !important;
    visibility:visible !important;
  }


  /* =========================
     QUOTE BUILDER
     ========================= */

  #quotes .quote-builder{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  #quotes .quote-items,
  #quotes .summary,
  #quotes .card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  #quotes input,
  #quotes select,
  #quotes textarea{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  #quotes .summary-row{
    width:100% !important;
    min-width:0 !important;
    gap:10px;
  }

  #quotes .summary-row > *{
    min-width:0;
    overflow-wrap:anywhere;
  }


  /* =========================
     PROJECTS SEARCH
     ========================= */

  #projects input[type="search"],
  #projects input[placeholder*="Αναζ"],
  #projects input[placeholder*="αναζ"]{
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
    line-height:24px !important;
  }
}


@media(max-width:600px){

  #customers .ergon-crm-foot{
    font-size:12px !important;
  }

  #customers .ergon-crm-table{
    min-width:680px !important;
    width:680px !important;
  }

  #quotes .quote-items,
  #quotes .summary{
    padding:13px !important;
  }
}


/* =====================================================
   CHAT MOBILE STATE FIX
   ===================================================== */

@media(max-width:900px){

  #chat .ergon-chat{
    display:block !important;
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    height:calc(100dvh - 90px) !important;
    overflow:hidden !important;
  }

  /*
   * Αρχική κατάσταση:
   * εμφανίζεται ΠΑΝΤΑ η λίστα συνομιλιών.
   */
  #chat .ergon-chat:not(.mobile-conversation-open)
  > .ergon-chat-sidebar{
    display:flex !important;
    flex-direction:column !important;
    position:relative !important;

    width:100% !important;
    max-width:100% !important;
    height:100% !important;

    overflow:hidden !important;
  }

  #chat .ergon-chat:not(.mobile-conversation-open)
  > .ergon-chat-main{
    display:none !important;
  }

  /*
   * Αφού επιλεγεί συνομιλία:
   * κρύβεται η λίστα και εμφανίζεται το conversation.
   */
  #chat .ergon-chat.mobile-conversation-open
  > .ergon-chat-sidebar{
    display:none !important;
  }

  #chat .ergon-chat.mobile-conversation-open
  > .ergon-chat-main{
    display:flex !important;
    flex-direction:column !important;

    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    background:#fff !important;
  }

  #chat .ergon-chat-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}


/* =====================================================
   ERGON PWA INSTALL UI
   ===================================================== */

.ergon-install-banner{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:20000;

  transform:translateX(-50%);

  width:min(620px,calc(100% - 28px));

  display:flex;
  align-items:center;
  gap:12px;

  padding:12px;

  box-sizing:border-box;

  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;

  box-shadow:
    0 12px 36px rgba(15,23,42,.18);
}

.ergon-install-banner.hidden{
  display:none !important;
}

.ergon-install-icon{
  width:46px;
  height:46px;

  flex:0 0 46px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:12px;

  background:#111827;
  color:#fff;

  font-weight:700;
  font-size:26px;
}

.ergon-install-copy{
  flex:1 1 auto;
  min-width:0;

  display:flex;
  flex-direction:column;
  gap:3px;
}

.ergon-install-copy strong{
  font-size:14px;
  color:#111827;
}

.ergon-install-copy span{
  font-size:12px;
  line-height:1.35;
  color:#64748b;
}

.ergon-install-primary{
  flex:0 0 auto;

  min-height:42px;

  padding:0 14px;

  border:0;
  border-radius:10px;

  background:#111827;
  color:#fff;

  font-weight:700;
  cursor:pointer;
}

.ergon-install-close{
  flex:0 0 38px;

  width:38px;
  height:38px;

  padding:0;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0;
  border-radius:10px;

  background:#f1f5f9;
  color:#475569;

  font-size:22px;
  cursor:pointer;
}


@media(max-width:600px){

  .ergon-install-banner{
    bottom:10px;

    align-items:flex-start;

    width:calc(100% - 20px);

    padding:12px;
  }

  .ergon-install-primary{
    align-self:center;
  }

  .ergon-install-close{
    align-self:center;
  }
}


@media(max-width:430px){

  .ergon-install-banner{
    display:grid;

    grid-template-columns:
      46px
      minmax(0,1fr)
      38px;
  }

  .ergon-install-copy{
    grid-column:2;
  }

  .ergon-install-primary{
    grid-column:1 / -1;

    width:100%;
  }

  .ergon-install-close{
    grid-column:3;
    grid-row:1;

    justify-self:end;
  }
}

/* ERGON AUTH VISIBILITY GUARD */
#appView.hidden{
  display:none !important;
}


/* =====================================================
   ERGON RECENT WINDOWS ACCOUNTS
   ===================================================== */

.recent-accounts{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.recent-accounts.hidden{
  display:none !important;
}

.recent-accounts-title{
  margin-bottom:9px;
  font-size:12px;
  font-weight:700;
  color:#64748b;
}

.recent-account{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px;
  margin-top:7px;
  box-sizing:border-box;
  border:1px solid #e5e7eb;
  border-radius:11px;
  background:#fff;
}

.recent-account-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
  color:#111827;
  text-align:left;
  cursor:pointer;
}

.recent-account-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#111827;
  color:#fff;
  font-weight:700;
}

.recent-account-info{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.recent-account-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
}

.recent-account-email{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:#64748b;
}

.recent-account-remove{
  width:30px;
  height:30px;
  flex:0 0 30px;
  padding:0;
  border:0;
  border-radius:8px;
  background:#f1f5f9;
  color:#64748b;
  cursor:pointer;
}

/* Οι πρόσφατοι λογαριασμοί είναι μόνο για desktop */
@media(max-width:900px){
  .recent-accounts{
    display:none !important;
  }
}

/* =====================================================
   ERGON WINDOWS RECENT ACCOUNTS
   ===================================================== */

.recent-accounts{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid #e5e7eb;
}

.recent-accounts-title{
  margin-bottom:9px;
  font-size:12px;
  font-weight:700;
  color:#64748b;
}

.recent-account{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:7px;
  padding:9px 10px;
  box-sizing:border-box;
  border:1px solid #e5e7eb;
  border-radius:11px;
  background:#fff;
}

.recent-account-main{
  flex:1;
  min-width:0;
  cursor:pointer;
}

.recent-account-name{
  font-size:13px;
  font-weight:700;
  color:#111827;
}

.recent-account-email{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:#64748b;
}

.recent-account-remove{
  width:30px;
  height:30px;
  flex:0 0 30px;
  padding:0;
  border:0;
  border-radius:8px;
  background:#f1f5f9;
  color:#64748b;
  text-align:center;
  cursor:pointer;
}



/* ERGON RECENT ACCOUNT X ALIGN */
.recent-account{
  align-items:center;
}

.recent-account-remove{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  margin:0;
  align-self:center;
  transform:translateY(0);
}

/* ERGON RECENT ACCOUNT REMOVE - EXACT ALIGN */
.recent-account{
  position:relative !important;
  padding-right:52px !important;
}

.recent-account-remove{
  position:absolute !important;
  top:50% !important;
  right:10px !important;
  bottom:auto !important;
  left:auto !important;

  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  min-height:30px !important;

  margin:0 !important;
  padding:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  transform:translateY(-50%) !important;

  line-height:1 !important;
  font-size:20px !important;
}

/* ERGON USER MODULE ACCESS */
.user-access-toolbar{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.user-access-toolbar select{
  min-width:280px;
}

.user-access-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
  gap:12px;
}

.user-access-module{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.user-access-module input[type="checkbox"]{
  width:20px;
  height:20px;
  flex:0 0 auto;
  cursor:pointer;
}


/* =========================================================
   DASHBOARD ORDERS V1
   ========================================================= */

.dashboard-orders{
  margin-top:28px;
}

.dashboard-section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.dashboard-section-head h3{
  margin:0;
}

.dashboard-order-kpis{
  display:grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap:14px;
}

.dashboard-order-kpi{
  padding:18px;
}

.dashboard-order-kpi span{
  display:block;
  font-size:13px;
  color:var(--muted);
}

.dashboard-order-kpi strong{
  display:block;
  font-size:25px;
  margin-top:7px;
}

.dashboard-order-kpi small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.dashboard-order-grid{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.dashboard-order-panel{
  padding:18px;
}

.dashboard-order-panel h4,
.dashboard-recent-orders h4{
  margin:0 0 14px;
}

.dashboard-order-stat,
.dashboard-order-alert{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}

.dashboard-order-stat:last-child{
  border-bottom:0;
}

.dashboard-order-alert strong{
  font-size:18px;
}

.dashboard-largest-order{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.dashboard-largest-order small{
  color:var(--muted);
}

.dashboard-recent-orders{
  margin-top:14px;
  padding:18px;
}

.dashboard-order-list{
  display:grid;
}

.dashboard-order-row{
  width:100%;
  border-radius:0;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  padding:12px 4px;
  gap:15px;
}

.dashboard-order-row:hover{
  background:#f9fafb;
}

.dashboard-order-row > div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.dashboard-order-row-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.dashboard-order-source,
.dashboard-order-status{
  font-size:11px;
  font-weight:700;
  padding:4px 7px;
  border-radius:999px;
  background:#f3f4f6;
  color:#4b5563;
}

@media(max-width:1100px){

  .dashboard-order-kpis{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .dashboard-order-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){

  .dashboard-section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-order-kpis{
    grid-template-columns:1fr;
  }

  .dashboard-order-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-order-row-right{
    justify-content:flex-start;
  }
}


/* =========================================================
   DASHBOARD ORDER FILTER ROWS
   ========================================================= */

.dashboard-order-filter{
  appearance:none;
  -webkit-appearance:none;

  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin:0;
  padding:10px 0;

  border:0;
  border-bottom:1px solid #e5e7eb;

  border-radius:0;

  background:transparent;

  color:#111827;

  font:inherit;
  text-align:left;

  cursor:pointer;

  box-shadow:none;

  transition:
    background .15s ease,
    padding .15s ease;
}


.dashboard-order-filter:last-child{
  border-bottom:0;
}


.dashboard-order-filter:hover{
  background:#f7f8fa;

  padding-left:8px;
  padding-right:8px;
}


.dashboard-order-filter:focus{
  outline:2px solid rgba(17,24,39,.15);
  outline-offset:2px;
}


.dashboard-order-filter span{
  color:#374151;
  font-weight:500;
}


.dashboard-order-filter strong{
  color:#111827;
  font-weight:700;
  margin-left:12px;
}


.dashboard-order-filter:hover span,
.dashboard-order-filter:hover strong{
  color:#111827;
}



/* =========================================================
   DASHBOARD ORDER QUICK LINKS
   ========================================================= */

.dashboard-order-quick{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.dashboard-order-kpi.dashboard-order-quick{
  width:100%;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:none;
}

.dashboard-order-alert.dashboard-order-quick{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:12px 0;
  margin:0;

  background:transparent;
  border:0;
  border-bottom:1px solid #e5e7eb;
  border-radius:0;

  box-shadow:none;
}

.dashboard-order-alert.dashboard-order-quick:hover{
  background:#f7f8fa;
  padding-left:8px;
  padding-right:8px;
}

.dashboard-order-alert.dashboard-order-quick span{
  color:#111827;
  font-weight:400;
}

.dashboard-order-alert.dashboard-order-quick strong{
  color:#111827;
  font-weight:700;
}


/* =========================================================
   Orders Pagination
   ========================================================= */

.orders-pagination{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(0,0,0,.08);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  flex-wrap:wrap;
}

.orders-pagination-info{
  font-size:14px;
  opacity:.75;
}

.orders-pagination-info strong{
  opacity:1;
}

.orders-pagination-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.orders-pagination-actions button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

@media (max-width:700px){

  .orders-pagination{
    align-items:stretch;
  }

  .orders-pagination-info{
    width:100%;
  }

  .orders-pagination-actions{
    width:100%;
  }

  .orders-pagination-actions button{
    flex:1;
  }
}


/* =========================================================
   Orders Sorting
   ========================================================= */

.orders-sort{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:600;
  color:inherit;
  cursor:pointer;
  white-space:nowrap;
}

.orders-sort:hover{
  text-decoration:underline;
}

.orders-sort:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
  border-radius:3px;
}

#orderLimitFilter{
  min-width:130px;
}


/* Orders sidebar badge */
#orderBadge{
  background:#dc2626;
  color:#fff;
  border-radius:999px;
  min-width:22px;
  height:22px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  line-height:1;
  margin-left:6px;
}

#orderBadge.hidden{
  display:none !important;
}

/* =====================================================
   Purchase Order Pane
   ===================================================== */

.po-backdrop{
  position:fixed;
  inset:0;
  z-index:12000;
  background:rgba(15,23,42,.48);
  display:flex;
  justify-content:flex-end;
}

.po-pane{
  width:min(980px,96vw);
  height:100%;
  overflow:auto;
  background:#fff;
  box-shadow:-16px 0 40px rgba(15,23,42,.18);
  padding:28px;
}

.po-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:22px;
}

.po-head h2{
  margin:4px 0 4px;
}

.po-head p{
  margin:0;
  color:#667085;
}

.po-eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:#b56c00;
}

.po-close{
  border:0;
  background:#eef1f5;
  border-radius:10px;
  width:42px;
  height:42px;
  font-size:24px;
  cursor:pointer;
}

.po-mode-tabs{
  display:flex;
  gap:8px;
  margin:18px 0;
}

.po-mode{
  border:1px solid #d7dce3;
  background:#fff;
  border-radius:10px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

.po-mode.active{
  background:#101828;
  color:#fff;
  border-color:#101828;
}

.po-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.po-form-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  font-weight:700;
}

.po-form-grid input,
.po-form-grid textarea,
.po-search-label input{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d0d5dd;
  border-radius:10px;
  padding:12px 13px;
  font:inherit;
  background:#fff;
}

.po-full{
  grid-column:1/-1;
}

.po-search-label,
.po-product-search-wrap{
  position:relative;
}

.po-search-results,
.po-product-results{
  display:none;
  position:absolute;
  z-index:50;
  top:100%;
  left:0;
  right:0;
  max-height:300px;
  overflow:auto;
  background:#fff;
  border:1px solid #d0d5dd;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(15,23,42,.16);
  margin-top:5px;
}

.po-search-results.open,
.po-product-results.open{
  display:block;
}

.po-search-result{
  width:100%;
  border:0;
  border-bottom:1px solid #f0f2f5;
  background:#fff;
  padding:11px 12px;
  text-align:left;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.po-search-result:hover{
  background:#f8fafc;
}

.po-search-result span,
.po-search-result small{
  color:#667085;
}

.po-search-empty{
  padding:14px;
  color:#667085;
}

.po-items-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:26px;
}

.po-items-head h3{
  margin:0;
}

.po-items-head p{
  margin:4px 0 0;
  color:#667085;
  font-size:12px;
}

.po-item-columns,
.po-item-row{
  display:grid;
  grid-template-columns:minmax(260px,2.5fr) .7fr .9fr .8fr .7fr 44px;
  gap:8px;
  align-items:start;
}

.po-item-columns{
  margin-top:14px;
  padding:0 4px 6px;
  font-size:11px;
  font-weight:800;
  color:#667085;
}

.po-item-row{
  margin-bottom:9px;
}

.po-item-row input{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d0d5dd;
  border-radius:9px;
  padding:10px;
}

.po-remove{
  border:0;
  background:#fee4e2;
  color:#b42318;
  border-radius:9px;
  height:40px;
  cursor:pointer;
  font-size:18px;
}

.po-primary,
.po-secondary{
  border:0;
  border-radius:10px;
  padding:10px 14px;
  font-weight:750;
  cursor:pointer;
}

.po-primary{
  background:#101828;
  color:#fff;
}

.po-secondary{
  background:#eaecf0;
  color:#344054;
}

.po-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:22px;
}

.po-linked{
  border:1px solid #e4e7ec;
  border-radius:12px;
  padding:14px;
  background:#f9fafb;
  margin-bottom:16px;
}

.po-linked-head{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
}

.po-linked-row,
.po-existing-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:10px 0;
  border-top:1px solid #eaecf0;
}

.po-linked-row div,
.po-existing-row div{
  display:flex;
  flex-direction:column;
}

.po-linked-row span,
.po-existing-row span,
.po-existing-row small{
  color:#667085;
}

.po-status{
  font-size:12px;
  font-weight:700;
}

.po-existing-results{
  margin-top:12px;
}

.hidden{
  display:none !important;
}

@media(max-width:800px){
  .po-pane{
    width:100%;
    padding:18px;
  }

  .po-form-grid{
    grid-template-columns:1fr;
  }

  .po-full{
    grid-column:auto;
  }

  .po-item-columns{
    display:none;
  }

  .po-item-row{
    grid-template-columns:1fr 1fr;
  }

  .po-product-search-wrap{
    grid-column:1/-1;
  }
}

/* Purchase Order pane - button polish */

.po-mode{
  min-height:44px;
  padding:0 18px;
  border:1px solid #cfd5dd;
  background:#fff;
  color:#344054;
  border-radius:10px;
  font-size:14px;
  font-weight:750;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.po-mode:hover{
  background:#f8fafc;
}

.po-mode.active{
  background:#101828;
  color:#fff;
  border-color:#101828;
}

/* Stronger close button */

.po-close{
  width:42px;
  height:42px;
  min-width:42px;
  border:0;
  border-radius:10px;
  background:#e9edf2;
  color:#344054;
  font-size:26px;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:1;
}

.po-close:hover{
  background:#dfe4ea;
  color:#101828;
}

/* Make hidden existing-mode section button readable */

#poModeExisting{
  color:#344054;
}

#poModeExisting.active{
  color:#fff;
}

.order-linked-purchases-section{
  margin:18px 0;
}

.order-linked-purchases-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.order-linked-purchases-head h4{
  margin:0;
}

.order-linked-purchases-head > span{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:#101828;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
}

.order-linked-purchases-list{
  border:1px solid #e4e7ec;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.order-linked-purchase-row{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  border-bottom:1px solid #eaecf0;
}

.order-linked-purchase-row:last-child{
  border-bottom:0;
}

.order-linked-purchase-row > div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.order-linked-purchase-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}

.order-linked-purchase-status{
  font-weight:750;
  color:#344054;
}

.order-linked-purchases-empty{
  padding:12px 14px;
  border:1px dashed #d0d5dd;
  border-radius:10px;
  background:#f9fafb;
  color:#667085;
}

/* Clickable linked Purchase Order number */

.order-linked-purchase-open{
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  color:#175cd3;
  font:inherit;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.order-linked-purchase-open:hover{
  text-decoration:underline;
}


/* PO_SEARCH_RESULT_COMPACT_V1 */
.po-search-results .po-search-result,
.po-product-results .po-search-result{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;

  padding:9px 12px !important;
  margin:0 !important;

  display:flex !important;
  flex-direction:column !important;

  align-items:flex-start !important;
  justify-content:flex-start !important;

  gap:3px !important;

  line-height:1.25 !important;
  text-align:left !important;
}

.po-search-results .po-search-result strong,
.po-product-results .po-search-result strong{
  display:block;
  width:100%;
  margin:0;
  padding:0;

  font-size:13px;
  line-height:1.3;

  white-space:normal;
}

.po-search-results .po-search-result span,
.po-product-results .po-search-result span{
  display:block;
  width:100%;
  margin:0;
  padding:0;

  font-size:12px;
  line-height:1.3;
}

.po-search-results,
.po-product-results{
  padding:0 !important;
}

/* PO_SEARCH_RESULT_TEXT_COLOR_V1 */
.po-search-results .po-search-result,
.po-product-results .po-search-result{
  color:#101828 !important;
}

.po-search-results .po-search-result strong,
.po-product-results .po-search-result strong{
  color:#101828 !important;
}

.po-search-results .po-search-result span,
.po-product-results .po-search-result span,
.po-search-results .po-search-result small,
.po-product-results .po-search-result small{
  color:#667085 !important;
}

.po-search-results .po-search-result:hover,
.po-product-results .po-search-result:hover{
  color:#101828 !important;
}

/* ERGON FINANCIALS V1 */

.fin-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.fin-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.fin-tabs button{
  width:auto;
}

.fin-tabs button.active{
  font-weight:700;
}

.fin-company-list{
  display:grid;
  gap:18px;
}

.fin-company-card{
  padding:18px;
}

.fin-company-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.fin-company-title h3{
  margin:0 0 4px 0;
}

.fin-form-grid{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:14px;
}

.fin-form-grid label{
  display:block;
  margin-bottom:6px;
}

.fin-form-grid input,
.fin-form-grid select{
  width:100%;
}

.fin-company-actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
}

.fin-series-block{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(128,128,128,.25);
}

.fin-series-block h4{
  margin:0 0 12px 0;
}

.fin-series-table-wrap{
  overflow:auto;
}

@media(max-width:900px){
  .fin-form-grid{
    grid-template-columns:1fr;
  }

  .fin-company-title{
    flex-direction:column;
  }

  .fin-company-actions button{
    width:100%;
  }
}

/* FINANCIAL NEW DOCUMENT V1 */

.fin-new-document{
  display:grid;
  gap:16px;
}

.fin-new-header,
.fin-new-customer,
.fin-new-items,
.fin-new-notes,
.fin-new-summary{
  padding:18px;
}

.fin-search-wrap{
  position:relative;
}

.fin-search-results{
  position:absolute;
  z-index:50;
  left:0;
  right:0;
  top:calc(100% + 4px);
  max-height:320px;
  overflow:auto;
  background:#fff;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.14);
}

.fin-search-results button{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid rgba(0,0,0,.08);
  border-radius:0;
  background:#fff;
  color:#101828;
  text-align:left;
}

.fin-search-results button:hover{
  background:#f5f7fa;
}

.fin-search-results button span{
  color:#667085;
  font-size:13px;
}

.fin-search-empty{
  padding:12px;
  color:#667085;
}

.fin-selected-customer{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}

.fin-selected-customer button{
  width:auto;
}

.fin-items-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.fin-items-head h4{
  margin:0;
}

.fin-lines-wrap{
  overflow:auto;
  margin-top:16px;
}

.fin-lines-table{
  min-width:980px;
}

.fin-lines-table input,
.fin-lines-table select{
  min-width:80px;
}

.fin-line-product{
  min-width:240px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.fin-new-bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:16px;
}

.fin-new-summary{
  display:grid;
  gap:12px;
}

.fin-new-summary > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.fin-grand-total{
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.12);
  font-size:18px;
}

.fin-new-summary button{
  width:100%;
  margin-top:8px;
}

@media(max-width:900px){
  .fin-new-bottom{
    grid-template-columns:1fr;
  }
}

/* FINANCIAL NOTES TEXTAREA FIX V1 */
.fin-new-notes textarea{
  display:block;
  width:100%;
  min-height:150px;
  box-sizing:border-box;
  resize:vertical;
}

/* FINANCIAL DOCUMENTS LIST V1 */

.fin-doc-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 320px;
  gap:12px;
}

.fin-doc-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0;
}

.fin-doc-filters button{
  width:auto;
}

.fin-doc-filters button.active{
  font-weight:700;
}

.fin-doc-table{
  min-width:1050px;
}

.fin-document-modal{
  width:min(1100px,95vw);
  max-height:90vh;
  overflow:auto;
}

.fin-document-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

.fin-document-meta > div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.fin-document-meta span{
  color:#667085;
  font-size:13px;
}

.fin-document-totals{
  margin-left:auto;
  margin-top:20px;
  width:min(360px,100%);
  display:grid;
  gap:10px;
}

.fin-document-totals > div{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

@media(max-width:900px){
  .fin-doc-toolbar{
    grid-template-columns:1fr;
  }

  .fin-document-meta{
    grid-template-columns:1fr;
  }
}

/* FINANCIAL ISSUE UI V1 */
.fin-document-actions{
  display:flex;
  justify-content:flex-end;
  margin:18px 0 4px;
}

.fin-document-actions button{
  width:auto;
  min-width:180px;
}

/* FINANCIAL MYDATA MARK UID V1 */
.fin-mydata-uid{
  word-break:break-all;
}

/* FINANCIAL MYDATA BULK V1 */
.fin-mydata-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.fin-mydata-summary{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.fin-mydata-summary > div{
  min-width:170px;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:10px;
}

.fin-mydata-summary span{
  display:block;
  font-size:12px;
  opacity:.7;
  margin-bottom:4px;
}

#finMydataBulkProgress{
  margin:12px 0;
}

/* FINANCIAL MYDATA HISTORY V1 */
.fin-mydata-history-card{
  margin-top:18px;
}

.fin-mydata-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.fin-mydata-history-codes{
  min-width:220px;
  word-break:break-all;
  font-size:12px;
}

.fin-mydata-history-codes div+div{
  margin-top:4px;
}

.fin-mydata-history-error{
  min-width:220px;
  max-width:360px;
  white-space:normal;
  word-break:break-word;
  font-size:12px;
}

/* CREDIT SOURCE CARD V1 */
.fin-new-credit-source{
  margin-top:16px;
  padding:20px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.fin-new-credit-source h4{
  margin:0 0 16px;
  font-size:18px;
  font-weight:700;
}

.fin-new-credit-source label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:600;
}

.fin-new-credit-source select{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #d7dce3;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  font-weight:500;
  outline:none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.fin-new-credit-source select:focus{
  border-color:#111827;
  box-shadow:0 0 0 3px rgba(17,24,39,.08);
}

.fin-new-credit-source .muted{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.45;
}

.fin-new-credit-source::before{
  content:"↳";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin-right:8px;
  border-radius:8px;
  background:#f3f4f6;
  font-weight:700;
  vertical-align:middle;
}

.fin-new-credit-source h4{
  display:inline-flex;
  align-items:center;
}

/* ERGON customer debts */
.fin-debts-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.fin-debts-head h3{
  margin:0 0 4px;
}

.fin-debt-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.fin-debt-kpi{
  text-align:left;
  cursor:pointer;
  padding:16px;
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
}

.fin-debt-kpi span,
.fin-debt-kpi small{
  display:block;
}

.fin-debt-kpi strong{
  display:block;
  font-size:20px;
  margin:6px 0 4px;
}

.fin-debt-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 220px auto;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
}

.fin-debt-count{
  text-align:right;
}

.fin-debt-stage{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#f3f4f6;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
}

.fin-debt-table td{
  white-space:nowrap;
}

.fin-debt-table td:first-child{
  white-space:normal;
  min-width:220px;
}

@media(max-width:900px){
  .fin-debt-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fin-debt-toolbar{
    grid-template-columns:1fr;
  }

  .fin-debt-count{
    text-align:left;
  }
}

@media(max-width:560px){
  .fin-debt-kpis{
    grid-template-columns:1fr;
  }
}

.fin-debt-reminder{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.fin-debt-reminder.status-sent{
  background:#ecfdf5;
  color:#047857;
}

.fin-debt-reminder.status-pending,
.fin-debt-reminder.status-processing{
  background:#fff7ed;
  color:#c2410c;
}

.fin-debt-reminder.status-failed{
  background:#fef2f2;
  color:#b91c1c;
}

/* DELIVERY NOTE CARD V1 */
.fin-new-shipment{
  padding:22px;
  border-radius:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 16px rgba(0,0,0,.045);
}

.fin-new-shipment > h4{
  margin:0 0 20px;
  padding-bottom:14px;
  border-bottom:1px solid #eef0f3;
  font-size:19px;
  font-weight:750;
  letter-spacing:-.2px;
}

.fin-new-shipment > h4::before{
  content:"↗";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  margin-right:10px;
  border-radius:9px;
  background:#f3f4f6;
  font-size:15px;
  font-weight:800;
  vertical-align:middle;
}

.fin-new-shipment .fin-form-grid{
  gap:16px;
}

.fin-new-shipment label{
  margin-bottom:7px;
  font-size:13px;
  font-weight:650;
  color:#374151;
}

.fin-new-shipment input,
.fin-new-shipment select{
  min-height:48px;
  padding:0 14px;
  border:1px solid #d7dce3;
  border-radius:11px;
  background:#fff;
  font-size:14px;
  outline:none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.fin-new-shipment input:focus,
.fin-new-shipment select:focus{
  border-color:#9ca3af;
  box-shadow:0 0 0 3px rgba(17,24,39,.07);
}

.fin-new-shipment > h5{
  margin:22px 0 10px;
  font-size:14px;
  font-weight:750;
  color:#111827;
}

.fin-new-shipment > h5 + .fin-form-grid{
  padding:16px;
  border:1px solid #eceff3;
  border-radius:14px;
  background:#f8f9fb;
}

.fin-new-shipment > h5:nth-of-type(1)::before{
  content:"Α";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin-right:8px;
  border-radius:7px;
  background:#eef2f7;
  font-size:11px;
}

.fin-new-shipment > h5:nth-of-type(2)::before{
  content:"Β";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin-right:8px;
  border-radius:7px;
  background:#eef2f7;
  font-size:11px;
}

#finOtherMovePurposeWrap{
  padding:12px;
  border-radius:11px;
  background:#f8f9fb;
}

@media(max-width:900px){
  .fin-new-shipment{
    padding:16px;
  }

  .fin-new-shipment > h5 + .fin-form-grid{
    padding:12px;
  }
}


/* DELIVERY NOTE CARD POLISH V2 */
.fin-new-shipment > h4::before{
  content:"⇄";
}

.fin-new-shipment > .fin-form-grid:first-of-type{
  row-gap:14px;
}

.fin-new-shipment > h5{
  margin-top:18px;
}

.fin-new-shipment > h5 + .fin-form-grid{
  background:#fafbfc;
  border-color:#e8ebef;
}

.fin-new-shipment input,
.fin-new-shipment select{
  min-height:46px;
}

