/* بوابة الشركات (public/company.html + js/company.js). بتستخدم ألوان الموقع من style.css. */
.co-root { padding: 28px 0 60px; min-height: 60vh; }
.co-hero { text-align: center; padding: 26px 0 8px; }
.co-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 10px; color: var(--brand-primary, #16224f); }
.co-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted, #6d6a63); line-height: 1.9; }
.co-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 26px 0; }
.co-feat { background: var(--surface, #fff); border: 1px solid var(--border, #e8e2d3); border-radius: 16px; padding: 18px; }
.co-feat b { display: block; margin-bottom: 6px; color: var(--brand-primary, #16224f); }
.co-feat span { color: var(--text-muted, #6d6a63); font-size: .93rem; line-height: 1.8; }
.co-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.co-auth .form-card { margin: 0; max-width: none; }
.co-auth h2 { margin-top: 0; font-size: 1.2rem; }

.co-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.co-logo { width: 62px; height: 62px; border-radius: 14px; border: 1px solid var(--border, #e8e2d3); background: #fff; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 1.4rem; color: var(--brand-primary, #16224f); flex: none; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-head h1 { margin: 0; font-size: 1.35rem; }
.co-head small { color: var(--text-muted, #6d6a63); }
.co-head .spacer { flex: 1; }
.co-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.co-tabs button { flex: none; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border, #e8e2d3); background: var(--surface, #fff); cursor: pointer; color: inherit; }
.co-tabs button.active { background: var(--brand-primary, #16224f); color: #fff; border-color: var(--brand-primary, #16224f); }
.co-panel { background: var(--surface, #fff); border: 1px solid var(--border, #e8e2d3); border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.co-panel h2 { margin: 0 0 6px; font-size: 1.15rem; }
.co-panel > p.hint, .co-hint { color: var(--text-muted, #6d6a63); font-size: .92rem; margin: 0 0 14px; line-height: 1.8; }
.co-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.co-stat { border: 1px solid var(--border, #e8e2d3); border-radius: 14px; padding: 14px; text-align: center; }
.co-stat strong { display: block; font-size: 1.5rem; color: var(--brand-primary, #16224f); }
.co-stat span { color: var(--text-muted, #6d6a63); font-size: .9rem; }
.co-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.co-table-wrap { overflow-x: auto; }
.co-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.co-table th { text-align: start; font-size: .88rem; color: var(--text-muted, #6d6a63); padding: 8px; border-bottom: 2px solid var(--border, #e8e2d3); white-space: nowrap; }
.co-table td { padding: 10px 8px; border-bottom: 1px solid var(--border, #e8e2d3); vertical-align: top; }
.co-table small { color: var(--text-muted, #6d6a63); }
.co-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-primary, #16224f); font-weight: 700; cursor: pointer; text-decoration: underline; }
.co-link.danger { color: #b42318; }
.co-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eef2ff; color: #16224f; white-space: nowrap; }
.co-pill.ok { background: #ecfdf5; color: #065f46; }
.co-pill.warn { background: #fff7e6; color: #8a5a00; }
.co-pill.off { background: #f3f4f6; color: #555; }
.co-colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.co-color { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border, #e8e2d3); border-radius: 999px; padding: 4px 10px 4px 4px; }
.co-color input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.co-color code { font-size: .85rem; direction: ltr; }
.co-file { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border, #e8e2d3); flex-wrap: wrap; }
.co-file span { overflow-wrap: anywhere; }
.co-qrow { display: grid; grid-template-columns: 2fr 1.4fr 90px 110px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.co-qrow .price { font-weight: 700; text-align: end; white-space: nowrap; }
.co-totals { margin-top: 12px; max-width: 340px; margin-inline-start: auto; }
.co-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.co-totals .grand { border-top: 2px solid var(--brand-primary, #16224f); font-weight: 800; padding-top: 8px; margin-top: 4px; }
.co-empty { text-align: center; color: var(--text-muted, #6d6a63); padding: 22px 0; }
.co-banner { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.co-check { width: 18px; height: 18px; }
.co-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.co-inline .form-group { flex: 1; min-width: 150px; margin: 0; }
@media (max-width: 640px) {
  .co-qrow { grid-template-columns: 1fr 1fr; }
  .co-qrow .price { text-align: start; }
  .co-panel { padding: 16px; }
}
