/* Approved Settings > Organization detail refinement.
   Scoped to this read-only detail view; no shell or shared component rules. */
.page:has(.organization-settings-detail){background:#f4f7fb}
.organization-settings-detail{
  display:grid;gap:0;padding:0!important;overflow:visible;border:1px solid #d8e3ef!important;
  border-radius:10px!important;background:#fff!important;box-shadow:0 4px 18px rgba(15,42,76,.04)!important
}
.organization-settings-header{
  min-height:116px;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:18px 28px;border-bottom:0;background:#fff
}
.organization-settings-heading{display:flex;align-items:stretch;gap:22px;min-width:0}
.organization-settings-accent{width:5px;min-height:82px;border-radius:5px;background:#1769f5}
.organization-settings-breadcrumb{
  margin:2px 0 10px;color:#155edf;font-size:13px;font-weight:900;letter-spacing:.035em;text-transform:uppercase
}
.organization-settings-heading h2{margin:0;color:#0b1a31;font-size:28px;line-height:1.05;font-weight:700}
.organization-settings-heading p{margin:4px 0 0;color:#374151;font-size:13px;line-height:1.3;font-weight:500}
.organization-settings-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.organization-settings-header-actions .btn,
.organization-settings-footer .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 20px}
.organization-settings-header-actions .btn svg,
.organization-settings-footer .btn svg{width:19px;height:19px;flex:0 0 19px}

.organization-settings-surface{
  margin:0 16px 16px;border:1px solid #d8e3ef;border-radius:9px;background:#fff;overflow:visible
}
.organization-settings-section{padding:14px 18px 16px;border-bottom:1px solid #e1e8f1}
.organization-settings-section:last-child{border-bottom:0}
.organization-settings-section>h3{
  margin:0 0 12px;padding:0 0 8px;border-bottom:1px solid #dce5ef;color:#1260d9;
  font-size:15px;line-height:1.2;font-weight:700
}
.organization-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.organization-settings-grid>.wide{grid-column:1/-1}
.organization-info-cell{
  min-width:0;min-height:62px;display:flex;flex-direction:column;justify-content:center;gap:5px;
  padding:10px 14px;border:1px solid #d9e3ef;border-radius:8px;background:#fff
}
.organization-info-label{
  display:block;color:#435c7c;font-size:12.5px;font-weight:800;line-height:1.2;letter-spacing:.02em;text-transform:uppercase
}
.organization-info-value{min-width:0;color:#08182f;font-size:15.5px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.organization-info-value.value-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.organization-info-icon{
  display:grid;place-items:center;width:38px;height:38px;border:1px solid #d8e3ef;border-radius:7px;
  background:#f5f8fd;color:#1769ed
}
.organization-info-icon svg{width:20px;height:20px}
.organization-status{
  display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:25px;padding:3px 11px;
  border-radius:999px;background:#fff0dc;color:#984400;font-size:13px;font-weight:850;line-height:1.2
}
.organization-rule-banner{
  min-height:62px;display:flex;align-items:center;gap:14px;padding:10px 16px;border:1px solid #cfe0f6;
  border-radius:8px;background:#f5f9ff
}
.organization-rule-icon{
  display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border:2px solid #1769ed;
  border-radius:50%;color:#1769ed
}
.organization-rule-icon svg{width:16px;height:16px}
.organization-rule-banner>div{display:grid;gap:5px;min-width:0}
.organization-rule-banner strong{color:#13223a;font-size:14.5px;line-height:1.4}
.organization-settings-footer{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:12px
}
.organization-settings-footer .btn{min-height:42px;padding-inline:16px}
.organization-settings-footer .btn,
.organization-settings-header-actions .btn{font-size:14px;font-weight:800;white-space:nowrap}

@media(max-width:980px){
  .organization-settings-header{align-items:flex-start;flex-direction:column;padding:18px 20px}
  .organization-settings-header-actions{width:100%;justify-content:flex-start}
}
@media(max-width:720px){
  .organization-settings-header{padding:16px}
  .organization-settings-heading{gap:12px}
  .organization-settings-accent{min-height:76px}
  .organization-settings-heading h2{font-size:23px}
  .organization-settings-surface{margin:0 8px 8px}
  .organization-settings-section{padding:13px 12px}
  .organization-settings-grid{grid-template-columns:1fr}
  .organization-settings-grid>.wide{grid-column:auto}
  .organization-settings-header-actions .btn,.organization-settings-footer .btn{flex:1 1 220px}
}

.modules-updates-workspace{display:grid;gap:16px;min-width:0;color:#172b49}
.modules-updates-workspace>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.modules-updates-workspace h2{margin:0;font-size:25px}
.modules-updates-workspace h3{margin:0 0 9px;font-size:17px}
.modules-updates-workspace p{margin:5px 0;color:#506580}
.modules-updates-workspace>section{min-width:0}
.modules-updates-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.modules-updates-status article,.modules-updates-panel{min-width:0;padding:15px;border:1px solid #d4e1f4;border-radius:10px;background:#fff}
.modules-updates-status article{display:grid;align-content:start;gap:7px}
.modules-updates-status small{color:#506580;font-weight:650}
.modules-updates-status strong{overflow-wrap:anywhere;font-size:17px}
.modules-updates-status span,.modules-updates-panel p{font-size:13px}
.modules-updates-environment{font-size:12px}
.modules-updates-critical{padding:14px 16px;border:1px solid #f5b6b6;border-radius:10px;background:#fff1f1;color:#8f1c1c}
.modules-updates-critical p{color:inherit}
.modules-updates-panel{display:grid;gap:11px}
.modules-updates-panel form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.modules-updates-panel label{display:grid;gap:6px;font-weight:650}
.modules-updates-panel input[type=file]{max-width:100%;padding:9px;border:1px solid #d4e1f4;border-radius:8px}
.modules-updates-panel dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}
.modules-updates-panel dl>div{min-width:0;padding:8px;background:#f5f9ff;border-radius:7px}
.modules-updates-panel dt{color:#536782;font-size:12px}
.modules-updates-panel dd{margin:3px 0 0;overflow-wrap:anywhere;font-weight:700}
.modules-updates-history{max-width:100%;overflow-x:auto}
.modules-updates-history table{width:100%;border-collapse:collapse;font-size:12px}
.modules-updates-history th,.modules-updates-history td{padding:8px;border-bottom:1px solid #e5ecf5;text-align:left;overflow-wrap:anywhere}
@media(max-width:1100px){.modules-updates-status{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.modules-updates-workspace>header{display:grid}.modules-updates-status{grid-template-columns:repeat(2,minmax(0,1fr))}.modules-updates-panel dl{grid-template-columns:repeat(2,minmax(0,1fr))}.modules-updates-history table{min-width:640px}}
@media(max-width:430px){.modules-updates-status,.modules-updates-panel dl{grid-template-columns:1fr}}
/* The shared ERP frame locks document scrolling. This long installation-wide
   workspace needs its own mobile document flow so the package/history footer
   remains reachable without changing the scrolling model of other pages. */
@media(max-width:700px){
  html:has(.modules-updates-workspace),body:has(.modules-updates-workspace){height:auto!important;min-height:100vh!important;overflow-y:auto!important}
  body:has(.modules-updates-workspace) .app-shell,
  body:has(.modules-updates-workspace) .app-shell>.content,
  body:has(.modules-updates-workspace) .page{height:auto!important;max-height:none!important;min-height:0!important;overflow-y:visible!important}
}
@media(max-width:430px){
  .organization-settings-header-actions,.organization-settings-footer{display:grid;grid-template-columns:1fr;width:100%}
  .organization-settings-header-actions .btn,.organization-settings-footer .btn{width:100%}
}

/* Active-company configuration summary; existing workspace pages own editing. */
.organization-settings-detail{max-width:1200px;margin-inline:auto}
.organization-settings-header{min-height:96px;border-bottom:1px solid #e1e8f1}
.organization-settings-accent{min-height:60px}
.organization-settings-surface{margin:0;border:0}
.organization-active-company{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 18px 0;padding:17px 20px;border:1px solid #cfe0f6;border-radius:9px;background:#f5f9ff}
.organization-active-company>div{min-width:0}
.organization-active-company span{display:block;color:#47617f;font-size:12px;font-weight:800;text-transform:uppercase}
.organization-active-company strong{display:block;margin-top:5px;color:#0b1a31;font-size:20px;overflow-wrap:anywhere}
.organization-active-company p{margin:5px 0 0;color:#52677f;font-size:13px}
.organization-settings-section{border-bottom:0}
.organization-settings-section>h3{margin-bottom:10px;padding:0 0 8px}
.organization-config-card{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:104px;padding:16px;border:1px solid #d9e3ef;border-radius:8px;background:#fff}
.organization-config-card>div{min-width:0}
.organization-config-card h4{margin:0 0 6px;color:#4b5f79;font-size:12px;font-weight:800;text-transform:uppercase}
.organization-config-card strong{color:#0b1a31;font-size:17px}
.organization-config-card p{margin:6px 0 0;color:#53657a;font-size:12px;line-height:1.4}
.organization-config-card .btn{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 11px;white-space:nowrap}
.organization-config-card .btn svg{width:14px;height:14px;transform:rotate(-90deg)}
.organization-config-badge{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:99px;background:#fff0dc;color:#88470b;font-size:11px;font-weight:800}
.organization-settings-note{margin:0 18px 18px;padding:12px 15px;border-radius:8px;background:#f5f8fd;color:#405672;font-size:12px;line-height:1.5}
.organization-load-error{margin:12px 18px 0;color:#9b1c1c;font-size:12px}
@media(max-width:720px){
  .organization-active-company{margin:10px 12px 0;padding:14px;align-items:flex-start;flex-direction:column}
  .organization-config-card{align-items:flex-start;flex-direction:column;min-height:0}
  .organization-config-card .btn{align-self:flex-start}
  .organization-settings-note{margin:0 12px 12px}
}

.backend-accounting-periods{max-width:1200px;margin-inline:auto}
.backend-accounting-periods>.hint{margin:12px 18px}
.backend-period-row{display:flex;align-items:center;gap:14px;min-width:0;margin:8px 18px;padding:12px 14px;border:1px solid #d9e3ef;border-radius:8px}
.backend-period-row>div{display:grid;gap:4px;min-width:0;margin-right:auto}
.backend-period-row strong,.backend-period-row span{overflow-wrap:anywhere}
.backend-period-row>div span{color:#52677f;font-size:13px}
.backend-period-create{margin:20px 18px 18px;padding:16px;border:1px solid #d9e3ef;border-radius:8px}
.backend-period-create h3{margin:0 0 14px}
.backend-period-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.backend-period-fields label{min-width:0}
.backend-period-fields input{width:100%;min-width:0}
@media(max-width:720px){
  .backend-period-row{align-items:flex-start;flex-wrap:wrap;margin-inline:12px}
  .backend-period-row>div{flex:1 1 100%}
  .backend-period-create{margin-inline:12px}
  .backend-period-fields{grid-template-columns:1fr}
}
