/* v017-portal-gaps.css — v0.17.0 portal improvements (v0.18.0 trims Gap 2)
   =================================================================
   CSS that supports the portal gaps Ravya flagged:
     Gap 1 — Hide Drive UI from subscriber firms (body.v017-subscriber)
     Gap 2 — Drive trigger button: REMOVED entirely in v0.18.0
             (tracker is now Drive-independent at the UI layer for
             PINNEX as well — selectors deleted, not gated).
     Gap 3 — Delete-client modal styles
     Gap 4 — Auto-refresh dashboard (no styling)
     Gap 5 — Regulatory updates dashboard card + side panel
     Gap 6 — ITR due-date hint styling
   All classes are namespaced `.v017-*` or `.reg-updates-*` so they
   don't collide with portal-fixes / styles.css.
   ================================================================= */

/* ---------- Gap 1: subscriber-side firms never see Drive UI ---------- */
body.v017-subscriber .v017-pinnex-only {
  display: none !important;
}

/* ---------- Gap 2: removed in v0.18.0. No selectors needed —
              the button markup is gone from index.html. ---------- */

/* ---------- Gap 3: delete-client modal ---------- */
.v017-delete-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 950;
}
.v017-delete-modal-backdrop.open { display: flex; }
.v017-delete-modal {
  background: var(--surface, #fff);
  border-radius: 12px;
  width: 480px; max-width: calc(100vw - 32px);
  padding: 22px 26px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
}
.v017-delete-modal h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  color: var(--text, #0f172a);
}
.v017-delete-modal .v017-delete-sub {
  font-size: 13px; color: var(--text-muted, #64748b);
  line-height: 1.55; margin-bottom: 16px;
}
.v017-delete-modal label {
  display: block; font-size: 12px; color: var(--text-muted, #64748b);
  margin-bottom: 4px; letter-spacing: .03em; text-transform: uppercase;
  font-weight: 600;
}
.v017-delete-modal input[type="text"] {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px; font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .03em;
}
.v017-delete-modal .v017-delete-error {
  color: #b91c1c; font-size: 12px; margin-top: 6px; min-height: 16px;
}
.v017-delete-modal .v017-delete-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
}
.v017-delete-danger-btn {
  background: #b91c1c; color: #fff; border: 0; padding: 8px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.v017-delete-danger-btn:disabled {
  background: #fca5a5; cursor: not-allowed;
}
.v017-delete-force-toggle {
  display: flex; gap: 8px; align-items: center; margin-top: 12px;
  font-size: 12px; color: var(--text-muted, #64748b);
}
.v017-delete-warning {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 10px 12px; font-size: 12px; color: #991b1b; margin-top: 12px;
}

/* Delete buttons in drawer */
.v017-delete-client-btn {
  background: transparent; color: #b91c1c;
  border: 1px solid #fecaca; padding: 6px 12px; border-radius: 7px;
  font-size: 12px; cursor: pointer;
}
.v017-delete-client-btn:hover { background: #fef2f2; }
.v017-hard-delete-btn {
  background: #b91c1c; color: #fff; border: 0;
  padding: 6px 12px; border-radius: 7px; font-size: 12px; cursor: pointer;
  margin-left: 8px;
}

/* ---------- Gap 5: Regulatory updates card ---------- */
.reg-updates-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 20px 20px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.reg-updates-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.reg-updates-title {
  display: flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--text, #0f172a);
}
.reg-updates-icon { font-size: 16px; }
.reg-updates-badge {
  background: var(--primary, #4f46e5); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  min-width: 22px; text-align: center;
}
.reg-updates-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 12px; color: var(--text-muted, #64748b);
}
.reg-updates-preview { list-style: none; padding: 0; margin: 0; }
.reg-updates-preview li {
  padding: 8px 0; border-top: 1px solid var(--border, #e2e8f0);
  display: flex; gap: 12px; font-size: 13px;
}
.reg-updates-preview li:first-child { border-top: 0; }
.reg-updates-preview .src {
  font-size: 11px; color: var(--text-muted, #64748b);
  min-width: 130px; padding-top: 2px;
}
.reg-updates-preview .date {
  font-size: 11px; color: var(--text-muted, #64748b);
  min-width: 90px; padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.reg-updates-preview .title { flex: 1; }
.reg-updates-preview a { color: var(--primary, #4f46e5); text-decoration: none; }
.reg-updates-preview a:hover { text-decoration: underline; }

.reg-updates-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 520px;
  max-width: calc(100vw - 24px);
  background: var(--surface, #fff);
  border-left: 1px solid var(--border, #e2e8f0);
  box-shadow: -16px 0 32px rgba(15, 23, 42, .18);
  z-index: 800; display: flex; flex-direction: column;
}
.reg-updates-panel[hidden] { display: none; }
.reg-updates-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border, #e2e8f0);
}
.reg-updates-panel-head h3 { margin: 0; font-size: 15px; }
.reg-updates-panel-filters {
  display: flex; gap: 12px; align-items: end; padding: 12px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: 12px; color: var(--text-muted, #64748b);
}
.reg-updates-panel-filters select {
  padding: 6px 9px; border: 1px solid var(--border, #cbd5e1);
  border-radius: 7px; font-size: 13px; margin-left: 6px;
}
.reg-updates-panel-body {
  flex: 1; overflow-y: auto; padding: 6px 20px 20px;
}
.reg-update-item {
  padding: 12px 0; border-top: 1px solid var(--border, #e2e8f0);
}
.reg-update-item:first-child { border-top: 0; }
.reg-update-item .meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}
.reg-update-item .badge-status {
  padding: 1px 8px; border-radius: 999px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: 10px;
}
.reg-update-item .badge-status[data-s="new"]       { background: #dbeafe; color: #1e40af; }
.reg-update-item .badge-status[data-s="actioned"]  { background: #dcfce7; color: #166534; }
.reg-update-item .badge-status[data-s="dismissed"] { background: #f1f5f9; color: #64748b; }
.reg-update-item .title {
  font-size: 13px; font-weight: 500; color: var(--text, #0f172a);
  margin-bottom: 6px; line-height: 1.4;
}
.reg-update-item .actions {
  display: flex; gap: 8px; font-size: 11px;
}
.reg-update-item .actions button {
  background: transparent; border: 1px solid var(--border, #cbd5e1);
  padding: 3px 9px; border-radius: 6px; cursor: pointer;
  font-size: 11px; color: var(--text-muted, #64748b);
}
.reg-update-item .actions button:hover { background: var(--surface-alt, #f8fafc); }

/* ---------- Gap 6: ITR due-date hint ---------- */
.ac-itr-due-hint {
  padding: 8px 10px; background: var(--surface-alt, #f8fafc);
  border-radius: 6px; border-left: 3px solid var(--primary, #4f46e5);
}
.ac-itr-due-hint strong { color: var(--text, #0f172a); }
.v017-itr-review-flag {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  margin-left: 6px; font-weight: 600;
}
