/* Identidad compartida con administración. Solo afecta al portal privado. */
body.customer-portal {
    --portal-ink: var(--pak-text, #172033);
    --portal-muted: var(--pak-muted, #718096);
    --portal-blue: #075ee8;
    --portal-brand: #075ee8;
    background: #eff4f8;
    color: var(--portal-ink);
    font-family: "Public Sans", system-ui, sans-serif;
    font-size: 14px;
}
.customer-portal .portal-frame--signed { grid-template-columns: 15rem minmax(0,1fr) auto; }
.customer-portal .portal-frame--signed .portal-shell-brand,
.customer-portal .portal-frame--signed .portal-nav { background: #112c4d; color: #fff; border-color: rgb(255 255 255 / 9%); }
.customer-portal .portal-frame--signed .portal-shell-brand { padding: 14px 18px; min-height: 64px; }
.customer-portal .portal-frame--signed .portal-shell-brand small { color: #a9bdd5; }
.customer-portal .portal-frame--signed .portal-nav { padding: 16px 12px; gap: 6px; }
.customer-portal .portal-nav a { color: #dce7f4; min-height: 44px; border-radius: 10px; font-weight: 500; }
.customer-portal .portal-nav a:hover { background: #1d3e63; color: white; }
.customer-portal .portal-nav a[aria-current] { background: #075ee8; color: white; }
.customer-portal .portal-header { padding: 10px 18px; gap: 14px; min-height: 64px; }
.portal-sidebar-toggle { border: 1px solid #e2e8f0; background: white; border-radius: 10px; width: 40px; height: 40px; color: #172033; font-size: 22px; flex: 0 0 auto; }
.portal-header-heading { display: grid; gap: 2px; min-width: 100px; }
.portal-header-heading strong { font-size: 16px; font-weight: 600; }
.portal-header-heading small { color: var(--portal-muted); font-size: 12px; }
.customer-portal .portal-header-search { max-width: 38rem; margin-left: auto; border-radius: 10px; background: #f6f8fc; }
.customer-portal .portal-identity { font-size: 13px; }
.customer-portal .portal-content { width: 100%; max-width: 100rem; padding: 20px; }
.customer-portal .portal-page-heading h1 { font-size: 25px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 5px; }
.customer-portal .portal-page-heading p { font-size: 13px; }
.customer-portal .portal-page-heading { margin-bottom: 18px; }
.customer-portal .portal-card,
.customer-portal .portal-tracking { border: 1px solid #e3eaf2; border-radius: 14px; padding: 18px; box-shadow: 0 2px 5px rgb(15 35 65 / 3.5%); }
.customer-portal .portal-card h2 { font-size: 16px; font-weight: 600; }
.customer-portal .portal-button,
.customer-portal .portal-card form button[type="submit"],
.customer-portal .portal-secondary { font-family: inherit; font-weight: 500; min-height: 38px; padding: 8px 13px; border-radius: 9px; font-size: 13px; }
.customer-portal .portal-button { background: #075ee8; border-color: #075ee8; color: white; }
.customer-portal .portal-secondary { background: white; border-color: #b9cbe0; color: #194779; }
.customer-portal .portal-card input,
.customer-portal .portal-card select,
.customer-portal .portal-profile-dialog input,
.customer-portal .portal-profile-dialog select { min-height: 40px; font-size: 14px; border: 1px solid #d5deea; border-radius: 8px; padding: 8px 10px; width: 100%; }
.customer-portal label { font-size: 13px; font-weight: 500; color: #34465e; }
.customer-portal .portal-card .portal-filters { gap: 12px; }
.customer-portal .portal-request-row { padding: 15px 8px; gap: 6px 12px; border-radius: 8px; }
.customer-portal .portal-row-title { max-width: 48rem; }
.customer-portal .portal-row-title small { font-size: 12px; line-height: 1.6; }
.customer-portal .portal-row-title strong { font-weight: 600; }
.customer-portal .portal-status { font-size: 11px; font-weight: 500; border: 1px solid #e3eaf2; padding: 5px 9px; }
.customer-portal .portal-home-feature { padding: 0; }
.customer-portal .portal-home-feature h2 { background: white; padding: 15px 18px 0; }
.customer-portal .portal-home-feature-body { padding: 14px 18px 18px; }
.customer-portal .portal-home-feature-links { gap: 10px; font-size: 13px; }
.customer-portal .portal-account-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 18px; align-items: start; }
.customer-portal .portal-account-access { margin: 0; }
.customer-portal .portal-account-grid .portal-profile form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.portal-profile-field { display: grid; gap: 7px; min-width: 0; }
.customer-portal .portal-account-grid .portal-profile form > button,
.customer-portal .portal-account-grid .portal-profile form > p { grid-column: 1 / -1; justify-self: start; }
.customer-portal .portal-request-summary { grid-template-columns: minmax(0,1fr) auto; padding: 20px; }
.customer-portal .portal-detail-columns { gap: 18px; }
.customer-portal .portal-detail-columns .portal-summary-details { gap: 16px; }
.customer-portal .portal-summary-details dt { font-size: 12px; color: #718096; }
.customer-portal .portal-summary-details dd { font-size: 14px; font-weight: 500; }
.customer-portal .portal-recipient-actions { gap: 12px; font-size: 13px; }
.customer-portal .portal-recipient-actions button[type="submit"] { min-height: 0; padding: 4px 0; }
.portal-profile-dialog { width: min(42rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 22px; border: 1px solid #e3eaf2; border-radius: 14px; color: #172033; }
.portal-profile-dialog::backdrop { background: rgb(16 40 68 / 50%); }
.portal-profile-dialog h2 { margin: 0 45px 20px 0; font-size: 19px; font-weight: 600; }
.portal-profile-dialog form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.portal-profile-dialog form > button { justify-self: start; }
.portal-dialog-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 1px solid #e3eaf2; border-radius: 8px; background: white; color: #34465e; }
.customer-portal .portal-assistant-dialog { border-radius: 14px; }
.customer-portal.portal-embedded .portal-content { padding: 18px; max-width: 65rem; }
.portal-embedded .request-card,
.portal-embedded .form-section,
.portal-embedded .request-step-panel { box-shadow: none; border: 0; background: transparent; padding: 0; border-radius: 0; }
.portal-embedded .request-step-intro { margin-bottom: 18px; }
.portal-embedded .request-step-intro h2 { font-size: 20px; font-weight: 600; }
.portal-embedded .service-selector-heading__eyebrow,
.portal-embedded .service-selector-heading__required,
.portal-embedded #logisticsServiceSelector .service-selector-heading { display: none; }
.portal-embedded #logisticsServiceSelector { margin-bottom: 18px; }
.portal-embedded .service-card { box-shadow: none; border: 1px solid #dce6f1; border-radius: 10px; padding: 14px; }
.portal-embedded .service-card.active { border-color: #075ee8; background: #eef5ff; }
.portal-embedded .service-card-title,
.portal-embedded .request-section-title h3 { font-weight: 600; }
.portal-embedded .sticky-actions { padding-top: 16px; border-top: 1px solid #e3eaf2; margin-top: 20px; }
.portal-embedded .sticky-actions button { min-height: 40px; font-size: 14px; border-radius: 9px; padding: 9px 18px; box-shadow: none; }
.customer-portal .tracking-page { background: transparent; min-height: 0; }
.customer-portal .tracking-shell { max-width: none; padding: 0 !important; }
.customer-portal .tracking-topbar .tracking-brand { display: none; }
@media(min-width:901px) {
    .customer-portal .portal-sidebar-collapsed { grid-template-columns: 78px minmax(0,1fr) auto; }
    .portal-sidebar-collapsed .portal-shell-brand > span,
    .portal-sidebar-collapsed .portal-nav a > span { display: none; }
    .portal-sidebar-collapsed .portal-nav a { justify-content: center; }
}
@media(max-width:1100px) {
    .portal-header-heading { display: none; }
    .customer-portal .portal-account-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:900px) {
    .customer-portal .portal-frame--signed { grid-template-columns: minmax(0,1fr) auto; }
    .portal-sidebar-toggle { display: none; }
    .customer-portal .portal-frame--signed .portal-nav { background: #112c4d; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); }
    .customer-portal .portal-nav a { font-size: 11px; }
    .customer-portal .portal-frame--signed .portal-shell-brand { border: 0; }
}
@media(max-width:650px) {
    .customer-portal .portal-content { padding: 14px; }
    .customer-portal .portal-account-grid .portal-profile form,
    .portal-profile-dialog form { grid-template-columns: minmax(0,1fr); }
    .customer-portal .portal-request-summary { grid-template-columns: minmax(0,1fr); }
    .customer-portal .portal-assistant-dialog { border-radius: 0; }
    .customer-portal .portal-header { padding: 8px 14px; }
}
.portal-profile-dialog form > button[type="submit"] { background: #075ee8; color: white; border: 1px solid #075ee8; border-radius: 9px; padding: 9px 14px; min-height: 40px; font-family: inherit; font-size: 14px; font-weight: 500; }
.customer-portal .portal-profile-dialog form > .portal-profile-field { grid-column: auto; }
.customer-portal .portal-profile-dialog form > input[type="hidden"] { display: none; }
.customer-portal .portal-embedded .portal-profile-field { grid-column: auto; }
