/* The pieces the apps' pages share (the meeting scheduler, the webinar management page
   and the webinar member pages): small print, notices, tabs, fields, inputs,
   rows, cards and the toast. Buttons are the theme's .naca-button (with
   .naca-button-secondary and .naca-button-sm). Loaded after
   /shared/naca-wa.css and before each app's own stylesheet, which adds only
   what is its own. */

.ak-small { margin: 0; font-size: 14px; line-height: 1.55; color: var(--naca-text-secondary); }
.ak-error { margin: 6px 0 0; font-size: 14px; color: #8a1f1f; }
.ak-notice-warn { background: #fff8eb; border-color: #e8c27a; color: #5c3d00; }
.ak-notice-error { background: #fbeaea; border-color: #e3a5a5; color: #8a1f1f; }

/* Tabs: links or buttons. The site's link rule (.naca-scope a: navy,
   underlined) would win on specificity, so they are restated one step
   stronger, the way /shared/naca-wa.css does for .naca-button. */
.ak-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--naca-border); }
.naca-scope .ak-tab { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: var(--naca-radius-sm) var(--naca-radius-sm) 0 0;
  font: inherit; font-weight: var(--naca-weight-semi); font-size: 15px; color: var(--naca-navy); text-decoration: none; min-height: 44px; box-sizing: border-box;
  background: transparent; border: 0; cursor: pointer; transition: background var(--naca-transition); }
.naca-scope .ak-tab:hover { background: var(--naca-tint-200); color: var(--naca-navy); text-decoration: none; }
.naca-scope .ak-tab.is-current, .naca-scope .ak-tab.is-current:hover { background: var(--naca-button); color: var(--naca-on-navy); }
.naca-scope .ak-tab:focus-visible { outline: 2px solid var(--naca-gold); outline-offset: 2px; }

/* Fields, inputs and rows */
.ak-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ak-field-end { justify-content: flex-end; }
.ak-label { font-size: 14px; font-weight: 600; color: var(--naca-heading); }
.ak-hint { font-size: 13px; color: var(--naca-muted); }
.ak-input { box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid var(--naca-border-strong); border-radius: var(--naca-radius-sm, 8px);
  background: #fff; font: inherit; font-size: 15px; color: var(--naca-text); width: 100%; }
textarea.ak-input { resize: vertical; line-height: 1.5; }
.ak-input[readonly] { background: #f6f8fb; color: var(--naca-muted); }
.ak-input:focus-visible { outline: 2px solid var(--naca-navy); outline-offset: 1px; }
.ak-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; min-height: 36px; cursor: pointer; }
.ak-check input { width: 18px; height: 18px; }
.ak-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ak-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ak-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ak-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.naca-button[disabled] { opacity: .6; cursor: progress; }

/* Tables */
.ak-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ak-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--naca-muted); padding: 8px 8px; border-bottom: 1px solid var(--naca-border-strong); white-space: nowrap; }
.ak-table td { padding: 8px 8px; border-bottom: 1px solid var(--naca-border); vertical-align: top; }
.ak-table tr.is-off td { color: var(--naca-faint); }
.ak-table .ak-input { min-height: 36px; padding: 4px 8px; font-size: 14px; }
.ak-wrap { overflow-x: auto; }

/* Drag handles (NacaApp.sortable) and small bar charts (NacaApp.bars) */
.ak-grip { cursor: grab; background: none; border: 0; padding: 4px; color: var(--naca-muted); font-size: 18px; line-height: 1; border-radius: 4px; }
.ak-grip:focus-visible { outline: 2px solid var(--naca-gold); }
.is-dragging { opacity: .45; }
.is-over { box-shadow: 0 -3px 0 var(--naca-navy); }
.ak-bars { display: flex; flex-direction: column; gap: 5px; }
.ak-bar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 6.5rem; gap: 8px; align-items: center; font-size: 13.5px; }
.ak-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-bar-track { height: 12px; border-radius: 3px; background: var(--naca-tint-200); }
.ak-bar-fill { display: block; height: 12px; border-radius: 3px; background: var(--naca-navy); min-width: 2px; }
.ak-bar-n { color: var(--naca-muted); text-align: right; white-space: nowrap; }

/* Cards and the toast */
.ak-card { background: #fff; border: 1px solid var(--naca-border); border-radius: var(--naca-radius-lg, 10px); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ak-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100% - 32px)); padding: 12px 18px; border-radius: 10px;
  background: #13243d; color: #fff; font-size: 15px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.ak-toast-error { background: #8a1f1f; }

@media (max-width: 900px) {
  .ak-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ak-row2, .ak-row3, .ak-row4 { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .ak-toast { display: none !important; }
  .ak-card { break-inside: avoid; }
}
