/*
  Organizations (class.organizations.php): the HQ page — the member companies as cards with this
  week's coverage, the week across every team — and the admin portal's Organization drawer.
  px throughout — a rem is 10px on this site.
*/

.org_page { --org_ink: #1f2a2b; --org_muted: #6b7c7d; --org_faint: #9fb3b4; --org_line: #d3e2e3; --org_brand: #0f7777; --org_wash: #e2efef; color: var(--org_ink); padding: 18px 16px 40px; }
.org_page * { box-sizing: border-box; }
.org_empty { padding: 40px 16px; text-align: center; color: var(--org_faint); background: white; border: 1px dashed var(--org_line); border-radius: 12px; }

.org_mark { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--org_brand); color: white; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.org_mark_big { width: 60px; height: 60px; border-radius: 14px; font-size: 20px; }
.org_head { display: flex; align-items: center; gap: 14px; padding: 16px; background: white; border: 1px solid var(--org_line); border-radius: 12px; margin-bottom: 18px; }
.org_head_name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.org_head_sub { font-size: 13.5px; color: var(--org_muted); margin-top: 3px; }
.org_section_title { font-size: 12px; font-weight: 700; color: #0f5e63; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; padding-left: 4px; }

.org_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 480px) { .org_grid { grid-template-columns: 1fr; } }
.org_card { background: white; border: 1px solid var(--org_line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.org_card.is_open { border-color: #f1c2bd; }
.org_card_top { display: flex; align-items: center; gap: 12px; }
.org_card_text { min-width: 0; }
.org_card_name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org_card_sub { font-size: 12.5px; color: var(--org_muted); }
.org_bar { height: 7px; background: var(--org_wash); border-radius: 10px; overflow: hidden; }
.org_bar_fill { height: 7px; background: var(--org_brand); border-radius: 10px; }
.org_card.is_open .org_bar_fill { background: #d4890a; }
.org_card_week { font-size: 13px; color: var(--org_muted); }
.org_card_week b { color: #b8433a; }
.org_open { align-self: flex-start; height: 34px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--org_brand); background: white; color: var(--org_brand); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.org_open:hover { background: var(--org_wash); }

.org_week { background: white; border: 1px solid var(--org_line); border-radius: 12px; padding: 14px; }
.org_week_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.org_week_title { font-weight: 800; font-size: 15px; }
.org_week_nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--org_line); display: inline-flex; align-items: center; justify-content: center; color: var(--org_ink); font-size: 20px; text-decoration: none; }
.org_week_nav:hover { background: var(--org_wash); text-decoration: none; }
.org_week_scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.org_table { border-collapse: separate; border-spacing: 4px; min-width: 640px; width: 100%; }
.org_table th { font-size: 11px; font-weight: 700; color: var(--org_faint); text-transform: uppercase; letter-spacing: 0.4px; text-align: center; padding: 4px; }
.org_table th.is_today .org_dom { background: var(--org_brand); color: white; }
.org_dow { display: block; }
.org_dom { display: inline-block; min-width: 24px; padding: 2px 4px; border-radius: 12px; font-size: 13px; color: var(--org_ink); margin-top: 2px; }
.org_row_head { text-align: left !important; color: var(--org_ink) !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; }
.org_cell { vertical-align: top; border-radius: 8px; padding: 8px; font-size: 13px; min-width: 80px; background: #f6f8f8; }
.org_cell.is_none { color: var(--org_faint); text-align: center; }
.org_cell.is_full { background: #e3f6ec; }
.org_cell.is_open { background: #fff4dd; }
.org_cell_top { font-weight: 800; }
.org_cell_open { font-size: 11.5px; color: #a66b00; font-weight: 700; }
.org_cell_detail { margin-top: 4px; font-size: 11.5px; color: var(--org_muted); }
.org_note { font-size: 12.5px; color: var(--org_faint); margin-top: 10px; }

/* ---- the admin portal's Organization drawer ---- */
.org_new { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; }
@media (max-width: 420px) { .org_new { grid-template-columns: 1fr; } }
.org_new .form-control { height: 44px; border: 1.5px solid #d3e2e3; border-radius: 8px; box-shadow: none; font-size: 15px; }
.org_create { height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid #0f7777; background: #0f7777; color: white; font-weight: 700; }
.org_member { position: relative; }
.org_member_remove { flex: none; margin-left: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f1f4f5; color: #6b7c7d; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.org_member_remove:hover { background: #fbe3e1; color: #9f1d16; }
.org_add { margin-top: 4px; }
.org_access_row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.org_access_hint { font-size: 12px; color: #6b7c7d; flex: 1 1 100%; }
