/* La administración tiene su propia composición; las vistas del cliente conservan su diseño. */
.platform-only { background: #f3f5f8; }
.platform-only main { padding: 0; }
.platform-only .topbar { padding: 12px 28px; background: var(--surface); border-bottom: 1px solid #e3e8ef; }
.platform-only .tip-note, .platform-only .tip-show { display: none; }
.account-platform { max-width: none; margin: 0; padding: 0; color: #1b2b43; }
.account-platform[hidden] { display: none; }
.od-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: calc(100vh - 72px); font-family: system-ui, sans-serif; }
.od-sidebar { background: #152940; color: #d5e1ef; padding: 32px 20px; display: flex; flex-direction: column; }
.od-wordmark { font-size: 17px; font-weight: 750; letter-spacing: .12em; color: #fff; }
.od-side-label { font-size: 13px; color: #99aec6; margin: 7px 0 34px; }
.od-sidebar nav { display: grid; gap: 8px; }
.od-nav { border: 0; background: transparent; text-align: left; color: #c7d5e5; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 9px; cursor: pointer; font: 500 13px system-ui; }
.od-nav:hover { background: #213b55; }
.od-nav[aria-current] { background: #25475a; color: #a6efda; }
.od-nav-icon { font-size: 19px; width: 20px; text-align: center; }
.od-nav-count { margin-left: auto; border-radius: 6px; padding: 2px 6px; background: #325b6d; color: #bff6e5; }
.od-side-foot { margin-top: auto; padding: 52px 10px 10px; font-size: 12px; line-height: 1.65; color: #a2b5cb; }
.od-side-foot > span { color: #74cdb4; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.od-side-foot small { color: #98abc0; }
.od-content { padding: 34px clamp(20px,3vw,48px); min-width: 0; max-width: 1600px; width: 100%; margin: auto; box-sizing: border-box; }
.od-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 20px; }
.od-header h1 { font-size: clamp(24px,2.4vw,32px); letter-spacing: -.035em; line-height: 1.2; margin: 6px 0 10px; }
.od-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .16em; margin: 0; color: #52796d; }
.od-muted { color: #65758a; font-size: 12px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.od-header-tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.od-btn { border: 1px solid #176957; border-radius: 7px; background: #176957; color: white; padding: 10px 14px; font: 600 12px system-ui; cursor: pointer; white-space: nowrap; }
.od-btn:hover { background: #0d5142; color: #fff; }
.od-btn:disabled { opacity: .55; cursor: default; }
.od-btn[aria-busy="true"] { cursor: progress; }
.od-btn:focus-visible, .od-nav:focus-visible { outline: 3px solid #63c8b5; outline-offset: 3px; }
.od-outline { background: #fff; color: #33465f; border-color: #dce3ea; }
.od-light { color: #176957; background: #edf6f2; border-color: transparent; }
.od-demo { color: #786238; background: #fbf6e9; border: 1px solid #ece3cc; padding: 10px 14px; font-size: 11px; line-height: 1.5; border-radius: 7px; margin: 0 0 22px; }
.od-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.od-stat { border: 1px solid #e1e7ee; border-radius: 11px; padding: 19px 21px; background: #fff; box-shadow: 0 2px 4px #15294003; }
.od-stat p { font-size: 12px; color: #66768b; margin: 0 0 10px; }
.od-stat strong { display: block; font-size: 32px; letter-spacing: -.035em; line-height: 1.2; }
.od-stat:last-child strong { color: #aa793a; }
.od-stat small { display: block; color: #758396; font-size: 10px; margin-top: 9px; line-height: 1.6; }
.od-hero { padding: 25px 28px; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #e4f0eb; border: 1px solid #cfdfd7; margin-bottom: 24px; }
.od-hero h2 { font-size: 23px; color: #21483d; margin: 9px 0; letter-spacing: -.025em; }
.od-hero p { font-size: 12px; color: #5b7a6f; max-width: 610px; line-height: 1.65; margin: 0; }
.od-hero-btn { padding: 12px 19px; }
.od-panel { border: 1px solid #e0e6ed; border-radius: 11px; background: #fff; padding: 23px 24px; margin-bottom: 23px; min-width: 0; }
.od-panel h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.02em; }
.od-toolbar { display: flex; gap: 12px; margin: 20px 0 12px; }
.od-toolbar input, .od-toolbar select { border: 1px solid #dce3eb; border-radius: 7px; background: #fbfcfd; color: #33465f; padding: 10px 12px; font: 12px system-ui; }
.od-toolbar input { flex: 1; min-width: 0; }
.od-toolbar select { width: auto; }
.od-table-wrap { overflow-x: auto; }
.od-category-select { min-width: 155px; max-width: 220px; border: 1px solid #c8d6de; border-radius: 7px; padding: 10px; font: 600 12px system-ui; color: #165c64; background: #f3faf9; }
.od-payment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; align-items: end; }
.od-payment-form > .od-btn { justify-self: start; margin-bottom: 16px; }
.od-payment-table { min-width: 640px; margin-top: 15px; }
.od-payment-status { color: #176957; font-weight: 600; font-size: 13px; }
.owner-dialog details { margin: 14px 0; }
.owner-dialog details summary { cursor: pointer; color: #176957; font-size: 13px; font-weight: 600; }
.owner-dialog .od-panel { padding: 20px; }
@media(max-width:600px) { .od-payment-form { grid-template-columns: minmax(0,1fr); } .od-category-select { max-width: 180px; } }
.od-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.od-table th { color: #8190a0; font-weight: 600; font-size: 10px; padding: 13px 10px; background: #f6f8fb; }
.od-table td { padding: 17px 10px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.od-table tbody tr:last-child td { border-bottom: 0; }
.od-table td strong { font-size: 12px; display: block; margin-bottom: 5px; }
.od-table td small { display: block; font-size: 10px; }
.od-table progress { display: block; width: 130px; max-width: 100%; height: 5px; accent-color: #3b9c83; margin-top: 8px; border-radius: 8px; }
.od-table progress::-webkit-progress-bar { background: #e9eff1; border-radius: 8px; }
.od-table progress::-webkit-progress-value { background: #3b9c83; border-radius: 8px; }
.od-number { font-weight: 700; font-size: 15px; }
.od-badge { display: inline-flex; font-size: 10px; font-weight: 600; padding: 5px 9px; border-radius: 20px; background: #edf1f6; color: #63748b; white-space: nowrap; }
.od-active, .od-approved { background: #e6f4ed; color: #2d7b5d; }
.od-suspended, .od-deactivated, .od-revoked, .od-rejected { background: #f7eae9; color: #a1534c; }
.od-pending { background: #faf0d9; color: #9c732d; }
.od-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.od-request { padding: 18px 0; border-bottom: 1px solid #edf0f4; display: flex; flex-wrap: wrap; gap: 10px; align-items: start; justify-content: space-between; }
.od-request strong { font-size: 12px; }
.od-request p { font-size: 12px; margin: 5px 0; }
.od-request .od-request-reason { width: 100%; color: #65758a; line-height: 1.6; overflow-wrap: anywhere; }
.od-request:last-of-type { margin-bottom: 17px; }
.od-event { display: flex; gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf0f4; }
.od-event strong { font-size: 11px; display: block; margin-bottom: 4px; }
.od-event small { display: block; font-size: 10px; }
.od-event time { font-size: 10px; color: #8190a1; margin-left: auto; text-align: right; }
.od-event-icon { color: #358a73; background: #edf6f2; border-radius: 8px; padding: 6px 9px; }
.od-person { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.od-person > div { flex: 1; min-width: 160px; }
.od-person small { display: block; margin-top: 6px; }
.od-team-count { font-size: 13px; color: #176957; background: #edf6f2; padding: 13px; border-radius: 7px; margin: 20px 0 4px; }
.od-panel > .od-btn { margin-top: 17px; }
.od-panel .od-panel { margin-top: 24px; }
.od-empty { padding: 25px 10px; color: #8491a2; font-size: 13px; line-height: 1.6; }
.od-footer { text-align: right; font-size: 10px; color: #8a98a8; padding: 4px 0 20px; }
.owner-dialog { width: min(780px,calc(100vw - 32px)); padding: 24px; background: #fff; color: #1b2b43; max-height: 90vh; overflow-y: auto; box-sizing: border-box; }
.owner-dialog h2 { font-size: 21px; margin: 0; }
.owner-dialog .od-muted { margin: 12px 0; }
.owner-dialog label { display: grid; gap: 7px; margin: 16px 0; font-size: 13px; color: #33465f; }
.owner-dialog input, .owner-dialog select, .owner-dialog textarea { width: 100%; background: #fff; color: #1b2b43; padding: 11px; border: 1px solid #d5dfe8; border-radius: 7px; box-sizing: border-box; }
.owner-dialog textarea { min-height: 80px; resize: vertical; }
.owner-dialog .od-btn + .od-btn { margin-left: 8px; }
.owner-dialog .modal-head { border-bottom: 1px solid #e0e6ed; padding-bottom: 15px; margin-bottom: 16px; }
.owner-dialog > .modal-head { position: sticky; top: -24px; z-index: 2; background: #fff; }
.od-detail-metrics { display: grid; grid-template-columns: repeat(4,1fr); padding: 22px 0; text-align: center; }
.od-detail-metrics strong { display: block; font-size: 24px; }
.od-detail-metrics small { font-size: 11px; color: #76879b; }
.od-inline-form { display: flex; align-items: end; gap: 12px; }
.od-inline-form label { flex: 1; }
.od-inline-form button { margin-bottom: 16px; }
#platformError:not([hidden]) { position: fixed; bottom: 25px; left: 260px; right: 28px; background: #fff0ee; color: #9d3c32; padding: 16px; border: 1px solid #edc5bf; border-radius: 9px; z-index: 10; }
@media (max-width:1100px) { .od-shell { grid-template-columns: 195px minmax(0,1fr); } .od-content { padding: 24px; } .od-header { align-items: start; flex-direction: column; } .od-header-tools { justify-content: start; } .od-stats { gap: 10px; } .od-stat { padding: 16px; } .od-columns { grid-template-columns: 1fr; gap: 0; } }
@media (max-width:700px) { .od-shell { display: block; } .od-sidebar { padding: 16px; } .od-wordmark,.od-side-label,.od-side-foot { display: none; } .od-sidebar nav { display: flex; overflow-x: auto; } .od-nav { flex-shrink: 0; padding: 10px; } .od-nav-icon { display: none; } .od-content { padding: 22px 16px; } .od-stats { grid-template-columns: 1fr 1fr; } .od-stat strong { font-size: 28px; } .od-hero { flex-direction: column; align-items: start; padding: 22px; } .od-panel { padding: 18px 15px; } .od-table { min-width: 620px; } .od-toolbar { flex-wrap: wrap; } .od-toolbar input { flex-basis: 100%; } .od-toolbar select { width: 100%; } .od-inline-form { flex-direction: column; align-items: stretch; } #platformError:not([hidden]) { left: 16px; right: 16px; } .od-detail-metrics { gap: 8px; } .od-detail-metrics small { font-size: 10px; } }

/* Registro comercial: mismas reglas en el panel titular y en el despacho. */
.od-vip, .od-lifetime { background:#f1e9fc;color:#7140a3; }
.od-expired {background:#fae5e2;color:#963d31;}
.od-scheduled {background:#e9effa;color:#365d92;}
.od-license-alert {padding:10px 12px;border-radius:7px;background:#fff3db;color:#815c1e;font-size:12px;line-height:1.6;}
.od-commercial {margin-top:18px;}
.od-commercial > .od-btn {margin:12px 8px 8px 0;}
.od-license-table {min-width:700px;margin-top:12px;}
.od-license-table td:last-child .od-btn {display:block;margin:4px 0;}
.od-license-table details {font-size:11px;max-width:290px;line-height:1.6;margin-top:8px;}
.od-license-table details summary {cursor:pointer;}
.od-license-table details p {overflow-wrap:anywhere;}
#clientSeatRequests .od-commercial {background:var(--surface);color:var(--text);border-color:var(--border);padding:16px;}
#clientSeatRequests .od-commercial .od-muted {color:var(--text-muted);}
#clientSeatRequests .od-license-table th {background:var(--surface-2,var(--surface));color:var(--text-muted);}
#clientSeatRequests .od-license-table td {border-color:var(--border);}

.owner-dialog:has(.od-commercial) {width:min(1100px,calc(100vw - 32px));}
.owner-dialog .password-control > input {padding-inline-end:48px;}
.od-administrator-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin-top:20px;}
.owner-dialog .od-administrator-form label {min-width:0;margin:0;}
.od-administrator-form > label:nth-of-type(3),.od-administrator-form > .od-btn {grid-column:1 / -1;}
.od-administrator-form > .od-btn {justify-self:start;max-width:100%;white-space:normal;}
@media(max-width:700px){.od-administrator-form{grid-template-columns:minmax(0,1fr);}}

.od-notice-select-all {display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;}
.od-notice-select-all input,.od-table input[type=checkbox] {width:18px;height:18px;accent-color:var(--brand-link);}
.od-toolbar:has(.od-notice-select-all) {flex-wrap:wrap;}
.od-notice-form {display:grid;gap:16px;}
.owner-dialog .od-notice-form label {margin:0;}
.od-notice-form textarea {min-height:140px;}
.od-notice-preview {padding:20px;border:1px solid var(--border);border-left:3px solid var(--brand-cyan);border-radius:8px;background:var(--surface-2);}
.od-notice-preview p,.od-notice-body {white-space:pre-wrap;overflow-wrap:anywhere;}
.od-notice-expiry {font-weight:600;color:var(--brand-link);}

.od-notice-icons {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border:1px solid var(--border);border-radius:8px;padding:16px;}
.owner-dialog .od-notice-icons .od-notice-icon-option {display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:13px;min-width:0;}
.od-notice-icon-option:has(input:checked) {border-color:var(--brand-cyan);background:var(--surface-2);outline:1px solid var(--brand-cyan);}
.od-notice-icon-option input {width:16px;height:16px;margin:0;}
.od-notice-preview {display:flex;gap:16px;align-items:flex-start;}
.od-notice-preview > div {min-width:0;}
@media(max-width:600px){.od-notice-icons {grid-template-columns:repeat(2,minmax(0,1fr));}}

.od-notice-success {padding:24px;border:1px solid #b6d9ce;border-radius:8px;background:#edf6f2;color:#176957;}
.od-notice-success h3 {margin-top:0;}
/* Confirmación de eliminación definitiva; accesible también en pantalla estrecha. */
.od-delete{background:#9d2638!important;color:#fff!important;border-color:#9d2638!important}
.od-delete:disabled{opacity:.45;cursor:not-allowed}
.od-delete-name{font-weight:700;overflow-wrap:anywhere}
.owner-dialog label.od-delete-ack{display:flex;flex-direction:row;align-items:flex-start;gap:.6rem;margin:1rem 0;line-height:1.5}
.owner-dialog .od-delete-ack input{flex:0 0 18px;width:18px;height:18px;margin-top:.3rem}
.od-delete-success,.od-delete-pending{padding:16px;border-radius:10px;background:#e6f4ee;color:#176747;border:1px solid #a9d6c2}
.od-delete-pending{background:#fff4df;color:#855d1f;border-color:#ead7ae}
