/* v3.29.47 — İlkder360 genel ergonomi sözleşmesi.
   Bütün modüller aynı yoğunluk, kontrol yüksekliği ve boşluk ritmini kullanır. */
:root{
  --erg-control-h:36px;
  --erg-action-h:34px;
  --erg-radius:8px;
  --erg-gap-xs:5px;
  --erg-gap-sm:8px;
  --erg-gap-md:12px;
  --erg-panel-pad:13px;
  --erg-label:10px;
  --erg-body:10.5px;
  --erg-title:20px;
}

/* Uygulama kabuğu: daha fazla çalışma alanı, daha kısa ve dengeli gezinme. */
html body .corporate-sidebar{width:218px!important;padding:10px 10px 9px!important}
html body .main-content{margin-left:218px!important}
html body .corporate-sidebar .corporate-brand{padding:0 2px 7px!important}
html body .corporate-sidebar .corporate-brand .official-brand-card{
  grid-template-rows:43px auto!important;min-height:92px!important;padding:1px 0 3px!important;
}
html body .corporate-sidebar .corporate-brand .official-brand-card .brand-logo-symbol{width:47px!important}
html body .corporate-sidebar .corporate-brand .official-brand-card .brand-logo-light{width:166px!important}
html body .corporate-sidebar .corporate-nav{gap:0!important;padding:0 1px 7px!important}
html body .corporate-sidebar .corporate-nav>.nav-group>summary,
html body .corporate-sidebar .corporate-nav>.nav-group[open]>summary{
  min-height:28px!important;padding:6px 8px!important;border-radius:7px!important;font-size:8px!important;
}
html body .corporate-sidebar .corporate-nav>.nav-group>div,
html body .corporate-sidebar .corporate-nav>.nav-group[open]>div{gap:0!important;padding:0 0 3px!important}
html body .corporate-sidebar .corporate-nav>.nav-group>div>a,
html body .corporate-sidebar .corporate-nav>.nav-group[open]>div>a{
  min-height:30px!important;padding:6px 9px 6px 12px!important;border-radius:7px!important;font-size:10px!important;
}
html body .corporate-user{padding:7px 5px 0!important}
html body .corporate-user .avatar{width:30px!important;height:30px!important;font-size:10px!important}
html body .corporate-user strong{font-size:10px!important}
html body .corporate-user small,html body .corporate-user .link-button{font-size:8px!important}
html body .corporate-topbar{height:52px!important;padding:0 18px!important}
html body .content-frame{max-width:1460px!important;padding:14px 18px 28px!important}

/* Başlık ve ana eylemler her ekranda tek ölçüdedir. */
html body .content-frame .page-header,
html body .content-frame .dashboard-welcome{
  min-height:0!important;margin:0 0 9px!important;padding:11px 14px!important;border-radius:10px!important;gap:10px!important;
}
html body .content-frame .page-header h1,
html body .content-frame .dashboard-welcome h1{
  margin:0 0 2px!important;font-size:var(--erg-title)!important;line-height:1.15!important;
}
html body .content-frame .page-header .eyebrow,
html body .content-frame .dashboard-welcome .eyebrow{
  margin:0 0 3px!important;font-size:7.5px!important;letter-spacing:.13em!important;
}
html body .content-frame .page-header p,
html body .content-frame .dashboard-welcome p{font-size:9.5px!important;line-height:1.35!important}
html body .content-frame :where(.header-actions,.page-actions,.button-row){gap:6px!important}
html body .content-frame :where(.button,.page-header .button,.header-actions .button,.page-actions .button){
  min-height:var(--erg-action-h)!important;padding:6px 10px!important;border-radius:var(--erg-radius)!important;
  font-size:10px!important;line-height:1.15!important;white-space:nowrap!important;
}

/* Sekmeler ve yatay işlem menüleri aynı görünür odak ve yükseklikte. */
html body .content-frame :where(
  .workspace-tabs,.record-tabs,.tab-row,.admin-tabs-v3,.membership-tabs-v3,
  .workflow-tabs-v3,.organization-tabs-v3,.financial-tabs-v3,
  .compact-member-actions-v3203,.member-modal-tabs-v3221,.member-file-tabs-v3213
){
  min-height:0!important;margin:0 0 9px!important;padding:4px!important;gap:4px!important;
  overflow-x:auto!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;
  background:#fff!important;scrollbar-width:thin!important;
}
html body .content-frame :where(
  .workspace-tabs,.record-tabs,.tab-row,.admin-tabs-v3,.membership-tabs-v3,
  .workflow-tabs-v3,.organization-tabs-v3,.financial-tabs-v3,
  .compact-member-actions-v3203,.member-modal-tabs-v3221,.member-file-tabs-v3213
) :where(a,button){
  flex:0 0 auto!important;min-height:30px!important;padding:6px 9px!important;border-radius:7px!important;
  font-size:9.5px!important;line-height:1.15!important;white-space:nowrap!important;
}

/* Paneller, özetler ve açılır bölümler ortak boşluk ritmine bağlanır. */
html body .content-frame .panel{padding:var(--erg-panel-pad)!important;border-radius:10px!important}
html body .content-frame .panel.compact{padding:0!important}
html body .content-frame :where(.section-gap,.record-main-v3,.record-sections,.data-policy-column-v3){gap:var(--erg-gap-md)!important}
html body .content-frame .section-gap{margin-top:10px!important}
html body .content-frame .panel-header{align-items:center!important;gap:10px!important;margin-bottom:8px!important}
html body .content-frame .panel-header h2{margin:0 0 2px!important;font-size:14px!important;line-height:1.2!important}
html body .content-frame .panel-header p{font-size:9px!important;line-height:1.3!important}
html body .content-frame :where(.section-heading,.generic-form-head){padding:9px 12px!important}
html body .content-frame :where(.section-heading,.generic-form-head) h2{font-size:13px!important;line-height:1.2!important}
html body .content-frame :where(.section-heading,.generic-form-head) p{font-size:8.5px!important;line-height:1.3!important}
html body .content-frame :where(details.panel,details.compact-member-section-v3203)>summary{
  min-height:38px!important;padding:8px 11px!important;font-size:10px!important;
}

/* Bütün standart form alanları kısa, okunaklı ve hizalıdır. */
html body .content-frame :where(.form-panel,.structured-form){max-width:1180px;margin-inline:auto}
html body .content-frame :where(.form-grid,.form-stack){gap:9px 11px!important}
html body .content-frame .form-panel:not(.structured-form):not(.compact-payment-form-v32946) .form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));padding:13px!important;
}
html body .content-frame :where(.form-grid,.form-stack) label{
  min-width:0!important;margin:0!important;font-size:var(--erg-label)!important;line-height:1.25!important;
}
html body .content-frame :where(.form-grid,.form-stack) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select
){
  width:100%!important;height:var(--erg-control-h)!important;min-height:var(--erg-control-h)!important;
  margin-top:4px!important;padding:6px 9px!important;border-radius:var(--erg-radius)!important;font-size:11px!important;
}
html body .content-frame :where(.form-grid,.form-stack) textarea{
  width:100%!important;min-height:72px!important;max-height:160px;margin-top:4px!important;
  padding:7px 9px!important;border-radius:var(--erg-radius)!important;font-size:11px!important;line-height:1.4!important;
}
html body .content-frame :where(.form-grid,.form-stack) input[type="file"]{
  min-height:36px!important;margin-top:4px!important;padding:5px!important;font-size:9px!important;
}
html body .content-frame :where(.help-text,.field-help,.field-error){margin-top:2px!important;font-size:8px!important;line-height:1.25!important}
html body .content-frame .wide{grid-column:1/-1}
html body .content-frame .form-actions{
  min-height:0!important;margin:0!important;padding:9px 13px!important;gap:6px!important;border-top:1px solid var(--ui-line)!important;
}
html body .content-frame .form-actions .button{min-height:var(--erg-action-h)!important;padding:6px 10px!important;font-size:10px!important}

/* Yönlendirmeli formlar: açıklama sütunu iş alanını daraltmaz. */
html body .content-frame .structured-form .form-section{
  grid-template-columns:145px minmax(0,1fr)!important;gap:13px!important;padding:12px 14px!important;
}
html body .content-frame .structured-form .form-section-head{gap:7px!important}
html body .content-frame .structured-form .form-section-head>span{width:22px!important;height:22px!important;font-size:8px!important}
html body .content-frame .structured-form .form-section-head h2{font-size:11.5px!important}
html body .content-frame .structured-form .form-section-head p{font-size:8px!important;line-height:1.35!important}
html body .content-frame .structured-form .form-grid{gap:8px 10px!important}

/* Filtreler tek satırda çalışır; dar ekranda doğal olarak aşağı kırılır. */
html body .content-frame :where(.filter-bar,.filter-grid,.toolbar,.list-toolbar-v3){
  min-height:0!important;margin-bottom:9px!important;padding:8px 10px!important;gap:7px!important;border-radius:9px!important;
}
html body .content-frame :where(.filter-bar,.filter-grid,.toolbar,.list-toolbar-v3) :is(input,select){
  min-height:34px!important;height:34px!important;padding:6px 8px!important;border-radius:7px!important;font-size:10px!important;
}

/* Bilgi kartları ve metrikler büyük boş kutular yerine kısa özet satırlarıdır. */
html body .content-frame :where(.metric-grid,.stat-grid,.compact-member-metrics-v3203){gap:7px!important;margin-bottom:9px!important}
html body .content-frame :where(.metric-grid,.stat-grid,.compact-member-metrics-v3203)>article{
  min-height:0!important;padding:9px 11px!important;border-radius:9px!important;
}
html body .content-frame :where(.metric-grid,.stat-grid,.compact-member-metrics-v3203)>article strong{margin:3px 0!important;font-size:18px!important}
html body .content-frame :where(.metric-grid,.stat-grid,.compact-member-metrics-v3203)>article :where(span,small){font-size:7.5px!important;line-height:1.25!important}
html body .content-frame :where(.record-status-strip,.setup-progress-v3,.approval-strip-v3,.provider-lock){
  min-height:0!important;margin-bottom:9px!important;padding:9px 12px!important;border-radius:9px!important;
}
html body .content-frame :where(.premium-empty,.empty-state,.empty){min-height:0!important;padding:18px!important}
html body .content-frame :where(.premium-empty,.empty-state,.empty) h2{font-size:14px!important}
html body .content-frame :where(.premium-empty,.empty-state,.empty) p{font-size:9px!important}

/* Tablolar daha fazla kaydı kaybolmadan gösterir; başlık sabit kalır. */
html body .content-frame .table-wrap{max-height:min(500px,64vh)!important;border-radius:8px!important}
html body .content-frame table{font-size:10px!important}
html body .content-frame th{padding:6px 8px!important;font-size:7.5px!important;line-height:1.2!important}
html body .content-frame td{padding:7px 8px!important;font-size:10px!important;line-height:1.25!important}
html body .content-frame td small{font-size:8px!important;line-height:1.2!important}
html body .content-frame :where(.badge,.record-state){padding:3px 6px!important;font-size:8px!important}
html body .content-frame .row-action{font-size:9px!important}

/* Ana ekran eylemleri de aynı yoğunlukta; ilk ekran gerçek bir çalışma masasıdır. */
html body .content-frame .easy-action-grid-v2760{gap:8px!important;margin-bottom:11px!important}
html body .content-frame .easy-action-card-v2760{
  min-height:108px!important;gap:7px!important;padding:11px!important;border-radius:10px!important;
}
html body .content-frame .easy-action-card-v2760>span{width:28px!important;height:28px!important;border-radius:8px!important;font-size:10px!important}
html body .content-frame .easy-action-card-v2760 strong{font-size:12px!important}
html body .content-frame .easy-action-card-v2760 small{margin-top:3px!important;font-size:8.5px!important;line-height:1.3!important}
html body .content-frame .easy-action-card-v2760>b{font-size:9px!important}
html body .content-frame .easy-worklists-v2760{gap:9px!important;margin-bottom:12px!important}
html body .content-frame .easy-list-head-v2760{padding:11px 13px!important}
html body .content-frame .easy-list-head-v2760 h2{font-size:13px!important}
html body .content-frame .easy-list-head-v2760 p{font-size:8.5px!important}
html body .content-frame .easy-list-items-v2760>a{padding:9px 13px!important}
html body .content-frame .easy-list-items-v2760 strong{font-size:10px!important}
html body .content-frame .easy-list-items-v2760 small{font-size:8px!important}

@media(max-width:1180px){
  html body .content-frame .form-panel:not(.structured-form):not(.compact-payment-form-v32946) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .content-frame .easy-action-grid-v2760{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  html body .corporate-sidebar{width:min(300px,calc(100vw - 44px))!important}
  html body .main-content{margin-left:0!important}
  html body .content-frame{padding:12px 10px 24px!important}
  html body .content-frame .easy-worklists-v2760{grid-template-columns:1fr!important}
}
@media(max-width:720px){
  :root{--erg-control-h:42px;--erg-action-h:40px}
  html body .content-frame .page-header{display:block!important;padding:10px!important}
  html body .content-frame .page-header>div:first-child>p:last-child{display:none!important}
  html body .content-frame .page-header .header-actions{margin-top:7px!important;overflow-x:auto!important}
  html body .content-frame .form-panel:not(.structured-form):not(.compact-payment-form-v32946) .form-grid{grid-template-columns:1fr!important;padding:10px!important}
  html body .content-frame .structured-form .form-section{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important}
  html body .content-frame .structured-form .form-section-head p{display:none!important}
  html body .content-frame .easy-action-grid-v2760{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .content-frame :where(.metric-grid,.stat-grid,.compact-member-metrics-v3203){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:460px){
  html body .content-frame .easy-action-grid-v2760{grid-template-columns:1fr!important}
}
@media print{
  html body .content-frame{max-width:none!important;padding:0!important}
}
