/* =================================
   Global Styles & Variables
   ================================= */
:root {
  --primary-color: #EA580C; /* Orange */
  --primary-color-dark: #C2410C;
  --text-primary: #000000;
  --text-secondary: #6B7280;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;

  --aside-w: 270px;
  --aside-w-collapsed: 88px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

/* Ensure HTML "hidden" works even when components define display:flex/grid */
[hidden]{ display:none !important; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text-primary);
  line-height:1.6;
  transition:padding-left .3s ease;
  background: var(--bg-main);
}
@media (max-width:768px){
  body{ background-attachment: scroll; background-size: cover; }
}

body.sidebar-collapsed{ padding-left:0; }

/* =================================
   Login
   ================================= */
.login-container{
  display:flex; justify-content:center; align-items:center; height:100vh;
  background: var(--bg-main);
  background-size:cover; background-position:center;
}
.login-card{
  background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  padding:2.5rem; border-radius:16px; box-shadow:0 10px 35px rgba(0,0,0,.1);
  width:420px; max-width:90%; text-align:center; border:1px solid rgba(255,255,255,.2);
}
.login-card .logo{ height:50px; margin-bottom:1rem; }
.login-card h2{ font-size:1.8rem; color:#000000; margin-bottom:.5rem; }
.login-card p{ color:#6B7280; margin-bottom:2rem; }
.login-card .form-group{ text-align:left; margin-bottom:1.25rem; }
.login-card .form-group label{ font-size:.9rem; }
.login-card input[type="text"], .login-card input[type="password"]{
  background:#F9FAFB; border:1px solid #E5E7EB; padding:.9rem; font-size:1rem; border-radius:8px;
}
.login-card input[type="text"]:focus, .login-card input[type="password"]:focus{
  border-color:var(--primary-color); box-shadow:0 0 0 2px rgba(234,88,12,.2); outline:none;
}
.login-card .submit-btn{ width:100%; padding:.85rem; font-size:1rem; }
.error-message{
  color:#DC2626; background:#FEE2E2; border:1px solid #FCA5A5; border-radius:4px;
  padding:.75rem; margin-top:1rem; text-align:center; font-size:.9rem;
}

/* =================================
   Layout
   ================================= */
.app-container{ display:flex; min-height:100vh; }

/* Sidebar (rounded frame) */
.sidebar{
  width:var(--aside-w); background:#000000; display:flex; flex-direction:column; flex-shrink:0;
  position:fixed; top:14px; left:14px; bottom:14px;
  border-radius:28px; border:1px solid #e5e7eb; box-shadow:0 18px 36px rgba(0,0,0,.18);
  transition:transform .3s ease, width .25s ease; z-index:100;
}
body.sidebar-collapsed .sidebar{ transform:translateX(calc(-100% - 14px)); }

.sidebar-header{
  padding:1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border-bottom:1px solid #000000;
}
.sidebar-header .logo{ height:32px; margin-right:.75rem; }
.sidebar-header h2{ margin:0; font-size:1.25rem; color:#F9FAFB; }

/* =================================
   Sidebar: Brand logo instead of "Dashboard"
   ================================= */
/*
  Brand toggle (logo) in the sidebar header
  - When sidebar is OPEN  -> show horizontal logo
  - When sidebar is MINI  -> show icon only
  With a smooth animation between both states.
*/
.sidebar-brand-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:32px;
  cursor:pointer;
  user-select:none;
  overflow:hidden;
}

.sidebar-brand-toggle img{
  height:32px;
  width:auto;
  display:block;
  transition: opacity .25s ease, transform .25s ease, max-width .25s ease;
  will-change: opacity, transform, max-width;
}

.sidebar-brand-toggle .brand-logo-full{
  max-width: 190px;
  opacity: 1;
  transform: translateX(0);
}

.sidebar-brand-toggle .brand-logo-icon{
  max-width: 0;
  opacity: 0;
  transform: scale(.92);
}

/* MINI sidebar state (desktop) → icon only */
body.sidebar-mini .sidebar-brand-toggle{
  justify-content:center;
}

body.sidebar-mini .sidebar-brand-toggle .brand-logo-full{
  max-width: 0;
  opacity: 0;
  transform: translateX(-10px);
}

body.sidebar-mini .sidebar-brand-toggle .brand-logo-icon{
  max-width: 34px;
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce){
  .sidebar-brand-toggle img{ transition: none !important; }
}


/* =================================
   Sidebar: Profile header (avatar + name + position)
   ================================= */








.nav-label{ white-space:nowrap; }
.sidebar-nav{ padding:1rem; flex-grow:1; }
.nav-link{
  display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; border-radius:6px; text-decoration:none;
  color:#9CA3AF; font-weight:500; margin-bottom:.5rem; transition:background-color .2s, color .2s;
}
.nav-link:hover{ background:#000000; color:#fff; }
.nav-link.active{ 
  background:var(--primary-color); 
  color:#fff; 
  font-weight:600;
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.25);
}
.sidebar-footer{
  padding:1.5rem;
  border-top:1px solid #000000;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.main-content{ flex-grow:1; padding-left:var(--aside-w); transition:padding-left .3s ease; }
body.sidebar-collapsed .main-content{ padding-left:0; }

/* =================================
   Header (two rows) + page title label
   ================================= */
.main-header{
  display:grid; grid-template-rows:auto auto; gap:10px; align-items:center;
  padding:1rem 2rem; background:transparent;
  border-bottom:1px solid var(--border-color);
}
.header-row1{ display:flex; align-items:center; gap:12px; }
.header-row1 .left{ display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.header-row1 .right{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.header-row2{ display:flex; align-items:center; gap:10px; }

.page-title{
  display:inline-flex; align-items:center; background:#000000; color:#fff;
  border-radius:12px; padding:8px 14px; font-size:1.1rem; font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.menu-toggle{ background:none; border:none; cursor:pointer; padding:.5rem; color:var(--text-secondary); }
.menu-toggle:hover{ color:var(--text-primary); }

/* Mobile "Dashboard" open button (injected by common-ui.js) */
#menu-toggle.menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E9EDF3;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  color: #000000;
  -webkit-tap-highlight-color: transparent;
}
#menu-toggle.menu-toggle svg{
  width: 22px;
  height: 22px;
}
#menu-toggle.menu-toggle img.menu-toggle-logo{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* On desktop the sidebar is already visible → hide the mobile toggle button */
@media (min-width: 769px){
  #menu-toggle{ display: none !important; }
}


.greeting-pill{
  position:relative; display:inline-flex; align-items:center; gap:10px;
  background:#fff; border:1px solid #E9EDF3; border-radius:14px;
  padding:8px 12px; box-shadow:0 10px 24px rgba(0,0,0,.06); max-width:100%;
}

.greeting-avatar{ width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid #E9EDF3; display:grid; place-items:center; overflow:hidden; box-shadow:0 6px 16px rgba(0,0,0,.06); }
.greeting-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.greet-text{ display:flex; flex-direction:column; line-height:1.2; }
.greet-title{ font-weight:800; color:#111; font-size:14px; }
.greet-sub{ font-size:12px; color:var(--text-secondary); }

.searchbar{
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border-color);
  height:44px; border-radius:22px; padding:0 12px 0 10px; box-shadow:0 10px 24px rgba(0,0,0,.06);
  width:520px; max-width:40vw;
}
.searchbar i{ color:#9AA1AC; }
.searchbar input{ border:none; outline:none; width:100%; font-size:14px; color:var(--text-primary); background:transparent; }

.topbar-right{ display:flex; align-items:center; gap:12px; }





.account-mini .label{ font-size:14px; }

.container, .container-full-width{ padding:2rem; max-width:1400px; margin:0 auto; }
.container{ display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:flex-start; }

.card{ background:var(--bg-card); border-radius:12px; padding:1.5rem; box-shadow:0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.card h2{ margin-bottom:1.5rem; color:var(--primary-color); font-size:1.25rem; }

.account-panel{ }

@media (min-width: 900px){
  
}







.form-group label{ display:block; font-weight:500; margin-bottom:.5rem; font-size:.9rem; color:var(--text-primary); }
input[type="text"], input[type="password"], input[type="number"]{
  width:100%; padding:.75rem; border:1px solid #D1D5DB; border-radius:6px; font-size:1rem;
}
input:focus{ border-color:var(--primary-color); box-shadow:0 0 0 2px rgba(234,88,12,.2); outline:none; }

.form-actions{ display:flex; justify-content:space-between; align-items:center; margin-top:1.5rem; }
button{ padding:.75rem 1.5rem; border-radius:6px; border:none; cursor:pointer; font-size:.9rem; font-weight:600; transition:background-color .2s; }
#addProductBtn{ background:none; border:1px solid var(--primary-color); color:var(--primary-color); }
#addProductBtn:hover{ background:#FFF7ED; }


.remove-btn{ background:#EF4444; color:#fff; padding:.5rem .8rem; font-size:.8rem; align-self:center; }
.remove-btn:hover{ background:#DC2626; }

hr{ border:none; border-top:1px solid #eee; margin:1.5rem 0; }

.product-entry{ display:flex; gap:1rem; margin-bottom:1rem; align-items:flex-end; }
.product-select-group{ flex-grow:1; }
.product-input-wrapper{ display:flex; align-items:center; gap:.5rem; }
.product-input-wrapper .choices{ width:100%; }

.product-link{ color:#2563EB; align-self:center; margin-bottom:.5rem; transition:color .2s ease; flex-shrink:0; }
.product-link:hover{ color:#1D4ED8; }

.order-card{
  background:#F9FAFB; border:1px solid #E5E7EB; border-radius:6px;
  padding:1rem; margin-bottom:1rem; cursor:pointer;
}
.order-card h3{ font-size:1.1rem; color:#000000; margin-bottom:.25rem; }
.order-card .order-time{
  font-size:.75rem; color:#6B7280; margin-bottom:.75rem; border-bottom:1px solid #E5E7EB; padding-bottom:.5rem;
}
.order-card ul{ list-style:none; padding-left:0; }
.order-card li{
  background:#fff; padding:.5rem .75rem; border-radius:4px; margin-bottom:.5rem; font-size:.9rem; display:flex; justify-content:space-between;
}
.order-card li span{ font-weight:600; color:#4B5563; }

.modal{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); justify-content:center; align-items:center; z-index:1000; }


.modal h3{ color:#D97706; margin-bottom:.75rem; }
.modal ul{ list-style:none; padding-left:0; }
.modal li{ display:flex; align-items:center; gap:8px; justify-content:space-between; background:#F9FAFB; border:1px solid #E5E7EB; border-radius:6px; padding:.5rem .75rem; margin-bottom:.5rem; }



.receive-btn.received{ background:#16A34A; cursor:default; }



.notification-modal.success .notification-content{ background:#16A34A; color:#fff; }
.notification-modal.error .notification-content{ background:#DC2626; color:#fff; }




@media (max-width:900px){ .container{ grid-template-columns:1fr; gap:1.5rem; } }
@media (max-width:768px){
  .sidebar{ transform:translateX(calc(-100% - 14px)); width:var(--aside-w); }
  .main-content{ padding-left:0; }
  .header-row1{ flex-wrap:wrap; gap:8px; }
  .searchbar{ max-width:none; width:100%; order:2; }
  .greeting-pill{ order:1; }
  .topbar-right{ order:3; margin-left:0; width:100%; justify-content:flex-end; }
  .account-mini .label{ display:none; }
}

@media (min-width:769px){
  .sidebar{ transform:none !important; width:var(--aside-w); }
  body.sidebar-collapsed .sidebar{ transform:none !important; width:var(--aside-w); }
  /* Desktop: content shouldn't reserve the FULL sidebar width */
  .main-content{ padding-left:0 !important; }
  body.sidebar-collapsed .main-content{ padding-left:0 !important; }
}

.sidebar-nav .nav-group-title{
  cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  padding:.75rem 1rem; font-weight:500; color:#D1D5DB;
}
.sidebar-nav .nav-group-title::after{ content:"▶"; font-size:.6em; transition:transform .3s ease; transform:rotate(90deg); }
.sidebar-nav .nav-group:not(.is-active) .nav-group-title::after{ transform:rotate(0deg); }
.sidebar-nav .nav-group .nav-group-list{
  list-style:none; padding:0; margin:0; overflow:hidden; max-height:0; transition:max-height .4s ease-in-out;
  background-color:rgba(255,255,255,.03);
}
.sidebar-nav .nav-group.is-active .nav-group-list{ max-height:200px; }
.sidebar-nav .nav-group-list li a{ padding-left:30px; }

.sidebar-nav .nav-link, .sidebar-nav .nav-group-title, .sidebar-footer .logout-btn{ gap:12px; }
.sidebar-nav svg, .sidebar-footer svg{ width:18px; height:18px; stroke-width:2; flex-shrink:0; }
/* Sidebar footer buttons (Settings + Logout)
   Requested: no gray background, icon + text only */








body.sidebar-collapsed .sidebar-toggle svg{ transform:rotate(180deg); }

@keyframes spin{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }
#orders-list p{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; color:var(--text-secondary); }



/* =================================
   Current Orders — Card UI (matches the provided mock)
   ================================= */
.co-cards{
  display: grid;
  gap: 14px;
}

.co-card{
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 26px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
  cursor: pointer;
  user-select: none;
}

.co-card:hover{
  box-shadow: 0 22px 44px rgba(0,0,0,.10);
}

.co-card:focus-visible{
  outline: 3px solid rgba(234,88,12,.35);
  outline-offset: 3px;
}

.co-top{
  display: flex;
  align-items: center;
  gap: 14px;
}

.co-thumb{
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #F3F4F6;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.co-thumb--order-type{
  background: var(--co-thumb-bg, #F3F4F6);
  color: var(--co-thumb-fg, #374151);
  border: 1px solid var(--co-thumb-border, #E5E7EB);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.co-thumb--order-type svg{
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.co-main{ flex: 1; min-width: 0; }

.co-title{
  font-size: 21px;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
  margin-top: 2px;
}

.co-sub{
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 4px;
}

/* Replaces the big price line: show the creator name under the date */
.co-createdby{
  font-size: 24px;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
  margin-top: 10px;
  word-break: break-word;
}



.co-qty{
  font-size: 18px;
  font-weight: 800;
  color: #9CA3AF;
  align-self: flex-start;
  margin-left: 8px;
  white-space: nowrap;
}

.co-divider{
  height: 1px;
  background: #E5E7EB;
  margin: 12px 0;
}

.co-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.co-est-label{
  font-size: 16px;
  color: #9CA3AF;
}

.co-est-value{
  font-size: 30px;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
  margin-top: 6px;
}



.co-actions{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Looks like the black status button in the mock */
.co-status-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--tag-bg, #000000);
  color: var(--tag-fg, #fff);
  border: 1px solid var(--tag-border, transparent);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  white-space: nowrap;
}

.co-right-ico{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #000000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.co-right-ico svg{
  width: 20px;
  height: 20px;
}

.co-creator-btn{
  border: 0;
  padding: 0;
  font: inherit;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.co-creator-btn:hover{
  transform: translateY(-2px);
  background: #111827;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.co-creator-btn:focus-visible{
  outline: 3px solid rgba(249, 115, 22, .35);
  outline-offset: 3px;
}

.creator-profile-popover{
  position: fixed;
  z-index: 9999;
  width: min(380px, calc(100vw - 28px));
  display: none;
  color: #0F172A;
}

.creator-profile-popover.is-open{
  display: block;
}

.creator-profile-window{
  position: relative;
  border-radius: 28px;
  border: 1px solid #E6EBF2;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255,255,255,.92);
  padding: 18px;
  overflow: hidden;
}

.creator-profile-window::before{
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .18) 0%, rgba(249, 115, 22, 0) 72%);
  pointer-events: none;
}

.creator-profile-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #E6EBF2;
  border-radius: 14px;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.creator-profile-close:hover{
  transform: translateY(-1px);
  background: #FFF7ED;
  color: #C2410C;
}

.creator-profile-close svg{
  width: 18px;
  height: 18px;
  stroke-width: 2.7;
}

.creator-profile-close-x{
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  color: currentColor;
  transform: translateY(-1px);
}

.creator-profile-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 38px;
  position: relative;
  z-index: 1;
}

.creator-profile-avatar{
  width: 68px;
  height: 68px;
  border-radius: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FDBA74 0%, #EA580C 100%);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .03em;
  box-shadow: 0 16px 30px rgba(249, 115, 22, .22);
}

.creator-profile-avatar.has-image{
  background: #FFFFFF;
}

.creator-profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-profile-title-wrap{
  min-width: 0;
}

.creator-profile-kicker{
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #F97316;
  margin-bottom: 6px;
}

.creator-profile-name{
  font-size: 20px;
  line-height: 1.12;
  font-weight: 950;
  color: #0F172A;
  overflow-wrap: anywhere;
}

.creator-profile-subtitle{
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  overflow-wrap: anywhere;
}

.creator-profile-section-title{
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94A3B8;
  position: relative;
  z-index: 1;
}

.creator-profile-section-title--files{
  margin-top: 14px;
}

.creator-profile-fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.creator-profile-field{
  min-width: 0;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid #E6EBF2;
  background: #FFFFFF;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .04);
}

.creator-profile-field span{
  display: block;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  color: #94A3B8;
  margin-bottom: 5px;
}

.creator-profile-field strong{
  display: block;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  color: #0F172A;
  overflow-wrap: anywhere;
}

.creator-profile-files{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  padding-right: 2px;
  position: relative;
  z-index: 1;
}

.creator-profile-file{
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid #E6EBF2;
  background: #FFFFFF;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.creator-profile-file:not(.creator-profile-file--disabled):hover{
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, .30);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .08);
}

.creator-profile-file-icon,
.creator-profile-file-open{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.creator-profile-file-icon{
  color: #166534;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
}

.creator-profile-file-open{
  color: #C2410C;
  background: #FFF7ED;
}

.creator-profile-file-body{
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-profile-file-name{
  font-size: 13px;
  font-weight: 900;
  color: #0F172A;
  overflow-wrap: anywhere;
}



.creator-profile-empty,
.creator-profile-state{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed #CBD5E1;
  border-radius: 18px;
  color: #64748B;
  background: rgba(248, 250, 252, .76);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.creator-profile-state{
  margin-top: 16px;
  border-style: solid;
}

.creator-profile-state--error{
  border-color: #FCA5A5;
  color: #B91C1C;
  background: #FEF2F2;
}

.creator-profile-empty--fields{
  grid-column: 1 / -1;
}

@media (max-width: 520px){
  .creator-profile-fields{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .co-card{ padding: 12px 12px; border-radius: 22px; }
  .co-thumb{ width: 56px; height: 56px; border-radius: 16px; }
  .co-title{ font-size: 18px; }
  
  .co-est-value{ font-size: 24px; }
  .co-right-ico{ width: 46px; height: 46px; }
  .co-status-btn{ padding: 12px 18px; }
  .co-createdby{ font-size: 20px; }
}


/* Operations Orders compact cards: keep the status pill next to the estimate total on mobile. */
body.operations-orders-page #requested-list{
  gap: 10px;
}

body.operations-orders-page #requested-list .co-card{
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.075);
}

body.operations-orders-page #requested-list .co-top{
  gap: 12px;
}

body.operations-orders-page #requested-list .co-thumb{
  width: 56px;
  height: 56px;
  border-radius: 17px;
}

body.operations-orders-page #requested-list .co-title{
  font-size: 19px;
}

body.operations-orders-page #requested-list .co-sub{
  font-size: 12px;
}

body.operations-orders-page #requested-list .co-createdby{
  font-size: 21px;
  margin-top: 7px;
}

body.operations-orders-page #requested-list .co-qty{
  font-size: 16px;
}

body.operations-orders-page #requested-list .co-divider{
  margin: 9px 0;
}

body.operations-orders-page #requested-list .co-bottom{
  gap: 10px;
  flex-wrap: nowrap;
}

body.operations-orders-page #requested-list .co-est{
  min-width: 0;
  flex: 1 1 auto;
}

body.operations-orders-page #requested-list .co-est-label{
  font-size: 14px;
}

body.operations-orders-page #requested-list .co-est-value{
  font-size: 26px;
  margin-top: 4px;
}

body.operations-orders-page #requested-list .co-actions{
  gap: 8px;
  flex: 0 0 auto;
}

body.operations-orders-page #requested-list .co-status-btn{
  padding: 10px 15px;
  font-size: 12.5px;
  letter-spacing: .1px;
}

body.operations-orders-page #requested-list .co-right-ico{
  width: 44px;
  height: 44px;
}

body.operations-orders-page #requested-list .co-right-ico svg{
  width: 18px;
  height: 18px;
}

@media (max-width: 520px){
  body.operations-orders-page #requested-list .co-card{ padding: 10px 12px; border-radius: 20px; }
  body.operations-orders-page #requested-list .co-thumb{ width: 52px; height: 52px; border-radius: 15px; }
  body.operations-orders-page #requested-list .co-top{ gap: 10px; }
  body.operations-orders-page #requested-list .co-title{ font-size: 17px; }
  body.operations-orders-page #requested-list .co-sub{ font-size: 11.5px; margin-top: 3px; }
  body.operations-orders-page #requested-list .co-createdby{ font-size: 18px; margin-top: 6px; }
  body.operations-orders-page #requested-list .co-qty{ font-size: 15px; margin-left: 4px; }
  body.operations-orders-page #requested-list .co-divider{ margin: 8px 0; }
  body.operations-orders-page #requested-list .co-bottom{ gap: 7px; }
  body.operations-orders-page #requested-list .co-est-label{ font-size: 13px; }
  body.operations-orders-page #requested-list .co-est-value{ font-size: 21px; margin-top: 3px; letter-spacing: -0.03em; }
  body.operations-orders-page #requested-list .co-actions{ gap: 6px; }
  body.operations-orders-page #requested-list .co-right-ico{ width: 40px; height: 40px; }
  body.operations-orders-page #requested-list .co-right-ico svg{ width: 17px; height: 17px; }
  body.operations-orders-page #requested-list .co-status-btn{ padding: 9px 12px; font-size: 11.2px; letter-spacing: 0; }
}

/* =================================
   Current Orders — Order Details Modal
   ================================= */
body.co-modal-open{ overflow: hidden; }

.co-modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.45);
  z-index: 1100;
}

.co-modal-overlay.is-open{ display: flex; }

.co-modal-dialog{
  width: min(720px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  padding: 18px 18px 16px;
  position: relative;
}

.co-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #F3F4F6;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}








.co-modal-archive ~ .co-modal-header .co-modal-status{ padding-right: 210px; }

.co-modal-close:hover{ background: #E5E7EB; }
.co-modal-close svg{ width: 20px; height: 20px; display: none; }
.co-modal-close i{ display: none; }

/* Fallback: show a visible X even if feather icons fail to render */
.co-modal-close::before{
  content: "×";
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: currentColor;
}

.co-modal-status{
  font-size: 44px;
  font-weight: 900;
  color: #000000;
  line-height: 1.05;
  padding-right: 52px; /* space for close button */
}

.co-modal-status-sub{
  margin-top: 8px;
  font-size: 16px;
  color: #6B7280;
}

.co-track-pill{
  margin-top: 18px;
  background: #000000;
  border-radius: 999px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-track-step{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-track-step svg{ width: 22px; height: 22px; }

.co-track-step.is-active{
  background: #D9F99D;
  color: #000000;
}

.co-track-step.is-current{
  box-shadow: 0 0 0 4px rgba(217,249,157,0.22);
}

.co-track-conn{
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.co-track-conn.is-active{ background: #D9F99D; }

.co-modal-body{
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.co-modal-meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.co-meta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 12px 14px;
}

.co-meta-row span{ color: #6B7280; }
.co-meta-row strong{ color: #000000; font-weight: 900; }

/* Modern attached Reason card used by the Orders modals. */


.co-meta-row--reason{
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
  margin-top: 16px;
  padding: 14px 18px;
  background-color: #020617;
  background-image:
    radial-gradient(circle at 11% 22%, transparent 0 8px, rgba(190, 242, 100, 0.18) 8.8px 10.8px, transparent 11.6px),
    radial-gradient(circle at 29% 66%, transparent 0 6px, rgba(148, 163, 184, 0.18) 6.8px 8.4px, transparent 9.2px),
    radial-gradient(circle at 58% 26%, transparent 0 7px, rgba(203, 213, 225, 0.12) 7.8px 9.6px, transparent 10.2px),
    radial-gradient(circle at 84% 30%, transparent 0 9px, rgba(190, 242, 100, 0.16) 9.8px 11.8px, transparent 12.8px),
    radial-gradient(circle at 74% 74%, transparent 0 7px, rgba(148, 163, 184, 0.18) 7.8px 9.6px, transparent 10.4px),
    radial-gradient(circle at 94% 72%, transparent 0 11px, rgba(203, 213, 225, 0.14) 11.8px 13.8px, transparent 14.6px),
    linear-gradient(180deg, #050A16 0%, #000000 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.co-meta-row--reason::before,
.co-meta-row--reason::after{
  position: absolute;
  z-index: 0;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.co-meta-row--reason::before{
  content: "?   ?   ?";
  top: 8px;
  left: 14px;
  font-size: 30px;
  letter-spacing: 34px;
  color: rgba(203, 213, 225, 0.18);
  transform: rotate(-8deg);
}

.co-meta-row--reason::after{
  content: "○   ○   ?   ○";
  right: 12px;
  bottom: 6px;
  font-size: 24px;
  letter-spacing: 20px;
  color: rgba(190, 242, 100, 0.18);
  transform: rotate(7deg);
}

.co-meta-row--reason span{
  display: none !important;
}

.co-meta-row--reason strong{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px;
  color: #FFFFFF !important;
  background: transparent;
  border-radius: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.co-meta-row--reject-reason{
  margin-top: 0;
  background-color: #130304;
  background-image:
    radial-gradient(circle at 11% 22%, transparent 0 8px, rgba(248, 113, 113, 0.22) 8.8px 10.8px, transparent 11.6px),
    radial-gradient(circle at 29% 66%, transparent 0 6px, rgba(252, 165, 165, 0.18) 6.8px 8.4px, transparent 9.2px),
    radial-gradient(circle at 58% 26%, transparent 0 7px, rgba(248, 113, 113, 0.16) 7.8px 9.6px, transparent 10.2px),
    radial-gradient(circle at 84% 30%, transparent 0 9px, rgba(239, 68, 68, 0.2) 9.8px 11.8px, transparent 12.8px),
    radial-gradient(circle at 74% 74%, transparent 0 7px, rgba(252, 165, 165, 0.18) 7.8px 9.6px, transparent 10.4px),
    radial-gradient(circle at 94% 72%, transparent 0 11px, rgba(248, 113, 113, 0.16) 11.8px 13.8px, transparent 14.6px),
    linear-gradient(180deg, #1F0508 0%, #050000 100%);
  border-color: rgba(248, 113, 113, 0.28);
}

.co-meta-row--reject-reason::before{
  content: "!   ×   !";
  color: rgba(248, 113, 113, 0.22);
}

.co-meta-row--reject-reason::after{
  content: "×   !   ×";
  color: rgba(239, 68, 68, 0.22);
}

.reject-reason-dialog{
  max-width: min(440px, calc(100vw - 28px));
}



.reject-reason-input{
  min-height: 112px;
  resize: vertical;
}





.co-inline-receipt-photos-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #FFFFFF;
  color: #0B0F19;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.co-inline-receipt-photos-btn:hover:not(:disabled){
  transform: translateY(-1px);
  background: #F9FAFB;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.co-inline-receipt-photos-btn:active:not(:disabled){
  transform: translateY(0);
}

.co-inline-receipt-photos-btn:disabled{
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none;
}

.co-inline-receipt-photos-btn svg{
  width: 16px;
  height: 16px;
}

.co-meta-row #reqModalReceiptPhotosMetaBtn{
  margin-left: auto;
}

/* Show multiple receipt numbers inline, separated by hyphens, to save modal space. */
#reqModalReceiptNumber{ white-space: normal; text-align: right; }

.co-modal-items{ display: grid; gap: 10px; }

.co-item{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.co-item-name{ font-weight: 900; color: #000000; }

/* Product name + link button in one line */
.co-item-title{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.co-item-title .co-item-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-item-link{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #000000;
  flex-shrink: 0;
  text-decoration: none;
}

.co-item-link svg{ width: 16px; height: 16px; }
.co-item-sub{ margin-top: 4px; color: #6B7280; font-size: 13px; }

.co-item-right{ text-align: right; flex-shrink: 0; }
.co-item-total{ font-weight: 900; color: #000000; }
.co-item-issue-desc{
  max-width: 260px;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.co-item-status{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: var(--tag-bg, #000000);
  color: var(--tag-fg, #fff);
  border: 1px solid var(--tag-border, transparent);
}

/* =================================
   Current Orders — Edit password (sub-modal)
   ================================= */
.co-submodal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 1200;
}

.co-submodal-overlay.is-open{ display: flex; }

.co-submodal-dialog{
  width: min(460px, 94vw);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
  padding: 18px 18px 16px;
  position: relative;
}

.co-submodal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #F3F4F6;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.co-submodal-close:hover{ background: #E5E7EB; }
.co-submodal-close svg{ width: 20px; height: 20px; display: none; }
.co-submodal-close i{ display: none; }
.co-submodal-close::before{
  content: "×";
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: currentColor;
}

.co-submodal-title{
  font-size: 22px;
  font-weight: 1000;
  color: #000000;
  padding-right: 56px;
}

.co-submodal-sub{
  margin-top: 6px;
  color: #6B7280;
  font-size: 14px;
}

.co-submodal-body{ margin-top: 14px; }

.co-submodal-inputs{
  display: grid;
  gap: 10px;
}



.co-submodal-input-row .co-submodal-input{
  flex: 1 1 auto;
}







.co-submodal-add{
  margin-top: 10px;
  align-self: flex-start;
}

.co-submodal-label{
  display: block;
  font-weight: 800;
  color: #111827;
  font-size: 13px;
  margin-bottom: 8px;
}

.co-submodal-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  padding: .85rem 1rem;
  font-weight: 800;
  font-size: 15px;
  color: #111827;
}

.co-submodal-input:focus{
  outline: none;
  background: #fff;
  border-color: rgba(17,24,39,.55);
  box-shadow: 0 0 0 3px rgba(17,24,39,.10);
}

.co-submodal-fields{
  display: grid;
  gap: 14px;
}

.co-submodal-field{
  min-width: 0;
}

.co-submodal-select,
.co-submodal-textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  padding: .85rem 1rem;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}



.co-submodal-textarea{
  min-height: 112px;
  resize: vertical;
  font-weight: 600;
  line-height: 1.5;
}

.co-submodal-select:focus,
.co-submodal-textarea:focus{
  outline: none;
  background: #fff;
  border-color: rgba(17,24,39,.55);
  box-shadow: 0 0 0 3px rgba(17,24,39,.10);
}









.co-modern-select__trigger:focus,
.co-modern-select.is-open .co-modern-select__trigger{
  outline: none;
  background: #fff;
  border-color: rgba(17,24,39,.55);
  box-shadow: 0 0 0 3px rgba(17,24,39,.10);
}





























.co-modern-select__option.is-selected{
  background: #EEF2FF;
}





.co-modern-select__option.is-selected .co-modern-select__check{
  border-color: #111827;
  background: #111827;
}

.co-modern-select__option.is-selected .co-modern-select__check::after{
  background: #fff;
}



.co-modern-select__empty.is-visible{
  display: block;
}

.co-modern-select.is-disabled .co-modern-select__trigger,
.co-modern-select__trigger:disabled{
  cursor: wait;
  opacity: .78;
}

.co-upload-field{
  width: 100%;
  border: 1px dashed #D1D5DB;
  border-radius: 18px;
  background: linear-gradient(180deg, #FCFCFD 0%, #F9FAFB 100%);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.co-upload-field:hover{
  border-color: #9CA3AF;
  transform: translateY(-1px);
}

.co-upload-field:focus{
  outline: none;
  border-color: rgba(17,24,39,.55);
  box-shadow: 0 0 0 3px rgba(17,24,39,.10);
}

.co-upload-field__icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #EEF2FF;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.co-upload-field__icon svg{
  width: 22px;
  height: 22px;
}

.co-upload-field__content{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-upload-field__title{
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-upload-field__meta{
  display: block;
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-submodal-error{
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #B91C1C;
}

.co-submodal-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}


/* =================================
   Operations Orders — Custom confirmation modal
   ================================= */
.co-confirm-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17,24,39,.48);
  backdrop-filter: blur(3px);
  z-index: 1300;
}

.co-confirm-overlay.is-open{ display: flex; }

.co-confirm-dialog{
  width: min(380px, 92vw);
  background: #FFFFFF;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.26);
  padding: 24px 22px 20px;
  text-align: center;
  transform: translateY(8px) scale(.98);
  animation: coConfirmIn .18s ease forwards;
}

@keyframes coConfirmIn{
  to{ transform: translateY(0) scale(1); }
}

.co-confirm-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: #EEF2FF;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.06);
}

.co-confirm-icon svg{ width: 24px; height: 24px; }

.co-confirm-title{
  font-size: 24px;
  line-height: 1.12;
  font-weight: 1000;
  color: #000000;
}

.co-confirm-message{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #6B7280;
}

.co-confirm-actions{
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.co-confirm-btn{
  min-width: 126px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.co-confirm-btn:hover{ transform: translateY(-1px); }
.co-confirm-btn:disabled{ opacity: .65; cursor: not-allowed; transform: none; }

.co-confirm-btn--light{
  background: #F9FAFB;
  color: #111827;
  border-color: #E5E7EB;
}

.co-confirm-btn--light:hover{ background: #F3F4F6; }

.co-confirm-btn--dark{
  background: #111827;
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgba(17,24,39,.18);
}

.co-confirm-btn--dark:hover{ background: #000000; }

@media (max-width: 420px){
  .co-confirm-dialog{
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .co-confirm-btn{
    flex: 1 1 120px;
  }
}

/* =================================
   Requested Orders (Operations) — Modal tweaks
   ================================= */

/* Actions buttons (Download Excel / PDF / Received by operations) */
.ro-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Align actions to the right (used by Current Orders modal) */
.ro-actions--right{ justify-content: flex-end; }

.ro-action-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: .78rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.ro-action-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
  filter: brightness(1.02);
}

.ro-action-btn:active{
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.ro-action-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
  filter: saturate(.8);
  box-shadow: none;
}

.ro-action-btn svg{ width: 18px; height: 18px; }

/* ===== Modern variants (used in Current Orders modal & sub-modal) ===== */
.ro-action-btn--dark{
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.20);
}

.ro-action-btn--dark:hover{
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.24);
  filter: brightness(1.03);
}

.ro-action-btn--dark:active{
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.20);
}

.ro-action-btn--light{
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.ro-action-btn--light:hover{
  background: #F9FAFB;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  filter: none;
}

.ro-action-btn--light:active{
  background: #F3F4F6;
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

/* Put the Edit button next to the status pill (same row) */

.co-item-right-row .co-item-status{ margin-top: 0; }


/* Requested Orders: inline Edit button should be black/white */




/* Requested Orders: inline Edit button (dark variant: black bg + white text) */





@media (max-width: 560px){
  .ro-action-btn{ flex: 1; }
}

@media (max-width: 560px){
  .co-modal-status{ font-size: 34px; }
  .co-modal-meta{ grid-template-columns: 1fr; }
  .co-track-pill{ padding: 16px 14px; gap: 8px; }
  .co-track-step{ width: 48px; height: 48px; }
  .co-track-conn{ height: 12px; }
}

/* =================================
   Mobile fit-to-screen for order detail modals
   Current Orders + Operations Orders + Orders Review
   ================================= */
@media (max-width: 768px){
  body.order-modal-fit-screen .co-modal-overlay{
    padding: 12px;
    align-items: flex-start;
  }

  body.order-modal-fit-screen .co-modal-dialog{
    width: 100%;
    max-width: 720px;
    max-height: calc(100dvh - 24px);
    padding: 16px 14px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.order-modal-fit-screen .co-modal-header,
  body.order-modal-fit-screen .co-modal-body,
  body.order-modal-fit-screen .co-modal-meta,
  body.order-modal-fit-screen .co-modal-items,
  body.order-modal-fit-screen .co-modal-actions,
  body.order-modal-fit-screen .co-track-pill,
  body.order-modal-fit-screen .co-item,
  body.order-modal-fit-screen .co-item-left,
  body.order-modal-fit-screen .co-item-right,
  body.order-modal-fit-screen .co-item-title,
  body.order-modal-fit-screen .co-item-sub,
  body.order-modal-fit-screen .co-meta-row,
  body.order-modal-fit-screen .download-menu{
    min-width: 0;
    max-width: 100%;
  }

  body.order-modal-fit-screen .co-modal-status{
    font-size: clamp(32px, 10vw, 44px);
    padding-right: 50px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.order-modal-fit-screen .co-modal-status-sub{
    padding-right: 50px;
    overflow-wrap: anywhere;
  }

  body.order-modal-fit-screen .co-track-pill{
    width: 100%;
    padding: 14px 10px;
    gap: 6px;
  }

  body.order-modal-fit-screen .co-track-step{
    width: clamp(38px, 11vw, 48px);
    height: clamp(38px, 11vw, 48px);
  }

  body.order-modal-fit-screen .co-track-step svg{
    width: clamp(16px, 4.8vw, 20px);
    height: clamp(16px, 4.8vw, 20px);
  }

  body.order-modal-fit-screen .co-track-conn{
    min-width: 4px;
    height: 10px;
  }

  body.order-modal-fit-screen .co-meta-row{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }

  body.order-modal-fit-screen .co-meta-row strong,
  body.order-modal-fit-screen #reqModalReceiptNumber{
    width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.order-modal-fit-screen .co-meta-row--reason{
    display: grid;
    place-items: center;
    min-height: 58px;
    margin-top: 14px;
    border-radius: 18px;
    padding: 12px 14px;
    background-color: #020617;
    background-image:
      radial-gradient(circle at 12% 24%, transparent 0 7px, rgba(190, 242, 100, 0.17) 7.8px 9.6px, transparent 10.4px),
      radial-gradient(circle at 34% 68%, transparent 0 5px, rgba(148, 163, 184, 0.16) 5.8px 7.2px, transparent 8px),
      radial-gradient(circle at 64% 24%, transparent 0 6px, rgba(203, 213, 225, 0.12) 6.8px 8.4px, transparent 9px),
      radial-gradient(circle at 88% 70%, transparent 0 8px, rgba(190, 242, 100, 0.13) 8.8px 10.8px, transparent 11.6px),
      linear-gradient(180deg, #050A16 0%, #000000 100%);
  }

  body.order-modal-fit-screen .co-meta-row--reason::before{
    content: "?   ○   ?";
    top: 8px;
    left: 10px;
    right: auto;
    width: auto;
    height: auto;
    transform: rotate(-7deg);
    font-size: 22px;
    letter-spacing: 18px;
    color: rgba(203, 213, 225, 0.16);
  }

  body.order-modal-fit-screen .co-meta-row--reason::after{
    content: "○   ?   ○";
    right: 10px;
    bottom: 6px;
    font-size: 18px;
    letter-spacing: 14px;
    color: rgba(190, 242, 100, 0.14);
    transform: rotate(6deg);
  }

  body.order-modal-fit-screen .co-meta-row--reason span{
    display: none !important;
  }

  body.order-modal-fit-screen .co-meta-row--reason strong{
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
  }

  body.order-modal-fit-screen .ro-actions,
  body.order-modal-fit-screen .ro-actions--right{
    justify-content: flex-start;
  }

  body.order-modal-fit-screen .co-modal-actions > *,
  body.order-modal-fit-screen .download-menu,
  body.order-modal-fit-screen .download-menu__btn,
  body.order-modal-fit-screen .ro-action-btn{
    width: 100%;
    max-width: 100%;
  }

  body.order-modal-fit-screen .ro-action-btn{
    white-space: normal;
  }

  body.order-modal-fit-screen .download-menu__panel{
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body.order-modal-fit-screen .co-item{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.order-modal-fit-screen .co-item-left{
    flex: 1 1 auto;
    min-width: 0;
  }

  body.order-modal-fit-screen .co-item-title{
    width: 100%;
  }

  body.order-modal-fit-screen .co-item-title .co-item-name{
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.order-modal-fit-screen .co-item-sub{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.order-modal-fit-screen .co-item-right{
    width: 100%;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.order-modal-fit-screen .co-item-total,
  body.order-modal-fit-screen .co-item-issue-desc{
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.order-modal-fit-screen .co-item-issue-desc{
    text-align: inherit;
  }

  body.order-modal-fit-screen .co-item-right-row{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
  }

  body.order-modal-fit-screen .btn-group{
    width: 100%;
    justify-content: flex-start !important;
  }

  body.order-modal-fit-screen .btn-group .btn{
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 420px){
  body.order-modal-fit-screen .co-modal-overlay{
    padding: 10px;
  }

  body.order-modal-fit-screen .co-modal-dialog{
    max-height: calc(100dvh - 20px);
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  body.order-modal-fit-screen .co-modal-close{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  body.order-modal-fit-screen .co-modal-archive{
    top: 12px;
    right: 58px;
    min-width: 92px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.order-modal-fit-screen .co-modal-archive ~ .co-modal-header .co-modal-status{
    padding-right: 178px;
  }

  body.order-modal-fit-screen .co-track-pill{
    padding: 12px 8px;
    gap: 4px;
  }

  body.order-modal-fit-screen .co-track-step{
    width: 36px;
    height: 36px;
  }

  body.order-modal-fit-screen .co-track-step svg{
    width: 16px;
    height: 16px;
  }

  body.order-modal-fit-screen .co-track-conn{
    height: 8px;
  }
}

.sidebar-footer .nav-link{ width:100%; margin-bottom:0; }




.step{ display:flex; align-items:center; gap:10px; color:#6B7280; font-weight:600; font-size:.9rem; }
.step .circle{ width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#F3F4F6; border:1px solid #D1D5DB; color:#6B7280; }
.step.active .circle, .step.completed .circle{ background:var(--primary-color); border-color:var(--primary-color); color:#fff; }
.step .bar{ display:inline-block; width:120px; height:4px; background:#E5E7EB; border-radius:4px; margin-left:10px; }
.step.completed .bar{ background:var(--primary-color); }
.form-row-headers{ display:grid; grid-template-columns:1fr 140px; color:var(--text-secondary); font-size:.85rem; margin-bottom:.5rem; padding:0 .25rem; }
.create-order-layout #products-container .product-entry{
  display:grid; grid-template-columns:1fr 140px; gap:1rem; margin-bottom:.75rem; align-items:center;
  background:#fff; border:1px solid #E5E7EB; border-radius:10px; padding:.75rem .9rem;
}
@media (min-width: 769px){
  body.sidebar-mini .sidebar { width: var(--aside-w-collapsed); }
  body.sidebar-mini .main-content { padding-left: 0; }

  body.sidebar-mini .sidebar-header h2 { display: none; }
  body.sidebar-mini .nav-label { display: none; }

  /* Sidebar profile collapses to avatar only */
  
  

  body.sidebar-mini .sidebar-nav .nav-link { justify-content: center; }

  body.sidebar-mini .sidebar-nav .nav-group-title { justify-content: center; gap: 0; font-size: 0; }
  body.sidebar-mini .sidebar-nav .nav-group-title::after { display: none; }
  body.sidebar-mini .sidebar-nav .nav-group-list li a { padding-left: 0; }

  body.sidebar-mini .sidebar-footer .nav-link,
  body.sidebar-mini .sidebar-footer .logout-btn { justify-content: center; font-size: 0; }
  body.sidebar-mini .sidebar-footer .logout-btn svg { margin: 0; }

  
}
.sidebar-nav .nav-group{ position: relative; }
.sidebar-nav .nav-group .nav-group-list{
  position: relative;
  margin: 6px 0 8px 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,.14);
  border-radius: 2px;
}
.sidebar-nav .nav-group.is-active .nav-group-list{ max-height: 800px; }
.sidebar-nav .nav-group .nav-group-list li{ position: relative; }
.sidebar-nav .nav-group .nav-group-list li::before{
  content:"";
  position:absolute;
  left:-14px;
  top: 50%;
  width:14px; height:2px;
  background: rgba(255,255,255,.14);
  transform: translateY(-50%);
  border-radius: 2px;
}
.sidebar-nav .nav-group .nav-group-list .nav-link{
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
}
.sidebar-nav .nav-group .nav-group-list .nav-link:hover{
  background: rgba(255,255,255,.06);
  color:#fff;
}
.sidebar-nav .nav-group .nav-group-list .nav-link.active{
  background: rgba(255,255,255,.15);
  color:#fff;
}
.sidebar-nav .nav-group .nav-group-list .nav-group-list{
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,.14);
}
.sidebar-nav .nav-group .nav-group-list .nav-group-list li::before{
  left:-14px;
}
@media (min-width:769px){
  body.sidebar-mini .sidebar-nav .nav-group .nav-group-list,
  body.sidebar-mini .sidebar-nav .nav-group .nav-group-list .nav-group-list{
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  body.sidebar-mini .sidebar-nav .nav-group .nav-group-list li::before,
  body.sidebar-mini .sidebar-nav .nav-group .nav-group-list .nav-group-list li::before{
    display: none;
  }
}

/* ### START: MODIFICATION TO UNIFY ACTIVE LINK STYLE ### */
.sidebar-nav .nav-group .nav-group-list .nav-link.active{
  background: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.25);
  border-radius: 6px !important; /* This is the fix */
}
/* ### END: MODIFICATION ### */

.sidebar-nav .nav-group .nav-group-list .nav-link:hover{
  background: rgba(234, 88, 12, 0.25);
  color: #fff;
}

#toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
}

#toast-root {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  right: auto !important;
  bottom: auto !important;
  align-items: center;
}
.create-order-layout .form-row-headers {
  display: grid;
  grid-template-columns: 1.6fr 20px 1.0fr 48px; /* نفس الأعمدة بتاعة product-row */
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: #6B7280;
  font-weight: 600;
  margin-bottom: 8px;
}

.create-order-layout .form-row-headers div:nth-child(4) {
  visibility: hidden; /* مكان زر X */
}

.create-order-layout .product-row {
  display: grid;
  grid-template-columns: 1fr 120px 44px; /* dropdown | qty | icon */
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .create-order-layout .form-row-headers,
  .create-order-layout .product-row {
    grid-template-columns: 1fr 100px 40px;
    gap: 10px;
  }
}

.create-order-layout .choices {
  width: 100%;
}

.create-order-layout .is-open .choices__inner {
  border-color: #F97316;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
}



















.create-order-layout .choices.is-loading .choices__inner:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #F59E0B;
  border-top-color: transparent;
  animation: spin .6s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.create-order-layout .choices.is-loading .choices__inner {
  padding-left: 34px !important;
}
.create-order-layout .choices.is-loading .choices__inner:after {
  content: "";
  position: absolute;
  left: 12px !important;
  right: auto !important;
  top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #F97316;
  border-top-color: transparent;
  animation: spin .6s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }









.create-order-layout #reasonInput,
.create-order-layout textarea[name="reason"],
.create-order-layout input[name="reason"],
#reasonInput, textarea[name="reason"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  color: #000000;
  outline: none;
  resize: vertical;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.create-order-layout #reasonInput::placeholder,
.create-order-layout textarea[name="reason"]::placeholder,
.create-order-layout input[name="reason"]::placeholder {
  color: #9CA3AF;
}
.create-order-layout #reasonInput:focus,
.create-order-layout textarea[name="reason"]:focus,
.create-order-layout input[name="reason"]:focus {
  border-color: #F97316;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
}

.create-order-layout .form-row-headers {
  display: grid;
 grid-template-columns: 1.6fr 100px 1.2fr 48px;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: #6B7280; font-weight: 600;
  margin-bottom: 8px;
}
.create-order-layout .product-row {
  display: grid;
  grid-template-columns: 1fr 120px 44px;
  gap: 12px; align-items: center; margin-bottom: 12px;
}
@media (max-width: 560px) {
  .create-order-layout .form-row-headers,
  .create-order-layout .product-row {
    grid-template-columns: 1fr 100px 40px;
    gap: 10px;
  }
}
#toast-root {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  right: auto !important;
  bottom: auto !important;
  align-items: center;
}
.sidebar { transform: none !important; }

body.sidebar-collapsed .sidebar {
  transform: translateX(calc(-100% - 14px)) !important;
}

/* ==============================
   LAYOUT OVERRIDE (FIX)
   - Don't push the page when the dashboard opens.
   - Keep content full-width on mobile.
   - On desktop, reserve only the MINI sidebar width so the UI doesn't go تحت السايدبار.
   ============================== */

/* Default: full width (mobile & when sidebar is hidden) */
.main-content { padding-left: 0 !important; }
body.sidebar-collapsed .main-content { padding-left: 0 !important; }

/* Desktop: reserve only the mini-rail width (+ the 14px inset on each side = 28px)
   so the sidebar can expand as an overlay without pushing the content. */
@media (min-width: 769px){
  .main-content { padding-left: 0 !important; }
}

@media (min-width: 769px){
  body.sidebar-mini .sidebar { width: var(--aside-w-collapsed) !important; }
}
/* ===== Stocktaking Cards Layout ===== */
















/* ===== Review Page Enhancements ===== */
.card--elevated {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  background: var(--card-bg, #fff);
}

/* Summary (Reason + Total) */



@media (min-width: 768px) {  }




/* Products Section */



.product-cards-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .product-cards-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  background: var(--surface, #fff);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: .9rem 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Badges (labels) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .95rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}



/* ===== Modern Toasts (Reusable) ===== */
:root {
  --toast-radius: 14px;
  --toast-shadow: 0 18px 40px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.06);
  --toast-bg: #fff;
  --toast-border: #E5E7EB;
  --toast-text: #000000;
  --toast-muted: #6B7280;

  --toast-success: #10B981;
  --toast-success-50: #ECFDF5;
  --toast-success-200: #A7F3D0;

  --toast-error: #EF4444;
  --toast-error-50: #FEF2F2;
  --toast-error-200: #FECACA;

  --toast-info: #3B82F6;
  --toast-info-50: #EFF6FF;
  --toast-info-200: #BFDBFE;
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  width: min(420px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}
@media (max-width: 560px) {
  .toast-stack { right: 14px; left: 14px; width: auto; }
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--toast-bg);
  border: 1px solid var(--toast-border);
  border-radius: var(--toast-radius);
  box-shadow: var(--toast-shadow);
  color: var(--toast-text);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: transform .22s ease, opacity .22s ease, box-shadow .2s ease;
}
.toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast__icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0; /* hide text if any */
}
.toast__content { min-width: 0; }
.toast__title {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
}
.toast__msg {
  margin-top: 2px;
  color: var(--toast-muted);
  font-size: .9rem;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.toast__close {
  border: 0; background: transparent; color: #6B7280;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
}
.toast__close:hover { background: #F3F4F6; color: #000000; }

/* Variants */
.toast--success .toast__icon { background: var(--toast-success-50); color: var(--toast-success); border: 1px solid var(--toast-success-200); }
.toast--error   .toast__icon { background: var(--toast-error-50);   color: var(--toast-error);   border: 1px solid var(--toast-error-200); }
.toast--info    .toast__icon { background: var(--toast-info-50);    color: var(--toast-info);    border: 1px solid var(--toast-info-200); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  .toast.is-in { opacity: 1; transform: none; }
}
/* ===== Centered Toast (middle of the screen) ===== */
.toast-stack {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(500px, calc(100vw - 32px));
  z-index: 9999;
}

/* أنيميشن لطيف يناسب المركز بدل السقوط من فوق */
.toast {
  transform: scale(.96);
}
.toast.is-in {
  transform: scale(1);
}

/* موبايل */
@media (max-width: 560px) {
  .toast-stack {
    width: calc(100vw - 28px);
  }
}
/* ===== Stocktaking: Tag column ===== */




/* Tag badge (Notion-like) */


/* Notion select colors */










/* ====== Grouped Stocktaking ====== */
.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.loading-block, .empty-block, .error-block {
  padding: 1rem;
  color: #6B7280;
}


/* ===== Modern loaders (used on data-loading screens) ===== */
.modern-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 18px;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  color: #6B7280;
}

.modern-loading__spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(234, 88, 12, 0.22);
  border-top-color: rgba(234, 88, 12, 0.95);
  animation: spin .9s linear infinite;
}

.modern-loading__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}







@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.65); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}

.group-card {
  --group-accent-bg: #F9FAFB;
  --group-accent-text: #000000;
  --group-accent-border: #E5E7EB;

  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  background: #fff;
  overflow: hidden;
}

.group-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--group-accent-border);
  background:
    linear-gradient(90deg, var(--group-accent-bg) 0%, rgba(255,255,255,0) 60%);
}




/* Table inside each group */
.group-table-wrap { width: 100%; overflow-x: auto; }










/* Inventory input (Stocktaking) */


/* Remove number input spinners (optional) */




/* Tag badge (reuse + shadow) */


/* Notion-like colors */










/* ===== Grouped Stocktaking (updates) ===== */




/* Inventory input (Stocktaking) */


/* Remove number input spinners (optional) */




/* Badge for "One Kit Quantity" (ملون حسب لون الجروب) */


/* ===== Download PDF button ===== */
.card-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: .75rem;
}

/* ===== Stocktaking: Download dropdown menu (single Download button) ===== */


/* Operations Orders: make the Download trigger look like a real action button,
   not like a dropdown/select, while keeping the same white/black colors. */


.download-menu__btn.ops-download-trigger{
  min-width: 158px;
  justify-content: center;
  padding: 0.72rem 0.9rem 0.72rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 15px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.download-menu__btn.ops-download-trigger:hover{
  background: #FFFFFF;
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.download-menu__btn.ops-download-trigger:active{
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.download-menu__btn.ops-download-trigger .ops-download-trigger__arrow{
  width: 24px;
  height: 24px;
  padding: 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #111827;
  opacity: 1;
  stroke-width: 2.4;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.download-menu__btn.ops-download-trigger[aria-expanded="true"] .ops-download-trigger__arrow{
  transform: rotate(90deg);
  background: #E5E7EB;
}













.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .55rem .9rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #000000;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.btn.is-busy,
.btn.is-auto-busy,
.ro-action-btn.is-busy,
.ro-action-btn.is-auto-busy,
button.is-busy,
button.is-auto-busy {
  opacity: .75;
  cursor: wait;
  pointer-events: none;
}

.btn.is-busy::after,
.btn.is-auto-busy::after,
.ro-action-btn.is-busy::after,
.ro-action-btn.is-auto-busy::after,
button.is-busy::after,
button.is-auto-busy::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.25);
  border-top-color: rgba(17, 24, 39, 0.85);
  animation: spin .8s linear infinite;
  margin-left: 8px;
}
.btn.btn--light { background: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ===== Orders Modal (polished + centered close icon) ===== */
#orderModal .modal-content {
  position: relative;
  width: min(680px, 94vw);
  border-radius: 16px;
  padding: 14px 14px 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
}

/* Header uses Flex so the close button is vertically centered */
.order-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .5rem;
  border-bottom: 1px solid #F3F4F6;
}
.order-modal__title {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.05rem; font-weight: 800; color: #000000;
}
.order-modal__title svg { width: 18px; height: 18px; color: #6B7280; }

/* Default (fallback) absolute positioning if the close button is NOT in header */
#orderModal .close-btn {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: #F3F4F6; color: #000000;
  cursor: pointer; line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
#orderModal .close-btn svg { width: 18px; height: 18px; }
#orderModal .close-btn:hover { background: #E5E7EB; }

/* When the close button is placed inside the header (via JS), center it with Flex */
#orderModal .order-modal__head .close-btn {
  position: static;
  transform: none;
  margin-left: auto;
}

/* List */
.order-modal__list { display: grid; gap: 10px; margin-top: .75rem; }

/* Order item card */
.order-item-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: .6rem .75rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.order-item__left { min-width: 0; }
.order-item__right { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}



/* Receive button */


.receive-btn.received, .receive-btn:disabled {
  background: #10B981; color: #fff; border-color: #0EA575;
  cursor: default; box-shadow: 0 6px 16px rgba(16,185,129,.25);
}
/* اختياري: لف لكل الروابط الطويلة */
.sidebar .nav-group-list .nav-link .nav-label { white-space: normal; line-height: 1.15; }
.sidebar .nav-group-list .nav-link { align-items: flex-start; }
/* Sidebar: flat links (no parent group) */
.sidebar-nav .nav-group { display: none !important; }

.sidebar-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 6px;
}

.sidebar-nav .nav-list .nav-link {
  display: flex;
  align-items: flex-start; /* يسمح للنص يلف */
  gap: .75rem;
  padding: .65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: #9CA3AF;
  transition: background-color .2s, color .2s;
}

.sidebar-nav .nav-list .nav-link:hover {
  background: #000000;
  color: #fff;
}

.sidebar-nav .nav-list .nav-link.active {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.25);
}

.sidebar-nav .nav-list .nav-link svg {
  width: 18px; height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-nav .nav-list .nav-link .nav-label {
  white-space: normal; /* لف الاسم الطويل */
  line-height: 1.15;
}

/* وضع mini على الديسكتوب */
@media (min-width: 769px) {
  body.sidebar-mini .sidebar { width: var(--aside-w-collapsed) !important; }
  body.sidebar-mini .main-content { padding-left: 0 !important; }

  body.sidebar-mini .sidebar-header h2 { display: none; }
  body.sidebar-mini .nav-label { display: none !important; }
  body.sidebar-mini .sidebar-nav .nav-link { justify-content: center; }
  body.sidebar-mini .sidebar-footer .logout-btn { justify-content: center; }
  
}

/* وضع collapsed على الموبايل موجود بالفعل في ملفك */
/* Override: أظهر الـ nav-group لو كانت قاعدة سابقة مخبيّاه */
.sidebar-nav .nav-group { display: block !important; }

/* لفّ النص داخل عناصر مجموعة Orders لو الاسم طويل */
.sidebar .nav-group-list .nav-link .nav-label { white-space: normal; line-height: 1.15; }
/* Icons alignment */


/* Actions bar and muted text */



/* Stats cards */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background:#fff; border:1px solid #E5E7EB; border-radius:10px; padding:10px 12px; }
.stat__label { font-size:12px; color:#6B7280; margin-bottom:4px; }




/* Pills */
.pill { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; line-height:18px; }



/* Row done */
.table tr.row--done { opacity: 0.75; }
.table tr.row--done td { background-image: linear-gradient(to right, rgba(16,185,129,0.08), rgba(16,185,129,0)); }

/* Buttons */

.btn-success { background:#16A34A; color:#fff; border:1px solid #16A34A; }
.btn-success:hover { background:#15803D; border-color:#15803D; }


.btn-primary { background:#2563EB; color:#fff; border:1px solid #2563EB; }
.btn-primary:hover { background:#1D4ED8; border-color:#1D4ED8; }
.btn.is-busy { opacity: 0.7; pointer-events:none; }

/* Button group */


/* Modal */
.modal.hidden { display:none; }
.modal { position:fixed; inset:0; z-index:1000; }






.input { width:100%; padding:8px 10px; border:1px solid #E5E7EB; border-radius:8px; font-size:14px; }
.hint { color:#6B7280; }
/* Assigned cards grid */

@media (max-width: 480px) {
  
}

/* Order card */
.order-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  overflow: hidden;
}
.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #F3F4F6;
  background: #FAFAFA;
}
.order-card__title { display: flex; align-items: center; gap: 10px; }
.order-card__title svg { width: 18px; height: 18px; }
.order-card__title-text { display: flex; flex-direction: column; }
.order-card__title-main { font-weight: 800; color: #000000; }
.order-card__subtitle { font-size: 12px; color: #6B7280; }
.order-card__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge { display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:.85rem; padding:.3rem .6rem; border-radius:999px; border:1px solid #E5E7EB; background:#fff; }



.order-card__items { display: grid; gap: 6px; padding: 10px 12px; }
.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto; /* name | nums | actions */
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 10px;
  padding: .6rem .75rem;
}
.item-left .item-name { font-weight: 700; color: #000000; overflow-wrap: anywhere; }
.item-mid { display: inline-flex; gap: 12px; align-items: center; color: #374151; }
.item-mid .num strong { font-weight: 800; }
.item-actions { display: inline-flex; gap: 8px; align-items: center; }

/* Small buttons variant (visual only) */
.btn-sm { padding: .4rem .6rem; border-radius: 8px; font-size: .85rem; }

/* Popover */
.popover.hidden { display: none; }





/* Assigned: إجبار عرض الكروت عمود واحد */


.assigned-grid .order-card {
  width: 100%;
}

/* ===== Funds Page Styles ===== */
.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 1rem;
}

.card-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.card-header h2 i {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.form-container {
  display: grid;
  gap: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-label i {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
  outline: none;
}



















.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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





.btn-danger {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

.btn-danger:hover {
  background: #FECACA;
  color: #B91C1C;
}





.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.remove-expense {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  

  
}

/* Trash icon inside the red delete box */



/* File input unified border (solid) */
input[type="file"].form-input {
  padding: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
/* File input — dashed wrapper + orange button (original style) */
input[type="file"].form-input {
  padding: 0;
  background: #fff;
  border: 1px dashed #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
}

/* الزرار البرتقالي */
input[type="file"].form-input::file-selector-button {
  padding: .65rem 1rem;
  margin-right: 1rem;
  border: 0;
  border-right: 1px solid #E5E7EB;
  border-radius: 10px 0 0 10px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}

input[type="file"].form-input:hover::file-selector-button { filter: brightness(0.95); }
input[type="file"].form-input:active::file-selector-button { transform: translateY(1px); }

/* Safari/old WebKit fallback */
input[type="file"].form-input::-webkit-file-upload-button {
  padding: .65rem 1rem;
  margin-right: 1rem;
  border: 0;
  border-right: 1px solid #E5E7EB;
  border-radius: 10px 0 0 10px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
/* --- Sidebar mini: shift icons further left --- */
body.sidebar-mini .sidebar-nav { padding-left: 6px; }

body.sidebar-mini .sidebar-nav .nav-link {
  justify-content: flex-start !important; /* بدل center */
  align-items: center;
  padding-left: 13px !important;          /* اقتراب للأيسر */
  gap: 0.25rem;                           /* مسافة صغيرة حول الأيقونة */
}

body.sidebar-mini .sidebar-nav .nav-link svg,
body.sidebar-mini .sidebar-nav .nav-link .icon {
  margin: 0;
  display: block;
}

/* Enhance Choices.js remove button for selected members */





/* === CHOICES chips: inline white X next to name (no 'Remove' text) === */




/* draw the white X via pseudo element */




/* === FINAL FIX: remove stray 'v' and show only white X beside name === */


/* close button inside chip */


/* kill any pseudo content that could inject letters like 'v' */

/* === 3D Modern Buttons (with fade-in animation) === */


@keyframes btnFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Color Variants */








/* === Actions & 3D Buttons – v2 === */

/* الحاوية اللي على يمين الكارت للبادچات + الأزرار */
.actions,
.actions-right,
.order-actions,
.card-actions,
.assigned-actions {
  display: flex;
  flex-wrap: wrap;           /* المهم: لفّ لو العناصر كتيرة */
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

/* على الموبايل: خَلّيها تبدأ من الشمال علشان متتزحلقش برا */
@media (max-width: 640px) {
  .actions,
  .actions-right,
  .order-actions,
  .card-actions,
  .assigned-actions {
    justify-content: flex-start;
  }
}

/* زرار 3D عام */


/* ألوان الأزرار */









/* بادچات الحالة (In Stock / Partial / ... ) كأقراص مرنة */
.pill,
.status-pill,
.badge,
.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.1;
  width: auto;               /* مهم */
  min-width: fit-content;    /* مهم */
  white-space: nowrap;       /* تبقى على سطر واحد وتوسع */
  max-width: none;
}

/* ألوان للبادچات */





/* لو كان في ستايل قديم بيحدد عرض ثابت، نلغيه */
.btn,
.btn-sm,
.btn-small {
  width: auto !important;
  min-width: fit-content !important;
  max-width: none !important;
}

/* =======================================================
   Calm Professional Buttons (override) – matches app tone
   ======================================================= */





/* Color variants (soft, flat, accessible) */















/* Keep pills consistent and calm (no change to your existing .pill-* colors)
   but ensure they never truncate text */
.pill,
.status-pill,
.badge,
.stock-badge {
  width: auto !important;
  min-width: fit-content !important;
  white-space: nowrap !important;
}
/* ===== Create Order » Products row layout ===== */
#products-container .product-row {
  display: grid;
  grid-template-columns: 1.2fr 200px 1.2fr 100px;  
  /* product | qty | reason | actions */
  column-gap: 12px;
  align-items: center;
}

#products-container .product-row .field {
  margin: 0;
}

#products-container .product-row .qty-input {
  width: 100%;           /* تملا عمود الكمية */
  max-width: none;
}

#products-container .product-row .actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
}

/* أيقونة اللينك – نفس القيم اللي بيحطها الـ JS لكن هنا لضمان التخطيط */
#products-container .product-row .product-url-link {
  margin-left: 6px;              /* تبعد قليلاً عن خانة Reason */
  transform: translateY(2px);    /* تنزل تحت شوية تبقى مظبوطة بصريًا */
  display: none;         /* هيظهرها الـ JS لما يكون في URL */
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #2563eb;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}
#products-container .product-row .product-url-link:hover {
  background: #EFF6FF;
}

#products-container .product-row .icon-btn--x {
  width: 5px;
  height: 5px;
  border-radius: 50px;
  background: #ff0000;
  border: 5px solid #FEE2E2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#products-container .product-row .icon-btn--x:hover {
  background: #d40000;
}

/* موبايل: صغّر خانة الكمية شوية */
@media (max-width: 640px) {
  #products-container .product-row {
    grid-template-columns: 1fr 90px 44px;
    column-gap: 8px;
  }
}


/* === Disabled state for action buttons on Storage === */
.btn[disabled],
.btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: saturate(0.8);
}
/* === Toast with action button (fallback) === */
#toast-stack{
  position:fixed; inset:auto 0 auto 0; top:86px; display:flex; justify-content:center;
  pointer-events:none; z-index:9999;
}

.toast-box.hide{ opacity:0; transform:translateY(-8px); }










/* disabled look (نستخدم is-disabled بدون منع الضغط) */
.btn.is-disabled{ opacity:.55; filter:saturate(.8); cursor:not-allowed; }
/* style-logistics.css — cards styled similar to Storage page */


























.kv-v.tone-ok { color: #047857; }
.kv-v.tone-warn { color: #b45309; }
.kv-v.tone-bad { color: #b91c1c; }



.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
}





.btn { cursor:pointer; border:0; border-radius: 12px; padding: 10px 14px; font-weight: 700; }

.btn-primary { background: #EE5E7B; color: #fff; }
.btn-primary:hover { opacity: .95; }




/* modal */

.modal {
  width: 92%; max-width: 520px; background:#fff; border-radius: 16px; border: 1px solid #eef2f7;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}




.form-label { font-size: 12px; color:#6b7280; }
.form-input { display:block; width:100%; border:1px solid #e5e7eb; border-radius: 10px; padding: 10px; }

/* ==================== Tabs (Operations Orders + Orders Review) ==================== */
/*
  Design goal: match the reference screenshot:
  - Trapezoid-like shape with rounded top corners.
  - Active tab = Black background, White text.
  - Inactive tabs = White background, Gray text.
  - Overlapping slightly, sitting on a black line.
*/

/* Container */
.portfolio-tabs{
  display: flex;
  align-items: flex-end;
  padding: 10px 10px 0 10px;
  margin: 10px 0 0;
  background: transparent;
  border-bottom: 4px solid #000000;
  overflow-x: auto;
  overflow-y: hidden;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none;
}
.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

/* Base tab (inactive text) */
.tab-portfolio{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  margin-right: -15px; /* Overlap */
  margin-bottom: 0; /* Sit on the line */
  background: transparent;
  color: #6B7280;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  border: none;
  z-index: 1;
  transition: color 0.2s ease;
}

/* The Background Shape (Trapezoid with rounded top) */
.tab-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f2f2f2;
  border-radius: 12px 12px 0 0;
  transform: perspective(100px) rotateX(30deg) scaleY(1.2);
  transform-origin: bottom center;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  transition: background 0.2s ease;
}

.tab-portfolio:hover {
  color: #111827;
  z-index: 2;
}

.tab-portfolio:hover:not(.active):not(.is-active)::before {
  background: #f3f4f6;
}

.tab-portfolio:active{
  transform: translateY(0);
}

/* Active tab */
.tab-portfolio.active,
.tab-portfolio.is-active{
  color: #FFFFFF;
  z-index: 10;
}

.tab-portfolio.active::before,
.tab-portfolio.is-active::before{
  background: #000000;
}

/* We don't need the underline pseudo-element anymore */
.tab-portfolio.active::after,
.tab-portfolio.is-active::after{
  display: none;
}

/* Focus ring */
.tab-portfolio:focus-visible{
  outline: none;
}
.tab-portfolio:focus-visible::before{
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .18);
}

/* Orders Review tabs wrapper should not override the shared style */
#svTabs{
  border: none;
  background: transparent;
  box-shadow: none;
  border-bottom: 4px solid #000000; /* Ensure the line is visible here too */
}

/* Compact on small screens */
@media (max-width:640px){
  .portfolio-tabs{ gap: 0; } /* Remove gap completely as we rely on overlap */
  .tab-portfolio{ font-size: 14px; padding: 12px 24px; margin-right: -10px; }
}

/* ==================== Compact icon tabs + type filter toolbar ==================== */
.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 0 4px;
}

.orders-toolbar__scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.orders-toolbar__scroll::-webkit-scrollbar {
  display: none;
}

.orders-toolbar .portfolio-tabs {
  --orders-active-tab-x: 0px;
  --orders-active-tab-y: 0px;
  --orders-active-tab-width: 0px;
  --orders-active-tab-height: 0px;
  --orders-active-tab-opacity: 0;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding: 4px;
  margin: 0;
  border: none;
  overflow: visible;
  border-radius: 24px;
}

.orders-toolbar .portfolio-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--orders-active-tab-width);
  height: var(--orders-active-tab-height);
  border-radius: 22px;
  background: linear-gradient(180deg, #07152f 0%, #040b1d 100%);
  box-shadow: 0 16px 30px rgba(3, 7, 18, 0.16);
  transform: translate3d(var(--orders-active-tab-x), var(--orders-active-tab-y), 0);
  opacity: var(--orders-active-tab-opacity);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s ease, height .28s ease, opacity .18s ease;
  pointer-events: none;
  z-index: 0;
}

.orders-toolbar .tab-portfolio {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  min-height: 68px;
  padding: 8px 8px 10px;
  margin: 0;
  border-radius: 20px;
  background: transparent;
  color: #667085;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.orders-toolbar .tab-portfolio::before,
.orders-toolbar .tab-portfolio::after {
  display: none !important;
}

.order-status-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #475467;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05);
}

.order-status-tab__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.order-status-tab__label {
  display: block;
  max-width: 74px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
  white-space: normal;
}

.orders-toolbar .tab-portfolio:hover {
  color: #111827;
}

.orders-toolbar .tab-portfolio:hover .order-status-tab__icon {
  border-color: #d8dee7;
  background: #ffffff;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.06);
}

.orders-toolbar .tab-portfolio.active,
.orders-toolbar .tab-portfolio.is-active {
  color: #ffffff;
}

.orders-toolbar .portfolio-tabs:not([data-tab-indicator-ready="1"]) .tab-portfolio.active,
.orders-toolbar .portfolio-tabs:not([data-tab-indicator-ready="1"]) .tab-portfolio.is-active {
  background: linear-gradient(180deg, #07152f 0%, #040b1d 100%);
  box-shadow: 0 16px 30px rgba(3, 7, 18, 0.16);
}

.orders-toolbar .portfolio-tabs[data-tab-indicator-ready="1"] .tab-portfolio.active,
.orders-toolbar .portfolio-tabs[data-tab-indicator-ready="1"] .tab-portfolio.is-active {
  background: transparent;
  box-shadow: none;
}

.orders-toolbar .tab-portfolio.active:hover,
.orders-toolbar .tab-portfolio.is-active:hover {
  color: #ffffff;
}

.orders-toolbar .tab-portfolio.active .order-status-tab__icon,
.orders-toolbar .tab-portfolio.is-active .order-status-tab__icon {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.orders-toolbar__divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: center;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0) 0%, rgba(148, 163, 184, 0.55) 18%, rgba(148, 163, 184, 0.55) 82%, rgba(148, 163, 184, 0) 100%);
}

.orders-type-filter {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.orders-type-filter__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.05);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.orders-type-filter__button:hover {
  border-color: #d6dae1;
  background: #ffffff;
}

.orders-type-filter__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.orders-type-filter.is-open .orders-type-filter__button,
.orders-type-filter.is-filtered .orders-type-filter__button {
  background: #ffffff;
  border-color: #d6dae1;
}

.orders-type-filter__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.orders-type-filter__button-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.orders-type-filter__button-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.orders-type-filter__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.orders-type-filter__panel[hidden] {
  display: none;
}

.orders-type-filter__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
}

.orders-type-filter__panel-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.orders-type-filter__panel-sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.orders-type-filter__options {
  display: grid;
  gap: 8px;
}

.orders-type-filter__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.orders-type-filter__option:hover {
  border-color: #d9dee7;
  background: #f8fafc;
  transform: translateY(-1px);
}

.orders-type-filter__option.is-active {
  border-color: #d2dae6;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.orders-type-filter__option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.orders-type-filter__option-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--otf-icon-border, #e5e7eb);
  background: var(--otf-icon-bg, #f3f4f6);
  color: var(--otf-icon-fg, #111827);
}

.orders-type-filter__option-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.orders-type-filter__option-body {
  min-width: 0;
  flex: 1 1 auto;
}

.orders-type-filter__option-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}

.orders-type-filter__option-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.orders-type-filter__option-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  opacity: 0;
  transition: opacity .2s ease;
}

.orders-type-filter__option.is-active .orders-type-filter__option-check {
  opacity: 1;
}



#svTabs {
  border-bottom: none !important;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 768px) {
  .orders-toolbar {
    gap: 10px;
    margin: 10px 0 14px;
    padding: 0;
  }

  .orders-toolbar .portfolio-tabs {
    gap: 7px;
    padding: 3px;
    border-radius: 20px;
  }

  .orders-toolbar .tab-portfolio {
    flex-basis: 82px;
    width: 82px;
    min-width: 82px;
    min-height: 64px;
    padding: 8px 7px 9px;
    border-radius: 18px;
  }

  .orders-toolbar .portfolio-tabs::before {
    border-radius: 18px;
  }

  .order-status-tab__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .order-status-tab__label {
    max-width: 68px;
    font-size: 12px;
  }

  .orders-toolbar__divider {
    height: 58px;
  }

  .orders-type-filter__button {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .orders-toolbar {
    gap: 8px;
  }

  .orders-toolbar .portfolio-tabs {
    gap: 6px;
    padding: 3px;
  }

  .orders-toolbar .tab-portfolio {
    flex-basis: 76px;
    width: 76px;
    min-width: 76px;
    min-height: 60px;
    padding: 7px 6px 8px;
    border-radius: 16px;
  }

  .orders-toolbar .portfolio-tabs::before {
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(3, 7, 18, 0.14);
  }

  .order-status-tab__icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .order-status-tab__label {
    max-width: 62px;
    font-size: 11.5px;
  }

  .orders-toolbar__divider {
    display: none;
  }

  .orders-type-filter__button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
  }

  .orders-type-filter__panel {
    width: min(300px, calc(100vw - 20px));
    right: -4px;
  }
}

/* === Unified Buttons for S.V Orders === */
.btn {
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Approve – Green */
.btn-success {
  background-color: #16A34A; /* Tailwind green-600 */
  color: #fff;
}
.btn-success:hover {
  background-color: #15803D; /* green-700 */
}

/* Reject – Red */
.btn-danger {
  background-color: #DC2626; /* red-600 */
  color: #fff;
}
.btn-danger:hover {
  background-color: #B91C1C; /* red-700 */
}

/* Edit – Yellow */



/* === Unified Badge Colors (same as Requested Orders) === */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}

/* Status color variations */




/* Consistent shadow & card layout (for S.V Orders match) */
.order-card.request-card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.order-card.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* === S.V Orders: professional one-card-per-order layout === */

/* Cards list */
#sv-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Main order card */
.order-card.single {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.order-card.single:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Header row (title/meta left, actions right if needed later) */
.order-card.single .order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  background: #FAFAFA;
}

.order-card.single .head-left {
  display: grid;
  gap: 6px;
}

.order-card.single .order-title {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: #000000;
}

/* Small meta badges under title (count + date) */
.order-card.single .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-card.single .meta .badge {
  background: #F3F4F6;
  color: #000000;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-weight: 700;
  font-size: .85rem;
}

/* Items list inside the card */
.order-card.single .order-items {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

/* Each product row (mini card) */
.order-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: .6rem .75rem;
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

/* Left: name + qty line */
.order-item__left { min-width: 0; }
.order-item__left .name {
  font-weight: 700;
  color: #000000;
  overflow-wrap: anywhere;
}
.order-item__left .muted { color: #6B7280; font-size: .9rem; }

/* Right: status + inline buttons (aligned right) */
.order-item__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Button sizing to keep rows compact */
.btn-xs { padding: .35rem .55rem; border-radius: 8px; font-size: .82rem; }

/* Status badges (unified) */




/* ===== S.V Schools Orders: Notion-like approval pill + qty diff ===== */


.sv-qty-diff { display: inline-flex; align-items: baseline; gap: 6px; }
.sv-qty-old { color: #9CA3AF; text-decoration: line-through; }
.sv-qty-new { color: #000000; font-weight: 800; }

/* Hide Assigned/Unassigned badge area on S.V Orders (if present) */
.order-card.single .order-actions { display: none; }

/* Responsive: stack header on narrow screens */
@media (max-width: 560px) {
  .order-card.single .order-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-item-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .order-item__right { margin-left: 0; }
}
/* === S.V Orders: page side gutters (left/right spacing) === */
/* Works even if wrappers differ; scoped to the page that contains #sv-list */
:root {
  --sv-gutter-sm: 12px;
  --sv-gutter-md: 20px;
  --sv-gutter-lg: 28px;
}

/* Fallback: add padding directly on the list container */
#sv-list {
  box-sizing: border-box;
  padding-inline: var(--sv-gutter-sm);
}

/* If the list sits inside a section/panel, add the same gutters there too */
section:has(#sv-list),
main:has(#sv-list) {
  box-sizing: border-box;
  padding-inline: var(--sv-gutter-sm);
}

/* Keep the tabs/search aligned with the same gutters if present */
#svTabs {
  padding-inline: var(--sv-gutter-sm);
}

/* Scale gutters with screen size */
@media (min-width: 768px) {
  #sv-list,
  section:has(#sv-list),
  main:has(#sv-list),
  #svTabs {
    padding-inline: var(--sv-gutter-md);
  }
}
@media (min-width: 1280px) {
  #sv-list,
  section:has(#sv-list),
  main:has(#sv-list),
  #svTabs {
    padding-inline: var(--sv-gutter-lg);
  }
}
/* === QTY Popover (inline dropdown near Edit button) === */





.sv-qty-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  outline: none;
}
.sv-qty-input:focus {
  border-color: #A3A3A3;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.sv-qty-btn {
  height: 34px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #F9FAFB;
  cursor: pointer;
  font-weight: 700;
}
.sv-qty-btn:hover { background: #F3F4F6; }
.sv-qty-actions { display: flex; gap: 8px; justify-content: flex-end; }
/* ==== Sidebar: keep header/footer fixed, make links scroll ==== */
/* NOTE: The sidebar is already positioned as FIXED earlier in the file.
   We only want to make its *inside* scrollable here (nav), without
   overriding the fixed overlay layout. */
.sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;                /* the nav will scroll inside */
}

/* The area that contains the menu links */
.sidebar-nav {
  flex: 1 1 auto;                  /* take remaining space */
  min-height: 0;                   /* CRITICAL for flex + overflow to work */
  overflow-y: auto;                /* scroll only the links area */
  overscroll-behavior: contain;    /* nicer scroll behavior */
  padding-right: 4px;              /* room for scrollbar */
}

/* Keep the logout area anchored at the bottom and always visible */
.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;                /* pins it to the bottom of the flex column */
  background: var(--sidebar-bg, #000000);
  border-top: 1px solid rgba(255,255,255,0.06);
  /* Keep it at the bottom via flex (more reliable than sticky inside fixed). */
}

/* Optional: subtle scrollbar styling (WebKit/Blink) */
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 8px;
}
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
/* Remove any flex gap between sidebar and content */
.app-container { 
  gap: 0 !important; 
  column-gap: 0 !important; 
}

/* Ensure the sidebar isn't adding space on the right */
aside.sidebar { 
  margin-right: 0 !important; 
}

/* >>> Actual left offset for the page content <<<
   Mobile: full width.
   Desktop: reserve ONLY the mini rail width so the sidebar can expand as an overlay.
*/
@media (max-width: 768px){
  body:not(.sidebar-mini) aside.sidebar + .main-content,
  body.sidebar-mini aside.sidebar + .main-content {
    padding-left: 0 !important;
  }
}

@media (min-width: 769px){
  /* When the sidebar is hidden, do NOT reserve left space */
  body.sidebar-collapsed aside.sidebar + .main-content{
    padding-left: 0 !important;
  }

  body:not(.sidebar-mini):not(.sidebar-collapsed) aside.sidebar + .main-content,
  body.sidebar-mini:not(.sidebar-collapsed) aside.sidebar + .main-content {
    padding-left: 0 !important;
  }
}

.container-full-width {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 1rem !important;
}


/* Fix link icon alignment */
.product-url-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 25px !important;
  height: 25px !important;
  margin-left: 30px !important;     /* تبعد عن الـ Reason */
  transform: translateY(1px);       /* تزبطها عموديًا */
  padding: 0 !important;
}

.product-url-link i {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2;
}

/* ... existing code ... */

/* ===== Orders Modal (polished + centered close icon) ===== */
/* تعديل جديد: إجبار النافذة على التوسط في الشاشة */
#orderModal {
  display: none; /* الـ JS بيحولها لـ flex لما تفتح */
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 2000; /* رقم عالي عشان تظهر فوق كل حاجة */
  background: rgba(0, 0, 0, 0.55);
}

#orderModal .modal-content {
  position: relative;
  width: min(680px, 94vw);
  border-radius: 16px;
  padding: 14px 14px 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
  /* نلغي أي هوامش خارجية قديمة */
  margin: 0 !important; 
}

/* Header uses Flex so the close button is vertically centered */
.order-modal__head {
  display: flex;
  align-items: center;
}
/* ... existing code ... */

/* =========================
   Expenses Page (mobile UI)
   ========================= */
.expenses-page {
  padding: 1.5rem 1.5rem 2rem;
}

.expenses-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

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

/* Columns */


/* Top bar (Dashboard + avatar) */










/* Balance Card */









/* Section head (All Expenses) */




/* Day blocks */



/* Expenses list */















/* Floating add button (bottom right of left card) */


@media (min-width: 900px) {
  
}

/* Right column: Add Amount */



/* Amount row */








/* Select + description */





/* Keypad */





/* 🔒 Prevent sidebar flash before permissions load */
body.permissions-loading .sidebar li {
  display: none !important;
}


/* =================================
   Mobile Full-Width Fix (Override)
   Ensures content uses full screen width when sidebar is closed on mobile.
   ================================= */

/* Backdrop for mobile sidebar (injected by common-ui.js) */


@media (max-width: 768px){
  /* Always let content take full width on mobile */
  .main-content{ padding-left: 0 !important; }
  body.sidebar-collapsed .main-content{ padding-left: 0 !important; }

  /* When sidebar is OPEN (i.e., NOT collapsed), show backdrop */
  body:not(.sidebar-collapsed) .sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  /* Reduce heavy desktop paddings */
  .container, .container-full-width{
    max-width: 100% !important;
    padding: 1rem !important;
  }
  .main-header{ padding: .9rem 1rem !important; }

  /* Searchbar should not force layout */
  .searchbar{ width: 100% !important; max-width: 100% !important; }
}

/* =========================================
   Sidebar "My account" moved above Logout
   ========================================= */
.sidebar-footer{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-footer .account-mini{
  width: 100%;
  justify-content: center;
  box-shadow: none;
  margin: 0;
}

body.sidebar-mini .sidebar-footer .account-mini{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  justify-content: center;
}

body.sidebar-mini .sidebar-footer .account-mini .label{
  display: none !important;
}

/* =========================================
   Account inline edit (Account page)
   ========================================= */







.acc-action{
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #E5EAF2;
  background: #F9FAFB;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.acc-action:hover{ background: #F3F6FB; }
.acc-action svg{ width: 16px; height: 16px; }

/* ✅ Requested: smaller edit button with NO background */
.acc-action.acc-edit{
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 10px;
}
.acc-action.acc-edit:hover{
  background: transparent;
  opacity: .85;
}
.acc-action.acc-edit svg{ width: 15px; height: 15px; }



.acc-row.is-editing .acc-value,
.acc-row.is-editing .acc-edit{
  display: none;
}

























.acc-row.is-editing .acc-input{
  display: block;
}

.acc-row.is-editing .acc-save,
.acc-row.is-editing .acc-cancel{
  display: grid;
}





/* =========================================
   Account page redesign (profile form)
   ========================================= */
.page-account .account-page-shell{
  padding: clamp(1rem, 2.5vw, 2rem) !important;
}

.page-account .account-panel--profile{
  width: min(100%, 620px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.page-account .profile-avatar-section{
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.page-account .profile-avatar-shell{
  position: relative;
  width: 132px;
  height: 132px;
}

.page-account .profile-avatar-display{
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 6px solid #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(226, 232, 240, 0.95);
  cursor: pointer;
}

.page-account .profile-avatar-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-account .profile-avatar-fallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDBA74 0%, #EA580C 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.page-account .profile-avatar-edit{
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.page-account .profile-avatar-edit:hover{
  transform: translateY(-1px);
  color: #C2410C;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.20);
}

.page-account .profile-avatar-edit.is-uploading{
  cursor: wait;
  opacity: 0.75;
}

.page-account .profile-avatar-edit svg{
  width: 18px;
  height: 18px;
}

.page-account .profile-fields-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-account .profile-field-card{
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-account .profile-field-label{
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
  padding-inline: 0.15rem;
}

.page-account .profile-field-box{
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.page-account .profile-field-box--password{
  letter-spacing: 0.08em;
}

.page-account .profile-field-value{
  flex: 1 1 auto;
  min-width: 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.page-account .profile-field-edit{
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-account .profile-field-edit:hover{
  transform: translateY(-1px);
  color: #C2410C;
  border-color: rgba(251, 146, 60, 0.35);
}

.page-account .profile-field-edit svg{
  width: 16px;
  height: 16px;
}

@media (max-width: 768px){
  .page-account .account-page-shell{
    padding: 1rem !important;
  }

  .page-account .account-panel--profile{
    width: 100%;
  }

  .page-account .profile-avatar-section{
    margin-bottom: 1.15rem;
  }

  .page-account .profile-avatar-shell,
  .page-account .profile-avatar-display{
    width: 108px;
    height: 108px;
  }

  .page-account .profile-avatar-edit{
    width: 34px;
    height: 34px;
    right: 2px;
    bottom: 2px;
  }

  .page-account .profile-field-label{
    font-size: 0.98rem;
  }

  .page-account .profile-field-box{
    min-height: 60px;
    padding: 0.85rem 0.85rem 0.85rem 1rem;
    border-radius: 16px;
    gap: 0.75rem;
  }

  .page-account .profile-field-value{
    font-size: 0.96rem;
  }

  .page-account .profile-field-edit{
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 11px;
  }
}

@media (max-width: 520px){
  
  
  
  
  
  
  
}


/* Hide legacy sidebar arrow toggle (replaced by logo) */
#sidebar-toggle{ display:none !important; }

.sidebar-footer .logout-btn + .logout-btn{ margin-top:12px; }

/* =========================================
   ✅ Requested: Sidebar footer buttons (Settings + Logout)
   Without background (transparent)
   ========================================= */
.sidebar-footer .logout-btn{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: .75rem 1rem;
  justify-content: center;
  color: #9CA3AF;
  font-weight: 600;
}
.sidebar-footer .logout-btn:hover{
  background: transparent !important;
  border-color: transparent !important;
  color: #FFFFFF;
}
.sidebar-footer .logout-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
}

/* =========================================
   Account edit modal (Account page)
   ========================================= */

.acc-edit-backdrop.is-open{ display: flex; }



@keyframes accModalIn{
  from{ opacity: 0; transform: translateY(12px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}













.acc-edit-btn.confirm{
  background: #3b82f6;
  color: white;
}

.acc-edit-btn.cancel{
  background: #ef4444;
  color: white;
}

@media (max-width: 420px){
  
  
}


/* =================================
   Notifications (in-app) + Push UI
   ================================= */
.notif-wrap{ position:relative; display:inline-flex; align-items:center; }




.header-message-btn.is-active{
  background:#0b1020;
  color:#fff;
  border-color:#0b1020;
}


.notif-bell-btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--border-color);
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  cursor:pointer;
}
.notif-bell-btn:hover{ transform: translateY(-1px); }
.notif-bell-btn:active{ transform: translateY(0); }

.notif-bell-btn i{ width:18px; height:18px; color:#111; }

.notif-badge{
  position:absolute;
  top:-6px; right:-6px;
  min-width:18px; height:18px;
  padding:0 5px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  font-size:11px; font-weight:800;
  background:#ff3b30;
  color:#fff;
  border:2px solid #fff;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.notif-panel{
  position:absolute;
  top:50px;
  right:0;
  width:360px;
  max-width: calc(100vw - 24px);
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  z-index: 9999;
}










.notif-push-btn.danger{ background:#fff; color:#111; }


.notif-panel__list{
  max-height: 360px;
  overflow:auto;
  padding:8px;
}
.notif-empty{
  padding:18px 10px;
  text-align:center;
  color: var(--text-secondary);
  font-size:13px;
}


.notif-item.is-unread{
  border-color: rgba(255,115,0,.35);
  box-shadow: 0 12px 26px rgba(255,115,0,.10);
}









/* Mobile tweak: keep panel visible */
@media (max-width: 768px){
  .notif-panel{ width: 92vw; }
}

/* ===== Requested Orders: delivered receipt photos viewer ===== */


.req-receipt-photos-dialog{
  /* Keep receipt photos as a compact viewer, closer to Expenses screenshots. */
  width: min(400px, calc(100vw - 42px));
  max-height: min(68vh, 520px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 16px 16px 14px;
}

.req-receipt-photos-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 44px;
}

.req-receipt-photos-count{
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  background: rgba(255, 247, 237, 0.92);
  color: #9A3412;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.req-receipt-photos-modal .co-submodal-body{
  overflow: auto;
  padding-right: 2px;
  margin-top: 12px;
}

.req-receipt-photos-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}































.req-receipt-photos-actions{
  margin-top: 14px;
}

.req-receipt-photos-actions .ro-action-btn{
  min-width: 140px;
}

@media (max-width: 560px){
  .req-receipt-photos-header{
    flex-direction: column;
    gap: 10px;
  }
  .req-receipt-photos-count{
    align-self: flex-start;
  }
  .req-receipt-photos-grid{
    grid-template-columns: 1fr;
  }
}


/* ===== Requested Orders Receipt Photos: forced compact mobile viewer =====
   This override intentionally comes at the very end of the file so cached/base
   modal rules cannot stretch receipt screenshots to full page size. */
#reqReceiptPhotosModal.req-receipt-photos-modal{
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  overflow: hidden !important;
}

#reqReceiptPhotosModal .req-receipt-photos-dialog{
  width: min(360px, 88vw) !important;
  max-width: min(360px, 88vw) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: min(62vh, 470px) !important;
  margin: 0 auto !important;
  padding: 14px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  transform: none !important;
  box-sizing: border-box !important;
}

#reqReceiptPhotosModal .req-receipt-photos-header{
  gap: 8px !important;
  padding-right: 44px !important;
}

#reqReceiptPhotosModal .co-submodal-title{
  font-size: 18px !important;
  line-height: 1.15 !important;
}

#reqReceiptPhotosModal .co-submodal-sub{
  font-size: 12px !important;
  line-height: 1.3 !important;
}

#reqReceiptPhotosModal .req-receipt-photos-count{
  font-size: 10px !important;
  padding: 6px 8px !important;
}

#reqReceiptPhotosModal .co-submodal-body{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: min(44vh, 330px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-top: 10px !important;
  padding-right: 0 !important;
}

#reqReceiptPhotosModal .req-receipt-photos-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card{
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__media{
  width: 100% !important;
  height: min(30vh, 220px) !important;
  max-height: 220px !important;
  min-height: 150px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__media img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__body{
  padding: 10px 50px 11px 12px !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__title{
  font-size: 12px !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__meta{
  font-size: 10px !important;
}

#reqReceiptPhotosModal .req-receipt-photo-card__open{
  width: 34px !important;
  height: 34px !important;
  right: 10px !important;
  bottom: 10px !important;
  border-radius: 12px !important;
}

#reqReceiptPhotosModal .req-receipt-photos-actions{
  margin-top: 10px !important;
}

#reqReceiptPhotosModal .req-receipt-photos-actions .ro-action-btn{
  min-height: 42px !important;
  min-width: 110px !important;
}

@media (max-width: 560px){
  #reqReceiptPhotosModal .req-receipt-photos-dialog{
    width: min(340px, 90vw) !important;
    max-width: min(340px, 90vw) !important;
    max-height: 60vh !important;
  }
  #reqReceiptPhotosModal .co-submodal-body{
    max-height: 40vh !important;
  }
  #reqReceiptPhotosModal .req-receipt-photo-card__media{
    height: min(28vh, 190px) !important;
    max-height: 190px !important;
    min-height: 130px !important;
  }
}


/* ===== FINAL OVERRIDE: compact receipt-photo popup, never full-screen image ===== */
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  overflow:hidden !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-dialog{
  position:relative !important;
  width:min(330px, 86vw) !important;
  max-width:min(330px, 86vw) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:min(58vh, 430px) !important;
  margin:0 auto !important;
  padding:14px !important;
  border-radius:22px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  transform:none !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-header,
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-header{
  min-height:0 !important;
  gap:8px !important;
  padding-right:40px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-title{
  font-size:17px !important;
  line-height:1.1 !important;
  padding-right:0 !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-sub{
  display:none !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-count{
  padding:5px 7px !important;
  font-size:10px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-close{
  width:36px !important;
  height:36px !important;
  top:10px !important;
  right:10px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:min(38vh, 275px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  margin-top:10px !important;
  padding:0 !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  width:100% !important;
  max-width:100% !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  border-radius:16px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__media{
  width:100% !important;
  height:160px !important;
  max-height:160px !important;
  min-height:120px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  aspect-ratio:auto !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__media img,
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:160px !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:12px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__body{
  padding:10px 12px 12px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__title{
  font-size:12px !important;
  line-height:1.25 !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__meta{
  font-size:10px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__open,
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open [data-receipt-open-url]{
  display:none !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-actions{
  margin-top:8px !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-actions .ro-action-btn{
  min-height:38px !important;
  min-width:100px !important;
}
@media (max-width:560px){
  #reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photos-dialog{
    width:min(310px, 86vw) !important;
    max-width:min(310px, 86vw) !important;
    max-height:56vh !important;
    padding:12px !important;
  }
  #reqReceiptPhotosModal.req-receipt-photos-modal.is-open .co-submodal-body{
    max-height:36vh !important;
  }
  #reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__media{
    height:140px !important;
    max-height:140px !important;
    min-height:110px !important;
  }
  #reqReceiptPhotosModal.req-receipt-photos-modal.is-open .req-receipt-photo-card__media img,
  #reqReceiptPhotosModal.req-receipt-photos-modal.is-open img{
    max-height:140px !important;
  }
}

/* Receipt Photos compact viewer final behavior */
#reqReceiptPhotosModal[hidden]{
  display: none !important;
}
#reqReceiptPhotosModal.req-receipt-photos-modal{
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
#reqReceiptPhotosModal .req-receipt-photos-dialog{
  width: min(330px, 86vw) !important;
  max-width: min(330px, 86vw) !important;
  max-height: min(58vh, 430px) !important;
  padding: 14px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}
#reqReceiptPhotosModal .req-receipt-photos-header{
  display: block !important;
  padding-right: 48px !important;
  margin-bottom: 10px !important;
}
#reqReceiptPhotosModal #reqReceiptPhotosTitle{
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}
#reqReceiptPhotosModal #reqReceiptPhotosSub,
#reqReceiptPhotosModal #reqReceiptPhotosCount,
#reqReceiptPhotosModal .req-receipt-photo-card__body,
#reqReceiptPhotosModal .req-receipt-photo-card__title,
#reqReceiptPhotosModal .req-receipt-photo-card__meta,
#reqReceiptPhotosModal .req-receipt-photo-card__open,
#reqReceiptPhotosModal .req-receipt-photo-card__missing{
  display: none !important;
}
#reqReceiptPhotosModal .co-submodal-body{
  max-height: min(34vh, 250px) !important;
  margin-top: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#reqReceiptPhotosModal .req-receipt-photos-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
#reqReceiptPhotosModal .req-receipt-photo-card{
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(229, 231, 235, .95) !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 8px !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: initial !important;
}
#reqReceiptPhotosModal .req-receipt-photo-card__media{
  width: 100% !important;
  height: 170px !important;
  max-height: 170px !important;
  min-height: 120px !important;
  aspect-ratio: auto !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
}
#reqReceiptPhotosModal .req-receipt-photo-card__media img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 170px !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 12px !important;
}
#reqReceiptPhotosModal .req-receipt-photos-actions{
  margin-top: 12px !important;
}
#reqReceiptPhotosModal #reqReceiptPhotosDone{
  width: 100% !important;
  min-height: 48px !important;
}

/* Current Orders compact cards: the order reason stays inside the detail modal only. */
.co-card .co-thumb--order-type svg{ width:26px; height:26px; }
@media (max-width: 520px){
  .co-card .co-thumb--order-type svg{ width:24px; height:24px; }
}

/* Operations Orders — compact modal edit action */





.co-modal-dialog.has-edit-action .co-modal-status{ padding-right: 310px; }

.req-edit-header{
  display:flex;
  align-items:center;
  gap:14px;
  padding-right:48px;
}
.req-edit-icon{
  width:54px;
  height:54px;
  border-radius:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#EA580C;
  background:linear-gradient(135deg,#FFF7ED,#FFFFFF);
  border:1px solid #FED7AA;
  box-shadow:0 14px 30px rgba(234,88,12,.12);
  flex-shrink:0;
}
.req-edit-icon svg{ width:24px; height:24px; }
.req-edit-header .co-submodal-title{ padding-right:0; line-height:1; }
.req-edit-dialog .co-submodal-input{
  min-height:52px;
  border-radius:16px;
  background:#FFFFFF;
  border-color:#E5E7EB;
}
.req-edit-dialog .co-submodal-input:focus{
  border-color:#111827;
  box-shadow:0 0 0 4px rgba(17,24,39,.10);
}

/* Slightly smaller order item rows inside Operations Orders modals */
body:not(.order-modal-fit-screen) .co-item{
  padding:10px 12px;
  gap:10px;
}
body:not(.order-modal-fit-screen) .co-item-name{
  font-size:15px;
}
body:not(.order-modal-fit-screen) .co-item-sub,
body:not(.order-modal-fit-screen) .co-item-issue-desc{
  font-size:12.5px;
}
body:not(.order-modal-fit-screen) .co-item-status{
  font-size:11px;
  padding:3px 9px;
}

@media (max-width: 768px){
  body.order-modal-fit-screen .co-modal-edit{
    top:12px;
    right:154px;
    min-width:80px;
    height:40px;
    padding:0 10px;
    font-size:13px;
  }
  body.order-modal-fit-screen .co-modal-dialog.has-edit-action .co-modal-status{
    padding-right:250px;
  }
}

@media (max-width: 420px){
  body.order-modal-fit-screen .co-modal-edit{
    right:150px;
  }
  body.order-modal-fit-screen .co-modal-dialog.has-edit-action .co-modal-status{
    padding-right:230px;
  }
}

/* Operations Orders modal: compact actions menu */
.co-modal-more{
  position:absolute;
  top:18px;
  right:74px;
  z-index:8;
}
.co-modal-more-btn{
  width:28px;
  height:28px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#071022;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:none;
  padding:0;
  line-height:1;
}
.co-modal-more-btn:hover,
.co-modal-more-btn:focus-visible{
  background:rgba(15,23,42,.06);
  outline:0;
}
.co-modal-more-dots{
  display:block;
  width:4px;
  height:4px;
  border-radius:999px;
  background:#071022;
  color:transparent;
  font-size:0;
  line-height:0;
  box-shadow:0 -7px 0 #071022, 0 7px 0 #071022;
}
.co-modal-more-btn svg{
  width:18px;
  height:18px;
  stroke-width:2.5;
}
.co-modal-more-panel{
  position:absolute;
  top:40px;
  right:0;
  min-width:178px;
  padding:8px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 22px 46px rgba(15,23,42,.16);
  z-index:20;
}
.co-modal-more-panel[hidden]{ display:none !important; }
.co-modal-more-item{
  width:100%;
  min-height:42px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:#071022;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  text-align:left;
}
.co-modal-more-item:hover,
.co-modal-more-item:focus-visible{
  background:#f6f7fb;
  outline:0;
}
.co-modal-more-item svg{
  width:17px;
  height:17px;
  stroke-width:2.35;
}
.co-modal-more-item[hidden]{ display:none !important; }
.co-modal-more-item:disabled{ opacity:.55; cursor:not-allowed; }

/* Re-enable Created By text in Operations Orders and Orders Review cards. */
.co-card .co-createdby{
  display:block !important;
}

/* Current Orders modal 3-dot actions and protected danger action */
.co-modal-more-item--danger{
  color:#DC2626;
}
.co-modal-more-item--danger:hover,
.co-modal-more-item--danger:focus-visible{
  background:#FEF2F2;
}
.co-modal-more-item--danger svg{
  color:#DC2626;
}
.ro-action-btn--danger{
  border:1px solid rgba(220,38,38,.18);
  background:linear-gradient(180deg,#EF4444 0%,#DC2626 100%);
  color:#fff;
  box-shadow:0 16px 34px rgba(220,38,38,.20);
}
.ro-action-btn--danger:hover{
  box-shadow:0 20px 44px rgba(220,38,38,.24);
  filter:brightness(1.03);
}
.ro-action-btn--danger:active{
  box-shadow:0 14px 30px rgba(220,38,38,.20);
}
.req-edit-icon--danger{
  color:#DC2626;
  background:linear-gradient(135deg,#FEF2F2,#FFFFFF);
  border-color:#FECACA;
  box-shadow:0 14px 30px rgba(220,38,38,.12);
}


/* Modern small edit dialogs for Operations Orders and Orders Review */
.req-ops-edit-dialog,
.sv-review-edit-dialog{
  max-width: 560px;
}

















@media (max-width: 560px){
  
  
}

/* Safe split edit flows for Operations Orders and Orders Review */
.req-ops-edit-receipts-list,
.req-ops-edit-photos-list,
.sv-review-edit-items{
  display:grid;
  gap:10px;
}













.sv-review-edit-item{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 180px;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid #E5E7EB;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#F9FAFB 100%);
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.sv-review-edit-item__info{
  min-width:0;
}
.sv-review-edit-item__name{
  font-size:14px;
  line-height:1.25;
  font-weight:950;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sv-review-edit-item__sub{
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  color:#6B7280;
}

@media (max-width: 560px){
  .req-ops-edit-receipt-row,
  .sv-review-edit-item{
    grid-template-columns:1fr;
  }
  
  
}

/* Orders Review — modern split edit decision dialog */
.sv-review-edit-modal .co-submodal-dialog{
  width:min(520px, 94vw);
  border-radius:28px;
  padding:20px 20px 18px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg,#FFFFFF 0%,#FBFCFE 100%);
  box-shadow:0 34px 90px rgba(15,23,42,.28);
}
.sv-review-edit-modal .co-submodal-header{
  padding-right:52px;
  align-items:flex-start;
}
.sv-review-edit-modal .co-submodal-title{
  font-size:24px;
  letter-spacing:-.03em;
}
.sv-review-edit-modal .co-submodal-sub{
  max-width:360px;
  line-height:1.45;
}
.sv-review-edit-modal .co-submodal-body{
  margin-top:18px;
}
.sv-review-edit-modal .co-submodal-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:13px;
  font-weight:950;
  color:#0F172A;
}
.sv-review-edit-modal .co-submodal-label::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#D8FF91;
  box-shadow:0 0 0 4px rgba(216,255,145,.35);
}
.sv-review-edit-items{
  display:grid;
  gap:12px;
  max-height:min(360px, 44vh);
  overflow:auto;
  padding:2px 4px 2px 0;
}
.sv-review-edit-items::-webkit-scrollbar{ width:6px; }
.sv-review-edit-items::-webkit-scrollbar-thumb{
  background:#D1D5DB;
  border-radius:999px;
}
.sv-review-edit-item{
  position:relative;
  grid-template-columns:minmax(0, 1fr) minmax(170px, 190px);
  gap:12px;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%);
  box-shadow:0 16px 34px rgba(15,23,42,.07);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.sv-review-edit-item:hover{
  transform:translateY(-1px);
  border-color:rgba(15,23,42,.14);
  box-shadow:0 20px 42px rgba(15,23,42,.10);
}
.sv-review-edit-item::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:0 999px 999px 0;
  background:#FBBF24;
}
.sv-review-edit-item.is-approved::before{ background:#10B981; }
.sv-review-edit-item.is-rejected::before{ background:#EF4444; }
.sv-review-edit-item__name{
  font-size:14px;
  font-weight:1000;
  letter-spacing:-.01em;
}
.sv-review-edit-item__sub{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-top:7px;
  padding:4px 9px;
  border-radius:999px;
  background:#F1F5F9;
  color:#64748B;
  font-size:11px;
  font-weight:950;
}

.sv-review-edit-select.is-not-started{
  border-color:#FDE68A;
  color:#92400E;
  background-image:
    linear-gradient(45deg, transparent 50%, #92400E 50%),
    linear-gradient(135deg, #92400E 50%, transparent 50%),
    linear-gradient(180deg,#FFFBEB 0%,#FEF3C7 100%);
}
.sv-review-edit-select.is-approved{
  border-color:#A7F3D0;
  color:#065F46;
  background-image:
    linear-gradient(45deg, transparent 50%, #065F46 50%),
    linear-gradient(135deg, #065F46 50%, transparent 50%),
    linear-gradient(180deg,#ECFDF5 0%,#D1FAE5 100%);
}
.sv-review-edit-select.is-rejected{
  border-color:#FECACA;
  color:#991B1B;
  background-image:
    linear-gradient(45deg, transparent 50%, #991B1B 50%),
    linear-gradient(135deg, #991B1B 50%, transparent 50%),
    linear-gradient(180deg,#FEF2F2 0%,#FEE2E2 100%);
}


.sv-review-edit-modal .co-submodal-actions{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #EEF2F7;
}
.sv-review-edit-modal .co-submodal-error{
  margin-top:12px;
  font-weight:900;
}
@media (max-width:560px){
  .sv-review-edit-modal .co-submodal-dialog{
    width:min(94vw, 460px);
    padding:18px 16px 16px;
  }
  .sv-review-edit-item{
    grid-template-columns:1fr;
  }
  
}

/* Orders Review — custom simple status dropdown (no native select colors) */

.sv-review-status-picker.is-approved{
  --sv-status-bg:#ECFDF5;
  --sv-status-border:#A7F3D0;
  --sv-status-text:#065F46;
  --sv-status-dot:#10B981;
}
.sv-review-status-picker.is-rejected{
  --sv-status-bg:#FEF2F2;
  --sv-status-border:#FECACA;
  --sv-status-text:#991B1B;
  --sv-status-dot:#EF4444;
}




.sv-review-status-picker.is-open .sv-review-status-trigger svg{
  transform:rotate(180deg);
}






.sv-review-status-option.is-selected{
  background:#0B1220;
  border-color:#0B1220;
  color:#FFFFFF;
}



@media (max-width:560px){
  
}

/* Operations Orders edit details — modern receipt/photo controls */
.req-ops-edit-modal .co-submodal-dialog.req-ops-edit-dialog{
  width:min(560px, 94vw);
  max-height:min(86vh, 760px);
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg,#FFFFFF 0%,#FBFCFF 100%);
  box-shadow:0 34px 96px rgba(15,23,42,.30);
}
.req-ops-edit-modal .co-submodal-body{
  max-height:calc(86vh - 170px);
  overflow:auto;
  padding-right:4px;
}
.req-ops-edit-modal .co-submodal-field{
  padding:0;
}
.req-ops-edit-modal .co-submodal-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#111827;
  font-size:12px;
  font-weight:950;
  letter-spacing:.01em;
}






.req-ops-edit-receipt-input,
.req-ops-edit-receipt-control .co-submodal-input{
  min-height:38px !important;
  height:38px !important;
  padding:0 8px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
  color:#111827 !important;
  font-size:14px !important;
  font-weight:900 !important;
}







#reqOpsEditAddPhoto{
  background:linear-gradient(180deg,#0F172A 0%,#020617 100%);
  color:#FFFFFF;
  border-color:rgba(15,23,42,.20);
  box-shadow:0 18px 42px rgba(15,23,42,.18);
}
#reqOpsEditAddPhoto:hover,
#reqOpsEditAddPhoto:focus-visible{
  box-shadow:0 22px 52px rgba(15,23,42,.24);
}










@media (max-width:560px){
  .req-ops-edit-modal .co-submodal-dialog.req-ops-edit-dialog{
    width:min(94vw, 520px);
    border-radius:26px;
  }
  
  
}

/* Operations Orders edit modal compact controls refinement */
.req-ops-edit-modal .co-submodal-dialog.req-ops-edit-dialog{
  width:min(520px, 92vw);
}
.req-ops-edit-modal .co-submodal-body{
  overflow-x:hidden;
}
.req-ops-edit-modal .co-submodal-label{
  margin-bottom:7px;
  font-size:11px;
}





.req-ops-edit-receipt-input,
.req-ops-edit-receipt-control .co-submodal-input{
  min-height:30px !important;
  height:30px !important;
  font-size:13px !important;
  padding:0 6px !important;
}













@media (max-width:560px){
  .req-ops-edit-modal .co-submodal-dialog.req-ops-edit-dialog{
    width:min(94vw, 500px);
  }
  
  
}
@media (max-width:430px){
  
}


/* Operations Orders edit details — compact spacing + reliable visual delete state */
.req-ops-edit-modal .co-submodal-dialog.req-ops-edit-dialog{
  width:min(500px, 92vw);
}
.req-ops-edit-modal .co-submodal-fields{
  gap:12px;
}
.req-ops-edit-modal .co-submodal-label{
  margin-bottom:5px;
}



.req-ops-edit-receipt-input,
.req-ops-edit-receipt-control .co-submodal-input{
  min-height:28px !important;
  height:28px !important;
}











@media (max-width:560px){
  
  
}
@media (max-width:430px){
  
}


/* Order details header: centered title with left edit/actions and right close */
.co-modal-dialog .co-modal-header{
  min-height: 52px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.co-modal-dialog .co-modal-head-left{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.co-modal-dialog .co-modal-status{
  width: 100%;
  padding-right: 0 !important;
  padding-left: 0 !important;
  text-align: center;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-modal-dialog .co-modal-status-sub[hidden]{
  display: none !important;
}
.co-modal-dialog .co-modal-close{
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.co-modal-dialog .co-modal-close::before{
  transform: none;
}
.co-modal-dialog .co-modal-more{
  top: 18px;
  left: 18px;
  right: auto;
}
.co-modal-dialog .co-modal-more-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #071022;
}
.co-modal-dialog .co-modal-more-btn:hover,
.co-modal-dialog .co-modal-more-btn:focus-visible{
  background: #E5E7EB;
}
.co-modal-dialog .co-modal-more-btn svg{
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}
.co-modal-dialog .co-modal-more-panel{
  left: 0;
  right: auto;
}
@media (max-width: 768px){
  body.order-modal-fit-screen .co-modal-dialog .co-modal-header{
    min-height: 48px;
    padding: 0 58px;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-status{
    font-size: clamp(24px, 7vw, 34px);
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-close{
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-more{
    top: 14px;
    left: 14px;
    right: auto;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-more-btn{
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 380px){
  body.order-modal-fit-screen .co-modal-dialog .co-modal-header{
    padding: 0 52px;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-status{
    font-size: clamp(22px, 6.8vw, 30px);
  }
}

/* Order details modal: final centered header alignment and compact controls */
.co-modal-dialog .co-modal-header{
  position: relative;
  min-height: 46px;
  height: 46px;
  padding: 0 58px !important;
  display: block !important;
  text-align: center;
}
.co-modal-dialog .co-modal-head-left{
  position: relative;
  width: 100%;
  height: 100%;
  display: block !important;
}
.co-modal-dialog .co-modal-status{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto !important;
  max-width: calc(100% - 6px);
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}
.co-modal-dialog .co-modal-close,
.co-modal-dialog .co-modal-more{
  top: 16px !important;
}
.co-modal-dialog .co-modal-close,
.co-modal-dialog .co-modal-more-btn{
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.co-modal-dialog .co-modal-close{
  right: 18px !important;
}
.co-modal-dialog .co-modal-more{
  left: 18px !important;
  right: auto !important;
}
.co-modal-dialog .co-modal-more-btn svg{
  width: 18px;
  height: 18px;
}
.co-modal-dialog .co-modal-close::before{
  font-size: 26px;
  line-height: 1;
}

/* Orders Review modal: keep Qty on the left and compact Edit/Reject buttons on the same row */
body.order-modal-fit-screen .co-item-right .sv-review-item-actions{
  width: auto !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}
body.order-modal-fit-screen .co-item-right .sv-review-item-actions .btn{
  flex: 0 0 auto !important;
  min-width: 74px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
body.order-modal-fit-screen .co-item-right .sv-review-item-actions .btn svg{
  width: 15px !important;
  height: 15px !important;
}
body.order-modal-fit-screen .co-item-right:has(.sv-review-item-actions){
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
body.order-modal-fit-screen .co-item-right:has(.sv-review-item-actions) .co-item-total{
  flex: 0 0 auto;
  margin-right: 8px;
}

@media (max-width: 768px){
  body.order-modal-fit-screen .co-modal-dialog .co-modal-header{
    min-height: 44px;
    height: 44px;
    padding: 0 52px !important;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-status{
    font-size: clamp(24px, 7.2vw, 32px);
    max-width: calc(100% - 4px);
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-close,
  body.order-modal-fit-screen .co-modal-dialog .co-modal-more{
    top: 14px !important;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-close,
  body.order-modal-fit-screen .co-modal-dialog .co-modal-more-btn{
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-close{
    right: 14px !important;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-more{
    left: 14px !important;
  }
  body.order-modal-fit-screen .co-modal-dialog .co-modal-close::before{
    font-size: 25px;
  }
  body.order-modal-fit-screen .co-item-right .sv-review-item-actions .btn{
    min-width: 70px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
  }
}

/* Order details modal: keep header action buttons clickable above the centered title layer */
.co-modal-dialog .co-modal-header{
  pointer-events: none;
  z-index: 1;
}
.co-modal-dialog .co-modal-head-left,
.co-modal-dialog .co-modal-status,
.co-modal-dialog .co-modal-status-sub{
  pointer-events: none;
}
.co-modal-dialog .co-modal-close,
.co-modal-dialog .co-modal-more{
  z-index: 35 !important;
  pointer-events: auto;
}
.co-modal-dialog .co-modal-more-btn,
.co-modal-dialog .co-modal-more-panel,
.co-modal-dialog .co-modal-more-item{
  pointer-events: auto;
}
.co-modal-dialog .co-modal-more-panel{
  z-index: 45 !important;
}


/* Unified compact order cards across Current Orders, Operations Orders, Orders Review, and Maintenance Orders. */
body.order-modal-fit-screen #orders-list,
body.operations-orders-page #requested-list,
body[data-orders-view="maintenance"] #requested-list,
body.page-maintenance-orders #requested-list,
body.page-orders-maintenance #requested-list,
body.order-modal-fit-screen #sv-list{
  gap: 10px;
}

body.order-modal-fit-screen #orders-list .co-card,
body.operations-orders-page #requested-list .co-card,
body[data-orders-view="maintenance"] #requested-list .co-card,
body.page-maintenance-orders #requested-list .co-card,
body.page-orders-maintenance #requested-list .co-card,
body.order-modal-fit-screen #sv-list .co-card{
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.075);
}

body.order-modal-fit-screen #orders-list .co-top,
body.operations-orders-page #requested-list .co-top,
body[data-orders-view="maintenance"] #requested-list .co-top,
body.page-maintenance-orders #requested-list .co-top,
body.page-orders-maintenance #requested-list .co-top,
body.order-modal-fit-screen #sv-list .co-top{
  gap: 12px;
}

body.order-modal-fit-screen #orders-list .co-thumb,
body.operations-orders-page #requested-list .co-thumb,
body[data-orders-view="maintenance"] #requested-list .co-thumb,
body.page-maintenance-orders #requested-list .co-thumb,
body.page-orders-maintenance #requested-list .co-thumb,
body.order-modal-fit-screen #sv-list .co-thumb{
  width: 56px;
  height: 56px;
  border-radius: 17px;
}

body.order-modal-fit-screen #orders-list .co-title,
body.operations-orders-page #requested-list .co-title,
body[data-orders-view="maintenance"] #requested-list .co-title,
body.page-maintenance-orders #requested-list .co-title,
body.page-orders-maintenance #requested-list .co-title,
body.order-modal-fit-screen #sv-list .co-title{
  font-size: 19px;
}

body.order-modal-fit-screen #orders-list .co-sub,
body.operations-orders-page #requested-list .co-sub,
body[data-orders-view="maintenance"] #requested-list .co-sub,
body.page-maintenance-orders #requested-list .co-sub,
body.page-orders-maintenance #requested-list .co-sub,
body.order-modal-fit-screen #sv-list .co-sub{
  font-size: 12px;
}

body.order-modal-fit-screen #orders-list .co-createdby,
body.operations-orders-page #requested-list .co-createdby,
body[data-orders-view="maintenance"] #requested-list .co-createdby,
body.page-maintenance-orders #requested-list .co-createdby,
body.page-orders-maintenance #requested-list .co-createdby,
body.order-modal-fit-screen #sv-list .co-createdby{
  font-size: 21px;
  margin-top: 7px;
}

body.order-modal-fit-screen #orders-list .co-qty,
body.operations-orders-page #requested-list .co-qty,
body[data-orders-view="maintenance"] #requested-list .co-qty,
body.page-maintenance-orders #requested-list .co-qty,
body.page-orders-maintenance #requested-list .co-qty,
body.order-modal-fit-screen #sv-list .co-qty{
  font-size: 16px;
}

body.order-modal-fit-screen #orders-list .co-divider,
body.operations-orders-page #requested-list .co-divider,
body[data-orders-view="maintenance"] #requested-list .co-divider,
body.page-maintenance-orders #requested-list .co-divider,
body.page-orders-maintenance #requested-list .co-divider,
body.order-modal-fit-screen #sv-list .co-divider{
  margin: 9px 0;
}

body.order-modal-fit-screen #orders-list .co-bottom,
body.operations-orders-page #requested-list .co-bottom,
body[data-orders-view="maintenance"] #requested-list .co-bottom,
body.page-maintenance-orders #requested-list .co-bottom,
body.page-orders-maintenance #requested-list .co-bottom,
body.order-modal-fit-screen #sv-list .co-bottom{
  gap: 10px;
  flex-wrap: nowrap;
}

body.order-modal-fit-screen #orders-list .co-est,
body.operations-orders-page #requested-list .co-est,
body[data-orders-view="maintenance"] #requested-list .co-est,
body.page-maintenance-orders #requested-list .co-est,
body.page-orders-maintenance #requested-list .co-est,
body.order-modal-fit-screen #sv-list .co-est{
  min-width: 0;
  flex: 1 1 auto;
}

body.order-modal-fit-screen #orders-list .co-est-label,
body.operations-orders-page #requested-list .co-est-label,
body[data-orders-view="maintenance"] #requested-list .co-est-label,
body.page-maintenance-orders #requested-list .co-est-label,
body.page-orders-maintenance #requested-list .co-est-label,
body.order-modal-fit-screen #sv-list .co-est-label{
  font-size: 14px;
}

body.order-modal-fit-screen #orders-list .co-est-value,
body.operations-orders-page #requested-list .co-est-value,
body[data-orders-view="maintenance"] #requested-list .co-est-value,
body.page-maintenance-orders #requested-list .co-est-value,
body.page-orders-maintenance #requested-list .co-est-value,
body.order-modal-fit-screen #sv-list .co-est-value{
  font-size: 26px;
  margin-top: 4px;
}

body.order-modal-fit-screen #orders-list .co-actions,
body.operations-orders-page #requested-list .co-actions,
body[data-orders-view="maintenance"] #requested-list .co-actions,
body.page-maintenance-orders #requested-list .co-actions,
body.page-orders-maintenance #requested-list .co-actions,
body.order-modal-fit-screen #sv-list .co-actions{
  gap: 8px;
  flex: 0 0 auto;
}

body.order-modal-fit-screen #orders-list .co-status-btn,
body.operations-orders-page #requested-list .co-status-btn,
body[data-orders-view="maintenance"] #requested-list .co-status-btn,
body.page-maintenance-orders #requested-list .co-status-btn,
body.page-orders-maintenance #requested-list .co-status-btn,
body.order-modal-fit-screen #sv-list .co-status-btn{
  padding: 10px 15px;
  font-size: 12.5px;
  letter-spacing: .1px;
}

body.order-modal-fit-screen #orders-list .co-right-ico,
body.operations-orders-page #requested-list .co-right-ico,
body[data-orders-view="maintenance"] #requested-list .co-right-ico,
body.page-maintenance-orders #requested-list .co-right-ico,
body.page-orders-maintenance #requested-list .co-right-ico,
body.order-modal-fit-screen #sv-list .co-right-ico{
  width: 44px;
  height: 44px;
}

body.order-modal-fit-screen #orders-list .co-right-ico svg,
body.operations-orders-page #requested-list .co-right-ico svg,
body[data-orders-view="maintenance"] #requested-list .co-right-ico svg,
body.page-maintenance-orders #requested-list .co-right-ico svg,
body.page-orders-maintenance #requested-list .co-right-ico svg,
body.order-modal-fit-screen #sv-list .co-right-ico svg{
  width: 18px;
  height: 18px;
}

@media (max-width: 520px){
  body.order-modal-fit-screen #orders-list .co-card,
  body.operations-orders-page #requested-list .co-card,
  body[data-orders-view="maintenance"] #requested-list .co-card,
  body.page-maintenance-orders #requested-list .co-card,
  body.page-orders-maintenance #requested-list .co-card,
  body.order-modal-fit-screen #sv-list .co-card{ padding: 10px 12px; border-radius: 20px; }

  body.order-modal-fit-screen #orders-list .co-thumb,
  body.operations-orders-page #requested-list .co-thumb,
  body[data-orders-view="maintenance"] #requested-list .co-thumb,
  body.page-maintenance-orders #requested-list .co-thumb,
  body.page-orders-maintenance #requested-list .co-thumb,
  body.order-modal-fit-screen #sv-list .co-thumb{ width: 52px; height: 52px; border-radius: 15px; }

  body.order-modal-fit-screen #orders-list .co-top,
  body.operations-orders-page #requested-list .co-top,
  body[data-orders-view="maintenance"] #requested-list .co-top,
  body.page-maintenance-orders #requested-list .co-top,
  body.page-orders-maintenance #requested-list .co-top,
  body.order-modal-fit-screen #sv-list .co-top{ gap: 10px; }

  body.order-modal-fit-screen #orders-list .co-title,
  body.operations-orders-page #requested-list .co-title,
  body[data-orders-view="maintenance"] #requested-list .co-title,
  body.page-maintenance-orders #requested-list .co-title,
  body.page-orders-maintenance #requested-list .co-title,
  body.order-modal-fit-screen #sv-list .co-title{ font-size: 17px; }

  body.order-modal-fit-screen #orders-list .co-sub,
  body.operations-orders-page #requested-list .co-sub,
  body[data-orders-view="maintenance"] #requested-list .co-sub,
  body.page-maintenance-orders #requested-list .co-sub,
  body.page-orders-maintenance #requested-list .co-sub,
  body.order-modal-fit-screen #sv-list .co-sub{ font-size: 11.5px; margin-top: 3px; }

  body.order-modal-fit-screen #orders-list .co-createdby,
  body.operations-orders-page #requested-list .co-createdby,
  body[data-orders-view="maintenance"] #requested-list .co-createdby,
  body.page-maintenance-orders #requested-list .co-createdby,
  body.page-orders-maintenance #requested-list .co-createdby,
  body.order-modal-fit-screen #sv-list .co-createdby{ font-size: 18px; margin-top: 6px; }

  body.order-modal-fit-screen #orders-list .co-qty,
  body.operations-orders-page #requested-list .co-qty,
  body[data-orders-view="maintenance"] #requested-list .co-qty,
  body.page-maintenance-orders #requested-list .co-qty,
  body.page-orders-maintenance #requested-list .co-qty,
  body.order-modal-fit-screen #sv-list .co-qty{ font-size: 15px; margin-left: 4px; }

  body.order-modal-fit-screen #orders-list .co-divider,
  body.operations-orders-page #requested-list .co-divider,
  body[data-orders-view="maintenance"] #requested-list .co-divider,
  body.page-maintenance-orders #requested-list .co-divider,
  body.page-orders-maintenance #requested-list .co-divider,
  body.order-modal-fit-screen #sv-list .co-divider{ margin: 8px 0; }

  body.order-modal-fit-screen #orders-list .co-bottom,
  body.operations-orders-page #requested-list .co-bottom,
  body[data-orders-view="maintenance"] #requested-list .co-bottom,
  body.page-maintenance-orders #requested-list .co-bottom,
  body.page-orders-maintenance #requested-list .co-bottom,
  body.order-modal-fit-screen #sv-list .co-bottom{ gap: 7px; }

  body.order-modal-fit-screen #orders-list .co-est-label,
  body.operations-orders-page #requested-list .co-est-label,
  body[data-orders-view="maintenance"] #requested-list .co-est-label,
  body.page-maintenance-orders #requested-list .co-est-label,
  body.page-orders-maintenance #requested-list .co-est-label,
  body.order-modal-fit-screen #sv-list .co-est-label{ font-size: 13px; }

  body.order-modal-fit-screen #orders-list .co-est-value,
  body.operations-orders-page #requested-list .co-est-value,
  body[data-orders-view="maintenance"] #requested-list .co-est-value,
  body.page-maintenance-orders #requested-list .co-est-value,
  body.page-orders-maintenance #requested-list .co-est-value,
  body.order-modal-fit-screen #sv-list .co-est-value{ font-size: 21px; margin-top: 3px; letter-spacing: -0.03em; }

  body.order-modal-fit-screen #orders-list .co-actions,
  body.operations-orders-page #requested-list .co-actions,
  body[data-orders-view="maintenance"] #requested-list .co-actions,
  body.page-maintenance-orders #requested-list .co-actions,
  body.page-orders-maintenance #requested-list .co-actions,
  body.order-modal-fit-screen #sv-list .co-actions{ gap: 6px; }

  body.order-modal-fit-screen #orders-list .co-right-ico,
  body.operations-orders-page #requested-list .co-right-ico,
  body[data-orders-view="maintenance"] #requested-list .co-right-ico,
  body.page-maintenance-orders #requested-list .co-right-ico,
  body.page-orders-maintenance #requested-list .co-right-ico,
  body.order-modal-fit-screen #sv-list .co-right-ico{ width: 40px; height: 40px; }

  body.order-modal-fit-screen #orders-list .co-right-ico svg,
  body.operations-orders-page #requested-list .co-right-ico svg,
  body[data-orders-view="maintenance"] #requested-list .co-right-ico svg,
  body.page-maintenance-orders #requested-list .co-right-ico svg,
  body.page-orders-maintenance #requested-list .co-right-ico svg,
  body.order-modal-fit-screen #sv-list .co-right-ico svg{ width: 17px; height: 17px; }

  body.order-modal-fit-screen #orders-list .co-status-btn,
  body.operations-orders-page #requested-list .co-status-btn,
  body[data-orders-view="maintenance"] #requested-list .co-status-btn,
  body.page-maintenance-orders #requested-list .co-status-btn,
  body.page-orders-maintenance #requested-list .co-status-btn,
  body.order-modal-fit-screen #sv-list .co-status-btn{ padding: 9px 12px; font-size: 11.2px; letter-spacing: 0; }
}

/* =================================
   Operations Orders export options modal
   ================================= */
.ops-export-modal.hidden { display: none !important; }

.ops-export-modal {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.ops-export-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
}

.ops-export-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  animation: opsExportModalIn 160ms ease-out both;
}

@keyframes opsExportModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ops-export-modal__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1.25rem 1.25rem 0.95rem;
}

.ops-export-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.ops-export-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.ops-export-modal__hint {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ops-export-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.ops-export-modal__body {
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 0 1.25rem 1.15rem;
}

.ops-export-field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.ops-export-field__label {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-export-filetype,
.ops-export-multiselect { position: relative; }

.ops-export-picker-button,
.ops-export-multiselect__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  padding: 0.82rem 0.95rem;
  outline: none;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.ops-export-picker-button:hover,
.ops-export-multiselect__button:hover,
.ops-export-picker-button.is-open,
.ops-export-multiselect__button.is-open {
  border-color: rgba(249, 115, 22, 0.36);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ops-export-picker-button span,
.ops-export-multiselect__button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-export-picker-button svg,
.ops-export-multiselect__button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform .16s ease;
}

.ops-export-picker-button.is-open svg,
.ops-export-multiselect__button.is-open svg { transform: rotate(180deg); }

.ops-export-floating-panel {
  position: fixed !important;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 6500;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: opsExportFloatingPanelIn 140ms ease-out both;
}

.ops-export-floating-panel[hidden] { display: none !important; }

@keyframes opsExportFloatingPanelIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ops-export-filetype__panel { display: grid; gap: 0.45rem; }

.ops-export-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.ops-export-option svg {
  width: 17px;
  height: 17px;
  color: #f97316;
  opacity: 0;
}

.ops-export-option:hover,
.ops-export-option.is-selected {
  border-color: rgba(251, 146, 60, 0.34);
  background: #fff7ed;
  color: #9a3412;
}

.ops-export-option.is-selected svg { opacity: 1; }

.ops-export-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.ops-export-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.ops-export-check input {
  width: 18px;
  height: 18px;
  accent-color: #f97316;
}

.ops-export-check:hover {
  border-color: rgba(251, 146, 60, 0.24);
  background: #fffaf5;
}

.ops-export-check:has(input:checked) {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.ops-export-modal__error {
  display: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 800;
}

.ops-export-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.66);
}

.ops-export-modal__footer .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
}

.ops-export-confirm {
  border: 1px solid #050b18 !important;
  background: #050b18 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}



@media (max-width: 520px) {
  .ops-export-modal {
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .ops-export-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 24px;
  }

  .ops-export-modal__header { padding: 1rem 1rem 0.8rem; }
  .ops-export-modal__body {
    max-height: calc(100vh - 210px);
    padding: 0 1rem 1rem;
  }

  .ops-export-modal__footer { padding: 0.95rem 1rem 1rem; }
  .ops-export-modal__footer .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .ops-export-picker-button,
  .ops-export-multiselect__button {
    min-height: 56px;
    border-radius: 21px;
    font-size: 1rem;
  }
}

/* Orders Review: component status pill and rejected reason viewer */
.rejected-reason-trigger.co-item-status,
.sv-rejected-reason-trigger.co-item-status,
.rejected-reason-trigger.co-status-btn{
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
}

.rejected-reason-trigger.co-item-status:hover,
.sv-rejected-reason-trigger.co-item-status:hover,
.rejected-reason-trigger.co-status-btn:hover{
  filter: brightness(.98);
  transform: translateY(-1px);
}

.rejected-reason-view-text{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, .34);
  background-color: #130304;
  background-image:
    radial-gradient(circle at 11% 22%, transparent 0 8px, rgba(248, 113, 113, 0.22) 8.8px 10.8px, transparent 11.6px),
    radial-gradient(circle at 29% 66%, transparent 0 6px, rgba(252, 165, 165, 0.18) 6.8px 8.4px, transparent 9.2px),
    radial-gradient(circle at 58% 26%, transparent 0 7px, rgba(248, 113, 113, 0.16) 7.8px 9.6px, transparent 10.2px),
    radial-gradient(circle at 84% 30%, transparent 0 9px, rgba(239, 68, 68, 0.2) 9.8px 11.8px, transparent 12.8px),
    radial-gradient(circle at 74% 74%, transparent 0 7px, rgba(252, 165, 165, 0.18) 7.8px 9.6px, transparent 10.4px),
    radial-gradient(circle at 94% 72%, transparent 0 11px, rgba(248, 113, 113, 0.16) 11.8px 13.8px, transparent 14.6px),
    linear-gradient(180deg, #1F0508 0%, #050000 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  isolation: isolate;
}

.rejected-reason-view-text::before,
.rejected-reason-view-text::after{
  position: absolute;
  z-index: 0;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.rejected-reason-view-text::before{
  content: "!   ×   !";
  top: 10px;
  left: 16px;
  font-size: 30px;
  letter-spacing: 32px;
  color: rgba(248, 113, 113, 0.22);
  transform: rotate(-8deg);
}

.rejected-reason-view-text::after{
  content: "×   !   ×";
  right: 14px;
  bottom: 8px;
  font-size: 24px;
  letter-spacing: 20px;
  color: rgba(239, 68, 68, 0.22);
  transform: rotate(7deg);
}


/* Shared combined status for orders that contain both approved and rejected components in All tabs */
.co-status-btn.sv-mixed-approval-pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  padding: 0 !important;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid #D1D5DB;
  background: linear-gradient(105deg, #D1FAE5 0 49.5%, #FEE2E2 50% 100%);
  color: inherit;
  isolation: isolate;
}
.co-status-btn.sv-mixed-approval-pill::after{
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 50%;
  width: 2px;
  background: rgba(17, 24, 39, .16);
  transform: translateX(-50%) rotate(15deg);
  transform-origin: center;
  z-index: 1;
  pointer-events: none;
}
.sv-mixed-approval-pill__part{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  white-space: nowrap;
}
.sv-mixed-approval-pill__part--approved{
  color: #065F46;
  padding-right: 11px;
}
.sv-mixed-approval-pill__part--rejected{
  color: #B91C1C;
  padding-left: 11px;
}

@media (max-width: 520px){
  .sv-mixed-approval-pill__part{
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sv-mixed-approval-pill__part--approved{ padding-right: 10px; }
  .sv-mixed-approval-pill__part--rejected{ padding-left: 10px; }
}

/* =================================
   Maintenance log per-component cards
   ================================= */
#reqMaintenanceLogModal.co-submodal-overlay{
  z-index: 1700;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: auto;
  box-sizing: border-box;
}

#reqMaintenanceLogModal .req-maintenance-log-dialog{
  width: min(760px, 94vw);
  max-height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#reqMaintenanceLogModal .req-maintenance-log-body{
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

#reqMaintenanceLogModal .co-submodal-actions{
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  pointer-events: auto;
}

#reqMaintenanceLogModal #reqMaintenanceLogConfirm{
  pointer-events: auto;
  touch-action: manipulation;
}

.req-maintenance-log-items{
  display: grid;
  gap: 14px;
}

.req-maintenance-log-card{
  border: 1px solid rgba(229,231,235,.96);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
  padding: 16px;
}

.req-maintenance-log-card__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.req-maintenance-log-card__label{
  color: #9CA3AF;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.req-maintenance-log-card__title{
  margin-top: 3px;
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 1000;
}

.req-maintenance-log-card__issue{
  margin-top: 8px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.req-maintenance-log-card__issue span{
  color: #111827;
  font-weight: 950;
}

.req-maintenance-log-card__fields{
  gap: 12px;
}







@media (max-width: 768px){
  #reqMaintenanceLogModal.co-submodal-overlay{
    --req-maintenance-log-top-gap: calc(env(safe-area-inset-top, 0px) + 10px);
    --req-maintenance-log-dock-gap: calc(128px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    justify-content: center;
    padding: var(--req-maintenance-log-top-gap) 12px var(--req-maintenance-log-dock-gap);
    overflow: hidden;
  }

  #reqMaintenanceLogModal .req-maintenance-log-dialog{
    width: min(100%, 640px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--req-maintenance-log-top-gap) - var(--req-maintenance-log-dock-gap));
    border-radius: 22px;
    padding: 16px 14px 14px;
    margin: 0;
  }

  #reqMaintenanceLogModal .req-maintenance-log-body{
    padding-right: 2px;
    padding-bottom: 8px;
  }

  .req-maintenance-log-card{
    padding: 14px;
    border-radius: 20px;
  }

  .req-maintenance-log-card__title{
    font-size: 16px;
  }
}

/* =================================
   Request technical visit — per-component issue cards
   ================================= */
















@media (max-width: 768px){
  
  
}

/* Maintenance spare-part rows with quantities */
.req-maintenance-log-card__spares{
  grid-column: 1 / -1;
}

.req-maintenance-spare-head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.req-maintenance-spare-add{
  border: 1px solid rgba(249,115,22,.22);
  border-radius: 999px;
  background: #FFF7ED;
  color: #C2410C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(249,115,22,.10);
}

.req-maintenance-spare-add svg{
  width: 15px;
  height: 15px;
}

.req-maintenance-spare-add--full{
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: 16px;
  font-size: 15px;
}

.req-maintenance-spare-add--full svg{
  width: 17px;
  height: 17px;
  color: currentColor;
  stroke: currentColor;
  stroke-width: 2.6;
}

.req-maintenance-spare-list{
  display: grid;
  gap: 10px;
}

.req-maintenance-spare-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 42px;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(229,231,235,.92);
  border-radius: 18px;
  background: #FFFFFF;
}

.req-maintenance-spare-row__qty .co-submodal-input{
  text-align: center;
  font-weight: 950;
}

.req-maintenance-spare-row__remove{
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220,38,38,.18);
  border-radius: 14px;
  background: #FEF2F2;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: end;
}

.req-maintenance-spare-row__remove:disabled{
  opacity: .64;
  cursor: not-allowed;
}

.req-maintenance-spare-row__remove svg,
.req-maintenance-spare-row__remove span{
  width: 17px;
  height: 17px;
  color: #DC2626;
  stroke: currentColor;
  stroke-width: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 640px){
  .req-maintenance-spare-row{
    grid-template-columns: minmax(0, 1fr) 90px 38px;
    gap: 8px;
    padding: 8px;
    align-items: end;
  }

  .req-maintenance-spare-row__remove{
    width: 38px;
    height: 38px;
  }

  .req-maintenance-spare-add--full{
    min-height: 48px;
    border-radius: 18px;
  }
}

@media (max-width: 420px){
  .req-maintenance-spare-row{
    grid-template-columns: minmax(0, 1fr) 76px 36px;
    gap: 7px;
    padding: 8px;
  }

  .req-maintenance-spare-row__remove{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .req-maintenance-spare-row__qty .co-submodal-input{
    padding-left: 6px;
    padding-right: 6px;
  }
}





.req-maintenance-log-card .is-field-invalid,
.req-maintenance-log-card .is-field-invalid + .co-modern-select__trigger{
  border-color: rgba(220,38,38,.72) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.10) !important;
}

.req-maintenance-spare-row__remove{
  color: #DC2626 !important;
}

.req-maintenance-spare-row__remove span{
  color: #DC2626 !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* ===== Stocktaking modern export modal - shared with B2B ===== */
body.stocktaking-page.modal-open {
  overflow: hidden;
}

body.stocktaking-page .b2b-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.72rem 1.05rem;
  border: 1px solid #050b18 !important;
  border-radius: 16px;
  background: #050b18 !important;
  color: #ffffff !important;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease;
}

body.stocktaking-page .b2b-download-primary svg,
body.stocktaking-page .b2b-download-primary i {
  width: 18px;
  height: 18px;
  color: currentColor;
}

body.stocktaking-page .b2b-download-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0b1220 !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

body.stocktaking-page .b2b-download-primary:disabled {
  cursor: wait;
  opacity: .72;
}

body.stocktaking-page .b2b-export-modal.hidden {
  display: none !important;
}

body.stocktaking-page .b2b-export-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

body.stocktaking-page .b2b-export-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.stocktaking-page .b2b-export-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  animation: stockExportModalIn 160ms ease-out both;
}

@keyframes stockExportModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.stocktaking-page .b2b-export-modal__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1.25rem 1.25rem 0.95rem;
}

body.stocktaking-page .b2b-export-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

body.stocktaking-page .b2b-export-modal__icon svg,
body.stocktaking-page .b2b-export-modal__icon i {
  width: 20px;
  height: 20px;
}

body.stocktaking-page .b2b-export-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

body.stocktaking-page .b2b-export-modal__hint {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.stocktaking-page .b2b-export-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.stocktaking-page .b2b-export-modal__close:hover {
  background: #fff7ed;
  color: #c2410c;
}

body.stocktaking-page .b2b-export-modal__body {
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 0 1.25rem 1.15rem;
}

body.stocktaking-page .b2b-export-field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

body.stocktaking-page .b2b-export-field__label {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.stocktaking-page .b2b-export-filetype,
body.stocktaking-page .b2b-export-multiselect {
  position: relative;
}

body.stocktaking-page .b2b-export-input,
body.stocktaking-page .b2b-export-picker-button,
body.stocktaking-page .b2b-export-multiselect__button {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  padding: 0.82rem 0.95rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 26px rgba(15, 23, 42, 0.05);
}

body.stocktaking-page .b2b-export-picker-button,
body.stocktaking-page .b2b-export-multiselect__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

body.stocktaking-page .b2b-export-picker-button:hover,
body.stocktaking-page .b2b-export-multiselect__button:hover,
body.stocktaking-page .b2b-export-picker-button.is-open,
body.stocktaking-page .b2b-export-multiselect__button.is-open {
  border-color: rgba(249, 115, 22, 0.36);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

body.stocktaking-page .b2b-export-picker-button span,
body.stocktaking-page .b2b-export-multiselect__button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.stocktaking-page .b2b-export-picker-button svg,
body.stocktaking-page .b2b-export-multiselect__button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform .16s ease;
}

body.stocktaking-page .b2b-export-picker-button.is-open svg,
body.stocktaking-page .b2b-export-multiselect__button.is-open svg {
  transform: rotate(180deg);
}

body.stocktaking-page .b2b-export-floating-panel {
  position: fixed !important;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 6500;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: stockExportFloatingPanelIn 140ms ease-out both;
}

body.stocktaking-page .b2b-export-floating-panel[hidden] {
  display: none !important;
}

@keyframes stockExportFloatingPanelIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.stocktaking-page .b2b-export-filetype__panel {
  display: grid;
  gap: 0.45rem;
}

body.stocktaking-page .b2b-export-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

body.stocktaking-page .b2b-export-option svg {
  width: 17px;
  height: 17px;
  color: #f97316;
  opacity: 0;
}

body.stocktaking-page .b2b-export-option:hover,
body.stocktaking-page .b2b-export-option.is-selected {
  border-color: rgba(251, 146, 60, 0.34);
  background: #fff7ed;
  color: #9a3412;
}

body.stocktaking-page .b2b-export-option.is-selected svg {
  opacity: 1;
}

body.stocktaking-page .b2b-export-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body.stocktaking-page .b2b-export-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

body.stocktaking-page .b2b-export-check input {
  width: 18px;
  height: 18px;
  accent-color: #f97316;
}

body.stocktaking-page .b2b-export-check:has(input:checked) {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

body.stocktaking-page .b2b-export-multiselect__panel.b2b-export-floating-panel .b2b-export-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

body.stocktaking-page .b2b-export-multiselect__panel.b2b-export-floating-panel .b2b-export-check {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

body.stocktaking-page .b2b-export-multiselect__panel.b2b-export-floating-panel .b2b-export-check:hover {
  border-color: rgba(251, 146, 60, 0.24);
  background: #fffaf5;
}

body.stocktaking-page .b2b-export-modal__error {
  display: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 800;
}

body.stocktaking-page .b2b-export-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.66);
}

body.stocktaking-page .b2b-export-modal__footer .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
}

body.stocktaking-page .b2b-export-confirm {
  border: 1px solid #050b18 !important;
  background: #050b18 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

body.stocktaking-page .b2b-export-confirm.is-busy {
  cursor: progress;
  opacity: 0.72;
}

@media (max-width: 520px) {
  body.stocktaking-page .b2b-export-modal {
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  body.stocktaking-page .b2b-export-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 24px;
  }

  body.stocktaking-page .b2b-export-modal__header {
    padding: 1rem 1rem 0.8rem;
  }

  body.stocktaking-page .b2b-export-modal__body {
    max-height: calc(100vh - 210px);
    padding: 0 1rem 1rem;
  }

  body.stocktaking-page .b2b-export-columns {
    grid-template-columns: 1fr;
  }

  body.stocktaking-page .b2b-export-modal__footer {
    padding: 0.95rem 1rem 1rem;
  }

  body.stocktaking-page .b2b-export-modal__footer .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  body.stocktaking-page .b2b-export-input,
  body.stocktaking-page .b2b-export-picker-button,
  body.stocktaking-page .b2b-export-multiselect__button {
    min-height: 56px;
    border-radius: 21px;
    font-size: 1rem;
  }

  body.stocktaking-page .b2b-export-floating-panel {
    border-radius: 22px;
    padding: 0.55rem;
  }
}



/* 2026-06-11: remove cached white backing cards on folder/order pages and unify loading cards */
body.current-orders-page #current-orders,
body.operations-orders-page main > section.card:has(#requested-list),
body[data-orders-view="maintenance"] main > section.card:has(#requested-list),
body.orders-review-page main > section.card:has(#sv-list),
body.order-modal-fit-screen main > section.card:has(#sv-list){
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
body.current-orders-page #orders-list,
body.operations-orders-page #requested-list,
body[data-orders-view="maintenance"] #requested-list,
body.orders-review-page #sv-list{
  background:transparent !important;
}
.modern-loading{
  width:min(100%, 620px);
  min-height:74px;
  border-radius:20px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}



/* Events sidebar child-page flyout ------------------------------------------------ */

.events-subpage-flyout.is-open{
  opacity:1;
  transform:translateX(0) scale(1);
  pointer-events:auto;
}







.events-subpage-flyout__link.is-active{background:linear-gradient(135deg,#171727,#393584);color:#fff;box-shadow:0 7px 16px rgba(44,42,118,.18);}
@media(max-width:768px){
  
}

/* Task Management sidebar child-page flyout ----------------------------------- */

.task-management-subpage-flyout.is-open{opacity:1;transform:translateX(0) scale(1);pointer-events:auto;}





.task-management-subpage-flyout__link.is-active{background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff;box-shadow:0 7px 16px rgba(15,118,110,.18);}
.task-management-subpage-flyout__link.is-active svg{color:currentColor;}
@media(max-width:768px){}


/* B2C sidebar child-page flyout ------------------------------------------------ */

.b2c-subpage-flyout.is-open{opacity:1;transform:translateX(0) scale(1);pointer-events:auto;}





.b2c-subpage-flyout__link.is-active{background:linear-gradient(135deg,#7c2d12,#ea580c);color:#fff;box-shadow:0 7px 16px rgba(194,65,12,.20);}
.b2c-subpage-flyout__link.is-active svg{color:currentColor;}
@media(max-width:768px){}


/* Compact Created By profile card used by Operations Orders, Orders Review, and Task Management. */
.creator-profile-popover{width:min(315px,calc(100vw - 24px));}
.creator-profile-window{padding:13px;border-radius:21px;}
.creator-profile-window::before{top:-105px;right:-90px;width:165px;height:165px;}
.creator-profile-close{top:9px;right:9px;width:30px;height:30px;border-radius:10px;}
.creator-profile-close-x{font-size:20px;}
.creator-profile-head{gap:9px;padding-right:32px;}
.creator-profile-avatar{width:52px;height:52px;flex-basis:52px;border-radius:17px;font-size:16px;box-shadow:0 10px 20px rgba(249,115,22,.18);}
.creator-profile-kicker{font-size:9px;margin-bottom:4px;}
.creator-profile-name{font-size:16px;}
.creator-profile-subtitle{margin-top:3px;font-size:10px;line-height:1.35;}
.creator-profile-section-title{margin-top:11px;margin-bottom:6px;font-size:9px;}
.creator-profile-section-title--files{margin-top:10px;}
.creator-profile-fields{gap:6px;}
.creator-profile-field{padding:7px 8px;border-radius:12px;}
.creator-profile-field span{font-size:8px;margin-bottom:3px;}
.creator-profile-field strong{font-size:10px;line-height:1.22;}
.creator-profile-files{gap:6px;max-height:118px;}
.creator-profile-file{min-height:44px;gap:7px;padding:7px;border-radius:12px;}
.creator-profile-file-icon,.creator-profile-file-open{width:27px;height:27px;border-radius:9px;}
.creator-profile-file-name{font-size:10px;}

.creator-profile-empty,.creator-profile-state{min-height:50px;border-radius:13px;font-size:10px;}
@media(max-width:520px){.creator-profile-popover{width:min(300px,calc(100vw - 20px));}.creator-profile-fields{grid-template-columns:1fr 1fr;}}
