:root{--bg:#f6f8fb;--panel:#fff;--text:#172033;--muted:#6b7280;--line:#e5e7eb;--red:#d71920;--red2:#b91016;--nav:#111827;--green:#15803d;--amber:#b45309}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;background:var(--nav);color:#fff;padding:18px 14px;position:fixed;inset:0 auto 0 0;overflow:auto;z-index:50}.brand{font-size:24px;font-weight:800;padding:8px 10px 22px}.brand span{color:var(--red)}.brand small{font-size:11px;color:#9ca3af;margin-left:6px}.sidebar nav>a,.sidebar details a,.sidebar summary{display:block;padding:10px 12px;border-radius:9px;color:#d1d5db;font-size:14px;cursor:pointer}.sidebar nav>a:hover,.sidebar details a:hover,.sidebar summary:hover{background:#1f2937;color:#fff}.sidebar details{margin:2px 0}.sidebar details a{padding-left:28px}.sidebar .logout{margin-top:14px;color:#fecaca}.main{margin-left:248px;min-width:0;width:calc(100% - 248px)}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:20}.topbar .user{margin-left:auto;color:var(--muted);font-size:14px}.menu-btn{display:none;border:0;background:#f3f4f6;padding:8px 10px;border-radius:8px}.content{padding:24px}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 2px 10px rgba(15,23,42,.03)}.kpi .label{font-size:13px;color:var(--muted)}.kpi .value{font-size:28px;font-weight:800;margin-top:7px}.kpi .hint{font-size:12px;color:var(--muted);margin-top:4px}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}.btn{border:0;border-radius:9px;padding:10px 14px;font-weight:700;cursor:pointer;display:inline-block}.btn-primary{background:var(--red);color:#fff}.btn-primary:hover{background:var(--red2)}.btn-secondary{background:#eef2f7;color:#111827}.btn-danger{background:#fee2e2;color:#991b1b}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px}th{background:#f9fafb;color:#4b5563;font-weight:700}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field label{display:block;font-size:12px;font-weight:700;color:#4b5563;margin-bottom:6px}.input,select,textarea{width:100%;border:1px solid #d1d5db;background:#fff;border-radius:9px;padding:10px 11px;font:inherit}.input:focus,select:focus,textarea:focus{outline:2px solid rgba(215,25,32,.12);border-color:var(--red)}.span-2{grid-column:span 2}.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px}.alert.success{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef2f7;font-size:12px}.badge.green{background:#dcfce7;color:#166534}.badge.amber{background:#fef3c7;color:#92400e}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#111827,#2b1113)}.login-card{width:min(430px,100%);background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.28)}.login-logo{font-size:30px;font-weight:900;margin-bottom:6px}.login-logo span{color:var(--red)}.muted{color:var(--muted)}.section-title{font-size:18px;font-weight:800;margin:0 0 14px}.empty{padding:30px;text-align:center;color:var(--muted)}.summary-row{display:flex;justify-content:flex-end;gap:32px;margin-top:16px;flex-wrap:wrap}.summary-item strong{display:block;font-size:18px}.bar{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;background:var(--red)}
@media(max-width:1050px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin-left:0;width:100%}.menu-btn{display:block}.content{padding:14px}.topbar{padding:0 14px}.grid-4,.grid-2,.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.kpi .value{font-size:23px}}

.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:13px}.auth-links a{color:#1d4ed8;font-weight:700}.auth-links a:hover{text-decoration:underline}@media(max-width:480px){.auth-links{flex-direction:column;align-items:center}}

.legacy-login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 78% 30%,#294fd9 0,#183d9e 34%,#0c1f4d 70%,#081531 100%)}
.legacy-login-shell{width:min(960px,94vw);display:grid;grid-template-columns:1.35fr 1fr;gap:18px;align-items:center}
.legacy-brand-panel{background:rgba(26,57,134,.92);border-radius:28px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.legacy-brand-head{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:34px}
.legacy-brand-logo{width:88px;height:88px;object-fit:contain}
.legacy-brand-title{font-size:52px;font-weight:900;letter-spacing:.5px;color:#fff;line-height:1}
.legacy-brand-subtitle{font-size:20px;color:#e7edff;margin-top:8px}
.legacy-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.legacy-feature-card{background:rgba(255,255,255,.07);border-radius:18px;padding:18px;color:#fff;min-height:112px}
.legacy-feature-card strong{display:block;font-size:17px;margin-bottom:8px}
.legacy-feature-card span{display:block;color:#e7edff;line-height:1.45}
.legacy-login-card{background:#fff;border-radius:28px;padding:30px 28px;box-shadow:0 30px 70px rgba(0,0,0,.28)}
.legacy-card-head{display:flex;align-items:center;gap:14px;margin-bottom:26px}
.legacy-card-logo{width:62px;height:62px;object-fit:contain}
.legacy-card-title{font-size:27px;font-weight:900;color:#182033}
.legacy-card-subtitle{color:#7b8495;margin-top:3px}
.legacy-login-card .field{margin-bottom:17px}
.legacy-login-card .field label{font-size:14px;color:#20283b}
.legacy-input{height:48px;border-radius:14px;border-color:#d7dce6}
.legacy-login-button{width:100%;border:0;border-radius:14px;padding:14px 18px;background:linear-gradient(90deg,#2748d5,#315fe6);color:#fff;font-size:16px;font-weight:800;cursor:pointer}
.legacy-login-button:hover{filter:brightness(.97)}
.legacy-auth-links{display:flex;justify-content:space-between;gap:16px;margin-top:16px}
.legacy-auth-links a{font-weight:700;color:#244bc9}
.legacy-auth-links a:hover{text-decoration:underline}
@media(max-width:900px){
  .legacy-login-shell{grid-template-columns:1fr}
  .legacy-brand-panel{display:none}
  .legacy-login-card{width:min(460px,100%);margin:auto}
}
@media(max-width:520px){
  .legacy-login-wrap{padding:14px}
  .legacy-login-card{border-radius:20px;padding:22px}
  .legacy-card-title{font-size:23px}
  .legacy-auth-links{flex-direction:column;align-items:center}
}

/* Yenisoft original login screen */
.ys-login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at 72% 24%, rgba(52,87,229,.95) 0%, rgba(31,68,182,.96) 34%, rgba(13,35,88,1) 72%, #07142f 100%);
}
.ys-login-frame{
  width:min(960px,94vw);
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:18px;
  align-items:center;
}
.ys-login-left{
  background:rgba(29,58,133,.96);
  border-radius:28px;
  padding:34px 34px 32px;
  box-shadow:0 28px 70px rgba(0,0,0,.20);
}
.ys-login-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-bottom:34px;
}
.ys-login-brand img{
  display:block;
  width:78px !important;
  height:78px !important;
  max-width:78px !important;
  object-fit:contain;
}
.ys-login-brand-name{
  color:#fff;
  font-size:52px;
  line-height:1;
  font-weight:900;
  letter-spacing:.2px;
}
.ys-login-brand-sub{
  color:#eef3ff;
  font-size:20px;
  margin-top:8px;
}
.ys-login-features{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.ys-login-feature{
  min-height:102px;
  background:rgba(255,255,255,.07);
  border-radius:18px;
  padding:18px;
  color:#fff;
}
.ys-login-feature strong{
  display:block;
  font-size:17px;
  margin-bottom:7px;
}
.ys-login-feature span{
  display:block;
  color:#edf2ff;
  line-height:1.45;
}
.ys-login-card{
  background:#fff;
  border-radius:28px;
  padding:30px 28px;
  box-shadow:0 28px 70px rgba(0,0,0,.26);
}
.ys-login-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:26px;
}
.ys-login-card-head img{
  display:block;
  width:58px !important;
  height:58px !important;
  max-width:58px !important;
  object-fit:contain;
}
.ys-login-card-title{
  font-size:27px;
  line-height:1.1;
  color:#192135;
  font-weight:900;
}
.ys-login-card-sub{
  color:#737d8f;
  margin-top:4px;
}
.ys-login-field{
  margin-bottom:17px;
}
.ys-login-field label{
  font-size:14px;
  color:#232b3e;
  font-weight:700;
}
.ys-login-input{
  height:48px;
  border-radius:14px;
  border:1px solid #d9dee8;
  background:#fff;
}
.ys-login-submit{
  width:100%;
  border:0;
  border-radius:14px;
  padding:14px 18px;
  background:linear-gradient(90deg,#294bd5,#315fe5);
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}
.ys-login-submit:hover{filter:brightness(.97)}
.ys-login-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  padding:0 2px;
}
.ys-login-links a{
  color:#294bcf;
  font-weight:700;
  font-size:13px;
}
.ys-login-links a:hover{text-decoration:underline}
@media(max-width:900px){
  .ys-login-frame{grid-template-columns:1fr}
  .ys-login-left{display:none}
  .ys-login-card{width:min(460px,100%);margin:0 auto}
}
@media(max-width:520px){
  .ys-login-page{padding:14px}
  .ys-login-card{padding:22px;border-radius:20px}
  .ys-login-card-title{font-size:23px}
  .ys-login-links{flex-direction:column;align-items:center}
}

.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.dashboard-head h2{margin:0;font-size:28px}.dashboard-head p{margin:6px 0 0;color:var(--muted)}.dashboard-date{font-size:13px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:10px}
.dashboard-kpis{margin-bottom:18px}.pro-kpi{position:relative;overflow:hidden}.pro-kpi:after{content:"";position:absolute;right:-22px;top:-26px;width:90px;height:90px;border-radius:50%;background:rgba(215,25,32,.06)}.kpi-top{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.kpi-dot{width:9px;height:9px;border-radius:50%;background:var(--red)}
.dashboard-main-grid{grid-template-columns:1.6fr .8fr;margin-bottom:18px}.chart-card{min-height:340px}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.chart-head .section-title{margin:0}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-sale{background:#2563eb}.legend-purchase{background:#0f766e}.legend-expense{background:#d97706}
.trend-chart{height:230px;display:grid;grid-template-columns:repeat(6,1fr);gap:18px;align-items:end;border-top:1px solid #eef1f5;padding:22px 8px 0}.trend-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.trend-bars{height:185px;width:100%;display:flex;justify-content:center;align-items:flex-end;gap:6px}.trend-bars span{width:16px;border-radius:7px 7px 2px 2px;min-height:4px;transition:.2s}.bar-sale{background:#2563eb}.bar-purchase{background:#0f766e}.bar-expense{background:#d97706}.trend-label{font-size:12px;color:var(--muted);margin-top:9px}
.finance-summary{min-height:340px}.finance-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #eef1f5}.finance-row span{color:var(--muted);font-size:13px}.finance-row strong{font-size:17px}.finance-progress{margin-top:18px}.progress-line{display:flex;justify-content:space-between;font-size:12px;margin:12px 0 6px}.progress-track{height:8px;background:#edf0f4;border-radius:999px;overflow:hidden}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#1d4ed8,#60a5fa);border-radius:999px}.progress-track:nth-of-type(2) span{background:linear-gradient(90deg,#d97706,#fbbf24)}
.mini-link{font-size:12px;font-weight:700;color:#1d4ed8}.clean-table{border:0;border-radius:0}.clean-table table{min-width:0}.stock-row{padding:12px 0;border-bottom:1px solid #eef1f5}.stock-row>div:first-child{display:flex;justify-content:space-between;gap:16px}.stock-row strong{font-size:13px}.stock-row span{font-size:12px;color:var(--muted)}.stock-meter{height:7px;background:#edf0f4;border-radius:999px;overflow:hidden;margin-top:9px}.stock-meter span{display:block;height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b);border-radius:999px}
.sidebar .brand{display:flex;align-items:center;gap:10px}.sidebar .brand img{width:34px;height:34px;object-fit:contain}.sidebar .brand-copy{display:flex;flex-direction:column;line-height:1}.sidebar .brand small{margin-left:0;margin-top:4px}
@media(max-width:1050px){.dashboard-main-grid{grid-template-columns:1fr}.chart-card,.finance-summary{min-height:auto}}
@media(max-width:760px){.dashboard-head{align-items:flex-start;flex-direction:column}.trend-chart{gap:8px}.trend-bars span{width:11px}}

/* Approved Yenisoft dashboard */
body{background:#f4f7fb}
.app-shell{background:#f4f7fb}
.sidebar{background:linear-gradient(180deg,#0d223b 0%,#0b1c31 100%);box-shadow:4px 0 18px rgba(15,35,59,.08)}
.sidebar .brand{padding:18px 18px 14px;align-items:center}
.sidebar .brand img{width:150px!important;height:auto!important;max-width:150px!important;border-radius:0}
.sidebar .brand-copy{display:none}
.sidebar nav{padding:8px 12px 24px}
.sidebar nav>a,.sidebar summary{display:flex;align-items:center;gap:10px;border-radius:9px;margin:3px 0;padding:10px 12px;color:#f8fbff;font-size:14px}
.sidebar nav>a:hover,.sidebar summary:hover,.sidebar nav>a.active{background:#1677ff;color:#fff}
.sidebar details>a{margin-left:14px;color:#bfcad8;font-size:13px}
.sidebar-divider{height:1px;background:rgba(255,255,255,.12);margin:14px 8px}
.sidebar-quick-title{font-size:13px;font-weight:700;color:#fff;padding:0 8px 8px}
.sidebar-quick{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:6px;margin:0 4px 10px}
.sidebar-quick a{display:block;color:#eaf2ff;padding:8px 10px;font-size:12px;border-radius:8px}
.sidebar-quick a:hover{background:rgba(255,255,255,.07)}
.sidebar .logout{margin-top:8px;color:#ffb7b7}

.topbar{height:64px;background:#fff;border-bottom:1px solid #e8edf4;padding:0 20px;display:flex;align-items:center;gap:16px}
.top-search{display:flex;align-items:center;gap:8px;background:#f4f7fb;border:1px solid #edf1f5;border-radius:22px;padding:0 16px;max-width:460px;flex:1;color:#64748b}
.top-search input{border:0!important;background:transparent!important;box-shadow:none!important;padding:11px 0!important;width:100%;font-size:13px}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:18px}
.notification{position:relative;font-size:20px;color:#42526b}.notification span{position:absolute;right:-8px;top:-9px;background:#ef4444;color:#fff;border-radius:50%;width:17px;height:17px;font-size:10px;display:flex;align-items:center;justify-content:center}
.user-chip{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;background:#3b5bdb;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center}.user-chip div{display:flex;flex-direction:column}.user-chip strong{font-size:13px;color:#14213d}.user-chip small{font-size:11px;color:#718096}

.content{padding:18px 20px 28px}
.approved-dashboard{max-width:1600px;margin:0 auto}
.dashboard-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.dashboard-title-row h1{margin:0;color:#10213b;font-size:26px}.dashboard-title-row p{margin:4px 0 0;color:#718096;font-size:13px}.date-range{background:#fff;border:1px solid #dfe6ef;border-radius:9px;padding:11px 14px;font-size:12px;color:#3c4c63;white-space:nowrap}

.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.dash-kpi{position:relative;background:#fff;border:1px solid #e5ebf2;border-radius:13px;padding:17px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;min-height:112px;box-shadow:0 4px 12px rgba(21,39,70,.03)}
.dash-kpi.blue{background:linear-gradient(135deg,#f9fcff,#edf6ff)}.dash-kpi.green{background:linear-gradient(135deg,#fbfffc,#effaf4)}.dash-kpi.orange{background:linear-gradient(135deg,#fffdf9,#fff7e8)}.dash-kpi.purple{background:linear-gradient(135deg,#fffbff,#f8f0ff)}
.kpi-icon{width:44px;height:44px;border-radius:10px;background:#e8f2ff;display:flex;align-items:center;justify-content:center;font-size:20px}.green .kpi-icon{background:#e7f8ef}.orange .kpi-icon{background:#fff0d3}.purple .kpi-icon{background:#f0e5ff}
.dash-kpi span{display:block;font-size:13px;color:#45556e;margin-bottom:5px}.dash-kpi strong{display:block;font-size:23px;color:#11213b;margin-bottom:5px}.dash-kpi small{display:block;font-size:11px;color:#7f8ca2}.spark{font-size:28px;align-self:end;color:#1677ff}.green .spark{color:#15b86a}.orange .spark{color:#f59e0b}.purple .spark{color:#9333ea}

.dashboard-chart-grid{display:grid;grid-template-columns:2fr 1.05fr;gap:14px;margin-bottom:14px}.dashboard-table-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-bottom:14px}.dashboard-bottom-grid{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:14px}
.dashboard-panel{background:#fff;border:1px solid #e5ebf2;border-radius:13px;box-shadow:0 4px 14px rgba(19,38,68,.035);padding:15px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.panel-head h3{margin:0;color:#14213d;font-size:16px}.panel-head p{margin:3px 0 0;color:#7d8898;font-size:11px}.panel-head a{font-size:11px;color:#1677ff;font-weight:700}
.chart-controls{display:flex;align-items:center;gap:8px;font-size:11px;color:#475569}.chart-controls button{border:1px solid #dce4ee;background:#fff;border-radius:8px;padding:8px 10px;font-size:11px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.blue-dot{background:#1677ff}.green-dot{background:#15b86a}

.line-chart-wrap{height:245px;position:relative}.line-chart-wrap svg{width:100%;height:210px;overflow:visible}.grid-lines line{stroke:#e8edf4;stroke-width:1}.line-sale,.line-purchase{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.line-sale{stroke:#1677ff}.line-purchase{stroke:#15b86a}.point-sale{fill:#1677ff}.point-purchase{fill:#15b86a}.month-axis{display:grid;grid-template-columns:repeat(12,1fr);gap:2px;text-align:center;color:#718096;font-size:9px;margin-top:-3px}

.expense-body{display:grid;grid-template-columns:155px 1fr;align-items:center;gap:16px;min-height:225px}.donut{width:150px;height:150px;border-radius:50%;display:grid;place-items:center}.donut>div{width:86px;height:86px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 1px #edf1f5}.donut strong{font-size:17px}.donut span{font-size:10px;color:#7d8898}.expense-legend{display:flex;flex-direction:column;gap:10px}.expense-legend>div{display:grid;grid-template-columns:10px 1fr auto auto;gap:8px;align-items:center;font-size:10px}.expense-legend i{width:9px;height:9px;border-radius:50%}.expense-legend span{color:#24344f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expense-legend b{color:#24344f}.expense-legend em{font-style:normal;color:#64748b}.empty-mini{font-size:12px;color:#94a3b8}

.dash-table{overflow:auto}.dash-table table{width:100%;border-collapse:collapse;min-width:520px}.dash-table th{background:#f5f8fc;color:#516075;font-size:10px;text-align:left;padding:8px}.dash-table td{padding:8px;border-bottom:1px solid #edf1f5;font-size:11px;color:#30415d}.status-pill,.soft-pill{display:inline-block;border-radius:999px;padding:4px 9px;background:#e8f7ef;color:#179258;font-size:10px}.soft-pill{background:#f0f3f7;color:#526074}.empty-cell{text-align:center;color:#94a3b8!important;padding:25px!important}

.compact-panel{min-height:145px}.stock-list{display:flex;flex-direction:column;gap:8px}.stock-list>div{display:grid;grid-template-columns:10px 1fr auto auto;gap:8px;align-items:center;font-size:10px}.stock-list i{width:8px;height:8px;border-radius:50%}.stock-list i.danger{background:#ff4057}.stock-list i.warn{background:#ffb000}.stock-list b{font-size:11px;color:#22314b}.stock-list span{color:#64748b}.stock-list em{font-style:normal;color:#f43f5e}
.current-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px}.current-summary>div{padding:7px 4px}.current-summary span,.current-summary small{display:block;color:#718096;font-size:10px}.current-summary strong{display:block;font-size:20px;margin:5px 0}.green-text{color:#10b981}.red-text{color:#ef4444}
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.qa{min-height:72px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:18px}.qa span{font-size:10px;color:#22314b}.qa.green{background:#e7f8ef}.qa.blue{background:#eaf3ff}.qa.purple{background:#f3e9ff}.qa.orange{background:#fff2dd}

@media(max-width:1200px){.dashboard-kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-chart-grid,.dashboard-table-grid,.dashboard-bottom-grid{grid-template-columns:1fr}}
@media(max-width:760px){.content{padding:12px}.top-search{display:none}.user-chip div{display:none}.dashboard-title-row{align-items:flex-start;flex-direction:column}.date-range{width:100%}.dashboard-kpi-grid{grid-template-columns:1fr}.expense-body{grid-template-columns:1fr;justify-items:center}.expense-legend{width:100%}.month-axis{font-size:8px}.sidebar .brand img{width:130px!important;max-width:130px!important}}

/* Admin brand refinement */
.sidebar .brand.brand-logo-only{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:14px 12px 10px;
}
.sidebar .brand.brand-logo-only img{
  width:142px!important;
  max-width:142px!important;
  height:auto!important;
  object-fit:contain;
}
.sidebar .brand-version{
  display:block!important;
  margin:0!important;
  color:#d7deea;
  font-size:11px;
  font-weight:600;
  line-height:1;
}

/* High-resolution Yenisoft logo */
.sidebar .brand.brand-logo-only img{
  width:150px!important;
  max-width:150px!important;
  height:auto!important;
  image-rendering:auto;
  object-fit:contain;
}
.ys-login-brand img{
  width:110px!important;
  height:auto!important;
  max-width:110px!important;
}
.ys-login-card-head img{
  width:86px!important;
  height:auto!important;
  max-width:86px!important;
}

/* Sidebar admin account block */
.sidebar-admin{
  margin:2px 12px 12px;
  padding:10px 11px;
  display:grid;
  grid-template-columns:36px 1fr 32px;
  align-items:center;
  gap:9px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
}
.sidebar-admin-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#245eea;
  color:#fff;
  font-size:13px;
  font-weight:800;
}
.sidebar-admin-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.sidebar-admin-copy strong{
  color:#fff;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sidebar-admin-copy small{
  color:#b8c4d6;
  font-size:10px;
}
.sidebar-admin-logout{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  color:#ffb2b2;
  background:rgba(239,68,68,.11);
  font-size:16px;
}
.sidebar-admin-logout:hover{
  color:#fff;
  background:rgba(239,68,68,.22);
}

/* Final professional login refinement */
.ys-login-brand-textonly{justify-content:flex-start!important;margin-bottom:18px!important}
.ys-login-brand-textonly .ys-login-brand-name{font-size:42px}
.ys-login-brand-textonly .ys-login-brand-sub{font-size:17px;color:#cfd9ff}
.ys-login-insights{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.ys-login-mini-chart{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px}
.ys-login-mini-head{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#fff;font-size:12px}
.ys-login-mini-head span{color:#cbd6ff;font-size:10px}
.ys-login-bars{height:62px;display:flex;align-items:flex-end;gap:7px;padding-top:12px}
.ys-login-bars i{display:block;flex:1;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#6ea8ff,#2f6ce5)}
.ys-login-wave{height:62px;display:flex;align-items:center;gap:6px;padding-top:10px}
.ys-login-wave b{display:block;flex:1;height:6px;border-radius:999px;background:#4fd1c5;transform-origin:left center}
.ys-login-wave b:nth-child(1){transform:rotate(11deg)}
.ys-login-wave b:nth-child(2){transform:rotate(-8deg)}
.ys-login-wave b:nth-child(3){transform:rotate(15deg)}
.ys-login-wave b:nth-child(4){transform:rotate(-4deg)}
.ys-login-wave b:nth-child(5){transform:rotate(8deg)}
.ys-login-wave b:nth-child(6){transform:rotate(-12deg)}
.ys-login-card-head{justify-content:flex-start}
.ys-login-card-head img{width:96px!important;max-width:96px!important;height:auto!important}
@media(max-width:900px){.ys-login-insights{display:none}}

/* Top-right user account menu */
.user-menu{position:relative}
.user-menu-toggle{border:0;background:transparent;cursor:pointer;padding:5px 7px;border-radius:10px}
.user-menu-toggle:hover,.user-menu.open .user-menu-toggle{background:#f1f5f9}
.user-menu-caret{font-size:14px;color:#64748b;margin-left:4px}
.user-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:245px;background:#fff;border:1px solid #e5eaf1;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.15);padding:8px;z-index:1000;display:none}
.user-menu.open .user-dropdown{display:block}
.user-dropdown-head{display:flex;align-items:center;gap:10px;padding:10px 9px 12px;border-bottom:1px solid #eef2f6;margin-bottom:6px}
.user-dropdown-head>div{min-width:0;display:flex;flex-direction:column}
.user-dropdown-head strong{font-size:12px;color:#17233d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-dropdown-head small{font-size:10px;color:#7b8798;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-dropdown a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;color:#334155;font-size:12px;text-decoration:none}
.user-dropdown a:hover{background:#f5f8fc;color:#1677ff}
.user-dropdown a.danger{color:#dc3545}
.user-dropdown a.danger:hover{background:#fff1f2;color:#c62828}
.user-dropdown-divider{height:1px;background:#eef2f6;margin:5px 3px}

/* User profile pages */
.profile-grid{display:grid;grid-template-columns:320px 1fr;gap:18px}
.profile-summary-card,.profile-form-card,.password-card{padding:22px}
.profile-summary-card{text-align:center}
.profile-avatar-large{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#246bfd;color:#fff;font-size:25px;font-weight:800}
.profile-summary-card h2{margin:0;color:#17233d;font-size:20px}
.profile-summary-card>p{margin:5px 0 18px;color:#64748b;font-size:12px}
.profile-meta{margin:0;text-align:left}
.profile-meta>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #edf1f5}
.profile-meta dt{font-size:11px;color:#7b8798}
.profile-meta dd{margin:0;font-size:11px;color:#27364f;font-weight:600;text-align:right}
.profile-form-card .field,.password-card .field{margin-bottom:15px}
.form-actions,.profile-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.password-card{max-width:620px}
@media(max-width:850px){.profile-grid{grid-template-columns:1fr}.user-dropdown{right:-5px}}

/* Final approved login glass design */
.ys-login-frame-final{
  width:min(930px,calc(100vw - 48px))!important;
  display:grid!important;
  grid-template-columns:1.45fr 1fr!important;
  gap:16px!important;
  align-items:stretch!important;
}
.ys-login-glass{
  min-height:505px!important;
  height:100%!important;
  box-sizing:border-box!important;
  border:1px solid rgba(156,211,255,.78)!important;
  background:linear-gradient(145deg,rgba(31,88,196,.50),rgba(12,48,128,.56))!important;
  box-shadow:0 24px 70px rgba(0,30,100,.28),inset 0 1px 0 rgba(255,255,255,.15)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  border-radius:22px!important;
}
.ys-login-left{padding:28px!important}
.ys-login-left-brand{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.ys-login-left-brand img{width:150px;height:auto;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.18))}
.ys-login-left-brand .ys-login-brand-name{font-size:32px!important;line-height:1.05;color:#fff;font-weight:800}
.ys-login-version{color:#d8e5ff;font-size:14px;margin-top:6px}
.ys-login-insights{gap:12px!important}
.ys-login-mini-chart{background:rgba(255,255,255,.075)!important;border:1px solid rgba(255,255,255,.14)!important}
.ys-login-kpi{color:#fff;font-weight:800;font-size:17px;margin-top:8px}
.ys-login-kpi small{display:block;color:#35e59c;font-size:11px;margin-top:3px}
.ys-login-features{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
.ys-login-feature{display:flex!important;gap:11px!important;align-items:flex-start!important;background:rgba(255,255,255,.075)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:14px!important;padding:13px!important}
.ys-login-feature>div{display:flex;flex-direction:column;gap:5px}
.ys-feature-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#2c8cff,#5062ff);color:#fff;font-size:18px}
.ys-login-card-final{padding:28px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;color:#fff!important}
.ys-login-card-head-final{justify-content:flex-start!important;gap:15px!important;margin-bottom:25px!important}
.ys-login-card-head-final img{width:126px!important;max-width:126px!important;height:auto!important}
.ys-login-card-title{color:#fff!important;font-size:26px!important}
.ys-login-card-sub{color:#d7e4ff!important;font-size:13px!important}
.ys-login-card-final label{color:#fff!important;font-weight:700!important}
.ys-login-input-wrap{display:flex;align-items:center;border:1px solid rgba(198,223,255,.55);border-radius:12px;background:rgba(21,68,161,.36);padding-left:14px}
.ys-login-input-wrap>span{color:#e6efff;font-size:17px}
.ys-login-card-final .ys-login-input{border:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;height:52px!important}
.ys-login-card-final .ys-login-input::placeholder{color:#aac3ec!important}
.ys-login-submit{height:55px!important;border-radius:12px!important;background:linear-gradient(90deg,#18d0ff,#1f5dff)!important;box-shadow:0 10px 28px rgba(13,134,255,.32)!important;font-size:15px!important}
.ys-login-submit span{margin-left:8px;font-size:19px}
.ys-login-links a{color:#6fe9ff!important}
.subscription-card{max-width:720px;padding:26px;display:flex;align-items:center;gap:18px}
.subscription-icon{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#fff4d6;color:#e8a500;font-size:28px}
.subscription-card h2{margin:0 0 8px}.subscription-card p{margin:5px 0}.muted{color:#7b8798}
.user-dropdown .menu-ico{width:22px;display:inline-flex;justify-content:center;color:#315a9c;font-size:15px}
.user-dropdown .menu-ico.crown{color:#f2a900}
@media(max-width:900px){
  .ys-login-frame-final{grid-template-columns:1fr!important;width:min(560px,calc(100vw - 30px))!important}
  .ys-login-glass{min-height:auto!important}
  .ys-login-left-brand img{width:120px}
  .ys-login-features{grid-template-columns:1fr!important}
}

/* Subscription tracking module */
.subscription-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.subscription-status{display:inline-flex;align-items:center;border-radius:999px;padding:8px 13px;font-size:11px;font-weight:800}
.subscription-status.active{background:#e7f8ef;color:#168957}.subscription-status.info{background:#eaf3ff;color:#1769cf}
.subscription-status.warning{background:#fff4dc;color:#b66a00}.subscription-status.urgent,.subscription-status.expired{background:#fff0f1;color:#d72d40}
.subscription-overview-grid{display:grid;grid-template-columns:1.6fr .9fr;gap:18px;margin-bottom:18px}
.subscription-main-card,.subscription-actions-card,.subscription-history-card{padding:22px}
.subscription-brand-row{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.subscription-brand-row .subscription-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#fff2c9;color:#e7a300;font-size:25px}
.subscription-brand-row h2{margin:0;font-size:21px;color:#17233d}.subscription-brand-row p{margin:4px 0 0;color:#758196;font-size:11px}
.subscription-date-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.subscription-date-grid>div{border:1px solid #e7edf4;background:#f9fbfd;border-radius:13px;padding:14px}
.subscription-date-grid span,.subscription-date-grid small{display:block;color:#7b8798;font-size:10px}
.subscription-date-grid strong{display:block;color:#1c2c47;font-size:16px;margin:6px 0}
.days-left-card.active{background:#effbf5}.days-left-card.info{background:#eff6ff}.days-left-card.warning{background:#fff8e8}.days-left-card.urgent,.days-left-card.expired{background:#fff1f2}
.subscription-progress{margin-top:18px}.subscription-progress>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:#607086;margin-bottom:7px}
.progress-track{height:9px;background:#edf2f7;border-radius:999px;overflow:hidden}.progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f7cff,#20c997)}
.subscription-actions-card h3{margin:0 0 7px;color:#17233d}.subscription-actions-card>p{margin:0 0 16px;color:#748094;font-size:11px;line-height:1.55}
.subscription-reminders{display:flex;flex-direction:column;gap:9px;margin-bottom:18px}.subscription-reminders span{font-size:11px;color:#42516a}.subscription-reminders i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px}.dot-60{background:#1677ff}.dot-30{background:#ffb000}.dot-15{background:#ff7a00}.dot-7{background:#ef4055}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #edf1f5;padding:14px 0;cursor:pointer}.switch-row span{display:flex;flex-direction:column}.switch-row strong{font-size:11px;color:#263651}.switch-row small{font-size:9px;color:#8a96a7;margin-top:3px}.switch-row input{width:18px;height:18px}
.subscription-renew-btn{width:100%;margin-top:5px}.subscription-alert{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:12px;margin:0 0 18px;font-size:11px}.subscription-alert strong{font-size:12px}.subscription-alert.info{background:#eef6ff;color:#1769cf}.subscription-alert.warning{background:#fff7e6;color:#a76600}.subscription-alert.urgent,.subscription-alert.expired{background:#fff0f1;color:#c92a3e}
.subscription-history-card{margin-top:0}
.dashboard-subscription-alert{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:11px 14px;border-radius:12px;margin-bottom:14px;text-decoration:none;border:1px solid #dbe7f5}
.dashboard-subscription-alert .dashboard-subscription-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:#fff4d6;color:#e5a300;font-size:21px}
.dashboard-subscription-alert span:nth-child(2){display:flex;flex-direction:column}.dashboard-subscription-alert strong{font-size:12px;color:#21324f}.dashboard-subscription-alert small{font-size:10px;color:#6f7c90;margin-top:3px}.dashboard-subscription-alert>b{font-size:10px;color:#1677ff}
.dashboard-subscription-alert.info{background:#f6faff}.dashboard-subscription-alert.warning{background:#fffaf0}.dashboard-subscription-alert.urgent,.dashboard-subscription-alert.expired{background:#fff5f6;border-color:#ffd8dd}
@media(max-width:1100px){.subscription-overview-grid{grid-template-columns:1fr}.subscription-date-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.subscription-date-grid{grid-template-columns:1fr}.subscription-page-head{align-items:flex-start;flex-direction:column}.dashboard-subscription-alert{grid-template-columns:40px 1fr}.dashboard-subscription-alert>b{grid-column:2}}

/* Professional subscription page */
.subscription-pro-head{margin-bottom:18px}.subscription-pro-head h1{margin:0;font-size:28px;color:#14213d}.subscription-pro-head p{margin:7px 0 0;color:#8793a6;font-size:11px}.subscription-pro-head p span{margin:0 6px}
.subscription-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.subscription-kpi{background:#fff;border:1px solid #e8edf4;border-radius:14px;padding:18px;display:flex;align-items:center;gap:14px;box-shadow:0 6px 18px rgba(19,40,78,.04)}.kpi-round{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:22px}.kpi-round.blue{background:#e9f2ff;color:#1677ff}.kpi-round.purple{background:#f1e9ff;color:#7a39e8}.kpi-round.green{background:#e9fbf3;color:#13a66a}.kpi-round.orange{background:#fff2df;color:#f28a00}.subscription-kpi span,.subscription-kpi small{display:block;color:#7d899b;font-size:10px}.subscription-kpi strong{display:block;font-size:22px;color:#17233d;margin:4px 0}
.subscription-table-card{background:#fff;border:1px solid #e8edf4;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(20,40,80,.04)}.subscription-table-title{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #edf1f5}.subscription-table-title>div{display:flex;align-items:center;gap:12px}.subscription-title-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#1677ff}.subscription-table-title h2{margin:0;font-size:16px}.subscription-table-title p{margin:3px 0 0;color:#8490a3;font-size:10px}.pro-renew-btn{white-space:nowrap}
.subscription-toolbar{display:flex;justify-content:space-between;gap:15px;padding:15px 20px;border-bottom:1px solid #eef2f6}.subscription-search{width:320px;height:40px;border:1px solid #dfe6ef;border-radius:9px;display:flex;align-items:center;gap:7px;padding:0 12px;color:#6f7d93}.subscription-search input{border:0;outline:0;width:100%;font-size:11px}.subscription-filters{display:flex;gap:10px}.subscription-filters label{display:flex;align-items:center;gap:7px;font-size:10px;color:#64748b}.subscription-filters select{height:38px;border:1px solid #dfe6ef;border-radius:9px;padding:0 28px 0 10px;background:#fff}
.subscription-pro-table{overflow:auto}.subscription-pro-table table{width:100%;border-collapse:collapse;min-width:1080px}.subscription-pro-table th{padding:12px 10px;background:#f6f9fc;color:#4f5f75;font-size:9px;text-align:left}.subscription-pro-table td{padding:14px 10px;border-top:1px solid #eef2f6;color:#34445d;font-size:10px;vertical-align:middle}.package-cell{display:flex;align-items:center;gap:10px}.package-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#e9f3ff;color:#1677ff}.package-cell strong,.package-cell small{display:block}.package-cell small{font-size:9px;color:#8995a7;margin-top:3px}.type-pill{display:inline-block;background:#eaf3ff;color:#1769cf;border-radius:999px;padding:5px 8px}.days-cell strong,.days-cell small{display:block}.mini-progress{width:90px;height:6px;background:#e8eef6;border-radius:999px;margin:6px 0}.mini-progress i{display:block;height:100%;background:#4c8cff;border-radius:999px}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:9px;padding:7px 10px;font-weight:700}.status-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-badge.active{background:#e7f8ef;color:#168957}.status-badge.info{background:#eaf3ff;color:#1769cf}.status-badge.warning{background:#fff4dc;color:#b66a00}.status-badge.urgent,.status-badge.expired{background:#fff0f1;color:#d72d40}.row-actions{display:flex;align-items:center;gap:6px}.btn-sm{padding:7px 9px;font-size:9px}.btn-outline{background:#fff;border:1px solid #1677ff;color:#1677ff}.subscription-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#7f8a9d;font-size:10px}.subscription-footer button{width:34px;height:32px;border:0;border-radius:7px;background:#f1f4f8;color:#8994a7}.subscription-footer button.active{background:#1677ff;color:#fff}.subscription-history-pro{margin-top:18px;background:#fff;border:1px solid #e8edf4;border-radius:14px;padding:20px}
.admin-renewal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.admin-renewal-grid .card{padding:16px}.admin-renewal-grid span{display:block;font-size:10px;color:#7b8798}.admin-renewal-grid strong{display:block;font-size:18px;color:#17233d;margin-top:6px}
.users-admin-card{padding:20px}.user-list-cell{display:flex;align-items:center;gap:8px}.user-list-cell>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#246bfd;color:#fff;font-weight:800}.user-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:700}.user-status i{width:6px;height:6px;border-radius:50%}.user-status.active{background:#e7f8ef;color:#168957}.user-status.active i{background:#19a567}.user-status.inactive{background:#fff0f1;color:#ce3344}.user-status.inactive i{background:#e23d4f}.btn-danger-soft{background:#fff0f1;color:#c92e40;border:1px solid #ffd5db}.btn-success-soft{background:#e9f9f1;color:#168957;border:1px solid #cbeedc}.self-user{font-size:9px;color:#8b96a8}
@media(max-width:1100px){.subscription-kpis,.admin-renewal-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.subscription-kpis,.admin-renewal-grid{grid-template-columns:1fr}.subscription-toolbar{flex-direction:column}.subscription-search{width:auto}.subscription-filters{flex-direction:column;align-items:flex-start}}

/* Profile avatar and richer top user menu */
.user-avatar-top{overflow:hidden;display:grid!important;place-items:center;padding:0!important}
.user-avatar-top img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.user-dropdown-head em{font-style:normal;font-size:9px;color:#246bfd;margin-top:2px}
.profile-avatar-photo{overflow:hidden}
.profile-avatar-photo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.profile-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile-upload-field small{display:block;margin-top:6px;color:#7b8798;font-size:10px}
.remove-avatar{display:flex;align-items:center;gap:7px;margin-top:10px;color:#66758b;font-size:11px}
@media(max-width:700px){.profile-edit-grid{grid-template-columns:1fr}}

/* Expanded company information form */
.company-profile-form{padding:0;overflow:hidden}
.company-section-title{padding:20px 22px;border-bottom:1px solid #edf1f5}.company-section-title h3{margin:0;color:#17233d;font-size:17px}.company-section-title p{margin:4px 0 0;color:#7e899a;font-size:10px}
.company-type-row{display:flex;align-items:center;gap:25px;padding:18px 22px 8px}.company-type-row>label{width:120px;color:#45536a;font-size:11px}.radio-set{display:flex;gap:22px}.radio-set label{display:flex;align-items:center;gap:7px;color:#556176;font-size:11px}
.company-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 24px;padding:18px 22px 22px}.company-form-grid .field label{display:block;margin-bottom:6px;font-size:10px;color:#4d596d;font-weight:600}.company-form-grid .input{height:42px}.company-form-grid select.input{background:#fff}
.company-image-box{border:1px solid #e7ecf3;border-radius:12px;padding:14px;min-height:180px}.company-image-box>label:first-child{display:block;font-size:10px;color:#4d596d;font-weight:600;margin-bottom:10px}.company-image-preview{height:105px;border:1px dashed #dce4ee;border-radius:10px;background:#fafcfe;display:grid;place-items:center;margin-bottom:9px;overflow:hidden}.company-image-preview img{max-width:100%;max-height:100%;object-fit:contain}.company-image-preview span{font-size:34px;color:#9eabc0}.company-image-box input[type=file]{font-size:9px;max-width:100%}.remove-company-image{display:flex;align-items:center;gap:6px;margin-top:7px;color:#c63b49;font-size:9px}
.company-form-actions{padding:16px 22px 22px;border-top:1px solid #edf1f5;display:flex;justify-content:flex-start}.company-form-actions .btn{min-width:190px}
@media(max-width:850px){.company-form-grid{grid-template-columns:1fr}.company-form-grid .span-2{grid-column:auto}.company-type-row{align-items:flex-start;flex-direction:column;gap:8px}.company-type-row>label{width:auto}}

/* Company media: always fit inside preview without cropping */
.company-image-preview{
  height:150px!important;
  padding:16px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.company-image-preview img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:82%!important;
  max-height:82%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
}
