:root {
  color-scheme: light;
  --ccs-orange: #f9a825;
  --ccs-orange-rgb: 249, 168, 37;
  --ccs-gray: #a4b5c0;
  --ccs-gray-rgb: 164, 181, 192;
  --ccs-navy: #0e3662;
  --ccs-navy-rgb: 14, 54, 98;
  --ccs-white: #fbfbfb;
  --bs-primary: var(--ccs-navy);
  --bs-primary-rgb: var(--ccs-navy-rgb);
  --bs-body-color: #263238;
  --bs-body-bg: #f4f6f8;
  --bs-border-color: #dee2e6;
  --bs-border-radius: .5rem;
  --bs-border-radius-lg: .75rem;
  --bs-box-shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --bs-box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f2f5f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

.general-personalization-form { display: grid; gap: 16px; max-width: 760px; padding: 20px; }
.general-personalization-form[hidden] { display: none; }
.general-personalization-form > h3 { margin: 0; font-size: 1.05rem; }
.general-personalization-form > p { margin: 0; line-height: 1.5; font-size: .85rem; }
.general-personalization-form label { display: grid; min-width: 0; gap: 8px; font-size: .85rem; }
.general-personalization-form select,.general-personalization-form input { width: 100%; min-width: 0; height: auto; min-height: 44px; font-size: 1rem; }
.ui-font-preview { display: grid; gap: 12px; padding: 20px; border: 1px solid #d9e3ee; border-radius: 12px; background: #f6f9fc; overflow-wrap: anywhere; }
.ui-font-preview h4 { margin: 0; font-size: 1.1rem; }
.ui-font-preview p { margin: 0; font-size: .85rem; }
.ui-font-preview small { font-size: .75rem; }
.general-personalization-form .form-actions { flex-wrap: wrap; }
.personalization-subtabs { flex-wrap: wrap; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(73, 151, 116, 0.12), transparent 28rem),
    #f3f6f5;
}

/* Keep the page behind an open dialog still; the foreground owns touch scrolling. */
html:has(.modal-backdrop:not([hidden]), .drawer-backdrop:not([hidden]), .page-shell.overlay-mode:not([hidden])),
body:has(.modal-backdrop:not([hidden]), .drawer-backdrop:not([hidden]), .page-shell.overlay-mode:not([hidden])) {
  overflow: hidden;
}

.auth-shell { display: grid; min-height: 100vh; padding: 34px; place-items: center; }
.session-loading { position: fixed; z-index: 10000; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--ccs-navy); background: #f4f7f9; }
.session-loading .brand-mark { width: 52px; height: 52px; margin-bottom: 7px; }
.session-loading .loading-ring { margin: 2px 0 3px; }
.session-loading strong { font-size: .92rem; }
.session-loading small { color: #7a8997; font-size: .7rem; }
.auth-panel { display: grid; width: min(1050px, 100%); min-height: 650px; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid #dce6e1; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(24, 57, 45, .14); }
.auth-brand-panel { position: relative; display: flex; padding: 56px 48px; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #123d32, #287459); }
.auth-brand-panel::after { position: absolute; right: -130px; bottom: -160px; width: 390px; height: 390px; border: 70px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; }
.auth-logo { display: grid; width: 55px; height: 55px; margin-bottom: 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(255,255,255,.12); font-size: 1.1rem; font-weight: 900; }
.auth-brand-panel h1 { max-width: 390px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.02; }
.auth-brand-panel > p:not(.eyebrow) { max-width: 410px; margin: 20px 0 0; color: #d3e8df; line-height: 1.65; }
.auth-brand-panel ul { display: grid; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.auth-brand-panel li { display: flex; align-items: center; gap: 10px; color: #e3f0eb; font-size: .88rem; font-weight: 650; }
.auth-brand-panel li::before { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #164735; background: #bde2d1; content: "✓"; font-size: .7rem; font-weight: 900; }
.auth-form-panel { padding: 42px 52px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 34px; border-bottom: 1px solid #dfe7e3; }
.auth-tab { min-width: 0; padding: 13px 8px; border-radius: 0; color: #829088; background: transparent; box-shadow: none; }
.auth-tab:hover { color: #276c57; background: transparent; transform: none; }
.auth-tab.active { border-bottom: 3px solid #277157; color: #215e48; }
.auth-form { display: grid; gap: 18px; padding: 0; }
.auth-form > div:first-child h2, .auth-form > div:first-child p { margin: 0; }
.auth-form > div:first-child h2 { color: #21372d; font-size: 1.65rem; }
.auth-form > div:first-child p { margin-top: 7px; color: #738078; line-height: 1.5; }
.auth-form label { display: grid; gap: 7px; color: #46574f; font-size: .8rem; font-weight: 750; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-form .form-message { margin: 0; }
.auth-form > button[type="submit"] { width: 100%; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.remember-session { display: flex !important; align-items: center; justify-content: start; gap: 8px !important; }
.remember-session input { width: 16px; height: 16px; }
.auth-link-button { min-width: 0; padding: 0; color: #0e3662; background: transparent; box-shadow: none; font-size: .76rem; }
.auth-link-button:hover { color: #9a6200; background: transparent; transform: none; }
.auth-switch-copy { margin: 0; color: #748179; font-size: .8rem; text-align: center; }
.auth-switch-copy button { min-width: 0; padding: 0; color: #276c57; background: transparent; box-shadow: none; font-size: inherit; }
.auth-switch-copy button:hover { background: transparent; transform: none; text-decoration: underline; }
.marketing-consent { display: flex !important; align-items: flex-start; gap: 10px !important; padding: 13px; border-radius: 10px; background: #f5f9f7; cursor: pointer; }
.marketing-consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.marketing-consent strong, .marketing-consent small { display: block; }
.marketing-consent small { margin-top: 3px; color: #7a8781; font-weight: 500; }
.privacy-copy { margin: -7px 0 0; color: #849089; font-size: .71rem; line-height: 1.45; }
.verification-form { max-width: 430px; margin: 55px auto 0; text-align: center; }
.verification-form label { text-align: left; }
.verification-icon { display: grid; width: 62px; height: 62px; margin: 0 auto; place-items: center; border-radius: 18px; color: #276c57; background: #e5f2ec; font-size: 1.7rem; }
.verification-code { text-align: center; font-size: 1.35rem; font-weight: 850; letter-spacing: .32em; }
.demo-code-note { padding: 12px; border: 1px dashed #d4a957; border-radius: 10px; color: #76561e; background: #fff9e9; font-size: .76rem; line-height: 1.5; }

button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 42px auto;
}

.page-shell.overlay-mode {
  position: fixed;
  inset: 0;
  z-index: 205;
  width: auto;
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  background: rgba(12, 31, 24, .58);
  backdrop-filter: blur(4px);
}

.page-shell.overlay-mode .form-card {
  width: min(980px, 100%);
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.form-card {
  overflow: hidden;
  border: 1px solid #dfe7e3;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(31, 53, 44, 0.09);
}

.card-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 62px 42px 30px;
  color: #fff;
  background: linear-gradient(120deg, #163f35, #276c57);
}

.eyebrow {
  margin: 0 0 8px;
  color: #a9dfc8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.45rem); letter-spacing: -0.035em; }
.intro { margin: 10px 0 0; color: #dcece5; }
.step-badge { align-self: flex-start; flex: none; padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .82rem; font-weight: 700; }

.timeline { display: flex; align-items: flex-start; padding: 26px 42px 8px; }
.timeline-step { width: 116px; text-align: center; color: #89958f; }
.timeline-step span { display: grid; width: 34px; height: 34px; margin: auto; place-items: center; border: 2px solid #ccd6d1; border-radius: 50%; background: #fff; font-size: .86rem; font-weight: 800; }
.timeline-step p { margin: 8px 0 0; font-size: .76rem; font-weight: 700; }
.timeline-step.active { color: #226048; }
.timeline-step.active span { color: #fff; border-color: #2a7659; background: #2a7659; box-shadow: 0 0 0 5px #e4f0eb; }
.timeline-step.completed { color: #226048; }
.timeline-step.completed span { color: #fff; border-color: #2a7659; background: #2a7659; }
.timeline-line.completed { background: #70a990; }
.timeline-line { flex: 1; height: 2px; margin-top: 16px; background: #e1e7e4; }

form { padding: 22px 42px 38px; }
.company-toggle { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #dce6e1; border-radius: 14px; background: #f8fbf9; cursor: pointer; }
.company-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.company-toggle strong, .company-toggle small { display: block; }
.company-toggle strong { color: #24332d; font-size: .95rem; }
.company-toggle small { margin-top: 3px; color: #6e7b75; }
.toggle-ui { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; background: #bdc8c3; transition: .2s ease; }
.toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); content: ""; transition: .2s ease; }
.company-toggle input:checked + .toggle-ui { background: #2a7659; }
.company-toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.company-toggle:focus-within { outline: 3px solid rgba(42,118,89,.18); }

.field-section { padding-top: 32px; }
.field-section h2 { margin: 0 0 18px; color: #263a32; font-size: 1.05rem; }
.field-section .subheading { margin-top: 28px; }
.project-section { margin-top: 30px; border-top: 1px solid #e7ece9; }
.project-client-linker { margin: 0 0 24px; padding: 20px; border: 1px solid #dce4e8; border-radius: 16px; background: #f8fafc; }
.project-client-linker h2, .project-client-linker p { margin: 0; }
.project-client-linker h2 { color: #21384c; font-size: 1.08rem; }
.project-client-linker > div:first-child > p:last-child { margin-top: 5px; color: #71808c; font-size: .8rem; }
.project-client-mode { display: flex; width: fit-content; gap: 4px; margin: 17px 0 14px; padding: 4px; border-radius: 11px; background: #e9eef2; }
.project-client-mode button { min-width: 0; padding: 8px 13px; border-radius: 8px; color: #607080; background: transparent; box-shadow: none; font-size: .76rem; }
.project-client-mode button.active { color: #fff; background: var(--ccs-navy, #0e3662); }
.existing-client-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.save-client-choice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #dce4e8; border-radius: 11px; background: #fff; }
.save-client-choice input { width: auto; margin-top: 3px; }
.save-client-choice strong, .save-client-choice small { display: block; }
.save-client-choice small { margin-top: 2px; color: #78858e; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; }
.form-grid label { display: grid; gap: 8px; color: #43524c; font-size: .84rem; font-weight: 720; }
.full-width { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #cfd9d4; border-radius: 10px; color: #1e2925; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
/* Evita que Safari/iPad herede a los selectores el tamaño de los campos de texto. */
input[type="checkbox"], input[type="radio"] { width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; padding: 0; margin: 0; flex: 0 0 18px; box-sizing: border-box; accent-color: var(--ccs-navy); }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aebeb6; }
input:focus, select:focus, textarea:focus { border-color: #2a7659; box-shadow: 0 0 0 3px rgba(42,118,89,.13); }
input.invalid, select.invalid { border-color: #c54747; box-shadow: 0 0 0 3px rgba(197,71,71,.1); }
input::placeholder { color: #9aa59f; }
select { cursor: pointer; }

.form-message { min-height: 22px; margin: 22px 0 0; color: #b33434; font-size: .87rem; font-weight: 650; }
.form-message.success { color: #276c57; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 8px; }
.form-actions p { margin: 0; color: #7b8781; font-size: .8rem; }
button { min-width: 142px; padding: 13px 19px; border: 0; border-radius: 11px; color: #fff; background: #247052; box-shadow: 0 7px 18px rgba(36,112,82,.2); font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
button:hover { background: #1b6046; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button span { margin-left: 8px; }

.step-content { padding: 24px 42px 40px; }
.gda-heading { max-width: 700px; }
.eyebrow.dark { color: #2a7659; }
.gda-heading h2 { margin: 0; color: #263a32; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.gda-heading > p:last-child { margin: 12px 0 0; color: #627069; line-height: 1.65; }
.project-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; }
.project-summary div { padding: 17px 18px; border: 1px solid #dce6e1; border-radius: 12px; background: #f8fbf9; }
.project-summary dt { color: #728078; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.project-summary dd { margin: 6px 0 0; color: #21342c; font-size: 1rem; font-weight: 780; }
#gda-form { padding: 0; }
.process-field { padding: 24px; border: 1px solid #cfe0d8; border-radius: 14px; background: #f2f8f5; }
.process-field label { display: block; color: #263a32; font-size: 1rem; font-weight: 800; }
.process-field p { margin: 6px 0 16px; color: #68766f; font-size: .84rem; }
.process-field input { max-width: 360px; background: #fff; }
.secondary-button { color: #276c57; border: 1px solid #bed2c8; background: #fff; box-shadow: none; }
.secondary-button:hover { color: #fff; background: #276c57; }
.secondary-button span { margin: 0 8px 0 0; }
button:disabled { opacity: .52; cursor: not-allowed; transform: none; }

.process-summary-text { padding: 15px 17px; border-left: 4px solid #2a7659; border-radius: 0 10px 10px 0; background: #f2f8f5; color: #304a3f !important; }
.procedure-options { margin-top: 26px; }
.procedure-options h3 { margin: 0 0 8px; color: #263a32; font-size: 1.05rem; }
.procedure-options p { color: #53635b; line-height: 1.65; }
.recommendation-note { margin: 18px 0; padding: 18px 20px; border: 1px solid #d9e7df; border-radius: 12px; color: #466056; background: #f7faf8; font-size: .91rem; font-style: italic; line-height: 1.6; }
.documents-heading { margin: 34px 0 16px; color: #304039; font-weight: 720; }
.documents-table { overflow: hidden; border: 1px solid #dce5e1; border-radius: 14px; }
.documents-row { position: relative; border-bottom: 1px solid #e4eae7; background: #fff; }
.documents-header { display: grid; grid-template-columns: minmax(260px, 1.8fr) minmax(145px, .65fr) minmax(125px, .55fr); }
.documents-row:last-child { border-bottom: 0; }
.documents-header { color: #eaf4ef; background: #285f4c; font-size: .75rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.documents-header span { display: grid; min-height: 54px; padding: 12px 15px; place-items: center start; }
.documents-header span:not(:first-child) { place-items: center; text-align: center; }
.documents-row summary { display: grid; grid-template-columns: minmax(260px, 1.8fr) minmax(145px, .65fr) minmax(125px, .55fr); min-height: 66px; color: #2e4038; cursor: pointer; list-style: none; }
.documents-row summary::-webkit-details-marker { display: none; }
.documents-row summary:focus-visible { outline: 3px solid rgba(42,118,89,.18); outline-offset: -3px; }
.document-name { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.expand-icon { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border-radius: 50%; color: #2a7659; background: #e8f2ed; font-size: 1.25rem; transition: transform .18s; }
.documents-row[open] .expand-icon { transform: rotate(90deg); }
.file-status { display: flex; min-height: 66px; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-left: 1px solid #edf1ef; color: #98a39e; text-align: center; }
.file-status.generated { color: #276c57; background: #fbfdfc; }
.file-status.upload { color: #4e6986; }
.file-status small { font-size: .72rem; font-weight: 750; }
.document-icon { display: grid; width: 29px; height: 32px; place-items: center; border: 1px solid currentColor; border-radius: 5px; font-size: 1rem; }
.document-action { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 7px 9px; color: #276c57; border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; }
.document-action:hover { color: #fff; background: #276c57; transform: none; }
.document-action small { font-size: .72rem; }
.document-action .document-icon { width: 27px; height: 29px; }
.document-description { margin: 0; padding: 16px 20px 19px 51px; border-top: 1px solid #edf1ef; color: #607068; background: #f8faf9; font-size: .87rem; line-height: 1.6; }
.prototype-note { margin: 13px 2px 0; color: #7a8781; font-size: .78rem; font-style: italic; }
.prototype-note.success { color: #276c57; font-style: normal; font-weight: 700; }
.prototype-note.error { color: #b33434; font-style: normal; font-weight: 700; }
.te4-actions { margin-top: 28px; }

.optional-files-section { margin-top: 34px; }
.optional-files-heading h3 { margin: 0; color: #263a32; font-size: 1.08rem; }
.optional-files-heading p { margin: 7px 0 16px; color: #68766f; font-size: .87rem; line-height: 1.55; }
.optional-files-table { overflow: hidden; border: 1px solid #dce5e1; border-radius: 14px; }
.optional-file-row { display: grid; grid-template-columns: minmax(280px, 1.5fr) 80px minmax(180px, .8fr); min-height: 58px; align-items: center; border-bottom: 1px solid #e5ebe8; background: #fff; }
.optional-file-row:last-child { border-bottom: 0; }
.optional-file-row > span:first-child { padding: 13px 16px; color: #34463e; font-size: .86rem; font-weight: 700; }
.optional-file-row > strong { color: #276c57; text-align: center; }
.optional-file-header { min-height: 48px; color: #eaf4ef; background: #285f4c; font-size: .73rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.optional-file-header span { padding: 10px 16px !important; color: inherit !important; }
.optional-file-header span:not(:first-child) { text-align: center; }
.upload-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; min-height: 58px; padding: 9px 13px; border-left: 1px solid #edf1ef; cursor: pointer; }
.upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-control > span { grid-row: 1 / 3; padding: 7px 10px; border: 1px solid #bcd1c7; border-radius: 8px; color: #276c57; font-size: .75rem; font-weight: 800; }
.upload-control small { overflow: hidden; color: #7b8781; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-shell { min-height: 100vh; color: var(--bs-body-color); background: var(--bs-body-bg); }
.dashboard-header { position: sticky; top: 0; z-index: 20; width: 100%; padding: 0 24px; color: #fff; background: linear-gradient(110deg, #123e32, #236d55); box-shadow: 0 2px 10px rgba(18,55,44,.18); }
.dashboard-header-inner { position: relative; z-index: 2; display: flex; width: min(1440px, 100%); min-height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 36px; }
.dashboard-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.12); font-weight: 900; }
.dashboard-brand p, .dashboard-brand h1 { margin: 0; }
.dashboard-brand p { color: #b8ddce; font-size: .7rem; font-weight: 700; }
.dashboard-brand h1 { font-size: 1.25rem; letter-spacing: -.02em; }
.dashboard-nav { display: flex; align-items: center; gap: 6px; }
.nav-menu, .profile-menu { position: relative; }
.dashboard-nav > .nav-home, .nav-menu > summary, .profile-menu > summary { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--bs-border-radius); color: #dcebe5; background: transparent; box-shadow: none; cursor: pointer; font-size: .84rem; font-weight: 700; list-style: none; text-decoration: none; }
.dashboard-nav > .nav-home:hover, .dashboard-nav > .nav-home.active, .nav-menu > summary:hover, .nav-menu.active > summary, .profile-menu > summary:hover { color: #fff; background: rgba(255,255,255,.1); transform: none; }
.nav-menu > summary::-webkit-details-marker, .profile-menu > summary::-webkit-details-marker { display: none; }
.nav-dropdown { position: absolute; z-index: 100; top: calc(100% + 8px); left: 0; width: 220px; padding: 8px; border: 1px solid #dfe7e3; border-radius: 13px; color: #2e4038; background: #fff; box-shadow: 0 16px 36px rgba(20,52,42,.17); }
.nav-dropdown button { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; padding: 10px 11px; color: #53645c; border-radius: 8px; background: transparent; box-shadow: none; font-size: .8rem; text-align: left; }
.nav-dropdown button:hover { color: #276c57; background: #f1f7f4; transform: none; }
.nav-dropdown button.available { color: #1f6b52; font-weight: 850; }
.avatar-placeholder { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; color: #174536; background: #c9e3d8; font-size: .65rem; font-weight: 900; }
.avatar-placeholder.large { width: 42px; height: 42px; flex: none; border-color: #d3e5dd; font-size: .8rem; }
.profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 230px; overflow: hidden; padding: 8px; border: 1px solid #dfe7e3; border-radius: 13px; color: #2e4038; background: #fff; box-shadow: 0 16px 36px rgba(20,52,42,.17); }
.profile-identity { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #edf1ef; }
.profile-identity strong, .profile-identity small { display: block; }
.profile-identity small { margin-top: 2px; color: #7b8781; }
.profile-dropdown button { display: block; width: 100%; min-width: 0; padding: 10px; color: #42534b; border-radius: 8px; background: transparent; box-shadow: none; text-align: left; }
.profile-dropdown button:hover { color: #276c57; background: #f1f7f4; transform: none; }
.dashboard-content { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 60px; }
.module-view { animation: module-fade .18s ease-out; }
@keyframes module-fade { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.module-placeholder { max-width: 720px; margin: 75px auto; padding: 54px 42px; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: #fff; box-shadow: var(--bs-box-shadow-sm); text-align: center; }
.module-placeholder > span { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 14px; color: var(--bs-primary); background: rgba(var(--bs-primary-rgb),.1); font-size: 1.4rem; }
.module-placeholder h2, .module-placeholder > p { margin: 0; }
.module-placeholder h2 { color: #26343a; }
.module-placeholder > p:not(.eyebrow):not(.module-notice) { margin-top: 8px; color: #6c757d; }
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-main-actions { display: flex; gap: 10px; }
.dashboard-welcome h2 { margin: 0; color: #21342c; font-size: 1.8rem; letter-spacing: -.03em; }
.dashboard-welcome > div > p:last-child { margin: 7px 0 0; color: #718078; }
.module-notice { margin: 18px 0 0; padding: 13px 16px; border: 1px solid #d5e4dd; border-radius: 11px; color: #3f6354; background: #eef6f2; font-size: .82rem; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.metric-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.metric-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 13px; color: #247052; background: #e7f2ed; font-size: 1.35rem; }
.metric-icon.amber { color: #9a6416; background: #fff2d9; }
.metric-icon.blue { color: #38678d; background: #e7f1f9; }
.metric-icon.violet { color: #65539b; background: #eeeafb; }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: #6f7d76; font-size: .78rem; font-weight: 700; }
.metric-card strong { margin-top: 4px; color: #22362e; font-size: 1.8rem; }
.region-overview { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.region-overview-header h2, .region-overview-header p { margin: 0; }
.region-overview-header h2 { color: #263a32; font-size: 1.1rem; }
.region-overview-header p { margin-top: 4px; color: #7a8781; font-size: .8rem; }
.region-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-top: 17px; }
.region-card { padding: 16px; border: 1px solid #e1e9e5; border-radius: 12px; background: #f8fbf9; }
.region-card strong, .region-card span, .region-card small { display: block; }
.region-card strong { color: #2d463b; font-size: .88rem; }
.region-card span { margin-top: 9px; color: #276c57; font-size: 1.15rem; font-weight: 900; }
.region-card small { margin-top: 3px; color: #79877f; }
.projects-panel { margin-top: 26px; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.projects-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; }
.projects-panel-header h2, .projects-panel-header p { margin: 0; }
.projects-panel-header h2 { color: #263a32; font-size: 1.1rem; }
.projects-panel-header p { margin-top: 4px; color: #7a8781; font-size: .8rem; }
.projects-panel-actions { display: flex; align-items: center; gap: 10px; }
.projects-panel-actions > span { padding: 6px 10px; border-radius: 999px; color: #276c57; background: #e8f2ed; font-size: .72rem; font-weight: 800; }
.view-switch { display: flex; padding: 3px; border: 1px solid #dce6e1; border-radius: 10px; background: #f4f7f5; }
.view-switch button { min-width: 0; padding: 7px 10px; border-radius: 7px; color: #687870; background: transparent; box-shadow: none; font-size: .72rem; }
.view-switch button.active { color: #fff; background: #276c57; }
.view-switch button:hover { transform: none; }
.projects-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 16px; padding: 0 24px 24px; }
.project-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #dde7e2; border-radius: 14px; color: #34473e; background: #fff; box-shadow: 0 8px 20px rgba(31,64,52,.07); text-align: left; }
.project-card:hover { border-color: #a9c9bc; box-shadow: 0 13px 28px rgba(31,64,52,.13); transform: translateY(-2px); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; border-bottom: 1px solid #edf1ef; }
.project-card-top small, .project-card-top strong { display: block; }
.project-card-top small { color: #829088; font-size: .67rem; text-transform: uppercase; }
.project-card-top strong { margin-top: 3px; color: #263e33; font-size: .98rem; }
.project-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px 18px 18px; }
.project-card-details small, .project-card-details strong { display: block; }
.project-card-details small { color: #839088; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.project-card-details strong { margin-top: 4px; overflow: hidden; color: #485a51; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(270px, 1fr)); gap: 16px; padding: 18px 20px 24px; overflow-x: auto; border-top: 1px solid #e9ecef; background: #f6f8fb; }
.kanban-column { min-width: 0; width: 100%; }
.kanban-column-header { display: flex; min-height: 105px; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 15px 16px; border: 1px solid #dfe4ea; border-left: 4px solid #fd9843; border-radius: var(--bs-border-radius-lg); background: #fff8f3; }
.kanban-column-header > div { min-width: 0; flex: 1; }
.kanban-column.blue .kanban-column-header { border-left-color: #4c84ff; background: #f2f6ff; }
.kanban-column.green .kanban-column-header { border-left-color: #39b88a; background: #effaf6; }
.kanban-column.violet .kanban-column-header { border-left-color: #835af1; background: #f5f2ff; }
.kanban-column.amber .kanban-column-header { border-left-color: #d68a16; background: #fff9eb; }
.kanban-column-header h3, .kanban-column-header p { margin: 0; }
.kanban-column-header h3 { color: #334155; font-size: .9rem; }
.kanban-column-header small { display: block; margin-top: 4px; color: #6f8094; font-size: .65rem; font-weight: 750; }
.kanban-column-header p { margin-top: 5px; color: #7d8da3; font-size: .72rem; }
.kanban-column-header strong { display: block; margin-top: 3px; color: #5f7491; font-size: .74rem; }
.kanban-column-header > span { color: #8da0b8; font-weight: 900; letter-spacing: .08em; }
.kanban-column-body { display: grid; align-content: start; gap: 11px; min-height: 250px; padding-top: 14px; }
.kanban-card { display: grid; min-width: 0; width: 100%; max-width: 100%; padding: 16px; overflow: hidden; border: 1px solid #dfe4ea; border-radius: var(--bs-border-radius-lg); color: #334155; background: #fff; box-shadow: var(--bs-box-shadow-sm); text-align: left; }
.kanban-card:hover { border-color: #8eb8a7; box-shadow: var(--bs-box-shadow); transform: translateY(-2px); }
.kanban-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kanban-card-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.28; }
.kanban-card-heading > span { color: #8ca0b8; font-size: 1rem; }
.kanban-card-location { margin: 5px 0 13px; color: #276cda; font-size: .73rem; font-weight: 700; }
.kanban-client-status { display: grid; min-width: 0; width: 100%; max-width: 100%; gap: 2px; margin-bottom: 10px; padding: 10px 11px; overflow: hidden; border-left: 3px solid var(--ccs-orange); border-radius: 7px; background: rgba(var(--ccs-orange-rgb),.1); overflow-wrap: anywhere; }
.kanban-client-status small { color: #718096; font-size: .59rem; font-style: normal; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.kanban-client-status strong { color: var(--ccs-navy); font-size: .72rem; }
.kanban-client-status em { color: #6b7c8f; font-size: .64rem; font-style: normal; }
.kanban-card-data { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #eef1f4; font-size: .7rem; }
.kanban-card-data small { color: #8695a8; }
.kanban-card-data strong { min-width: 0; max-width: 62%; color: #53657d; overflow-wrap: anywhere; text-align: right; }
.kanban-column-header > .kanban-step-number { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.2); font-size: .75rem; font-weight: 900; letter-spacing: 0; }
.kanban-card-value { margin-top: 10px; color: #38506b; font-size: .84rem; font-weight: 900; }
.kanban-empty { display: grid; min-height: 150px; padding: 20px; place-items: center; border: 1px dashed #ced7e2; border-radius: var(--bs-border-radius-lg); color: #91a0b2; font-size: .75rem; text-align: center; }
#projects-card-grid { grid-template-columns: repeat(5,minmax(270px,1fr)); gap: 14px; }
.netbilling-project-card { position: relative; display: grid; gap: 0; min-height: 260px; padding: 18px 20px 19px; border: 0; border-radius: 15px; color: #1e293b; background: #fff; box-shadow: 0 6px 18px rgba(var(--ccs-navy-rgb),.1); --card-accent: #f59e0b; --card-pill-bg: #fff1df; --card-pill-text: #c44c00; }
.netbilling-project-card::before { position: absolute; top: 9px; bottom: 10px; left: 0; width: 4px; border-radius: 0 999px 999px 0; background: var(--card-accent); content: ""; }
.netbilling-project-card.step2 { --card-accent: #4c84ff; --card-pill-bg: #eaf1ff; --card-pill-text: #245ebd; }
.netbilling-project-card.step3 { --card-accent: #39b88a; --card-pill-bg: #e8f8f2; --card-pill-text: #147451; }
.netbilling-project-card.step4 { --card-accent: #d68a16; --card-pill-bg: #fff2d8; --card-pill-text: #9a5b00; }
.netbilling-project-card.step5 { --card-accent: #835af1; --card-pill-bg: #f0ebff; --card-pill-text: #5e3ac1; }
.netbilling-project-card:hover { color: #1e293b; border-color: transparent; background: #fff; box-shadow: 0 15px 34px rgba(var(--ccs-navy-rgb),.16); transform: translateY(-3px); }
.netbilling-card-meta, .te1-card-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.netbilling-card-stage { color: #60708a; font-size: .61rem; font-weight: 850; letter-spacing: .015em; text-transform: uppercase; }
.project-inactivity-badge { display: inline-flex; width: fit-content; min-width: 0; flex: 0 0 auto; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #dbe5e1; border-radius: 999px; color: #577066; background: #f0f6f3; font-size: .56rem; line-height: 1; white-space: nowrap; }
.project-inactivity-badge .animated-lucide { width: 12px; height: 12px; }
.project-inactivity-badge strong { margin: 0; color: inherit; font-size: inherit; font-weight: 850; line-height: 1; }
.project-inactivity-badge.watch { color: #8a6415; border-color: #f0ddb0; background: #fff7e2; }
.project-inactivity-badge.warning { color: #ad5b12; border-color: #f2cfaa; background: #fff0df; }
.project-inactivity-badge.overdue { color: #a33d48; border-color: #efc5ca; background: #fdecef; }
.netbilling-card-status { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 11px; border-radius: 999px; color: var(--card-pill-text); background: var(--card-pill-bg); font-size: .69rem; line-height: 1.25; }
.netbilling-card-status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--card-accent); }
.netbilling-card-status strong { min-width: 0; overflow-wrap: anywhere; }
.netbilling-card-owner { margin-top: 14px; color: #1e293b; font-size: .9rem; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.netbilling-card-location { margin-top: 2px; color: #64748b; font-size: .69rem; font-weight: 500; }
.netbilling-card-divider { height: 1px; margin: 12px 0 7px; background: #e5e9ef; }
.netbilling-card-data { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 11px; padding: 4px 0; line-height: 1.22; }
.netbilling-card-data small { flex: 0 0 auto; color: #94a3b8; font-size: .64rem; }
.netbilling-card-data strong { min-width: 0; color: #334155; font-size: .69rem; font-weight: 800; overflow-wrap: anywhere; text-align: right; }
.netbilling-card-data.value { padding-top: 3px; }
.netbilling-card-data.value strong { color: #1e293b; font-size: .88rem; font-weight: 900; }
.netbilling-card-progress { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1f4; text-align: left; }
.netbilling-project-card .netbilling-card-progress, .netbilling-project-card .netbilling-card-progress span { margin-left: 0; }
.netbilling-progress-item { display: grid; gap: 4px; min-width: 0; }
.netbilling-progress-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; color: #526579; font-size: .65rem; line-height: 1.4; font-weight: 500; }
.netbilling-progress-label small { color: #69798b; font-size: .61rem; font-weight: 500; white-space: nowrap; }
.netbilling-progress-track { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: #eaf0f4; }
.netbilling-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #779bb4; }
.netbilling-progress-item.complete .netbilling-progress-track > span { background: #289a73; }
.netbilling-progress-item.complete small { color: #257956; }
.general-project-board { grid-template-columns: repeat(var(--general-stage-count, 5), minmax(270px, 1fr)); }
.general-kanban-column.drag-over .kanban-column-body { border-radius: 12px; background: rgba(var(--ccs-orange-rgb),.1); outline: 2px dashed var(--ccs-orange); outline-offset: -2px; }
.general-project-card { position: relative; display: grid; gap: 0; min-height: 0; padding: 18px; overflow: visible; border: 1px solid #8f969d; border-radius: 17px; color: #222; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.08); cursor: grab; }
.general-project-card:hover { color: #222; border-color: #66717c; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.13); transform: translateY(-2px); }
.general-project-card:active { cursor: grabbing; }
.general-project-card:focus-visible { outline: 3px solid rgba(var(--ccs-orange-rgb),.35); outline-offset: 2px; }
.general-card-inactivity { display: flex; justify-content: flex-end; margin-top: 6px; }
.general-card-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.general-card-heading > strong { min-width: 0; color: #202124; font-size: .87rem; line-height: 1.35; overflow-wrap: anywhere; }
.general-card-actions { position: relative; z-index: 8; flex: 0 0 auto; }
.general-card-actions summary { display: grid; width: 26px; height: 26px; margin: -5px -6px 0 0; place-items: center; border-radius: 7px; color: #738096; cursor: pointer; font-size: 1.12rem; font-weight: 900; line-height: 1; list-style: none; }
.general-card-actions summary::-webkit-details-marker { display: none; }
.general-card-actions summary:hover,.general-card-actions[open] summary { color: var(--ccs-navy); background: #f1f4f7; }
.general-card-actions > div { position: absolute; top: 28px; right: -5px; width: 150px; padding: 5px; border: 1px solid #dce3e8; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(var(--ccs-navy-rgb),.18); }
.general-card-actions button { width: 100%; min-width: 0; padding: 9px 10px; color: #9b3039; border: 0; border-radius: 7px; background: transparent; box-shadow: none; font-size: .67rem; text-align: left; }
.general-card-actions button:hover { color: #fff; background: #a33b44; transform: none; }
.general-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.general-card-chip { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid color-mix(in srgb,var(--chip-color) 34%,white); border-radius: 6px; color: color-mix(in srgb,var(--chip-color) 78%,#172033); background: color-mix(in srgb,var(--chip-color) 13%,white); font-size: .59rem; line-height: 1.2; overflow-wrap: anywhere; }
.general-card-chip small { font-size: inherit; font-weight: 650; opacity: .78; }
.general-card-chip strong { font-size: inherit; font-weight: 850; }
.general-card-type { margin-top: 15px; color: #3f4144; font-size: .73rem; }
.general-card-client { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.general-card-client small,.general-card-progress-heading small { color: #a0a2a5; font-size: .69rem; }
.general-card-client strong { min-width: 0; color: #26272a; font-size: .7rem; overflow-wrap: anywhere; text-align: right; }
.general-card-progress { display: grid; gap: 5px; margin-top: 15px; }
.general-card-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.general-card-progress-heading strong { color: #282a2d; font-size: .7rem; }
.general-card-progress em { color: #afb1b4; font-size: .63rem; font-style: normal; }
.general-progress { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: #f0f1f2; }
.general-progress i { display: block; height: 100%; border-radius: inherit; background: #2f3944; }
.general-card-progress.payment .general-progress { display: none; }
.general-card-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px; border-radius: 9px; background: #f5f5f5; }
.general-card-balance small { color: #a0a2a5; font-size: .67rem; }
.general-card-balance strong { color: #202124; font-size: .83rem; }
.general-project-table { overflow-x: auto; border-top: 1px solid #e5ebe8; }
.general-project-row { display: grid; min-width: 980px; grid-template-columns: minmax(190px,1.4fr) minmax(150px,1fr) 130px 120px 120px 120px 30px; align-items: center; width: 100%; padding: 0; border: 0; border-bottom: 1px solid #e8edf1; border-radius: 0; color: #42566d; background: #fff; box-shadow: none; text-align: left; }
.general-project-row:hover { color: #233c56; background: #f8fafc; box-shadow: none; transform: none; }
.general-project-row > * { min-width: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.general-project-row.heading { color: #708094; background: #f5f7fa; font-size: .68rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.catalog-drawer.general-project-drawer { width: min(800px,100%); }
.general-project-tabs { position: sticky; z-index: 3; top: 0; display: grid; grid-template-columns: repeat(5,minmax(105px,1fr)); padding: 0 22px; overflow-x: auto; border-bottom: 1px solid #dfe5e9; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.general-project-tabs button { min-width: 0; padding: 15px 7px 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #718096; background: transparent; box-shadow: none; font-size: .69rem; white-space: nowrap; }
.general-project-tabs button:hover { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.06); transform: none; }
.general-project-tabs button.active { color: var(--ccs-navy); border-bottom-color: var(--ccs-orange); background: transparent; }
.general-project-drawer #general-project-form { display: block; padding: 0; }
.general-project-tab-panel { width: 100%; padding: 24px 26px; box-sizing: border-box; }
.general-project-information { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.general-project-tab-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.general-project-tab-panel > header h3,.general-project-tab-panel > header p { margin: 0; }
.general-project-tab-panel > header h3 { color: #2d4255; font-size: 1rem; }
.general-project-tab-panel > header p { margin-top: 4px; color: #788795; font-size: .72rem; }
.general-project-footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 7px; padding: 11px 18px 15px; border-top: 1px solid #e5e9ed; }
.general-project-footer button { min-width: 0; min-height: 30px; padding: 6px 11px; border-radius: 8px; font-size: .65rem; }
.general-project-finance { padding: 16px; border: 1px solid #dde5eb; border-radius: 14px; background: #f8fafc; }
.general-project-finance > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.general-project-finance h3,.general-project-finance p { margin: 0; }
.general-project-finance p { margin-top: 3px; color: #77879a; font-size: .75rem; }
.general-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #e3e9ee; }
.general-payment-row span { display: grid; gap: 2px; }
.general-payment-row small { color: #74859a; }
.general-payment-row button { width: 30px; height: 30px; padding: 0; border-radius: 8px; color: #a23c3c; background: transparent; box-shadow: none; }
.general-finance-summary { display: flex; justify-content: flex-end; gap: 28px; padding-top: 13px; color: #6a7d92; }
.general-finance-summary strong { margin-left: 5px; color: var(--ccs-navy); }
.general-document-sections { display: grid; gap: 13px; }
.general-document-empty,.general-task-empty { padding: 32px 18px; border: 1px dashed #cfd9e1; border-radius: 12px; color: #8493a0; background: #f8fafb; text-align: center; font-size: .73rem; }
.general-document-section { overflow: hidden; border: 1px solid #dce4ea; border-radius: 13px; background: #fff; }
.general-document-section > header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 12px; background: #f7f9fb; }
.general-document-section-name { width: 100%; min-width: 0; font-weight: 800; }
.general-document-section-remove,.general-document-file-remove,.general-task-remove { min-width: 0; width: 34px; height: 34px; padding: 0; border: 1px solid #ecd1d4; border-radius: 8px; color: #9c4149; background: #fff7f7; box-shadow: none; }
.general-document-list { display: grid; }
.general-document-file { display: grid; grid-template-columns: 32px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 11px 13px; border-top: 1px solid #e7ecf0; }
.general-document-file:first-child { border-top: 0; }
.general-document-file > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.2); font-size: .64rem; font-weight: 900; }
.general-document-file strong,.general-document-file small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.general-document-file strong { color: #334b5f; font-size: .72rem; }
.general-document-file small { margin-top: 2px; color: #82909c; font-size: .61rem; }
.general-document-open { min-width: 0; padding: 7px 10px; color: var(--ccs-navy); border: 1px solid #cbd7e0; background: #fff; box-shadow: none; font-size: .65rem; }
.general-document-upload { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border-top: 1px solid #e7ecf0; color: var(--ccs-navy) !important; background: #fbfcfd; cursor: pointer; }
.general-document-upload input { width: auto; max-width: 250px; min-height: 0; padding: 5px; font-size: .65rem; }
.general-document-status { padding: 0 13px 11px; color: #6f8293; background: #fbfcfd; font-size: .65rem; }
.general-task-creator { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-bottom: 14px; }
.general-task-creator button { min-width: 132px; }
.general-task-list { display: grid; gap: 8px; }
.general-task-item { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid #dfe6eb; border-radius: 11px; background: #fff; }
.general-task-item input[type="checkbox"] { width: 18px; }
.general-task-item span { color: #40566a; font-size: .76rem; line-height: 1.35; }
.general-task-item.completed span { color: #8b98a3; text-decoration: line-through; }
.general-project-custom { display: grid; gap: 8px; padding: 12px 15px; }
.general-project-custom > header { margin-bottom: 2px; }
.general-project-custom > header h3 { font-size: .84rem; }
.general-project-custom > header p { margin-top: 2px; font-size: .61rem; }
.general-custom-group { padding: 8px; border: 1px solid #dde5eb; border-radius: 9px; background: #f8fafc; }
.general-custom-group > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.general-custom-group h4,.general-custom-group p { margin: 0; }
.general-custom-group h4 { color: #334b5f; font-size: .7rem; }
.general-custom-group p { margin-top: 2px; color: #80909e; font-size: .56rem; }
.general-custom-group .compact-button { min-width: 0; min-height: 28px; padding: 5px 9px; border-radius: 7px; font-size: .62rem; }
#general-custom-tags,#general-custom-fields { display: grid; gap: 4px; }
.general-custom-row { display: grid; gap: 4px; align-items: center; }
.general-custom-row.tag { grid-template-columns: minmax(0,1fr) 34px 28px; }
.general-custom-row.field { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr) 34px 28px; }
.general-custom-row.assigned-tag { grid-template-columns: minmax(0,1fr) 22px 28px; }
.general-custom-row.assigned-field { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) auto 28px; }
.general-custom-row input,.general-custom-row select { min-width: 0; min-height: 31px; padding: 5px 8px; border-radius: 7px; font-size: .66rem; }
.general-assignment-swatch { width: 16px; height: 16px; justify-self: center; border: 3px solid #fff; border-radius: 5px; background: var(--assignment-color); box-shadow: 0 0 0 1px #cdd6de; }
.general-assignment-type { padding: 4px 6px; color: #657789; border-radius: 6px; background: #eaf0f4; font-size: .56rem; font-weight: 800; white-space: nowrap; }
.general-custom-color { display: block !important; color: transparent !important; }
.general-custom-color input[type="color"] { width: 34px; height: 31px; min-height: 31px; padding: 3px; cursor: pointer; }
.general-custom-remove { width: 28px; min-width: 0; height: 28px; padding: 0; color: #9c4149; border: 1px solid #ecd1d4; border-radius: 7px; background: #fff7f7; box-shadow: none; font-size: .68rem; }
.general-custom-empty { padding: 9px; color: #8a98a4; border: 1px dashed #d0dae2; border-radius: 7px; background: #fff; font-size: .61rem; text-align: center; }
.general-projects-panel-header > div:first-child { min-width: 0; flex: 1; }
.general-project-filters { display: flex; align-items: end; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.general-project-filters label { display: grid; min-width: 145px; gap: 4px; color: #718096; font-size: .57rem; font-weight: 800; }
.general-project-filters select,.general-project-filters input { min-height: 31px; padding: 5px 8px; border-radius: 7px; font-size: .64rem; }
.general-project-filters button { min-width: 0; min-height: 31px; padding: 5px 9px; border-radius: 7px; font-size: .62rem; }
.leave-project-dialog.general-custom-settings-dialog { width: min(920px,calc(100vw - 30px)); max-height: min(760px,calc(100vh - 30px)); overflow-y: auto; text-align: left; }
.general-custom-settings-dialog > h2,.general-custom-settings-dialog > p { text-align: center; }
.general-custom-settings-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.general-custom-settings-columns > section { min-width: 0; padding: 13px; border: 1px solid #dce5eb; border-radius: 12px; background: #f8fafc; }
.general-custom-settings-columns > section > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.general-custom-settings-columns h3,.general-custom-settings-columns small { margin: 0; }
.general-custom-settings-columns h3 { color: #334b5f; font-size: .82rem; }
.general-custom-settings-columns small { display: block; margin-top: 2px; color: #82919e; font-size: .58rem; }
.general-custom-settings-columns header button,.general-custom-settings-dialog .leave-dialog-actions button { min-width: 0; min-height: 31px; padding: 6px 10px; border-radius: 8px; font-size: .64rem; }
#general-tag-definitions,#general-field-definitions { display: grid; gap: 7px; }
.general-definition-row { display: grid; align-items: center; gap: 6px; }
.general-definition-row.tag { grid-template-columns: minmax(0,1fr) 29px; }
.general-definition-row.field { grid-template-columns: minmax(210px,2fr) 100px 29px; }
.general-definition-row input,.general-definition-row select { width: 100%; min-width: 0; min-height: 32px; box-sizing: border-box; padding: 5px 7px; border-radius: 7px; font-size: .64rem; }
.general-definition-row .general-definition-remove { width: 29px; min-width: 0; height: 29px; padding: 0; color: #9c4149; border: 1px solid #ecd1d4; border-radius: 7px; background: #fff7f7; box-shadow: none; }
.general-pastel-palette { display: grid; width: fit-content; grid-column: 1 / -1; grid-template-columns: repeat(10,20px); gap: 5px; padding: 4px 2px 2px; }
.general-definition-row .general-pastel-swatch { width: 20px; min-width: 20px; height: 20px; padding: 0; border: 2px solid #fff; border-radius: 6px; background: var(--pastel); box-shadow: 0 0 0 1px #cbd5dd; transition: transform .15s ease,box-shadow .15s ease; }
.general-definition-row .general-pastel-swatch:hover { transform: translateY(-1px); }
.general-definition-row .general-pastel-swatch.selected { box-shadow: 0 0 0 2px var(--ccs-navy),0 2px 6px rgba(var(--ccs-navy-rgb),.18); transform: scale(1.08); }
.general-definition-empty { padding: 18px 10px; color: #8998a5; border: 1px dashed #d0dae2; border-radius: 8px; background: #fff; font-size: .64rem; text-align: center; }
.general-payment-drawer { width: min(720px,100vw); }
.general-payment-help { margin: 0; padding: 14px 16px; border-radius: 10px; color: #66798d; background: #f4f7f9; font-size: .72rem; }
.general-funnel-dialog { width: min(620px,calc(100vw - 28px)); overflow: hidden; text-align: left; }
#general-payment-backdrop { z-index: 290; }
#general-unsaved-backdrop { z-index: 320; }
#general-funnel-backdrop { z-index: 280; }
#general-stage-editor { width: 100%; }
.general-stage-edit { display: grid; width: 100%; min-width: 0; grid-template-columns: 44px 40px minmax(0,1fr) 40px; gap: 9px; align-items: center; margin: 9px 0; padding: 7px; box-sizing: border-box; border: 1px solid #e2e8ed; border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.general-stage-edit.is-dragging { z-index: 1; border-color: var(--ccs-orange); box-shadow: 0 10px 25px rgba(var(--ccs-navy-rgb),.15); opacity: .9; transform: scale(1.015); }
.general-stage-edit input { min-width: 0; }
.general-stage-edit input[type="text"] { width: 100%; }
.general-stage-edit input[type="color"] { width: 44px; height: 44px; padding: 4px; cursor: pointer; }
.general-stage-edit button { min-width: 0; width: 38px; max-width: 38px; height: 38px; padding: 0; border-radius: 9px; box-shadow: none; }
.general-stage-drag-handle { display: grid; width: 40px; height: 44px; place-items: center; color: #52677c; border: 1px solid #d3dde5; border-radius: 10px; background: #f6f8fa; cursor: grab; font-size: 1.15rem; font-weight: 900; line-height: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.general-stage-drag-handle:active { cursor: grabbing; }
.general-stage-remove { color: #9b3f47; border: 1px solid #eed3d6; background: #fff7f7; }
.general-stage-sort-ghost { opacity: .35; }
.general-stage-sort-chosen { border-color: var(--ccs-orange); }
@media (max-width: 520px) { .general-stage-edit { grid-template-columns: 40px 36px minmax(0,1fr) 36px; gap: 6px; padding: 6px; } .general-stage-edit input[type="color"] { width: 40px; } .general-stage-drag-handle { width: 36px; } .general-stage-edit button { width: 34px; max-width: 34px; } }
@media (max-width: 760px) { .general-project-information { grid-template-columns: 1fr; } .general-project-drawer .full-width { grid-column: 1; } .general-project-tab-panel { padding: 20px 18px; } .general-project-footer { grid-template-columns: 1fr 1fr; padding: 16px 18px 22px; } .general-project-footer > span { display: none; } .general-project-tabs { padding: 0 8px; } .general-custom-settings-columns { grid-template-columns: 1fr; } .general-projects-panel-header { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { .general-project-tabs button { padding: 13px 8px 11px; font-size: .64rem; } .general-project-tab-panel > header { align-items: flex-start; flex-direction: column; } .general-task-creator { grid-template-columns: 1fr; } .general-document-file { grid-template-columns: 30px minmax(0,1fr) auto; } .general-document-open { grid-column: 2; justify-self: start; } .general-document-file-remove { grid-column: 3; grid-row: 1 / span 2; } .general-document-upload { align-items: flex-start; flex-direction: column; } .general-project-footer { grid-template-columns: 1fr; } .general-custom-row.field,.general-custom-row.assigned-field { grid-template-columns: 1fr 1fr; } .general-custom-row.field .general-custom-color,.general-custom-row.field .general-custom-remove { justify-self: start; } .general-project-filters label { min-width: calc(50% - 4px); flex: 1; } .general-definition-row.field { grid-template-columns: minmax(0,1fr) 86px 28px; } .general-pastel-palette { grid-template-columns: repeat(10,18px); gap: 4px; } .general-definition-row .general-pastel-swatch { width: 18px; min-width: 18px; height: 18px; } }
@media (max-width: 520px) { #projects-card-grid { grid-template-columns: repeat(5,minmax(255px,1fr)); } .netbilling-project-card { min-height: 250px; padding: 17px 19px; } }
.calculator-workspace { max-width: 1180px; margin: 0 auto; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 22px; margin-top: 26px; align-items: start; }
.calculator-panel, .calculator-result, .calculator-legal-note { border: 1px solid var(--bs-border-color); border-radius: 16px; background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.calculator-tool-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; border-bottom: 1px solid #e0e6ea; background: #f7f9fa; }
.calculator-tool-tabs button { min-width: 0; padding: 12px 14px; color: #657583; border-radius: 9px; background: transparent; box-shadow: none; }
.calculator-tool-tabs button:hover { color: var(--ccs-navy); background: #fff; transform: none; }
.calculator-tool-tabs button.active { color: #fff; background: var(--ccs-navy); box-shadow: 0 6px 16px rgba(var(--ccs-navy-rgb),.18); }
.calculator-mode-switch { display: flex; gap: 6px; padding: 18px 22px 0; }
.calculator-mode-switch button { min-width: 0; padding: 10px 15px; color: var(--ccs-navy); border: 1px solid #d7e0e6; background: #f5f7f9; box-shadow: none; }
.calculator-mode-switch button.active { color: #18293a; border-color: var(--ccs-orange); background: var(--ccs-orange); }
.calculator-form { padding: 22px; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.calculator-grid label { display: grid; gap: 7px; color: #526170; font-size: .78rem; font-weight: 800; }
.advanced-cable-fields { display: contents; }
.calculator-helper { margin: 18px 0; padding: 12px 14px; border-left: 3px solid var(--ccs-orange); border-radius: 7px; color: #647384; background: rgba(var(--ccs-orange-rgb),.09); font-size: .74rem; line-height: 1.5; }
.calculator-form > button { width: 100%; color: #18293a; background: var(--ccs-orange); }
.calculator-form > button:hover { color: #18293a; background: #ffb63d; box-shadow: 0 12px 28px rgba(var(--ccs-orange-rgb),.3); }
.calculator-result { position: sticky; top: 102px; min-height: 390px; overflow: hidden; }
.calculator-empty-result { display: grid; min-height: 390px; padding: 45px; place-items: center; align-content: center; color: #7d8b99; text-align: center; }
.calculator-empty-result > span { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.18); font-size: 1.8rem; }
.calculator-empty-result h3 { margin: 18px 0 6px; color: #263746; }
.calculator-empty-result p { margin: 0; line-height: 1.55; }
.calculator-result-heading { padding: 25px; color: #fff; background: linear-gradient(125deg, #092b50, var(--ccs-navy)); }
.calculator-result-heading span, .calculator-result-heading strong, .calculator-result-heading small { display: block; }
.calculator-result-heading span { color: #d8e3ec; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.calculator-result-heading strong { margin-top: 6px; color: var(--ccs-orange); font-size: 2.25rem; }
.calculator-result-heading em { display: inline-block; margin: 7px 0 3px; padding: 5px 9px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .75rem; font-style: normal; font-weight: 850; }
.calculator-result-heading small { margin-top: 2px; color: #d9e3ec; }
.calculator-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px 10px; }
.calculator-result-grid div { padding: 12px; border: 1px solid #e0e6ea; border-radius: 10px; background: #f8fafb; }
.calculator-result-grid small, .calculator-result-grid strong { display: block; }
.calculator-result-grid small { color: #788797; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.calculator-result-grid strong { margin-top: 5px; color: var(--ccs-navy); font-size: .83rem; }
.calculator-result-detail { padding: 7px 22px 14px; color: #5d6d7d; font-size: .75rem; }
.calculator-result-detail p { margin: 6px 0; }
.calculator-commerce { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-top: 1px solid #e4e9ed; background: #fbfcfd; }
.calculator-commerce small, .calculator-commerce strong { display: block; }
.calculator-commerce small { color: #7b8997; font-size: .62rem; text-transform: uppercase; }
.calculator-commerce strong { margin-top: 4px; color: #3d5062; font-size: .72rem; }
.calculator-commerce p { margin: 4px 0 0; color: #84919e; font-size: .65rem; }
.calculator-commerce a { flex: none; padding: 10px 12px; border-radius: 9px; color: #18293a; background: var(--ccs-orange); font-size: .72rem; font-weight: 900; text-decoration: none; }
.calculator-legal-note { margin-top: 18px; padding: 16px 19px; color: #687786; font-size: .75rem; line-height: 1.55; }
.calculator-legal-note strong { color: var(--ccs-navy); }
.calculator-legal-note p { margin: 4px 0 0; }
.calculator-error-result > span { color: #a63838; background: #fbe9e9; }
.protection-warnings { margin-top: 12px; padding: 9px 12px; border-left: 3px solid #c98218; border-radius: 7px; color: #76551f; background: #fff7e8; }
.protection-warnings p { margin: 6px 0; }
.protection-ok { margin-top: 12px !important; padding: 10px 12px; border-left: 3px solid #2c7a5b; border-radius: 7px; color: #27634d; background: #edf7f2; }

.ric-library { max-width: 1240px; margin: 0 auto; }
.ric-library-heading { align-items: center; }
.ric-library-stat { display: grid; min-width: 180px; padding: 15px 18px; border: 1px solid rgba(var(--ccs-orange-rgb),.35); border-radius: 14px; background: linear-gradient(135deg, rgba(var(--ccs-orange-rgb),.16), rgba(var(--ccs-gray-rgb),.12)); text-align: right; }
.ric-library-stat strong { color: var(--ccs-navy); font-size: 1.7rem; line-height: 1; }
.ric-library-stat span { margin-top: 4px; color: #394d5d; font-size: .72rem; font-weight: 850; }
.ric-library-stat small { margin-top: 2px; color: #758492; font-size: .65rem; }
.ric-search-panel { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; margin: 24px 0 16px; padding: 13px; border: 1px solid #dde4e8; border-radius: 15px; background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.ric-search-box { display: grid; grid-template-columns: 38px 1fr; align-items: center; border: 1px solid #dce3e7; border-radius: 10px; background: #f8fafb; }
.ric-search-box:focus-within { border-color: var(--ccs-orange); box-shadow: 0 0 0 3px rgba(var(--ccs-orange-rgb),.14); }
.ric-search-box span { color: var(--ccs-navy); font-size: 1.3rem; text-align: center; }
.ric-search-box input { min-width: 0; min-height: 44px; padding: 10px 12px 10px 0; border: 0; outline: 0; background: transparent; }
.ric-filter-label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: #657481; font-size: .72rem; font-weight: 800; }
.ric-filter-label select { min-height: 44px; }
.ric-library-layout { display: grid; min-height: 670px; grid-template-columns: minmax(280px, .35fr) minmax(0, .65fr); overflow: hidden; border: 1px solid #dce3e7; border-radius: 17px; background: #fff; box-shadow: 0 10px 32px rgba(var(--ccs-navy-rgb),.08); }
.ric-index-panel { border-right: 1px solid #e0e6ea; background: #f7f9fa; }
.ric-index-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid #dfe5e9; background: #fff; }
.ric-index-heading strong { color: var(--ccs-navy); font-size: .79rem; }
.ric-index-heading span { color: #7b8995; font-size: .66rem; }
.ric-index-list { display: grid; max-height: 720px; overflow-y: auto; }
.ric-index-item { display: grid; min-width: 0; grid-template-columns: 48px 1fr 16px; align-items: center; gap: 10px; padding: 13px 14px; border: 0; border-bottom: 1px solid #e6eaed; border-radius: 0; color: #384b5c; background: transparent; box-shadow: none; text-align: left; }
.ric-index-item:hover { color: #263b4d; background: rgba(var(--ccs-orange-rgb),.11); box-shadow: inset 3px 0 var(--ccs-orange); transform: none; }
.ric-index-item.active { color: var(--ccs-navy); background: #fff; box-shadow: inset 4px 0 var(--ccs-orange); }
.ric-index-item > span { display: grid; min-height: 34px; place-items: center; border-radius: 8px; color: var(--ccs-navy); background: rgba(var(--ccs-gray-rgb),.22); font-size: .65rem; font-weight: 900; }
.ric-index-item.active > span { color: #1f2e3d; background: var(--ccs-orange); }
.ric-index-item strong, .ric-index-item small { display: block; }
.ric-index-item strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.ric-index-item small { margin-top: 3px; color: #82909c; font-size: .6rem; }
.ric-index-item i { color: #9ca9b4; font-style: normal; font-size: 1.2rem; }
.ric-article { min-width: 0; padding: 30px; }
.ric-article-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid #e0e6ea; }
.ric-article-header span { color: #a66400; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ric-article-header h3 { margin: 5px 0 8px; color: var(--ccs-navy); font-size: clamp(1.55rem, 3vw, 2.2rem); }
.ric-article-header p { max-width: 680px; margin: 0; color: #627281; font-size: .84rem; line-height: 1.65; }
.ric-page-count { display: grid; min-width: 92px; padding: 12px; border-radius: 12px; color: #fff; background: var(--ccs-navy); text-align: center; }
.ric-page-count strong { color: var(--ccs-orange); font-size: 1.4rem; }
.ric-page-count small { color: #d7e1eb; font-size: .58rem; }
.ric-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 16px 0; }
.ric-meta-row > span { padding: 6px 9px; border-radius: 7px; color: var(--ccs-navy); background: rgba(var(--ccs-gray-rgb),.22); font-size: .65rem; font-weight: 850; }
.ric-meta-row button { min-width: 0; padding: 6px 8px; border: 1px solid #e2e7ea; color: #687987; background: #fff; box-shadow: none; font-size: .62rem; font-weight: 750; }
.ric-meta-row button:hover { border-color: var(--ccs-orange); color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.08); transform: none; }
.ric-article-intro { margin: 8px 0 16px; }
.ric-article-intro h4 { margin: 0; color: #34495a; font-size: .96rem; }
.ric-article-intro p { margin: 5px 0 0; color: #7c8994; font-size: .72rem; }
.ric-section-list { display: grid; gap: 9px; }
.ric-section { overflow: hidden; border: 1px solid #dde4e8; border-radius: 11px; background: #fff; }
.ric-section[open] { border-color: rgba(var(--ccs-orange-rgb),.65); box-shadow: 0 6px 18px rgba(var(--ccs-navy-rgb),.07); }
.ric-section summary { display: grid; grid-template-columns: 70px 1fr 24px; align-items: center; gap: 10px; padding: 14px 15px; cursor: pointer; list-style: none; }
.ric-section summary::-webkit-details-marker { display: none; }
.ric-section summary > span { color: #a66400; font-size: .68rem; font-weight: 900; }
.ric-section summary strong { color: #3b4e5d; font-size: .78rem; }
.ric-section summary i { color: #8996a1; font-style: normal; transition: transform .2s ease; }
.ric-section[open] summary i { transform: rotate(45deg); }
.ric-section > div { padding: 0 15px 15px 95px; }
.ric-section p { margin: 0; color: #637482; font-size: .75rem; line-height: 1.6; }
.ric-section small { display: block; margin-top: 8px; color: #9a6b1e; font-size: .62rem; font-weight: 750; }
.ric-no-results, .ric-article-empty { display: grid; min-height: 260px; padding: 32px; place-items: center; align-content: center; color: #7d8c98; text-align: center; }
.ric-no-results span, .ric-article-empty span { font-size: 2rem; }
.ric-no-results strong, .ric-article-empty h3 { margin: 9px 0 3px; color: #435666; }
.ric-no-results p, .ric-article-empty p { margin: 0; font-size: .72rem; line-height: 1.5; }
.ric-library-disclaimer { margin: 14px 0 0; padding: 13px 16px; border-left: 3px solid var(--ccs-orange); border-radius: 8px; color: #647482; background: rgba(var(--ccs-orange-rgb),.08); font-size: .72rem; line-height: 1.55; }
.ric-document-loading { display: grid; min-height: 430px; place-items: center; align-content: center; color: #607181; text-align: center; }
.ric-document-loading .loading-ring { width: 40px; height: 40px; margin-bottom: 15px; }
.ric-document-loading strong, .ric-document-loading small { display: block; }
.ric-document-loading small { margin-top: 5px; color: #8996a1; }
.ric-source-header { align-items: center; }
.ric-download-button { flex: none; padding: 11px 14px; border-radius: 9px; color: #162638; background: var(--ccs-orange); box-shadow: 0 6px 16px rgba(var(--ccs-orange-rgb),.25); font-size: .72rem; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.ric-download-button:hover { box-shadow: 0 10px 24px rgba(var(--ccs-orange-rgb),.32); transform: translateY(-2px); }
.ric-match-summary { margin: 2px 0 16px; padding: 13px 14px; border: 1px solid rgba(var(--ccs-orange-rgb),.4); border-radius: 10px; background: rgba(var(--ccs-orange-rgb),.08); }
.ric-match-summary > strong { display: block; color: #815300; font-size: .72rem; }
.ric-match-summary > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ric-match-summary button { min-width: 0; padding: 5px 8px; color: var(--ccs-navy); border: 1px solid rgba(var(--ccs-navy-rgb),.18); background: #fff; box-shadow: none; font-size: .62rem; }
.ric-match-summary button:hover { color: #17283b; border-color: var(--ccs-orange); background: #fff; transform: none; }
.ric-match-summary span { align-self: center; color: #876b3d; font-size: .62rem; }
.ric-page-list { display: grid; gap: 10px; }
.ric-page { scroll-margin-top: 95px; overflow: hidden; border: 1px solid #dce3e7; border-radius: 11px; background: #fff; }
.ric-page[open] { border-color: rgba(var(--ccs-navy-rgb),.26); box-shadow: 0 8px 24px rgba(var(--ccs-navy-rgb),.07); }
.ric-page > summary { display: grid; grid-template-columns: 72px 1fr 22px; align-items: center; gap: 11px; padding: 14px 15px; cursor: pointer; list-style: none; background: #f8fafb; }
.ric-page > summary::-webkit-details-marker { display: none; }
.ric-page > summary span { color: #9b6508; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.ric-page > summary strong { overflow: hidden; color: #3a4e5e; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.ric-page > summary i { color: #81909c; font-style: normal; transition: transform .2s ease; }
.ric-page[open] > summary { border-bottom: 1px solid #e1e6e9; background: linear-gradient(90deg, rgba(var(--ccs-orange-rgb),.1), #fff 45%); }
.ric-page[open] > summary i { transform: rotate(45deg); }
.ric-page-content { padding: 21px; }
.ric-transcription { max-width: 800px; margin: 0 auto; padding: 30px 34px; border: 1px solid #e0e4e7; background: #fff; box-shadow: 0 5px 18px rgba(20,40,60,.06); }
.ric-source-line { margin: 0 0 9px; color: #334454; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .79rem; font-weight: 430; line-height: 1.68; letter-spacing: .002em; }
.ric-source-line.is-heading { margin: 22px 0 10px; color: var(--ccs-navy); font-size: .84rem; font-weight: 850; line-height: 1.45; }
.ric-source-line.is-heading:first-child { margin-top: 0; }
.ric-source-line.is-note { padding: 7px 9px; border-left: 2px solid var(--ccs-orange); color: #5c6770; background: #faf8f2; font-size: .7rem; }
.ric-page-tables { margin-top: 24px; }
.ric-page-tables h5 { margin: 0 0 10px; color: var(--ccs-navy); font-size: .78rem; }
.ric-table-block { margin-top: 14px; }
.ric-table-label { display: inline-block; padding: 6px 9px; border-radius: 7px 7px 0 0; color: #fff; background: var(--ccs-navy); font-size: .61rem; font-weight: 850; }
.ric-table-scroll { overflow-x: auto; border: 1px solid #d7dfe4; }
.ric-table-scroll table { width: 100%; border-collapse: collapse; background: #fff; font-size: .65rem; }
.ric-table-scroll th, .ric-table-scroll td { min-width: 85px; padding: 8px 9px; border: 1px solid #dfe4e8; color: #354654; line-height: 1.4; text-align: left; vertical-align: top; }
.ric-table-scroll th { color: #172d43; background: rgba(var(--ccs-gray-rgb),.3); font-weight: 900; }
.ric-table-scroll tbody tr:nth-child(even) td { background: #f8fafb; }
.projects-table { border-top: 1px solid #e5ebe8; }
.projects-table-header, .crm-table-row { display: grid; grid-template-columns: 130px minmax(160px, 1fr) minmax(180px, 1fr) 130px 130px minmax(190px, .9fr); align-items: center; }
.projects-table-header { min-height: 45px; color: #6d7b74; background: #f7f9f8; font-size: .72rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.projects-table-header span, .crm-table-row > span { padding: 10px 16px; }
.crm-table-row { width: 100%; min-height: 62px; padding: 0; border: 0; border-bottom: 1px solid #e7ece9; border-radius: 0; color: #35473f; background: #fff; box-shadow: none; font-size: .82rem; text-align: left; }
.crm-table-row:hover { background: #f8fbf9; transform: none; }
.crm-table-row > span:first-child { color: #276c57; font-weight: 850; }
.project-entry { border-bottom: 1px solid #e7ece9; }
.project-entry:last-child { border-bottom: 0; }
.project-entry > summary { list-style: none; cursor: pointer; }
.project-entry > summary::-webkit-details-marker { display: none; }
.project-summary-row { min-height: 62px; color: #35473f; font-size: .84rem; }
.project-summary-row:hover { background: #fbfdfc; }
.project-summary-row > span:first-child { color: #276c57; font-weight: 850; }
.project-summary-row .company-cell { color: #64736b; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 6px 10px; border-radius: 999px; color: #1f6b52; background: #e2f3ec; font-size: .7rem; font-weight: 850; }
.status-pill.incomplete { color: #956215; background: #fff0d4; }
.workflow-exit-button { position: absolute; top: 17px; right: 20px; display: inline-flex; min-width: 0; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.38); border-radius: 9px; color: #fff; background: rgba(255,255,255,.08); box-shadow: none; font-size: .75rem; }
.workflow-exit-button span { font-size: 1.15rem; font-weight: 400; line-height: .75; }
.workflow-exit-button strong { font: inherit; font-weight: 800; }
.workflow-exit-button:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.16); box-shadow: none; transform: none; }
.leave-project-dialog { width: min(560px, 100%); padding: 34px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.leave-dialog-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #946115; background: #fff0d4; font-size: 1.3rem; font-weight: 900; }
.leave-project-dialog h2 { margin: 0; color: #273c33; }
.leave-project-dialog p { max-width: 460px; margin: 10px auto 24px; color: #6f7d76; line-height: 1.55; }
.leave-dialog-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.danger-outline-button { border: 1px solid #d7a59e; color: #9d4034; background: #fff; box-shadow: none; }
.view-project-button { min-width: 0; padding: 8px 12px; box-shadow: none; font-size: .76rem; }
.project-quick-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 20px 19px; border-top: 1px solid #edf1ef; background: #f8faf9; }
.project-quick-summary div { padding: 11px 13px; border-radius: 9px; background: #fff; }
.project-quick-summary small, .project-quick-summary strong { display: block; }
.project-quick-summary small { color: #849089; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.project-quick-summary strong { margin-top: 4px; color: #36483f; font-size: .8rem; }
.empty-projects { padding: 44px 20px; color: #849089; text-align: center; }
.empty-projects > span { display: block; font-size: 2rem; }
.empty-projects strong { display: block; margin-top: 7px; color: #53645c; }
.empty-projects p { margin: 5px 0 0; font-size: .82rem; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; padding: 24px; place-items: center; background: rgba(12,31,24,.58); backdrop-filter: blur(4px); }
#leave-project-modal { z-index: 260; }
#project-modal { padding: 0; place-items: stretch end; }
.project-modal { width: min(780px, 94vw); height: 100vh; height: 100dvh; max-height: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; border-radius: 20px 0 0 20px; background: #fff; box-shadow: -18px 0 60px rgba(0,0,0,.24); animation: drawer-in .22s ease-out; }
.modal-header-actions { display: flex; align-items: center; gap: 10px; }
.danger-outline-button { padding: 9px 14px; border: 1px solid #d8a6a6; color: #9f2f2f; background: #fff; box-shadow: none; }
.danger-outline-button:hover { border-color: #b94a4a; color: #842626; background: #fff4f4; transform: none; }
.danger-button { color: #fff; background: #b63c3c; box-shadow: 0 8px 20px rgba(182,60,60,.22); }
.danger-button:hover { background: #982f2f; }
.archive-confirm-dialog { max-width: 510px; }
.archive-dialog-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 16px; place-items: center; border-radius: 15px; color: #9f2f2f; background: #fae9e9; font-size: 1.4rem; }
.archived-table { border-top: 1px solid #e5ebe8; overflow-x: auto; }
.archived-table-header, .archived-project-row { display: grid; grid-template-columns: minmax(180px,1.4fr) 130px 150px 190px 120px; min-width: 830px; align-items: center; }
.archived-table-header { min-height: 44px; color: #6d7b74; background: #f7f9f8; font-size: .7rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.archived-table-header span, .archived-project-row > span { padding: 11px 16px; }
.archived-project-row { min-height: 68px; border-top: 1px solid #e7ece9; color: #41534a; font-size: .8rem; }
.archived-project-row:hover { background: #fbfdfc; }
.archived-project-row strong, .archived-project-row small { display: block; }
.archived-project-row small { margin-top: 3px; color: #839088; font-size: .68rem; }
@keyframes drawer-in { from { opacity: .75; transform: translateX(38px); } to { opacity: 1; transform: translateX(0); } }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid #e4eae7; background: #fff; }
.modal-header h2 { margin: 0; color: #253a31; font-size: 1.35rem; }
.icon-button { display: grid; width: 38px; height: 38px; min-width: 0; padding: 0; place-items: center; border-radius: 50%; color: #53645c; background: #f1f5f3; box-shadow: none; font-size: 1.5rem; }
.icon-button:hover { color: #fff; background: #276c57; transform: none; }
.modal-body { padding: 24px 26px 30px; }
.project-tabs { position: sticky; top: 89px; z-index: 2; display: flex; gap: 4px; padding: 0 26px; border-bottom: 1px solid #dfe7e3; background: #fff; }
.project-tab { min-width: 0; padding: 15px 18px 13px; border-radius: 0; color: #718078; background: transparent; box-shadow: none; font-size: .8rem; }
.project-tab:hover { color: #276c57; background: #f5f9f7; transform: none; }
.project-tab.active { color: #276c57; background: transparent; box-shadow: inset 0 -3px #276c57; }
.project-tab-panel[hidden] { display: none !important; }
.empty-tab-panel { min-height: 330px; padding: 70px 24px; text-align: center; }
.empty-tab-panel > span { display: grid; width: 58px; height: 58px; margin: 0 auto 17px; place-items: center; border-radius: 16px; color: #276c57; background: #e7f2ed; font-size: .85rem; font-weight: 900; }
.empty-tab-panel h3 { margin: 0; color: #2c4037; }
.empty-tab-panel p { max-width: 440px; margin: 8px auto 0; color: #78857f; line-height: 1.55; }
.tab-section-heading h3, .tab-section-heading p { margin: 0; }
.tab-section-heading h3 { color: #273c33; }
.tab-section-heading p { margin-top: 5px; color: #7a8781; font-size: .82rem; }
.gda-files-table { margin-top: 18px; overflow: hidden; border: 1px solid #dfe7e3; border-radius: 12px; }
.gda-file-row { display: grid; grid-template-columns: minmax(230px, 1fr) 62px 108px 190px; min-height: 62px; align-items: center; border-bottom: 1px solid #e8edea; color: #3a4d44; }
#gda-files-list .gda-file-row:last-child { border-bottom: 0; }
.gda-file-row > span { padding: 12px 16px; }
.gda-file-row strong, .gda-file-row small { display: block; }
.gda-file-row strong { font-size: .83rem; }
.gda-file-row small { max-width: 460px; margin-top: 4px; overflow: hidden; color: #75837c; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.gda-process-status { display: grid; grid-template-columns: 1fr 190px auto; align-items: center; gap: 18px; margin-top: 18px; padding: 18px; border: 1px solid #cfe0d8; border-radius: 12px; background: #f3f8f6; }
.gda-process-status small, .gda-process-status strong { display: block; }
.gda-process-status small { color: #77847e; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.gda-process-status strong { margin-top: 4px; color: #254638; font-size: .86rem; }
.gda-process-status p { margin: 7px 0 0; color: #65746d; font-size: .76rem; line-height: 1.45; }
.validation-state { justify-self: center; padding: 5px 8px !important; border-radius: 999px; color: #7b8781; background: #edf1ef; font-size: .67rem; font-weight: 850; }
.validation-state.valid { color: #1f6b52; background: #e2f3ec; }
.validation-state.invalid { color: #a13e3e; background: #fde9e7; }
.validation-state.review { color: #8b611c; background: #fff0d4; }
.validation-message { grid-column: 1 / -1; max-width: none !important; margin: -7px 16px 10px !important; padding: 8px 10px; border-radius: 7px; background: #f7f9f8; white-space: normal !important; }
.gda-upload-button.validating { opacity: .65; pointer-events: none; }
.gda-file-header { min-height: 44px; color: #6d7b74; background: #f7f9f8; font-size: .72rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.gda-acronym { color: #276c57; font-size: .76rem; font-weight: 850; }
.gda-upload-button { position: relative; display: inline-flex; min-height: 32px; justify-self: end; align-items: center; justify-content: center; gap: 6px; margin-right: 12px; padding: 6px 9px !important; border: 1px solid #bed2c8; border-radius: 8px; color: #276c57; background: #fff; font-size: .68rem; font-weight: 800; cursor: pointer; }
.gda-upload-button:hover { color: #fff; background: #276c57; }
.gda-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gda-upload-button em { font-style: normal; }
.gda-upload-button .animated-lucide { width: 15px; height: 15px; }
.gda-file-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 5px; padding: 8px 10px !important; }
.gda-file-actions .gda-upload-button { margin: 0; white-space: nowrap; }
.gda-file-actions .te4-document-icon { display: grid; width: 32px; height: 32px; min-width: 32px; padding: 0; place-items: center; border: 1px solid #bed2c8; border-radius: 8px; color: #276c57; background: #fff; box-shadow: none; cursor: pointer; }
.gda-file-actions .te4-document-icon:hover { color: #fff; background: #276c57; }
.gda-file-actions .te4-document-icon .animated-lucide { width: 16px; height: 16px; }
.gda-drive-status { display: grid !important; width: 32px; height: 32px; flex: 0 0 32px; margin: 0 !important; place-items: center; border-radius: 8px; color: #197456 !important; background: #e6f4ed; }
.gda-drive-status .animated-lucide { width: 17px; height: 17px; }
.locked-section-notice { margin: 16px 0 0 !important; padding: 12px 14px; border: 1px solid #ead6ae; border-radius: 10px; color: #815b1d !important; background: #fff7e8; font-size: .78rem !important; font-weight: 700; }
.locked-document-action { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; padding: 7px 10px; border-radius: 8px; color: #8a7460; background: #eeeae5; font-size: .7rem; font-weight: 800; }
.gda-file-row.locked, .modal-document-row.locked { background: #fafafa; }
.gda-file-row.locked strong, .modal-document-row.locked > span { color: #6f7874; }
.modal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.modal-toolbar p { margin: 0; color: #276c57; font-weight: 850; }
.detail-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; padding: 22px 0 28px; }
.detail-form label { display: grid; gap: 7px; color: #596961; font-size: .78rem; font-weight: 750; }
.detail-form input:disabled, .detail-form select:disabled { color: #43534b; background: #f6f8f7; opacity: 1; cursor: default; }
.detail-form button { grid-column: 2; justify-self: end; }
.string-configuration { margin-top: 8px; padding-top: 22px; border-top: 1px solid #e4eae7; }
.initial-string-configuration { margin-top: 24px; }
.string-configuration-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.string-configuration-heading h3, .string-configuration-heading p { margin: 0; }
.string-configuration-heading h3 { color: #293e35; font-size: 1rem; }
.string-configuration-heading p { margin-top: 4px; color: #7a8781; font-size: .76rem; font-weight: 500; }
.detail-form .compact-button { grid-column: auto; min-width: 0; padding: 9px 12px; font-size: .72rem; }
.initial-string-configuration .compact-button { min-width: 0; padding: 9px 12px; font-size: .72rem; }
.string-fields-list { display: grid; gap: 10px; margin-top: 16px; }
.string-field-row { display: grid; grid-template-columns: 130px 1fr 1fr 88px; gap: 12px; align-items: end; padding: 15px; border: 1px solid #dfe7e3; border-radius: 11px; background: #f9fbfa; }
.string-row-title { display: flex; align-items: center; gap: 9px; align-self: center; color: #30473d; }
.string-row-title span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #2a7659; font-size: .72rem; font-weight: 850; }
.string-row-title strong { font-size: .8rem; }
.detail-form .remove-string-button { grid-column: auto; min-width: 0; padding: 10px 9px; border: 1px solid #dfb9b3; color: #9d4034; background: #fff; box-shadow: none; font-size: .7rem; }
.initial-string-configuration .remove-string-button { min-width: 0; padding: 10px 9px; border: 1px solid #dfb9b3; color: #9d4034; background: #fff; box-shadow: none; font-size: .7rem; }
.detail-form .remove-string-button:hover { color: #fff; background: #9d4034; }
.project-general-layout { display:grid; gap:18px; }
.project-location-card { min-width:0; padding:14px; border:1px solid #dce5ec; border-radius:12px; background:#fbfcfd; }
.project-location-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.project-location-card h3,.project-location-card p { margin:0; }
.project-location-card h3 { color:#24425d; font-size:.86rem; }
.project-location-card header p { max-width:560px; margin-top:4px; color:#7a8997; font-size:.65rem; line-height:1.45; }
#project-location-map { position:relative; z-index:0; width:100%; height:330px; overflow:hidden; border:1px solid #ccd9e5; border-radius:10px; background:#eef3f6; }
.project-location-coordinates { display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:center; gap:8px 16px; margin-top:10px; }
.project-location-coordinates span { display:grid; }
.project-location-coordinates small { color:#8795a4; font-size:.55rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.project-location-coordinates strong { margin-top:2px; color:#24425d; font-size:.7rem; }
.project-location-coordinates p { color:#718293; font-size:.65rem; text-align:right; }
.project-location-card .leaflet-control-attribution { font-size:8px; }
.modal-documents { padding-top: 4px; }
.modal-documents h3, .modal-documents p { margin: 0; }
.modal-documents h3 { color: #273c33; }
.modal-documents p { margin-top: 4px; color: #7a8781; font-size: .8rem; }
.modal-documents-list { margin-top: 15px; overflow: hidden; border: 1px solid #dfe7e3; border-radius: 12px; }
.modal-document-row { display: grid; grid-template-columns: 1fr minmax(180px, 330px); min-height: 58px; align-items: center; border-bottom: 1px solid #e8edea; }
.modal-document-row:last-child { border-bottom: 0; }
.modal-document-row > span { padding: 12px 15px; color: #3a4d44; font-size: .82rem; font-weight: 700; }
.modal-document-row > span small { color: #79867f; font-weight: 500; }
.modal-document-row .gda-reference-note { display: block; margin-top: 5px; color: #567166; font-size: .7rem; }
.document-pending-note { padding: 7px 10px; color: #8a6a31; font-size: .72rem; font-weight: 800; }
.modal-document-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 8px 12px; }
.modal-document-actions button, .modal-document-actions label { min-width: 0; padding: 8px 10px; border: 1px solid #bed2c8; border-radius: 8px; color: #276c57; background: #fff; box-shadow: none; font-size: .72rem; font-weight: 800; cursor: pointer; }
.modal-document-actions button:hover, .modal-document-actions label:hover { color: #fff; background: #276c57; }
.modal-document-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.modal-document-row > span strong { display: block; line-height: 1.3; }
.modal-document-row > span small { display: block; margin-top: 3px; font-size: .69rem; overflow-wrap: anywhere; }
.modal-document-actions { flex-wrap: wrap; align-items: center; }
.modal-document-actions .te4-document-icon { flex: 0 0 32px; display: grid; width: 32px; height: 32px; min-width: 32px; min-height: 32px; place-items: center; padding: 0; border-radius: 8px; }
.te4-document-icon .animated-lucide { width: 16px; height: 16px; }
.modal-document-actions .te4-document-icon:disabled { opacity: .4; cursor: not-allowed; }
.modal-document-actions .te4-document-icon:disabled:hover { color: #276c57; background: #fff; }
.modal-document-actions .te4-report-edit { min-height: 32px; padding: 0 8px; font-size: .67rem; }

.settings-modal, .report-modal { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.client-portal-modal { width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.client-portal-body { padding: 24px 30px 32px; }
.client-lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 13px; padding: 18px; border-radius: 13px; background: #f3f8f6; }
.client-lookup-form label { display: grid; gap: 7px; color: #4b5c53; font-size: .78rem; font-weight: 750; }
.client-lookup-form button { min-height: 47px; }
.client-project-result { margin-top: 20px; }
.client-project-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.client-project-heading small, .client-project-heading strong { display: block; }
.client-project-heading small { color: #7b8781; font-size: .7rem; text-transform: uppercase; }
.client-project-heading strong { margin-top: 3px; color: #244237; }
.client-current-status { padding: 7px 11px; border-radius: 999px; color: #1f6b52; background: #e2f3ec; font-size: .72rem; font-weight: 850; }
.client-status-card { display: flex; gap: 15px; padding: 20px; border: 1px solid #cfe0d8; border-radius: 14px; background: #f4f9f6; }
.status-symbol { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; color: #276c57; background: #dcede5; font-size: 1.15rem; }
.client-status-card small { color: #6f7e76; font-size: .72rem; font-weight: 750; }
.client-status-card h3 { margin: 4px 0 5px; color: #234236; }
.client-status-card p { margin: 0; color: #5d6e65; font-size: .84rem; line-height: 1.55; }
.no-action-note { display: inline-block; margin-top: 10px; color: #276c57; font-size: .77rem; }
.client-timeline { display: grid; gap: 0; margin: 22px 0; }
.client-milestone { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; min-height: 66px; color: #9aa49f; }
.client-milestone:not(:last-child)::before { position: absolute; top: 31px; bottom: 0; left: 16px; width: 2px; background: #dfe6e2; content: ""; }
.client-milestone > span { z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #d7dfdb; border-radius: 50%; background: #fff; font-size: .72rem; font-weight: 850; }
.client-milestone strong, .client-milestone small { display: block; }
.client-milestone strong { margin-top: 2px; font-size: .84rem; }
.client-milestone strong b { margin-right: 3px; color: inherit; }
.client-milestone small { margin-top: 4px; font-size: .72rem; }
.client-milestone.substep { margin-left: 18px; }
.client-milestone.substep > span { width: 31px; height: 31px; font-size: .62rem; }
.client-milestone.substep:not(:last-child)::before { top: 29px; left: 15px; }
.client-milestone.substep strong { font-size: .78rem; }
.client-milestone.substep small { font-size: .68rem; }
.client-milestone.completed, .client-milestone.active { color: #276c57; }
.client-milestone.completed > span { color: #fff; border-color: #277157; background: #277157; }
.client-milestone.active > span { border-color: #277157; box-shadow: 0 0 0 4px #e3f0ea; }
.client-project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client-project-meta div { padding: 13px; border: 1px solid #e1e8e4; border-radius: 10px; }
.client-project-meta small, .client-project-meta strong { display: block; }
.client-project-meta small { color: #7a8781; font-size: .66rem; text-transform: uppercase; }
.client-project-meta strong { margin-top: 5px; color: #344b40; font-size: .77rem; }
.validation-modal-backdrop { z-index: 320; }
.document-validation-dialog { width: min(470px, calc(100% - 30px)); padding: 38px; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.3); text-align: center; }
.validation-dialog-state { display: grid; justify-items: center; }
.validation-dialog-state h2 { margin: 20px 0 8px; color: #263d33; font-size: 1.4rem; }
.validation-dialog-state p { margin: 0; color: #68766f; line-height: 1.55; }
.validation-dialog-state > small { margin-top: 9px; color: #929d97; }
.validation-spinner { width: 58px; height: 58px; border: 5px solid #dcebe4; border-top-color: #267257; border-radius: 50%; animation: validation-spin .8s linear infinite; }
@keyframes validation-spin { to { transform: rotate(360deg); } }
.validation-result-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; color: #fff; background: #287458; font-size: 1.7rem; font-weight: 900; }
.validation-review .validation-result-icon { background: #c58a2a; }
.validation-invalid .validation-result-icon { background: #bd4c45; }
.validation-detected-data { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0 0; }
.validation-detected-data:empty { display: none; }
.validation-detected-data div { padding: 11px; border-radius: 9px; background: #f3f7f5; text-align: left; }
.validation-detected-data dt { color: #7b8781; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.validation-detected-data dd { margin: 4px 0 0; color: #29473b; font-size: .86rem; font-weight: 800; }
.validation-dialog-state > button { margin-top: 22px; }
#installer-profile-modal { z-index: 70; }
/* Se abre desde la ficha TE-4 (z-index: 200), así que debe cubrirla. */
#generator-report-modal { z-index: 270; }
#explanatory-memory-modal { z-index: 275; }
.personalization-subtabs { display:flex; gap:6px; padding:4px; margin:14px 0 18px; width:max-content; max-width:100%; border:1px solid #d9e1e8; border-radius:12px; background:#f5f7f9; }
.personalization-subtabs button { min-height:34px; padding:7px 13px; border:0; border-radius:9px; background:transparent; color:#64748b; box-shadow:none; font-size:12px; }
.personalization-subtabs button.active { background:#fff; color:#123f6b; box-shadow:0 2px 8px rgba(15,45,72,.1); }
.technical-installation-section { border-color:#dbe5ed; background:#fbfcfd; }
.explanatory-memory-dialog { width:min(900px,94vw); max-height:92vh; overflow:auto; }
.explanatory-memory-form textarea { resize:none; }
.memory-advanced-options { padding:12px 14px; border:1px solid #dbe5ed; border-radius:11px; background:#f7fafc; }
.memory-advanced-options > summary { color:#173b5d; font-size:12px; font-weight:800; cursor:pointer; }
.memory-advanced-options > p { margin:8px 0 12px; color:#728294; font-size:11px; line-height:1.45; }
.memory-advanced-options .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.memory-cover-preview { min-height:360px; }
.memory-string-lengths { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.memory-string-lengths article { display:grid; grid-template-columns:minmax(110px,1fr) repeat(2,minmax(90px,.6fr)); gap:10px; align-items:end; padding:10px 12px; border:1px solid #dbe4ec; border-radius:12px; background:#f8fafc; }
.memory-string-lengths article > strong { align-self:center; color:#173b5d; font-size:13px; }
.memory-string-lengths label { gap:4px; font-size:11px; }

@media (max-width: 700px) {
  .personalization-subtabs { width:100%; }
  .personalization-subtabs button { flex:1; }
  .explanatory-memory-dialog { width:100%; max-width:none; height:100dvh; max-height:none; border-radius:0; }
  .memory-string-lengths { grid-template-columns:1fr; }
  .memory-string-lengths article { grid-template-columns:1fr 1fr; }
  .memory-string-lengths article > strong { grid-column:1/-1; }
  .memory-advanced-options .form-grid { grid-template-columns:1fr; }
  .project-location-card > header { flex-direction:column; }
  .project-location-card > header button { width:100%; }
  #project-location-map { height:250px; }
  .project-location-coordinates { grid-template-columns:1fr 1fr; }
  .project-location-coordinates p { grid-column:1 / -1; text-align:left; }
}
.te4-checklist-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(7,28,51,.3); animation: modal-pop .24s cubic-bezier(.2,.8,.2,1); }
#te4-checklist-modal { z-index: 350; }
.te4-checklist-form { padding: 0 28px 24px; }
.te4-checklist-intro { display: flex; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid #dce6f0; border-radius: 12px; background: #f7faff; color: #526479; font-size: .78rem; }
.te4-checklist-intro strong { flex: none; color: #14365d; }
.te4-checklist-section { margin-top: 14px; border: 1px solid #dce5ee; border-radius: 12px; overflow: hidden; }
.te4-checklist-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #f8fafc; color: #173858; font-weight: 800; cursor: pointer; list-style: none; }
.te4-checklist-section > summary::-webkit-details-marker { display: none; }
.te4-checklist-section > summary::after { content: '⌄'; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.te4-checklist-section[open] > summary::after { transform: rotate(180deg); }
.te4-checklist-section > summary small { margin-left: auto; color: #6e7d8d; font-size: .72rem; font-weight: 600; }
.te4-checklist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(170px, .65fr); align-items: start; gap: 14px; padding: 13px 16px; border-top: 1px solid #e9eef3; }
.te4-checklist-row:nth-child(even) { background: #fcfdff; }
.te4-checklist-question { min-width: 0; font-size: .79rem; line-height: 1.45; color: #263b51; }
.te4-checklist-question strong { display: block; margin-bottom: 3px; color: #173858; }
.te4-checklist-question small { display: block; margin-top: 5px; color: #74869a; font-size: .68rem; }
.te4-checklist-choices { display: flex; gap: 4px; padding: 3px; border: 1px solid #d7e2ed; border-radius: 9px; background: #f7f9fc; }
.te4-checklist-choices label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 7px; border-radius: 6px; color: #55677a; font-size: .72rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.te4-checklist-choices label:has(input:checked) { background: #fff; color: #163b63; box-shadow: 0 1px 4px #1738581c; }
.te4-checklist-choices input { width: 14px; height: 14px; min-width: 14px; min-height: 14px; margin: 0; accent-color: #f5a623; }
.te4-checklist-observation { width: 100%; min-height: 55px; padding: 8px 10px; border: 1px solid #d7e2ed; border-radius: 8px; font: inherit; font-size: .75rem; resize: vertical; }
.te4-checklist-general-note { display: grid; gap: 7px; margin-top: 16px; color: #334b62; font-size: .78rem; font-weight: 700; }
.te4-checklist-general-note textarea { padding: 10px; border: 1px solid #d7e2ed; border-radius: 9px; font: inherit; font-weight: 400; resize: vertical; }
.te4-checklist-actions { position: sticky; bottom: -24px; z-index: 1; margin: 16px -28px -24px; padding: 14px 28px; border-top: 1px solid #e4ebf1; background: #fff; }
.te4-checklist-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .te4-checklist-form { padding: 0 16px 16px; } .te4-checklist-intro { display: grid; } .te4-checklist-row { grid-template-columns: 1fr; gap: 8px; } .te4-checklist-choices { width: max-content; max-width: 100%; } .te4-checklist-actions { bottom: -16px; margin: 16px -16px -16px; padding: 12px 16px; } }
#image-report-modal { z-index: 360; }
.image-report-dialog { width: min(1220px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(7,28,51,.34); animation: modal-pop .24s cubic-bezier(.2,.8,.2,1); }
.image-report-form { padding: 20px 26px 0; }
.image-report-template-section { padding: 16px; border: 1px solid #dfe7ee; border-radius: 14px; background: #f8fafc; }
.image-report-mobile-template-heading { display: none; }
.image-report-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.image-report-section-heading h3 { margin: 0; color: #173858; font-size: .94rem; }
.image-report-section-heading p { margin: 4px 0 0; color: #748297; font-size: .72rem; }
.image-report-heading-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.image-report-heading-actions > span { padding: 7px 10px; border-radius: 999px; color: #78500a; background: #fff0cf; font-size: .68rem; font-weight: 800; }
.image-report-heading-actions > button { min-height: 32px; padding: 7px 11px; font-size: .68rem; }
.image-report-template-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.image-report-template-card { position: relative; display: block; cursor: pointer; }
.image-report-template-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-report-template-card > span { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; min-height: 74px; padding: 14px 15px; border: 1px solid #d6e0e9; border-radius: 11px; background: #fff; transition: border-color .18s, box-shadow .18s, background .18s; }
.image-report-template-card strong { color: #233f5d; font-size: .83rem; }
.image-report-template-card small { grid-column: 1; color: #728196; font-size: .69rem; }
.image-report-template-card em { grid-row: 1 / span 2; grid-column: 2; align-self: center; padding: 5px 8px; border-radius: 999px; color: #5a6c7d; background: #edf2f6; font-size: .62rem; font-style: normal; font-weight: 800; }
.image-report-template-card input:checked + span { border-color: var(--ccs-orange); background: #fffaf0; box-shadow: 0 0 0 2px rgba(var(--ccs-orange-rgb),.15); }
.image-report-template-card input:checked + span::before { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--ccs-orange); content: ""; }
.image-report-template-card input:checked + span em { margin-right: 13px; color: #173858; background: #ffe4ab; }
.image-report-project-summary { display: grid; grid-template-columns: 1fr 1.5fr .55fr; gap: 10px; margin: 14px 0; }
.image-report-project-summary div { min-width: 0; padding: 10px 12px; border: 1px solid #e0e7ed; border-radius: 10px; }
.image-report-project-summary small,.image-report-project-summary strong { display: block; }
.image-report-project-summary small { color: #8492a2; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.image-report-project-summary strong { margin-top: 3px; overflow: hidden; color: #29445f; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.image-report-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: 18px; }
.image-report-editor { min-width: 0; }
.image-report-section { margin-bottom: 9px; overflow: hidden; border: 1px solid #dce5ed; border-radius: 11px; background: #fff; }
.image-report-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }
.image-report-section > summary::-webkit-details-marker { display: none; }
.image-report-section > summary span { min-width: 0; }
.image-report-section > summary small,.image-report-section > summary strong { display: block; }
.image-report-section > summary small { margin-bottom: 2px; color: #8b98a5; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.image-report-section > summary strong { color: #28445f; font-size: .79rem; }
.image-report-section > summary em { flex: none; padding: 5px 8px; border-radius: 999px; color: #7a8795; background: #eef2f5; font-size: .61rem; font-style: normal; font-weight: 800; }
.image-report-section > summary em.ready { color: #176a4c; background: #dcf5e9; box-shadow: inset 0 0 0 1px rgba(23,106,76,.1); }
.image-report-section > summary::after { color: #718095; content: "⌄"; transition: transform .18s; }
.image-report-section[open] > summary::after { transform: rotate(180deg); }
.image-report-section-body { display: grid; grid-template-columns: minmax(150px,.35fr) minmax(0,1fr); gap: 12px; padding: 13px 14px 15px; border-top: 1px solid #e8edf2; background: #fbfcfd; }
.image-report-section-body > label { display: grid; align-content: start; gap: 6px; color: #40566b; font-size: .69rem; font-weight: 800; }
.image-report-section-body select,.image-report-section-body textarea { width: 100%; border: 1px solid #ccd8e3; border-radius: 8px; color: #253e58; background: #fff; font: inherit; font-weight: 500; }
.image-report-section-body select { min-height: 38px; padding: 7px 9px; }
.image-report-section-body textarea { min-height: 74px; padding: 9px 10px; resize: vertical; }
.image-report-description { grid-column: 2; grid-row: 1 / span 2; }
.image-report-description small { color: #8a97a5; font-size: .59rem; font-weight: 500; }
.image-report-upload { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px dashed #bfcddd; border-radius: 9px; background: #fff; cursor: pointer; }
.image-report-upload span small,.image-report-upload span strong { display: block; }
.image-report-upload span small { margin-top: 2px; color: #8391a1; font-size: .58rem; font-weight: 500; }
.image-report-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-report-upload em { flex: none; padding: 6px 9px; border-radius: 7px; color: #fff; background: var(--ccs-navy); font-size: .61rem; font-style: normal; }
.image-report-file-list { display: flex; grid-column: 1 / -1; gap: 6px; flex-wrap: wrap; }
.image-report-file-list > .image-report-file-item,.image-report-file-list > small { min-width: 0; padding: 5px 8px; border-radius: 7px; color: #627386; background: #edf2f6; font-size: .61rem; }
.image-report-file-list > .image-report-file-item { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; }
.image-report-file-kind { flex: none; font-style: normal; }
.image-report-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-report-file-list .image-report-file-item button { display: grid; width: 18px; height: 18px; padding: 0; flex: none; place-items: center; border: 0; border-radius: 50%; color: #a22f35; background: #fff; box-shadow: none; font-size: .72rem; line-height: 1; }
.image-report-file-list .image-report-file-item button .animated-lucide { width: 12px; height: 12px; }
.image-report-file-list .image-report-linked-file { color: #256653; background: #e8f6f0; }
.image-report-document-thumb { color: #246b59; background: #eaf7f2; }
.image-report-preview { position: sticky; top: 0; padding: 15px; border: 1px solid #dfe6ed; border-radius: 14px; background: #eef2f5; }
.image-report-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.image-report-preview-heading span,.image-report-preview-heading strong,.image-report-preview-heading small { display: block; }
.image-report-preview-heading .icon-button { display: none; }
.image-report-preview-heading span { color: #8a96a3; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.image-report-preview-heading strong { margin-top: 3px; color: #183a5e; font-size: .88rem; }
.image-report-preview-heading small { margin-top: 3px; color: #758497; font-size: .64rem; }
.image-report-preview-pages { display: grid; gap: 9px; max-height: 54dvh; margin-top: 12px; padding-right: 3px; overflow: auto; }
.image-report-preview-page { min-height: 150px; padding: 12px; border: 1px solid #d4dde5; border-radius: 5px; background: #fff; box-shadow: 0 3px 10px rgba(19,52,83,.08); }
.image-report-preview-page header { display: flex; align-items: center; gap: 7px; padding-bottom: 7px; border-bottom: 2px solid #173f69; }
.image-report-preview-page header span { color: var(--ccs-orange); font-size: .58rem; font-weight: 900; }
.image-report-preview-page header strong { color: #173b61; font-size: .68rem; text-transform: uppercase; }
.image-report-preview-photo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; min-height: 78px; margin-top: 8px; }
.image-report-photo-empty,.image-report-photo-thumb { display: grid; min-width: 0; min-height: 78px; place-items: center; overflow: hidden; border-radius: 4px; color: #95a1ac; background: #f0f3f5; text-align: center; }
.image-report-photo-empty span { font-size: 1.1rem; }
.image-report-photo-empty small { font-size: .55rem; }
.image-report-photo-thumb { position: relative; }
.image-report-photo-thumb img { width: 100%; height: 78px; object-fit: cover; }
.image-report-photo-thumb > span { font-size: 1.1rem; }
.image-report-photo-thumb small { position: absolute; right: 3px; bottom: 3px; left: 3px; overflow: hidden; padding: 2px 3px; color: #fff; background: rgba(7,28,51,.72); font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.image-report-preview-page > p { margin: 7px 0 0; color: #506174; font-size: .56rem; line-height: 1.35; }
.image-report-actions { position: sticky; bottom: 0; z-index: 3; margin: 18px -26px 0; padding: 13px 26px; border-top: 1px solid #dfe6ec; background: #fff; }
.image-report-actions > div { display: flex; gap: 8px; }
.field-help { display: block; margin-top: 4px; color: #7d8b9a; font-size: .66rem; font-weight: 500; }
.supply-bill-upload { display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 12px; padding: 12px; border: 1px dashed #b8c8d8; border-radius: 10px; background: #f8fbfd; cursor: pointer; }
.supply-bill-upload span strong,.supply-bill-upload span small { display: block; }
.supply-bill-upload span small { margin-top: 3px; color: #74869a; font-size: .66rem; font-weight: 500; }
.supply-bill-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.supply-bill-upload em { padding: 7px 10px; border-radius: 7px; color: #fff; background: var(--ccs-navy); font-size: .68rem; font-style: normal; white-space: nowrap; }
.supply-bill-upload b { grid-column: 1 / -1; overflow: hidden; color: #68798a; font-size: .65rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 850px) {
  .image-report-dialog { width: 100%; max-height: calc(100dvh - 16px); }
  .image-report-workspace { grid-template-columns: 1fr; }
  .image-report-preview { position: static; }
  .image-report-preview-pages { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
}
@media (max-width: 600px) {
  .image-report-form { padding: 14px 14px 0; }
  .image-report-template-options,.image-report-project-summary,.image-report-preview-pages { grid-template-columns: 1fr; }
  .image-report-section-heading { align-items: flex-start; }
  .image-report-heading-actions { align-items: flex-end; flex-direction: column; }
  .image-report-section-body { grid-template-columns: 1fr; }
  .image-report-description { grid-column: 1; grid-row: auto; }
  .image-report-actions { margin: 16px -14px 0; padding: 11px 14px; }
  .image-report-actions,.image-report-actions > div { align-items: stretch; }
}
.report-modal { width: min(1050px, calc(100% - 32px)); }
.modal-header p { margin: 6px 0 0; color: #75827c; font-size: .82rem; }
.settings-form, .report-form { padding: 24px 30px 30px; }
.profile-settings-tabs { display: flex; gap: 6px; padding: 0 30px; border-bottom: 1px solid #dfe5e9; }
.profile-settings-tabs button { min-width: 0; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #6c7b88; background: transparent; box-shadow: none; font-size: .75rem; }
.profile-settings-tabs button.active { border-bottom-color: var(--ccs-orange); color: var(--ccs-navy); }
.profile-settings-tabs button:hover { color: var(--ccs-navy); background: #f5f8fa; box-shadow: none; transform: none; }
.profile-integrations-panel { display: grid; gap: 15px; padding: 24px 30px 30px; }
.profile-personalization-panel { padding: 24px 30px 30px; }
.report-cover-settings-heading h3,.report-cover-settings-heading p { margin: 0; }
.report-cover-settings-heading h3 { color: #233c56; font-size: 1rem; }
.report-cover-settings-heading p { margin-top: 5px; color: #708193; font-size: .72rem; line-height: 1.5; }
.report-cover-settings-form { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(280px,1.2fr); gap: 22px; margin-top: 18px; }
.report-cover-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 12px; }
.report-cover-controls > label { display: grid; gap: 6px; color: #506477; font-size: .69rem; font-weight: 800; }
.report-cover-controls select { width: 100%; min-width: 0; }
.report-cover-toggle { display: flex !important; grid-column: 1 / -1; grid-template-columns: none; align-items: center; gap: 8px !important; min-height: 26px; }
.report-cover-toggle input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ccs-orange); }
.report-cover-image-picker { grid-column: 1 / -1; }
.report-cover-image-preview { min-height: 82px; }
.report-cover-image-preview img { max-height: 82px; object-fit: contain; }
.report-cover-preview-wrap { min-width: 0; padding: 13px; border-radius: 15px; background: #edf2f6; }
.report-cover-preview-wrap > span { display: block; margin: 0 0 8px; color: #6c7d8e; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.report-cover-preview { --cover-accent: #f5a623; display: flex; min-height: 430px; padding: 28px 24px 20px; align-items: center; flex-direction: column; border-radius: 6px; color: #143f6b; background: #fff; box-shadow: 0 5px 18px rgba(18,49,78,.1); text-align: center; }
.report-cover-preview-media { display: grid; width: 72%; height: 112px; margin: 8px 0 32px; place-items: center; overflow: hidden; }
.report-cover-preview[data-image-size="compact"] .report-cover-preview-media { width: 48%; height: 74px; margin-bottom: 36px; }
.report-cover-preview[data-image-size="medium"] .report-cover-preview-media { width: 62%; height: 94px; }
.report-cover-preview-media img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.report-cover-preview-media strong { display: grid; width: 150px; height: 66px; place-items: center; border-radius: 12px; color: #fff; background: #143f6b; font-size: 22px; }
.report-cover-preview h4 { margin: 0; font-size: var(--cover-title-size,22px); line-height: 1.15; }
.report-cover-preview > p { margin: 7px 0 28px; font-size: 15px; }
.report-cover-preview > strong { max-width: 90%; color: #17273c; font-size: 12px; }
.report-cover-preview > small { max-width: 90%; margin-top: 9px; color: #627286; line-height: 1.45; }
.report-cover-preview > i { width: 8px; height: 8px; margin: auto 0 12px; border-radius: 50%; background: var(--cover-accent); }
.report-cover-preview > time { color: #68798b; font-size: 9px; font-style: normal; }
.report-cover-settings-form > .form-message,.report-cover-settings-form > .form-actions { grid-column: 1 / -1; }
.integration-intro,.integration-privacy-note { margin: 0; color: #647488; font-size: .73rem; line-height: 1.5; }
.integration-configuration-note { margin: 0; padding: 12px 14px; border: 1px solid #ead8ae; border-radius: 10px; color: #79581e; background: #fff9e8; font-size: .7rem; }
.integration-card { min-width: 0; padding: 18px; border: 1px solid #dce5ec; border-radius: 14px; background: #fff; }
.integration-card-heading { display: flex; align-items: flex-start; gap: 13px; }
.integration-service-icon { display: grid; flex: none; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: #1c64c7; background: #eaf2ff; font-size: .85rem; font-weight: 900; }
.integration-service-icon.drive { color: #278955; background: #e9f7ee; font-size: 1.35rem; }
.integration-card h3 { margin: 0 0 4px; color: #233c56; font-size: .9rem; }
.integration-card-heading p { margin: 0; color: #708193; font-size: .69rem; line-height: 1.45; }
.integration-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.integration-card-actions button,.integration-upload-button { min-width: 0; min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: .67rem; }
.integration-upload-button { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ccs-navy); cursor: pointer; font-weight: 800; }
.integration-upload-button:has(input:disabled),.integration-upload-button.disabled { opacity: .48; cursor: not-allowed; }
.integration-status { margin-right: auto; padding: 5px 8px; border-radius: 999px; color: #6b7785; background: #edf1f4; font-size: .61rem; font-weight: 800; }
.integration-status.connected { color: #15734a; background: #e5f7ed; }
.integration-message { min-height: 1em; margin: 12px 0 0; color: #51657b; font-size: .68rem; overflow-wrap: anywhere; }
.integration-message.error { color: #9b353c; }
.integration-message a { color: #1c63a6; }
@media (max-width: 620px) { .profile-settings-tabs { padding: 0 16px; overflow-x: auto; } .profile-integrations-panel,.profile-personalization-panel { padding: 16px; } .integration-card { padding: 14px; } .integration-card-actions { align-items: stretch; } .integration-status { width: 100%; } .report-cover-settings-form { grid-template-columns: 1fr; } .report-cover-preview-wrap { grid-row: 1; } }
.settings-form label, .report-form label { display: grid; gap: 7px; color: #506058; font-size: .78rem; font-weight: 750; }
.profile-section-title { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid #e2e9e5; color: #293f35; font-size: 1rem; }
.profile-assets { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(300px, 1.28fr); gap: 16px; }
.profile-asset-picker { align-content: start; padding: 14px; border: 1px solid #d9e4de; border-radius: 13px; background: #f8faf9; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.profile-asset-picker:hover { border-color: #76a491; box-shadow: 0 0 0 3px rgba(42,118,89,.09); }
.profile-asset-picker > span:first-child strong, .profile-asset-picker > span:first-child small { display: block; }
.profile-asset-picker > span:first-child small { margin-top: 4px; color: #78867f; font-size: .68rem; font-weight: 500; }
.profile-asset-preview { display: grid; min-height: 128px; place-items: center; overflow: hidden; border: 1px dashed #b9cbc2; border-radius: 10px; color: #648074; background: #fff; text-align: center; }
.profile-asset-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.signature-preview img { max-width: 240px; max-height: 125px; }
.banner-preview { min-height: 128px; }
.banner-preview img { max-height: 128px; }
.report-section { margin-bottom: 24px; padding: 20px; border: 1px solid #dfe7e3; border-radius: 14px; background: #fbfcfb; }
.report-section h3, .report-section p { margin: 0; }
.report-section h3 { margin-bottom: 16px; color: #293f35; font-size: 1rem; }
.report-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.report-section-heading p { margin-top: 4px; color: #77847e; font-size: .78rem; }
.report-section-heading .compact-button { min-width: 0; padding: 9px 12px; font-size: .72rem; }
.report-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-installer-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.report-installer-summary div { padding: 12px; border-radius: 10px; background: #edf5f1; }
.report-installer-summary small, .report-installer-summary strong { display: block; }
.report-installer-summary small { color: #77847e; font-size: .68rem; text-transform: uppercase; }
.report-installer-summary strong { margin-top: 4px; color: #29493b; font-size: .78rem; }
.report-module-picker { display: flex; grid-column: span 2; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 6px 7px 6px 12px; border: 1px solid #d8e3de; border-radius: 10px; background: #fff; }
.report-module-picker span { min-width: 0; }
.report-module-picker small,.report-module-picker strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-module-picker small { color: #7a8981; font-size: .59rem; font-weight: 800; text-transform: uppercase; }
.report-module-picker strong { margin-top: 2px; color: #29493b; font-size: .72rem; }
.report-module-picker button { min-width: 132px; padding: 8px 10px; font-size: .68rem; }
.report-module-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px 14px; margin-top: 11px; padding: 8px 0; border-top: 1px solid #e2e9e5; border-bottom: 1px solid #e2e9e5; }
.report-module-summary div { min-width: 0; padding: 3px 9px; border-left: 2px solid #d5e5dd; }
.report-module-summary small,.report-module-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-module-summary small { color: #7a8981; font-size: .62rem; text-transform: uppercase; }
.report-module-summary strong { margin-top: 4px; color: #29493b; font-size: .74rem; }
.report-string-card.library-module { border-color: #bcd8ca; background: #f8fcfa; }
.report-string-card.library-module .module-locked-note { margin: 0 0 12px; color: #42705c; font-size: .68rem; font-weight: 750; }
.report-string-card input:read-only { color: #4c6359; background: #edf3f0; cursor: not-allowed; }
.report-form.library-linked .report-section { margin-bottom: 14px; padding: 14px; }
.report-form.library-linked .report-section h3 { margin-bottom: 10px; font-size: .9rem; }
.report-form.library-linked .report-string-card { padding: 12px; }
.report-form.library-linked .report-string-header { margin-bottom: 10px; }
.report-form.library-linked label { gap: 4px; font-size: .7rem; }
.report-form.library-linked input,.report-form.library-linked select { min-height: 37px; }
.report-strings-list { display: grid; gap: 14px; margin-top: 16px; }
.report-string-card { padding: 17px; border: 1px solid #d8e4de; border-radius: 12px; background: #fff; }
.report-string-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.report-string-header strong { color: #285b47; }
.report-string-header > span { color: #839188; font-size: .61rem; font-weight: 700; }
.report-string-actions { display: flex; gap: 7px; }
.report-string-actions button { min-width: 0; padding: 7px 10px; font-size: .69rem; }
.report-string-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.report-string-auto-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; padding: 5px 0 11px; border-bottom: 1px solid #e3ebe7; }
.report-string-auto-summary div { min-width: 0; }
.report-string-auto-summary small,.report-string-auto-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-string-auto-summary small { color: #88958e; font-size: .55rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.report-string-auto-summary strong { margin-top: 3px; color: #2b5140; font-size: .7rem; }
.report-string-cable-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:10px; padding:9px 10px; border:1px solid #dce9e3; border-radius:9px; background:#f7faf8; }
.report-string-cable-summary div { min-width:0; }
.report-string-cable-summary small,.report-string-cable-summary strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.report-string-cable-summary small { color:#83928a; font-size:.53rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.report-string-cable-summary strong { margin-top:3px; color:#285b47; font-size:.68rem; }
.report-string-user-groups { display: grid; grid-template-columns: .65fr 1.35fr; gap: 10px; margin-top: 10px; }
.report-string-user-group { min-width: 0; padding: 9px 10px 10px; border-radius: 9px; background: #f3f7f5; }
.report-string-user-group h4 { margin: 0 0 7px; color: #527063; font-size: .61rem; letter-spacing: .04em; text-transform: uppercase; }
.report-string-input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.report-string-input-grid.compact-two { grid-template-columns: 1fr; }
.report-string-input-grid label { gap: 3px; font-size: .62rem; }
.report-string-input-grid input,.report-string-input-grid select { min-height: 34px !important; padding: 6px 8px; font-size: .69rem; }
.calculated-field input { color: #226048; background: #edf6f2; font-weight: 800; }
.report-operating-section .report-section-heading { align-items:flex-start; }
.report-edit-icon { display:grid; width:31px; height:31px; min-width:31px; padding:0; place-items:center; border:1px solid #c8d8cf; border-radius:8px; color:#2b674f; background:#fff; box-shadow:none; }
.report-edit-icon:hover,.report-edit-icon.active { color:#fff; background:#2b674f; transform:none; box-shadow:none; }
.report-edit-icon .animated-lucide { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.report-operating-editor { margin-top:11px; padding-top:11px; border-top:1px solid #e0e9e4; }
.report-edit-warning { margin:0 0 10px !important; padding:9px 11px; border:1px solid #f0d49b; border-radius:8px; color:#855616; background:#fff8e9; font-size:.64rem; line-height:1.45; }
.report-calculation-note { margin-top: 10px !important; color: #667b70; font-size: .68rem; line-height: 1.4; }
.compact-report-section { padding: 14px 18px; }
.checkbox-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 12px !important; cursor: pointer; }
.checkbox-row input { width: 18px; min-height: 18px; }
.checkbox-row strong, .checkbox-row small { display: block; }
.checkbox-row small { margin-top: 3px; color: #7a8781; font-weight: 500; }
.report-actions > div { display: flex; gap: 9px; }
.report-actions button { min-width: 130px; }
.report-module-picker-backdrop { z-index: 580; padding: 18px; }
.report-module-picker-dialog { width: min(780px,100%); max-height: min(760px,calc(100dvh - 36px)); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(7,28,51,.34); animation: modal-pop .2s ease-out; }
.report-module-picker-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid #e1e8ee; }
.report-module-picker-dialog > header p { margin: 0 0 4px; color: #f29b12; font-size: .62rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.report-module-picker-dialog > header h2 { margin: 0; color: #173b62; font-size: 1.05rem; }
.report-module-picker-dialog > header span { display: block; margin-top: 4px; color: #758597; font-size: .7rem; }
.report-module-picker-body { display: grid; gap: 18px; max-height: calc(100dvh - 145px); padding: 18px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.report-module-search { display: grid; gap: 6px; color: #52697f; font-size: .68rem; font-weight: 800; }
.report-module-search input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #cddae6; border-radius: 10px; color: #173b62; background: #fbfcfe; }
.report-picker-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.report-picker-section-title h3 { margin: 0; color: #173b62; font-size: .82rem; }
.report-picker-section-title span { color: #8594a2; font-size: .62rem; }
.report-module-choice-list { display: grid; gap: 7px; }
.report-module-choice { display: grid; width: 100%; min-height: 55px; grid-template-columns: minmax(0,1fr) minmax(150px,.45fr) auto; align-items: center; gap: 14px; padding: 9px 11px; border: 1px solid #dce5ed; border-radius: 10px; color: #263f58; background: #fff; box-shadow: none; text-align: left; }
.report-module-choice:hover { border-color: #f3b24c; background: #fffaf1; box-shadow: none; transform: none; }
.report-module-choice.selected { border-color: #f2a11c; background: #fff7e9; box-shadow: inset 3px 0 #f2a11c; }
.report-module-choice span,.report-module-choice strong,.report-module-choice small { min-width: 0; }
.report-module-choice strong,.report-module-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-module-choice strong { font-size: .73rem; }
.report-module-choice small { margin-top: 3px; color: #7a8b9d; font-size: .61rem; }
.report-module-choice-spec { text-align: right; }
.report-module-frequent-badge { padding: 4px 7px; border-radius: 999px; color: #9a5c00; background: #fff0d1; font-size: .57rem; font-weight: 900; }
.report-module-no-results { display: grid; gap: 3px; padding: 24px; border: 1px dashed #cddae6; border-radius: 10px; color: #748596; text-align: center; }
.report-module-no-results strong { color: #3b536b; font-size: .78rem; }
.report-module-no-results span { font-size: .66rem; }

/* Sistema visual CCS: paleta corporativa y microinteracciones */
body { color: #273746; background: radial-gradient(circle at 8% 4%, rgba(var(--ccs-gray-rgb),.2), transparent 28rem), #f4f6f8; }
.auth-brand-panel, .card-header { background: linear-gradient(135deg, #092b50, var(--ccs-navy) 62%, #164b7e); }
.auth-logo, .brand-mark { border-color: rgba(255,255,255,.35); color: var(--ccs-navy); background: var(--ccs-orange); box-shadow: 0 0 0 5px rgba(var(--ccs-orange-rgb),.12); }
.dashboard-header { background: linear-gradient(105deg, #092b50, var(--ccs-navy) 55%, #164b7e); box-shadow: 0 3px 18px rgba(var(--ccs-navy-rgb),.24); }
.dashboard-header::after { position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 3px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--ccs-orange) 22%, var(--ccs-orange) 78%, transparent); content: ""; }
.dashboard-brand p { color: #d5e0e7; }
.dashboard-nav > .nav-home:hover, .dashboard-nav > .nav-home.active, .nav-menu > summary:hover, .nav-menu.active > summary, .profile-menu > summary:hover { color: #fff; background: rgba(var(--ccs-orange-rgb),.18); box-shadow: inset 0 -2px var(--ccs-orange); }
.nav-dropdown, .profile-dropdown { border-color: rgba(var(--ccs-gray-rgb),.58); box-shadow: 0 18px 45px rgba(var(--ccs-navy-rgb),.2); animation: dropdown-in .16s ease-out; }
.nav-dropdown button:hover, .profile-dropdown button:hover { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.12); }
.nav-dropdown button.available { color: var(--ccs-navy); }
.eyebrow.dark { color: var(--ccs-navy); }
.eyebrow.dark::before { color: var(--ccs-orange); content: "●"; margin-right: 6px; }
button { background: var(--ccs-navy); box-shadow: 0 7px 18px rgba(var(--ccs-navy-rgb),.2); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
button:hover { background: #174b80; box-shadow: 0 10px 24px rgba(var(--ccs-navy-rgb),.25); transform: translateY(-1px); }
button:active { box-shadow: 0 3px 9px rgba(var(--ccs-navy-rgb),.18); transform: translateY(1px) scale(.99); }
#new-project, #save-project, #save-project-changes, #save-incomplete-project { color: #18293a; background: var(--ccs-orange); box-shadow: 0 8px 20px rgba(var(--ccs-orange-rgb),.28); }
#new-project:hover, #save-project:hover, #save-project-changes:hover, #save-incomplete-project:hover { background: #ffb63d; box-shadow: 0 12px 28px rgba(var(--ccs-orange-rgb),.34); }
.secondary-button { color: var(--ccs-navy); border-color: var(--ccs-gray); }
.secondary-button:hover { color: #fff; border-color: var(--ccs-navy); background: var(--ccs-navy); }
input, select, textarea { border-color: #cbd5dc; background: var(--ccs-white); transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--ccs-orange); background: #fff; box-shadow: 0 0 0 4px rgba(var(--ccs-orange-rgb),.16); }
.metric-card, .region-overview, .projects-panel { border-color: #d9e0e5; box-shadow: 0 8px 28px rgba(var(--ccs-navy-rgb),.07); }
.metric-card { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.metric-card::after { position: absolute; right: -20px; bottom: -34px; width: 88px; height: 88px; border: 18px solid rgba(var(--ccs-gray-rgb),.12); border-radius: 50%; content: ""; }
.metric-card:hover { border-color: rgba(var(--ccs-orange-rgb),.55); box-shadow: 0 14px 34px rgba(var(--ccs-navy-rgb),.12); transform: translateY(-3px); }
.metric-icon { color: var(--ccs-navy); background: rgba(var(--ccs-gray-rgb),.25); }
.metric-icon.amber { color: #9c6200; background: rgba(var(--ccs-orange-rgb),.19); }
.metric-icon.blue, .metric-icon.violet { color: var(--ccs-navy); background: rgba(var(--ccs-gray-rgb),.23); }
.region-card { border-color: #dce3e8; background: var(--ccs-white); transition: transform .2s ease, border-color .2s ease; }
.region-card:hover { border-color: var(--ccs-orange); transform: translateY(-2px); }
.region-card span, .projects-panel-actions > span, .crm-table-row > span:first-child { color: var(--ccs-navy); }
.projects-panel-actions > span { background: rgba(var(--ccs-gray-rgb),.2); }
.view-switch button.active { color: #18293a; background: var(--ccs-orange); }
.kanban-board { background: #f2f5f8; }
.kanban-column-header { border-left-color: var(--ccs-orange); background: #fff8eb; }
.kanban-column.blue .kanban-column-header { border-left-color: var(--ccs-navy); background: #eef4fa; }
.kanban-column.green .kanban-column-header { border-left-color: var(--ccs-gray); background: #f1f5f7; }
.kanban-column.amber .kanban-column-header { border-left-color: #d68a16; background: #fff9eb; }
.kanban-column.violet .kanban-column-header { border-left-color: #54799e; background: #f0f4f8; }
.kanban-card { box-shadow: 0 4px 14px rgba(var(--ccs-navy-rgb),.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kanban-card:hover { color: #334155; border-color: var(--ccs-orange); background: #fff; box-shadow: 0 13px 30px rgba(var(--ccs-navy-rgb),.15); transform: translateY(-4px); }
.kanban-card:hover .kanban-card-heading strong, .kanban-card:hover .kanban-card-data strong, .kanban-card:hover .kanban-card-value { color: inherit; }
.project-card:hover { color: #34473e; background: #fff; }
.kanban-card-location { color: var(--ccs-navy); }
.modal-backdrop { background: rgba(7,28,51,.62); animation: backdrop-in .18s ease-out; }
.project-modal, .settings-modal, .report-modal, .client-portal-modal, .leave-project-dialog, .document-validation-dialog { border: 1px solid rgba(var(--ccs-gray-rgb),.5); box-shadow: 0 30px 90px rgba(var(--ccs-navy-rgb),.3); animation: modal-pop .24s cubic-bezier(.2,.8,.2,1); }
.modal-header { border-bottom-color: #dfe5e9; }
.modal-header::after { position: absolute; right: 26px; bottom: -1px; left: 26px; height: 2px; background: linear-gradient(90deg, var(--ccs-orange), transparent 48%); content: ""; }
.icon-button:hover { background: var(--ccs-navy); }
.project-tab:hover, .project-tab.active { color: var(--ccs-navy); }
.project-tab.active { box-shadow: inset 0 -3px var(--ccs-orange); }
.validation-spinner { border-color: rgba(var(--ccs-gray-rgb),.42); border-top-color: var(--ccs-orange); box-shadow: 0 0 0 8px rgba(var(--ccs-orange-rgb),.08); }
.validation-result-icon { background: var(--ccs-navy); animation: result-pop .3s cubic-bezier(.2,.9,.3,1.3); }
.leave-dialog-icon { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.2); animation: attention-pulse 1.5s ease-in-out infinite; }
.status-pill { color: var(--ccs-navy); background: rgba(var(--ccs-gray-rgb),.22); }
.status-pill.incomplete { color: #855400; background: rgba(var(--ccs-orange-rgb),.2); }
.module-placeholder > span, .verification-icon, .empty-tab-panel > span { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.17); }
.module-notice { color: var(--ccs-navy); border-color: rgba(var(--ccs-gray-rgb),.65); background: rgba(var(--ccs-gray-rgb),.14); }
.skeleton { position: relative; overflow: hidden; color: transparent !important; background: #e4e9ed !important; }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); content: ""; animation: skeleton-wave 1.25s infinite; transform: translateX(-100%); }
.loading-ring { display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(var(--ccs-gray-rgb),.45); border-top-color: var(--ccs-orange); border-radius: 50%; animation: validation-spin .75s linear infinite; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.motion-controlled { animation: none !important; transition: none !important; }
.motion-managed { animation: none !important; }
@keyframes project-tab-swipe-in { from { opacity: .55; transform: translateX(var(--project-tab-swipe-x, 18px)); } to { opacity: 1; transform: translateX(0); } }
@keyframes result-pop { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes attention-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--ccs-orange-rgb),.1); } 50% { box-shadow: 0 0 0 8px rgba(var(--ccs-orange-rgb),.15); } }
@keyframes skeleton-wave { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Navegación lateral y módulos comerciales */
.dashboard-shell { padding-left: 92px; }
.dashboard-header { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 92px; padding: 0; overflow: visible; background: #fff; border-right: 1px solid #dde4ea; box-shadow: 4px 0 18px rgba(var(--ccs-navy-rgb),.06); }
.dashboard-header::after { display: none; }
.dashboard-header-inner { display: flex; width: 100%; min-height: 100vh; padding: 12px 8px; flex-direction: column; justify-content: flex-start; gap: 14px; }
.dashboard-brand { width: 100%; justify-content: center; padding-bottom: 12px; border-bottom: 1px solid #e5e9ed; }
.dashboard-brand .brand-mark { width: 46px; height: 46px; color: #172a3c; border-color: rgba(var(--ccs-navy-rgb),.18); background: var(--ccs-orange); }
.dashboard-brand > div { display: none; }
.dashboard-nav { display: flex; width: 100%; flex: 1; flex-direction: column; align-items: stretch; gap: 5px; }
.dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary, .profile-menu > summary { display: flex; min-height: 62px; width: 100%; padding: 7px 3px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 10px; color: #748398; background: transparent; box-shadow: none; cursor: pointer; text-align: center; }
.dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button { min-width: 0; }
.dashboard-nav > .nav-home small, .dashboard-nav > .side-nav-button small, .nav-menu > summary small, .profile-menu > summary small { font-size: .62rem; font-weight: 750; line-height: 1.08; }
.side-nav-icon { display: grid; width: 25px; height: 25px; place-items: center; color: #8392a3; border-radius: 7px; background: #eef2f5; font-size: .93rem; font-weight: 900; }
.side-nav-icon img { display: block; width: 17px; height: 17px; opacity: .64; transition: opacity .18s ease, transform .18s ease; }
.side-nav-icon > :is(svg, img) { width: 18px; height: 18px; margin: 0; color: inherit; opacity: .7; }
.layout-dashboard-animated { display: block; width: 20px; height: 20px; overflow: visible; color: inherit; transform-origin: center; }
.layout-dashboard-animated rect { transform-box: fill-box; transform-origin: center; }
.nav-home:hover .layout-dashboard-animated, .nav-home:focus-visible .layout-dashboard-animated { animation: dashboard-icon-motion 1.1s ease-in-out; }
.nav-home:hover .layout-dashboard-animated rect, .nav-home:focus-visible .layout-dashboard-animated rect { animation: dashboard-tile-motion .9s ease-in-out both; }
.nav-home:hover .layout-dashboard-animated rect:nth-child(2), .nav-home:focus-visible .layout-dashboard-animated rect:nth-child(2) { animation-delay: .08s; }
.nav-home:hover .layout-dashboard-animated rect:nth-child(3), .nav-home:focus-visible .layout-dashboard-animated rect:nth-child(3) { animation-delay: .16s; }
.nav-home:hover .layout-dashboard-animated rect:nth-child(4), .nav-home:focus-visible .layout-dashboard-animated rect:nth-child(4) { animation-delay: .24s; }
@keyframes dashboard-icon-motion { 0%,100% { transform: scale(1) rotate(0); } 35% { transform: scale(1.06) rotate(-1.5deg); } 68% { transform: scale(.98) rotate(1.5deg); } }
@keyframes dashboard-tile-motion { 0% { opacity: .6; transform: translateY(3px) scale(.95); } 55% { opacity: 1; transform: translateY(-2px) scale(1.04); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.contact-round-animated { display: block; width: 20px; height: 20px; overflow: visible; color: inherit; }
.contact-round-animated .contact-frame, .contact-round-animated .contact-curve { stroke-dasharray: 100; }
.contact-round-animated .contact-circle { transform-box: fill-box; transform-origin: center; }
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .contact-frame,
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .contact-frame { animation: contact-frame-motion .8s ease-in-out; }
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .contact-circle,
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .contact-circle { animation: contact-circle-motion .6s .3s ease-out both; }
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .contact-line,
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .contact-line { animation: contact-line-motion .4s .6s ease-out both; }
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .contact-curve,
:is(.side-nav-button, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .contact-curve { animation: contact-curve-motion .6s .5s ease-in-out both; }
@keyframes contact-frame-motion { from { opacity: .3; stroke-dashoffset: 100; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes contact-circle-motion { 0% { opacity: 0; transform: scale(.5); } 65% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes contact-line-motion { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes contact-curve-motion { from { opacity: 0; stroke-dashoffset: 30; } to { opacity: 1; stroke-dashoffset: 0; } }
.animated-lucide { display: block; width: 20px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; }
.lucide { flex-shrink: 0; pointer-events: none; }
.side-nav-icon:has(> .lucide) { justify-items: center; }
.animated-lucide.google-drive-mark { fill: initial; stroke: none; }
.google-drive-mark .drive-green { fill: #0f9d58; }
.google-drive-mark .drive-yellow { fill: #f4b400; }
.google-drive-mark .drive-blue { fill: #4285f4; }
.animated-lucide.more-icon { fill: currentColor; stroke: none; }
.animated-lucide .animated-draw { stroke-dasharray: 100; }
.animated-lucide .animated-pop { transform-box: fill-box; transform-origin: center; }
.animated-lucide .animated-line { transform-box: fill-box; transform-origin: left center; }
.animated-folder .folder-body, .animated-folder .folder-paper { transform-box: fill-box; transform-origin: center; }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .animated-wobble,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .animated-wobble { animation: lucide-wobble 1s cubic-bezier(.22,1,.36,1); }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .animated-draw,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .animated-draw { animation: lucide-draw .65s var(--icon-delay, 0s) cubic-bezier(.16,1,.3,1) both; }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .animated-pop,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .animated-pop { animation: lucide-pop .45s var(--icon-delay, 0s) cubic-bezier(.34,1.4,.64,1) both; }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .animated-line,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .animated-line { animation: lucide-line .35s var(--icon-delay, .18s) cubic-bezier(.16,1,.3,1) both; }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .folder-body,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .folder-body { animation: folder-body-motion .9s ease-in-out; }
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):hover .folder-paper,
:is(.side-nav-button, .nav-menu > summary, .sidebar-toggle, .quick-create-popover button, .dashboard-shortcuts-list > button, .shortcuts-options label):focus-visible .folder-paper { animation: folder-paper-motion 1s .2s ease-in-out both; }
@keyframes lucide-wobble { 0%,100% { transform: scale(1) rotate(0); } 35% { transform: scale(1.05) rotate(-2deg) translateY(-1px); } 68% { transform: scale(.98) rotate(2deg); } }
@keyframes lucide-draw { from { opacity: .25; stroke-dashoffset: 100; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes lucide-pop { 0% { opacity: .4; transform: scale(.65); } 62% { opacity: 1; transform: scale(1.22); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lucide-line { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes folder-body-motion { 0%,100% { transform: translateY(0) rotate(0) scale(1); } 36% { transform: translateY(-1.5px) rotate(-2deg) scale(1.05); } 70% { transform: translateY(.5px) rotate(2deg) scale(.97); } }
@keyframes folder-paper-motion { 0% { opacity: 0; transform: translateY(-6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
.dashboard-nav > .nav-home:hover, .dashboard-nav > .side-nav-button:hover, .nav-menu > summary:hover, .profile-menu > summary:hover { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.08); box-shadow: none; transform: none; }
.dashboard-nav > .nav-home.active, .dashboard-nav > .side-nav-button.active, .nav-menu.active > summary { color: var(--ccs-navy); background: transparent; box-shadow: none; transform: none; }
.dashboard-nav > button.active .side-nav-icon, .nav-menu.active .side-nav-icon { color: #172a3c; background: var(--ccs-orange); }
.dashboard-nav > button:hover .side-nav-icon > :is(svg, img), .dashboard-nav > button.active .side-nav-icon > :is(svg, img), .nav-menu > summary:hover .side-nav-icon > :is(svg, img), .nav-menu.active .side-nav-icon > :is(svg, img) { opacity: 1; }
.dashboard-nav > button:hover .side-nav-icon img, .dashboard-nav > button.active .side-nav-icon img, .nav-menu > summary:hover .side-nav-icon img, .nav-menu.active .side-nav-icon img { opacity: 1; transform: scale(1.04); }
.profile-menu { margin-top: auto; }
.profile-menu .avatar-placeholder { width: 28px; height: 28px; font-size: .62rem; }
.nav-dropdown { top: 3px; left: calc(100% + 10px); right: auto; width: 225px; }
.profile-dropdown { position: fixed; right: auto; bottom: 12px; left: 102px; width: 290px; }
.dashboard-content { width: min(1440px, calc(100% - 44px)); padding-top: 34px; }
.dashboard-type-table { margin-top: 17px; overflow: hidden; border: 1px solid #dfe5e9; border-radius: 11px; }
.dashboard-type-row { display: grid; grid-template-columns: minmax(180px, 1fr) 220px 150px; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid #e5e9ec; color: #526474; font-size: .76rem; }
.dashboard-type-row:first-child { border-top: 0; }
.dashboard-type-row.heading { color: #7c8994; background: #f5f7f9; font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.dashboard-type-row strong { color: #2e4253; }
.project-type-badge { width: fit-content; padding: 6px 10px; border-radius: 999px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.18); font-weight: 900; }
.dashboard-type-empty { padding: 30px; color: #7c8b97; text-align: center; }
.dashboard-type-empty strong, .dashboard-type-empty span { display: block; }
.dashboard-type-empty span { margin-top: 5px; font-size: .72rem; }
.catalog-workspace, .quote-workspace { max-width: 1220px; margin: 0 auto; }
.saved-client-picker { display: grid; grid-template-columns: 1fr minmax(260px, 44%); align-items: center; gap: 18px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid rgba(var(--ccs-orange-rgb),.5); border-radius: 12px; background: rgba(var(--ccs-orange-rgb),.08); }
.saved-client-picker strong, .saved-client-picker small { display: block; }
.saved-client-picker small { margin-top: 3px; color: #748390; font-size: .7rem; }
.catalog-toolbar { display: flex; gap: 10px; margin: 22px 0 14px; }
.catalog-toolbar label { display: grid; flex: 1; grid-template-columns: 35px 1fr; align-items: center; border: 1px solid #dce3e8; border-radius: 9px; background: #fff; }
.catalog-toolbar label span { color: #7a8996; text-align: center; }
.catalog-toolbar input { border: 0; outline: 0; }
.catalog-toolbar select { width: 230px; }
.catalog-table { overflow: hidden; border: 1px solid #dbe2e7; border-radius: 12px; background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.catalog-row { display: grid; width: 100%; min-height: 50px; grid-template-columns: minmax(230px, 1.4fr) .7fr .8fr .6fr .7fr .55fr; align-items: center; gap: 12px; padding: 11px 16px; border: 0; border-top: 1px solid #e4e9ed; border-radius: 0; color: #526272; background: #fff; box-shadow: none; text-align: left; font-size: .72rem; }
.catalog-row.heading { min-height: 46px; border-top: 0; color: #748392; background: #f3f5f8; font-size: .63rem; font-weight: 850; text-transform: uppercase; }
button.catalog-row:hover { color: #34495a; background: rgba(var(--ccs-orange-rgb),.07); box-shadow: inset 3px 0 var(--ccs-orange); transform: none; }
.catalog-row strong { color: #304455; }
.client-table { overflow: hidden; border: 1px solid #dbe2e7; border-radius: 12px; background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.client-row { display: grid; width: 100%; min-height: 62px; grid-template-columns: 1.1fr 1fr .9fr 1fr .6fr; align-items: center; gap: 13px; padding: 12px 16px; border: 0; border-top: 1px solid #e4e9ed; border-radius: 0; color: #526272; background: #fff; box-shadow: none; text-align: left; font-size: .72rem; }
.client-row.heading { min-height: 44px; border-top: 0; color: #748392; background: #f3f5f8; font-size: .63rem; font-weight: 850; text-transform: uppercase; }
button.client-row:hover { color: #34495a; background: rgba(var(--ccs-orange-rgb),.08); box-shadow: inset 3px 0 var(--ccs-orange); transform: none; }
.client-row strong, .client-row small { display: block; }
.client-row strong { color: #304455; }
.client-row small { margin-top: 3px; color: #82909b; }
.catalog-empty { display: grid; min-height: 260px; place-items: center; align-content: center; color: #84919c; text-align: center; }
.catalog-empty > span { font-size: 2rem; }
.catalog-empty strong { margin-top: 10px; color: #425565; }
.catalog-empty p { margin: 5px 0 0; font-size: .72rem; }
.drawer-backdrop { position: fixed; z-index: 210; inset: 0; display: flex; justify-content: flex-end; background: rgba(8, 28, 48, .48); backdrop-filter: blur(3px); animation: backdrop-in .18s ease-out; }
.drawer-backdrop.nested-drawer { z-index: 230; }
#delete-installation-backdrop { z-index: 330; }
#delete-installation-description { overflow-wrap: anywhere; }
.catalog-drawer { width: min(570px, 100%); height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; background: #fff; box-shadow: -18px 0 60px rgba(var(--ccs-navy-rgb),.22); animation: drawer-in .24s ease-out; }
.catalog-drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 25px 27px 20px; border-bottom: 1px solid #dfe5e9; }
.catalog-drawer h2 { margin: 0; color: #2a3d4e; font-size: 1.3rem; }
.catalog-drawer form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 26px; }
.catalog-drawer label { display: grid; gap: 7px; color: #526373; font-size: .73rem; font-weight: 800; }
.catalog-attachments { padding: 14px; border: 1px dashed #bdc9d2; border-radius: 10px; background: #f8fafb; }
.catalog-attachments small { color: #8794a0; font-weight: 500; }
.catalog-drawer footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }
.client-company-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 16px; border: 1px solid #e0e6ea; border-radius: 10px; background: #f8fafb; }
.client-installations-section { overflow: hidden; margin-top: 3px; border: 1px solid #dce4e9; border-radius: 12px; background: #f8fafb; }
.client-installations-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; color: #344b5c; background: #fff; cursor: pointer; list-style: none; }
.client-installations-section > summary::-webkit-details-marker, .client-installation-row > summary::-webkit-details-marker { display: none; }
.client-installations-section > summary::after { content: "⌄"; color: #738391; font-size: 1rem; transition: transform .18s ease; }
.client-installations-section[open] > summary::after { transform: rotate(180deg); }
.client-installations-section > summary > span:first-child { flex: 1; }
.client-installations-section > summary strong, .client-installations-section > summary small { display: block; }
.client-installations-section > summary small { margin-top: 3px; color: #7e8c97; font-size: .65rem; font-weight: 600; }
.installation-count { min-width: 33px; padding: 5px 9px; border-radius: 999px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.2); font-size: .65rem; font-weight: 900; text-align: center; }
.client-initial-installation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 17px 16px; border-top: 1px solid #e2e8ec; }
.client-installations-list { border-top: 1px solid #e2e8ec; background: #fff; }
.client-installations-heading, .client-installation-row > summary { display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 12px; padding: 10px 14px; }
.client-installations-heading { color: #83909b; background: #f3f6f8; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.client-installation-row { border-top: 1px solid #e5eaee; }
.client-installation-row:first-of-type { border-top: 0; }
.client-installation-row > summary { position: relative; padding-right: 32px; color: #526574; cursor: pointer; font-size: .68rem; list-style: none; }
.client-installation-row > summary::after { position: absolute; right: 14px; content: "+"; color: var(--ccs-navy); font-size: .9rem; font-weight: 800; }
.client-installation-row[open] > summary::after { content: "−"; }
.client-installation-row > summary:hover { background: rgba(var(--ccs-orange-rgb),.07); }
.client-installation-row > summary strong, .client-installation-row > summary small { display: block; }
.client-installation-row > summary strong { color: #304657; }
.client-installation-row > summary small { margin-top: 3px; color: #84919c; font-size: .61rem; font-weight: 550; }
.client-installation-detail { display: grid; grid-template-columns: 1.3fr 1fr .7fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px dashed #dce3e8; background: #f8fafb; }
.client-installation-detail span, .client-installation-detail small, .client-installation-detail strong { display: block; }
.client-installation-detail small { color: #87939d; font-size: .58rem; font-weight: 750; text-transform: uppercase; }
.client-installation-detail strong { margin-top: 3px; color: #425767; font-size: .66rem; }
.edit-installation-button { display: inline-grid; width: 31px; min-width: 31px; height: 31px; padding: 0; place-items: center; justify-self: end; border: 1px solid #ccd8e1; border-radius: 8px; color: var(--ccs-navy); background: #fff; box-shadow: none; font-size: .83rem; }
.edit-installation-button:hover { border-color: var(--ccs-orange); color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.12); box-shadow: none; transform: none; }
.client-installation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.delete-installation-button { display: inline-grid; width: 31px; min-width: 31px; height: 31px; padding: 0; place-items: center; border: 1px solid #ead0d2; border-radius: 8px; color: #a43b46; background: #fff; box-shadow: none; font-size: 1rem; }
.delete-installation-button:hover { border-color: #ba6a70; color: #922936; background: #fff2f3; box-shadow: none; transform: none; }
.delete-installation-button:disabled { opacity: .5; cursor: progress; }
.client-installations-empty { margin: 0; padding: 18px 14px; color: #7f8d98; font-size: .68rem; text-align: center; }
.client-add-installation { width: calc(100% - 28px); margin: 13px 14px 14px; }
.quote-drawer { width: min(1080px, 96%); height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; background: #f5f7f9; box-shadow: -18px 0 60px rgba(var(--ccs-navy-rgb),.22); animation: drawer-in .24s ease-out; }
.quote-form { overflow: hidden; margin: 0; min-height: 100%; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.quote-form-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid #e1e6ea; background: #f8fafb; }
.quote-form-header small, .quote-form-header strong { display: block; }
.quote-form-header small { color: #7d8a96; font-size: .65rem; text-transform: uppercase; }
.quote-form-header strong { margin-top: 3px; color: var(--ccs-navy); }
.quote-header-actions { display: flex; align-items: center; gap: 12px; }
.quote-header-actions > span { padding: 6px 10px; border-radius: 999px; color: #875600; background: rgba(var(--ccs-orange-rgb),.18); font-size: .65rem; font-weight: 850; }
.quote-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 22px; }
.quote-info-grid label, .quote-note { display: grid; gap: 7px; color: #526373; font-size: .72rem; font-weight: 800; }
.quote-client-control { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.quote-client-control button { min-width: 82px; padding: 10px 12px; }
.optional-label { margin-left: 4px; color: #8996a0; font-size: .63rem; font-weight: 600; }
.quote-lines-section { margin: 0 22px; border-top: 1px solid #e0e5e9; border-bottom: 1px solid #e0e5e9; }
.quote-lines-header, .quote-line { display: grid; grid-template-columns: 38px minmax(260px, 1fr) 110px 135px 125px 34px; align-items: start; gap: 10px; padding: 11px 0; }
.quote-lines-header { color: #778592; font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.quote-line { border-top: 1px solid #e7ebee; }
.quote-line > span, .quote-line > strong { padding-top: 12px; }
.quote-line > strong { color: var(--ccs-navy); font-size: .73rem; text-align: right; }
.quote-line textarea { width: 100%; margin-top: 7px; resize: vertical; }
.quote-remove-line { min-width: 0; padding: 8px; color: #9a5960; background: transparent; box-shadow: none; }
.quote-remove-line:hover { color: #fff; background: #b45560; transform: none; }
.text-action { min-width: 0; margin: 5px 0 10px; padding: 8px 0; color: #2154aa; background: transparent; box-shadow: none; }
.text-action:hover { color: var(--ccs-navy); background: transparent; transform: none; }
.quote-totals { width: 360px; margin: 17px 22px 17px auto; overflow: hidden; border: 1px solid #dfe5e9; border-radius: 10px; background: #fff; }
.quote-totals > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; color: #5d6f7d; border-top: 1px solid #e5e9ec; font-size: .7rem; }
.quote-totals > div:first-child { border-top: 0; }
.quote-totals .quote-total { width: auto; margin: 0; padding: 14px 15px; border-radius: 0; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.18); }
.quote-total strong { font-size: 1.05rem; }
.quote-note { margin: 0 22px 20px; }
.quote-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid #e0e5e9; background: #fafbfc; }
.quote-actions p { margin-right: auto; }
.saved-quotes { margin-top: 22px; padding: 20px 22px; border: 1px solid #dbe2e7; border-radius: 13px; background: #fff; }
.saved-quotes h3, .saved-quotes p { margin: 0; }
.saved-quotes-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.saved-quotes-heading label { display: grid; gap: 5px; color: #738290; font-size: .62rem; font-weight: 800; }
.saved-quotes-heading select { min-width: 125px; padding: 8px 30px 8px 10px; }
.saved-quotes h3 { color: #33495a; font-size: 1rem; }
.saved-quotes > div:first-child p { margin-top: 4px; color: #7e8c98; font-size: .7rem; }
#quotes-list { display: grid; margin-top: 0; }
.quotes-row { display: grid; grid-template-columns: .7fr 1.25fr .75fr .85fr .7fr .9fr; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid #e0e6ea; color: #536574; font-size: .71rem; }
.quotes-row.heading { margin-top: 15px; color: #758492; background: #f3f5f8; font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.quotes-row strong { color: #304455; }
.quote-status { width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .63rem; font-weight: 850; }
.quote-status.sent { color: #875600; background: rgba(var(--ccs-orange-rgb),.19); }
.quote-status.approved { color: #146548; background: #dff3ea; }
.quote-status.archived { color: #65727d; background: #e9edf0; }
.quote-approve-button { min-width: 0; padding: 7px 9px; font-size: .64rem; }
.quote-row-actions { display: flex; align-items: center; gap: 5px; }
.quote-action-icon { display: grid; min-width: 28px; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid #d7e0e6; border-radius: 7px; color: #40586a; background: #fff; box-shadow: none; font-size: .72rem; }
.quote-action-icon .quote-animated-icon { display: block; width: 15px; height: 15px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; }
.quote-action-icon:hover .quote-animated-icon { animation: quote-icon-pop .75s cubic-bezier(.22,1,.36,1); }
.quote-action-icon:hover .quote-pen { animation: quote-pen-write .75s ease-in-out; }
.quote-action-icon:hover .quote-download-arrow { animation: quote-download-motion .75s ease-in-out; }
.quote-action-icon:hover .quote-restore-arrow { animation: quote-restore-motion .75s ease-in-out; }
.quote-action-icon:hover .quote-check { animation: quote-check-draw .65s ease-out; }
@keyframes quote-icon-pop { 0%,100% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes quote-pen-write { 0%,100% { transform: translate(0); } 45% { transform: translate(-1px,1px); } }
@keyframes quote-download-motion { 0%,100% { transform: translateY(0); } 45% { transform: translateY(2px); } }
@keyframes quote-restore-motion { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-2px); } }
@keyframes quote-check-draw { from { opacity: .2; stroke-dasharray: 20; stroke-dashoffset: 20; } to { opacity: 1; stroke-dasharray: 20; stroke-dashoffset: 0; } }
.quote-action-icon[data-tooltip] { position: relative; }
.quote-action-icon[data-tooltip]::after { position: absolute; z-index: 20; bottom: calc(100% + 7px); left: 50%; padding: 5px 7px; border-radius: 6px; color: #fff; background: #172f49; content: attr(data-tooltip); font-size: .58rem; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
.quote-action-icon[data-tooltip]:hover::after, .quote-action-icon[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.quote-action-icon:hover { color: #fff; background: var(--ccs-navy); transform: translateY(-1px); }
.quote-action-icon.archive:hover { background: #9b4b53; }
.quote-action-icon.approve { color: #176849; }
.quote-action-icon.approve:hover { color: #fff; background: #176849; }
.document-loading { display: inline-grid; width: 18px; height: 18px; margin-right: 7px; place-items: center; vertical-align: middle; }
.document-loading.compact { width: 16px; height: 16px; margin-right: 0; }
.loader-circle-icon { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: loader-circle-spin 1s linear infinite; transform-box: fill-box; transform-origin: center; }
.loader-circle-track { opacity: .28; }
.loader-circle-progress { stroke-width: 2.4; stroke-dasharray: 40 17; }
.is-generating-document { display: inline-flex; align-items: center; justify-content: center; cursor: wait; }
.quote-action-icon.is-generating-document { position: relative; color: #fff; background: var(--ccs-navy); }
.quote-action-icon.is-generating-document .document-loading.compact { position: absolute; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
@keyframes loader-circle-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader-circle-icon { animation-duration: 1.8s; } }
.icon-text-button span { margin-right: 4px; }
.quote-settings-drawer { width: min(670px, 100%); }
.quote-settings-drawer > header p { margin: 4px 0 0; color: #788793; font-size: .7rem; }
.quote-settings-drawer .profile-section-title { margin: 7px 0 0; }
.quote-logo-preview { display: grid; min-height: 105px; padding: 14px; place-items: center; border: 1px dashed #c2cdd5; border-radius: 11px; background: #f8fafb; color: #85929c; font-size: .7rem; }
.quote-logo-preview img { display: block; max-width: 100%; max-height: 90px; object-fit: contain; }
.quote-profile-copy { margin: 0; }
.quote-fixed-brand { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid #dce4e9; border-radius: 10px; color: #536575; background: #f8fafb; }
.quote-fixed-brand span { color: #7c8b97; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.quote-fixed-brand strong { color: var(--ccs-navy); font-size: .8rem; }
.quote-fixed-brand small { color: #81909b; font-size: .64rem; }
.saved-quotes-empty { padding: 17px; color: #84919d; background: #f8fafb; text-align: center; font-size: .72rem; }
.finance-assignment-dialog form { display: grid; gap: 14px; width: 100%; }
.finance-assignment-dialog label { display: grid; gap: 7px; text-align: left; font-size: .72rem; font-weight: 800; }
.finance-assignment-summary { display: grid; gap: 5px; padding: 14px; border-radius: 10px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.14); text-align: left; }
.finance-assignment-summary strong { font-size: 1.15rem; }
.finance-assignment-summary small { color: #657887; }
.finance-empty { display: grid; min-height: 330px; place-items: center; align-content: center; padding: 35px; color: #7c8b97; text-align: center; }
.finance-empty > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.22); font-size: 1.5rem; font-weight: 900; }
.finance-empty h3 { margin: 15px 0 5px; color: #314657; }
.finance-empty p { max-width: 520px; margin: 0; }
.finance-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.finance-metrics article { padding: 17px; border: 1px solid #e0e6ea; border-radius: 11px; background: #fff; }
.finance-metrics small, .finance-metrics strong { display: block; }
.finance-metrics small { color: #7c8b97; }
.finance-metrics strong { margin-top: 7px; color: var(--ccs-navy); font-size: 1.12rem; }
.finance-progress { margin: 18px 0; padding: 16px; border-radius: 11px; background: #f5f7f9; }
.finance-progress div { display: flex; justify-content: space-between; }
.finance-progress progress { width: 100%; height: 10px; margin-top: 10px; accent-color: var(--ccs-orange); }
.payments-section { padding-top: 6px; }
.payments-heading h4, .payments-heading p { margin: 0; }
.payments-heading p { margin-top: 4px; color: #7c8b97; font-size: .66rem; }
.payments-list { margin: 12px 0; border: 1px solid #e1e6ea; border-radius: 10px; }
.payments-list > div { padding: 11px 13px; border-top: 1px solid #e7ebee; }
.payments-list > div:first-child { border-top: 0; }
.payment-record { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.payment-record > div > strong, .payment-record > div > span, .payment-record small { display: block; }
.payment-record > div > strong { color: var(--ccs-navy); font-size: .72rem; }
.payment-record > div > span { margin-top: 3px; color: #687986; font-size: .66rem; }
.payment-record small { margin-top: 3px; color: #8a969f; font-size: .6rem; }
.payment-record > button { min-width: 0; padding: 7px 9px; color: var(--ccs-navy); border: 1px solid #ccd8e0; background: #fff; box-shadow: none; font-size: .62rem; }
.payment-record > button:hover { color: #fff; background: var(--ccs-navy); transform: none; }
.payments-empty { margin: 0; padding: 16px; color: #84919c; text-align: center; font-size: .7rem; }
.finance-payment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; padding: 16px; border: 1px solid #e0e6ea; border-radius: 11px; background: #f8fafb; }
.finance-payment-form label { display: grid; min-width: 0; gap: 6px; color: #596b79; font-size: .69rem; font-weight: 800; }
.finance-payment-form label > input, .finance-payment-form label > select { display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; min-height: 48px; margin: 0; }
.finance-payment-form input[type="date"] { min-inline-size: 0; line-height: 24px; -webkit-appearance: none; appearance: none; }
.finance-payment-form .payment-description-field { grid-column: 1 / -1; }
.finance-payment-form > button { grid-column: 2; min-width: 0; }
.payment-disclaimer { grid-column: 1 / -1; margin: 2px 0 0; color: #7f8c96; font-size: .62rem; font-style: italic; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(35px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 760px) {
  .dashboard-shell { padding: 0 0 78px; }
  .dashboard-header { position: fixed; inset: auto 0 0; width: 100%; height: 72px; border-top: 1px solid #dce3e8; border-right: 0; }
  .dashboard-header-inner { width: 100%; min-height: 72px; padding: 5px 8px; flex-direction: row; }
  .dashboard-brand { display: none; }
  .dashboard-nav { flex-direction: row; gap: 2px; overflow-x: auto; }
  .dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary, .profile-menu > summary { min-width: 67px; min-height: 60px; padding: 4px 3px; }
  .profile-menu { margin-top: 0; }
  .nav-dropdown, .profile-dropdown { position: fixed; inset: auto 10px 77px 10px; width: auto; }
  .dashboard-content { width: calc(100% - 22px); padding-top: 20px; }
  .dashboard-type-row { grid-template-columns: 1fr 120px 65px; padding: 11px 10px; }
  .catalog-toolbar { flex-direction: column; }
  .catalog-toolbar select { width: 100%; }
  .catalog-table { overflow-x: auto; }
  .catalog-row { min-width: 850px; }
  .quote-info-grid { grid-template-columns: 1fr; }
  .quote-lines-section { overflow-x: auto; }
  .quote-lines-header, .quote-line { min-width: 850px; }
  .quote-totals { width: auto; margin-left: 22px; }
  .catalog-drawer form { grid-template-columns: 1fr; }
  .saved-client-picker, .client-company-fields { grid-template-columns: 1fr; }
  .client-table, .saved-quotes { overflow-x: auto; }
  .client-row { min-width: 820px; }
  .quotes-row { min-width: 760px; }
  .finance-metrics, .finance-payment-form { grid-template-columns: 1fr; }
  .finance-payment-form .payment-description-field, .finance-payment-form > button, .payment-disclaimer { grid-column: 1; }
  .payment-record { grid-template-columns: 1fr auto; }
  .payment-record > button { grid-column: 1 / -1; justify-self: start; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-result { position: static; }
  .ric-search-panel, .ric-library-layout { grid-template-columns: 1fr; }
  .ric-index-panel { border-right: 0; border-bottom: 1px solid #e0e6ea; }
  .ric-index-list { max-height: 330px; }
  .ric-library-stat { display: none; }
  .profile-assets { grid-template-columns: 1fr; }
  .report-grid-3, .report-string-grid, .report-installer-summary, .report-module-summary { grid-template-columns: 1fr 1fr; }
  .report-string-auto-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-string-cable-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-string-user-groups { grid-template-columns: 1fr; }
  .report-string-input-grid.compact-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-module-picker { grid-column: auto; }
  .report-section-heading, .report-actions { align-items: stretch; flex-direction: column; }
  .report-actions > div { flex-direction: column; }
}

@media (max-width: 520px) {
  .report-grid-3, .report-string-grid, .report-installer-summary, .report-module-summary { grid-template-columns: 1fr; }
  .report-string-auto-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-string-input-grid,.report-string-input-grid.compact-two { grid-template-columns: 1fr 1fr; }
  .report-module-picker { align-items: stretch; flex-direction: column; }
  .report-module-picker button { width: 100%; }
  .report-module-picker-backdrop { padding: 0; }
  .report-module-picker-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .report-module-picker-body { max-height: calc(100dvh - 105px); padding: 14px; }
  .report-module-choice { grid-template-columns: minmax(0,1fr) auto; }
  .report-module-choice-spec { grid-column: 1; text-align: left; }
  .report-module-frequent-badge { grid-column: 2; grid-row: 1 / span 2; }
}

[hidden] { display: none !important; }
.editorcad-welcome { margin-bottom:20px; }
.editorcad-loading-skeleton { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:16px 0; }
.editorcad-skeleton-block { padding:20px; border:1px solid #dce4ec; border-radius:10px; }
.editorcad-skeleton-block i { display:block; position:relative; overflow:hidden; height:16px; margin-bottom:14px; border-radius:6px; background:#e9eef2; }
.editorcad-skeleton-block i:first-child { width:45%; height:20px; margin-bottom:22px; }
.editorcad-skeleton-block i:last-child { width:70%; margin-bottom:0; }
.editorcad-skeleton-block i::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); transform:translateX(-100%); animation:editorcad-skeleton-shimmer 1.8s ease-in-out infinite; }
@keyframes editorcad-skeleton-shimmer { to { transform:translateX(100%); } }
@media(max-width:599px) { .editorcad-loading-skeleton { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .editorcad-skeleton-block i::after { animation:none; } }
.editorcad-welcome h3 { margin:0 0 8px; color:#0f2d46; }
.editorcad-welcome p,.editorcad-source-note { color:#66788a; line-height:1.5; }
.editorcad-template-label { display:grid; gap:8px; max-width:460px; margin-bottom:16px; font-weight:600; }
.editorcad-template-label select { width:100%; min-height:44px; }
.editorcad-preload { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.editorcad-preload table { width:100%; table-layout:fixed; border:1px solid #dce4ec; border-radius:10px; border-spacing:0; font-size:12px; }
.editorcad-preload caption { text-align:left; font-size:14px; font-weight:700; padding:8px 0; color:#0f2d46; }
.editorcad-preload th,.editorcad-preload td { text-align:left; vertical-align:top; padding:6px 9px; border-bottom:1px solid #edf1f5; overflow-wrap:anywhere; line-height:1.4; }
.editorcad-preload th { width:34%; background:#f7f9fc; font-weight:600; }
.editorcad-source-note { font-size:12px; margin:14px 0; }
@media(max-width:767px) { .editorcad-preload { grid-template-columns:1fr; } }
.technical-voltage-drop {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f6f9;
  color: #435b70;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  .technical-cabling-grid { grid-template-columns:1fr; }
  .client-initial-installation-fields { grid-template-columns: 1fr; }
  .client-installations-heading { display: none; }
  .client-installation-row > summary, .client-installation-detail { grid-template-columns: 1fr; }
  .client-installation-row > summary { gap: 7px; }
  .existing-client-controls { grid-template-columns: 1fr; }
  .project-client-mode { width: 100%; }
  .project-client-mode button { flex: 1; }
  .auth-shell { padding: 10px; }
  .auth-panel { min-height: 0; grid-template-columns: 1fr; border-radius: 16px; }
  .auth-brand-panel { padding: 30px 24px; }
  .auth-logo, .auth-brand-panel ul { display: none; }
  .auth-brand-panel h1 { font-size: 1.8rem; }
  .auth-brand-panel > p:not(.eyebrow) { margin-top: 10px; font-size: .84rem; }
  .auth-form-panel { padding: 25px 20px 30px; }
  .auth-tabs { margin-bottom: 25px; }
  .auth-grid { grid-template-columns: 1fr; }
  .page-shell { width: min(100% - 20px, 980px); margin: 10px auto; }
  .form-card { border-radius: 15px; }
  .card-header { padding: 58px 22px 24px; }
  .workflow-exit-button { top: 15px; right: 15px; }
  .step-badge { display: none; }
  .timeline { padding: 23px 18px 4px; }
  .timeline-step { width: 82px; }
  .timeline-step p { font-size: .68rem; }
  form { padding: 18px 20px 28px; }
  .step-content { padding: 18px 20px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .company-toggle { align-items: flex-start; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions p { text-align: center; }
  .project-summary { grid-template-columns: 1fr; }
  .process-field { padding: 19px; }
  .documents-table { border: 0; overflow: visible; }
  .documents-header { display: none; }
  .documents-row { margin-bottom: 12px; border: 1px solid #dce5e1; border-radius: 12px; overflow: hidden; }
  .documents-row summary { grid-template-columns: 1fr 1fr; }
  .document-name { grid-column: 1 / -1; }
  .file-status { border-top: 1px solid #edf1ef; }
  .document-description { padding-left: 20px; }
  .optional-files-table { border: 0; overflow: visible; }
  .optional-file-header { display: none; }
  .optional-file-row { grid-template-columns: 1fr 58px; margin-bottom: 10px; border: 1px solid #dce5e1; border-radius: 11px; overflow: hidden; }
  .upload-control { grid-column: 1 / -1; border-top: 1px solid #edf1ef; border-left: 0; }
  .dashboard-header { position: sticky; padding: 10px 14px; }
  .dashboard-header-inner { min-height: 0; align-items: center; flex-wrap: wrap; gap: 4px; }
  .dashboard-brand p { display: none; }
  .dashboard-nav { width: 100%; gap: 3px; padding-top: 8px; overflow-x: auto; }
  .dashboard-nav > .nav-home, .nav-menu > summary, .profile-menu > summary { min-height: 38px; padding: 7px 9px; white-space: nowrap; }
  .nav-dropdown { position: fixed; top: 112px; right: 12px; left: 12px; width: auto; }
  .profile-dropdown { position: fixed; top: 112px; right: 12px; width: min(300px, calc(100vw - 24px)); }
  .dashboard-content { width: calc(100% - 24px); padding-top: 24px; }
  .dashboard-welcome { align-items: stretch; flex-direction: column; }
  .dashboard-welcome > button { width: 100%; }
  .dashboard-main-actions { flex-direction: column; }
  .dashboard-main-actions button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .calculator-grid, .calculator-result-grid { grid-template-columns: 1fr; }
  .calculator-mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 14px 0; }
  .calculator-mode-switch button { padding: 9px 7px; }
  .calculator-form { padding: 16px 14px; }
  .calculator-commerce { align-items: stretch; flex-direction: column; }
  .calculator-commerce a { text-align: center; }
  .ric-search-panel { padding: 10px; }
  .ric-filter-label { grid-template-columns: 1fr; }
  .ric-article { padding: 20px 16px; }
  .ric-article-header { flex-direction: column; }
  .ric-download-button { width: 100%; text-align: center; }
  .ric-page-count { display: flex; align-items: baseline; gap: 6px; }
  .ric-section summary { grid-template-columns: 52px 1fr 20px; }
  .ric-section > div { padding-left: 15px; }
  .ric-page > summary { grid-template-columns: 60px 1fr 18px; }
  .ric-page-content { padding: 12px; }
  .ric-transcription { padding: 20px 16px; }
  .region-summary { grid-template-columns: 1fr; }
  .kanban-board { margin: 0; padding: 14px; grid-template-columns: repeat(5, minmax(270px, 1fr)); }
  .projects-panel-header { align-items: flex-start; flex-direction: column; }
  .projects-panel-actions { width: 100%; justify-content: space-between; }
  .projects-table { overflow-x: auto; }
  .projects-table-header, .crm-table-row { width: 900px; }
  .project-quick-summary { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { padding: 8px; }
  #project-modal { padding: 0; }
  .project-modal { width: 100vw; max-width: none; height: 100vh; border-radius: 0; }
  .modal-header, .modal-body { padding: 18px; }
  .project-tabs { top: 77px; padding: 0 12px; overflow-x: auto; }
  .project-tab { padding: 14px 12px 12px; white-space: nowrap; }
  .modal-toolbar { align-items: stretch; flex-direction: column; }
  .string-configuration-heading { align-items: stretch; flex-direction: column; }
  .string-field-row { grid-template-columns: 1fr; }
  .technical-project-panel > .project-technical-form > .string-configuration { padding:16px 12px; }
  .technical-project-panel .string-heading-copy { align-items:flex-start; gap:10px; }
  .technical-project-panel .string-heading-icon { width:34px; height:34px; flex-basis:34px; }
  .technical-project-panel .string-heading-icon .animated-lucide { width:27px; height:27px; }
  .technical-project-panel .string-heading-actions { align-items:stretch; flex-direction:column; }
  .technical-project-panel .string-reference-note { min-height:36px; white-space:normal; }
  .technical-project-panel .string-fields-header { display:none; }
  .technical-project-panel .string-fields-list { margin-top:14px; }
  .technical-project-panel .string-field-row,.technical-project-panel .string-field-row:has(.remove-string-button) { grid-template-columns:1fr; gap:10px; padding:14px; }
  .technical-project-panel .string-row-title { display:flex; }
  .technical-project-panel .string-row-title > span { width:34px; height:34px; flex:0 0 34px; justify-self:auto; }
  .technical-project-panel .string-field-label { position:static; display:block; width:auto; height:auto; margin-bottom:5px; overflow:visible; clip:auto; clip-path:none; color:#596d84; font-size:.65rem; font-weight:750; white-space:normal; }
  .string-row-spacer { display: none; }
  .gda-file-header { display: none; }
  .gda-files-table { border: 0; overflow: visible; }
  .gda-file-row { grid-template-columns: 1fr auto; margin-bottom: 10px; border: 1px solid #dfe7e3; border-radius: 10px; }
  .gda-process-status, .client-lookup-form, .client-project-meta { grid-template-columns: 1fr; }
  .gda-process-status button { width: 100%; }
  .validation-state { justify-self: end; }
  .gda-file-actions { grid-column: 1 / -1; padding: 0 10px 10px !important; }
  .gda-file-actions .gda-upload-button { flex: 1; text-align: center; }
  .client-portal-body { padding: 18px; }
  .detail-form { grid-template-columns: 1fr; }
  .detail-form button, .detail-form .full-width { grid-column: 1; }
  .modal-document-row { grid-template-columns: 1fr; }
  .modal-document-actions { justify-content: flex-start; border-top: 1px solid #edf1ef; }
}

/* Trámite TE-1: embudo, ficha y checklist documental. */
.te1-project-board { grid-template-columns: repeat(6,minmax(230px,1fr)); gap: 12px; padding: 16px; }
#te1-unsaved-backdrop { z-index: 340; }
.te1-column { min-width: 0; }
.te1-column > header { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 1px solid #dce4ec; border-radius: 10px; background: #fff; }
.te1-stage-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--te1-accent); }
.te1-column h3 { flex: 1; min-width: 0; margin: 0; color: #26394e; font-size: .73rem; line-height: 1.25; }
.te1-column > header > span:last-child { color: #708198; font-size: .7rem; font-weight: 800; }
.te1-column-list { display: grid; align-content: start; gap: 10px; min-height: 200px; padding-top: 10px; }
.te1-card { display: grid; gap: 7px; width: 100%; min-width: 0; padding: 14px 14px 14px 16px; border: 1px solid #dde4ec; border-left: 4px solid var(--te1-accent); border-radius: 13px; color: #23364c; background: #fff; box-shadow: 0 3px 10px #14253e0b; text-align: left; }
.te1-card:hover { border-color: var(--te1-accent); background: #fff; box-shadow: 0 8px 20px #14253e1a; transform: translateY(-2px); }
.te1-card-kicker { color: var(--te1-accent); font-size: .63rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.te1-card-meta .te1-card-kicker { min-width: 0; overflow-wrap: anywhere; }
.te1-card > strong { overflow-wrap: anywhere; font-size: .85rem; line-height: 1.25; }
.te1-card > small { color: #728198; font-size: .72rem; line-height: 1.25; overflow-wrap: anywhere; }
.te1-card-divider { height: 1px; margin: 3px 0; background: #e5eaf0; }
.te1-card-detail { display: flex; justify-content: space-between; gap: 8px; font-size: .7rem; }
.te1-card-detail > span { color: #8694a8; }
.te1-card-detail b { max-width: 62%; overflow-wrap: anywhere; text-align: right; }
.te1-card-observation { display: -webkit-box; overflow: hidden; color: #9c424e; font-size: .68rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.te1-project-row { display: grid; grid-template-columns: 1.7fr 1.3fr 1fr .7fr 1fr 1.25fr; align-items: center; width: 100%; min-width: 740px; padding: 0; border: 0; border-bottom: 1px solid #e5eaf0; border-radius: 0; color: #344356; background: #fff; box-shadow: none; text-align: left; }
.te1-project-row:not(.heading):hover { background: #f7f9fc; transform: none; }
.te1-project-row > * { min-width: 0; padding: 12px; overflow-wrap: anywhere; font-size: .72rem; }
.te1-project-row.heading { color: #75859b; background: #f4f7fa; font-weight: 800; }
.te1-table-stage { color: var(--te1-accent); font-weight: 800; }
.te1-archived { margin: 12px 16px 16px; padding: 9px 12px; border: 1px solid #e2e8ef; border-radius: 10px; color: #5b6d84; background: #fff; font-size: .75rem; }
.te1-archived summary { cursor: pointer; font-weight: 750; }
.te1-archived summary span { margin-left: 4px; color: #8c9aac; }
.te1-archived > div { display: grid; gap: 6px; margin-top: 10px; }
.te1-archived > div > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-top: 1px solid #edf0f3; }
.te1-archived > div > div > span { display: grid; gap: 2px; }
.te1-archived small { color: #7b899a; }
.te1-archived button { min-height: 28px; padding: 5px 9px; font-size: .67rem; }
.catalog-drawer.te1-project-drawer { width: min(800px,100%); }
.te1-project-tabs { grid-template-columns: repeat(4,minmax(100px,1fr)); }
.te1-project-drawer #te1-project-form { display: block; padding: 0; }
.te1-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.te1-form-grid > label { min-width: 0; }
.te1-form-grid > .full-width { grid-column: 1 / -1; }
.te1-form-grid :is(input,select,textarea) { min-width: 0; width: 100%; }
.te1-form-grid textarea { resize: vertical; }
.te1-stage-preview { display: grid; align-content: center; gap: 4px; min-height: 55px; padding: 8px 12px; border: 1px solid #dae5ee; border-radius: 9px; background: #f7f9fc; }
.te1-stage-preview small { color: #7a899c; font-size: .67rem; font-weight: 750; }
.te1-stage-preview strong { color: #2a496d; font-size: .78rem; }
.catalog-drawer .te1-associate-toggle { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e1e7ed; border-radius: 9px; background: #f8fafc; cursor: pointer; }
.te1-associate-toggle input { flex: none; width: 16px; height: 16px; margin: 0; }
.te1-optional-section { margin-top: 18px; border: 1px solid #dfe7ef; border-radius: 11px; overflow: hidden; }
.te1-optional-section > summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; color: #2d455c; background: #f8fafc; font-size: .8rem; font-weight: 800; cursor: pointer; }
.te1-optional-section > summary small { color: #8a99a8; font-size: .67rem; font-weight: 600; }
.te1-optional-section[open] > .te1-form-grid { padding: 15px; }
.te1-optional-section[open] > .te1-guidance { margin: 0 15px 15px; }
.te1-condition-list { display: grid; gap: 8px; padding: 12px; border: 1px solid #e1e8ef; border-radius: 10px; background: #f8fafc; }
.te1-condition-list label { display: flex; align-items: center; gap: 8px; color: #4d6075; font-size: .76rem; }
.te1-condition-list input { width: 15px; height: 15px; flex: none; }
.te1-guidance { margin: 16px 0 0; color: #718095; font-size: .72rem; line-height: 1.45; }
.te1-requirements-summary { display: grid; gap: 4px; margin-bottom: 10px; padding: 11px 13px; border-left: 3px solid var(--ccs-orange); border-radius: 8px; background: #fff8ed; }
.te1-requirements-summary strong { color: #283e55; font-size: .78rem; }
.te1-requirements-summary span { color: #687b8f; font-size: .69rem; line-height: 1.4; }
.te1-requirements-list { display: grid; gap: 8px; }
.te1-requirement { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #e0e7ee; border-radius: 10px; background: #fff; }
.te1-requirement > label { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.te1-requirement > label input { flex: none; width: 15px; height: 15px; margin-top: 3px; }
.te1-requirement > label span { display: grid; gap: 2px; }
.te1-requirement strong { color: #2b4057; font-size: .74rem; }
.te1-requirement small { color: #7b8b9d; font-size: .65rem; line-height: 1.35; }
.te1-requirement-actions { display: flex; align-items: center; flex: none; gap: 6px; }
.te1-requirement-actions button,.te1-upload { min-height: 27px; padding: 5px 8px; border: 1px solid #cbd8e6; border-radius: 7px; color: #244367; background: #fff; font-size: .64rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.te1-requirement-actions button:hover,.te1-upload:hover { background: #f3f7fc; }
.te1-upload input { display: none; }
.te1-official-link { display: inline-block; margin-top: 13px; color: #245c9f; font-size: .72rem; font-weight: 750; }
.te1-task-list { display: grid; gap: 6px; margin-top: 12px; }
.te1-task { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid #e1e8ef; border-radius: 8px; }
.te1-task label { display: flex; align-items: center; gap: 8px; color: #35475c; font-size: .75rem; }
.te1-task input { width: 15px; height: 15px; }
.te1-task .done { color: #8191a4; text-decoration: line-through; }
.te1-task button { width: 25px; height: 25px; min-height: 0; padding: 0; color: #af5360; background: #fff; box-shadow: none; }
.te1-empty-note { margin: 4px 0; color: #8391a3; font-size: .72rem; }
@media (max-width: 650px) { .te1-form-grid { grid-template-columns: 1fr; } .te1-form-grid > .full-width { grid-column: 1; } .te1-requirement { align-items: flex-start; flex-direction: column; } .te1-requirement-actions { padding-left: 24px; } }

/* Calendario */
.calendar-workspace { width: 100%; max-width: 1500px; margin: 0 auto; }
.calendar-shell { display: grid; min-height: calc(100vh - 124px); grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; border: 1px solid #dce4e9; border-radius: 16px; background: #fff; box-shadow: 0 12px 38px rgba(var(--ccs-navy-rgb),.08); }
.calendar-sidebar { position: relative; display: flex; padding: 22px 16px; flex-direction: column; border-right: 1px solid #e1e6ea; background: #f8fafb; }
.calendar-sidebar-heading { display: flex; align-items: center; justify-content: space-between; }
.calendar-sidebar-heading h2 { margin: 2px 0 0; color: #263b4e; font-size: 1.05rem; }
.calendar-add-button { display: grid; min-width: 0; width: 31px; height: 31px; padding: 0; place-items: center; color: var(--ccs-navy); border: 1px solid #d7dfe5; border-radius: 9px; background: #fff; box-shadow: none; font-size: 1.1rem; }
.calendar-add-button:hover { color: #fff; background: var(--ccs-navy); transform: none; }
.calendar-groups { display: grid; grid-auto-rows: minmax(34px,auto); align-content: start; gap: 1px; margin-top: 14px; }
.calendar-group-row { display: flex; min-width: 0; min-height: 34px; align-items: center; gap: 3px; padding: 3px 4px 3px 7px; color: #536573; border-radius: 8px; font-size: .7rem; }
.calendar-group-row:hover { background: #eef2f5; }
.calendar-group-row label { display: grid; min-width: 0; flex: 1; grid-template-columns: 18px 10px minmax(0,1fr); align-items: center; gap: 7px; cursor: pointer; }
.calendar-group-row input { width: 14px; height: 14px; accent-color: var(--calendar-color); }
.calendar-group-row label > span { width: 8px; height: 8px; border-radius: 50%; background: var(--calendar-color); }
.calendar-group-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-group-delete { display: grid; flex: none; width: 25px; height: 25px; min-width: 0; min-height: 0; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #9a5560; background: transparent; box-shadow: none; font-size: 1rem; line-height: 1; opacity: .65; }
.calendar-group-delete:hover { color: #a33140; background: #fbeaed; box-shadow: none; transform: none; opacity: 1; }
.calendar-group-delete:disabled { opacity: .25; cursor: not-allowed; }
.calendar-delete-backdrop { z-index: 340; }
.calendar-delete-content { display: grid; gap: 15px; padding: 22px; }
.calendar-delete-content p { margin: 0; color: #3a4d61; font-size: .82rem; line-height: 1.5; }
.calendar-delete-content label { display: grid; gap: 7px; color: #526679; font-size: .72rem; font-weight: 800; }
.calendar-delete-content select { width: 100%; }
.calendar-delete-content .calendar-delete-help { color: #7a8794; font-size: .68rem; }
.google-connection-backdrop { z-index: 360; }
.google-connection-dialog { display: grid; justify-items: center; width: min(420px,calc(100vw - 32px)); padding: 32px 24px; border-radius: 18px; background: #fff; box-shadow: 0 26px 80px rgba(7,28,51,.3); text-align: center; animation: modal-pop .24s cubic-bezier(.2,.8,.2,1); }
.google-connection-indicator { display: grid; width: 54px; height: 54px; place-items: center; color: var(--ccs-navy); font-size: 1.8rem; font-weight: 900; }
.google-connection-indicator svg { width: 52px; height: 52px; }
.google-connection-backdrop[data-state="success"] .google-connection-indicator { color: #15805b; border-radius: 50%; background: #e6f6ed; }
.google-connection-backdrop[data-state="error"] .google-connection-indicator { color: #ae3844; border-radius: 50%; background: #fcecef; }

/* Biblioteca documental: paneles compactos y diálogos por encima de cualquier drawer. */
.file-library-dialog-backdrop { z-index: 1200 !important; }
.file-library-dialog { width: min(430px, calc(100vw - 32px)); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #0b274033; text-align: center; color: #17304c; }
.file-library-dialog h2 { margin: 10px 0 6px; font-size: 20px; }
.file-library-dialog p { margin: 0 0 22px; color: #66788c; line-height: 1.5; }
.file-library-progress { display: grid; gap: 8px; margin: -4px 0 22px; text-align: left; }
.file-library-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e5ebf1; }
.file-library-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f5a623,#ffc45d); transition: width .35s ease; }
.file-library-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #566b80; font-size: 11px; }
.file-library-progress-copy strong { color: #173b62; font-size: 11px; }
.file-library-compose-activity { position: relative; height: 4px; margin-top: 1px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.file-library-compose-activity span { position: absolute; top: 0; bottom: 0; left: -34%; width: 34%; border-radius: inherit; background: linear-gradient(90deg,transparent,#143f6b 45%,#f5a623); animation: report-compose-activity 1.25s ease-in-out infinite; }
@keyframes report-compose-activity { from { transform: translateX(0); } to { transform: translateX(395%); } }
.file-library-link-fields { display: grid; gap: 10px; margin: -6px 0 18px; text-align: left; }
.file-library-link-fields label { display: grid; gap: 5px; color: #38536f; font-size: 11px; font-weight: 700; }
.file-library-link-fields input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cedae7; border-radius: 8px; font-size: 12px; }
.file-library-link-fields select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #cedae7; border-radius: 8px; color: #173b62; background: #fff; font-size: 12px; }
.file-library-link-fields small { min-height: 14px; color: #a53643; font-size: 11px; }
#file-library-dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.file-library-spinner { display: block; width: 28px; height: 28px; margin: 0 auto 14px; border: 3px solid #dce8f5; border-top-color: #f6a827; border-radius: 50%; animation: file-library-spin .8s linear infinite; }
@keyframes file-library-spin { to { transform: rotate(360deg); } }

/* Notificaciones de tareas terminadas, visibles por encima de drawers y modales. */
.app-toast-stack { position: fixed; z-index: 1600; top: 18px; right: 18px; display: grid; width: min(360px,calc(100vw - 28px)); gap: 10px; pointer-events: none; }
.app-toast { display: grid; grid-template-columns: 34px minmax(0,1fr) 26px; align-items: start; gap: 11px; padding: 14px; border: 1px solid rgba(198,211,222,.9); border-radius: 15px; color: #17304c; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(8,30,52,.22); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); pointer-events: auto; animation: app-toast-in .28s cubic-bezier(.2,.8,.2,1); }
.app-toast-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: #19805e; font-size: 17px; font-weight: 900; }
.app-toast strong { display: block; margin: 1px 0 3px; font-size: 13px; line-height: 1.25; }
.app-toast p { margin: 0; color: #64768a; font-size: 11px; line-height: 1.45; }
.app-toast button { display: grid; width: 26px; height: 26px; min-width: 0; min-height: 0; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #718195; background: transparent; box-shadow: none; font-size: 18px; line-height: 1; }
.app-toast button:hover { color: #17304c; background: #edf2f6; transform: none; box-shadow: none; }
.app-toast.leaving { animation: app-toast-out .22s ease forwards; }
@keyframes app-toast-in { from { opacity: 0; transform: translate3d(24px,-8px,0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes app-toast-out { to { opacity: 0; transform: translate3d(18px,-5px,0) scale(.98); } }
@media (max-width: 600px) { .app-toast-stack { top: 10px; right: 10px; width: calc(100vw - 20px); } }

/* Biblioteca compartida de módulos fotovoltaicos. */
.pv-modules-workspace { min-width: 0; container: pv-library / inline-size; }
.pv-modules-workspace .dashboard-welcome { align-items: flex-end; }
.pv-modules-workspace .dashboard-welcome > div:first-child { max-width: 720px; }
.pv-modules-workspace .dashboard-main-actions { flex: none; }
.pv-modules-workspace .dashboard-main-actions button { min-width: 0; width: auto; padding: 10px 15px; white-space: nowrap; font-size: .74rem; }
.pv-module-filters { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(3,minmax(145px,.65fr)); gap: 12px; margin: 18px 0; padding: 15px; border: 1px solid #dfe7f0; border-radius: 14px; background: #fff; }
.pv-module-filters label { display: grid; gap: 6px; color: #536a82; font-size: .69rem; font-weight: 800; }
.pv-module-filters input, .pv-module-filters select { width: 100%; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #ccd9e6; border-radius: 9px; color: #173b62; background: #fbfcfe; font: inherit; font-size: .76rem; }
.pv-module-table { overflow-x: auto; border: 1px solid #dbe5ef; border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(18,48,79,.05); }
.pv-module-row { display: grid; grid-template-columns: minmax(210px,1.4fr) 100px minmax(170px,1fr) 85px minmax(150px,.9fr) 100px; min-width: 850px; align-items: center; border-top: 1px solid #e9eef4; }
.pv-inverter-row { grid-template-columns: minmax(210px,1.4fr) 110px 110px 75px 75px 100px; }
.pv-module-row.heading { min-height: 43px; border-top: 0; color: #74869a; background: #f6f8fb; font-size: .65rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.pv-module-row > span { min-width: 0; padding: 12px 14px; font-size: .76rem; }
.pv-module-row:not(.heading):hover { background: #fbfcfe; }
.pv-module-row .pv-module-name strong, .pv-module-row .pv-module-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-module-row .pv-module-name strong { color: #173b62; font-size: .8rem; }
.pv-module-row .pv-module-name small { margin-top: 3px; color: #77889a; font-size: .68rem; }
.pv-module-power { color: #113b67; font-weight: 900; }
.pv-module-actions { display: flex; gap: 6px; }
.pv-module-icon-button { display: grid; width: 31px; height: 31px; min-width: 0; padding: 0; place-items: center; border: 1px solid #ccd9e6; border-radius: 8px; color: #17446f; background: #fff; box-shadow: none; }
.pv-module-icon-button:hover { color: #fff; background: #17446f; box-shadow: none; transform: none; }
.pv-module-icon-button:disabled { color: #b0bdca; background: #f5f7f9; cursor: not-allowed; }
.pv-module-icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-module-table > #pv-module-list,.pv-module-table > #pv-inverter-list { min-width: 850px; }
.pv-library-note { margin: 13px 4px 0; color: #6e7e8e; font-size: .69rem; line-height: 1.5; }
.technical-project-panel { padding: 20px 24px 28px; }
.project-technical-form { display: grid; gap: 16px; }
.technical-equipment-grid,.technical-protection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.project-technical-form label { display: grid; min-width: 0; gap: 5px; color: #526577; font-size: .68rem; font-weight: 800; }
.project-technical-form label > small { color: #8a98a6; font-size: .58rem; font-weight: 600; line-height: 1.35; }
.project-technical-form input,.project-technical-form select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #cad6df; border-radius: 9px; color: #263f57; background: #fff; font: inherit; font-weight: 600; }
.technical-equipment-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 11px; border: 1px solid #dce5ec; border-radius: 12px; background: #f5f8fa; }
.technical-equipment-summary > div { min-width: 0; padding: 9px; border-radius: 9px; background: #fff; }
.technical-equipment-summary small,.technical-equipment-summary strong,.technical-equipment-summary span { display: block; }
.technical-equipment-summary small { color: #8a98a6; font-size: .55rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.technical-equipment-summary strong { margin-top: 3px; overflow: hidden; color: #173a5d; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.technical-equipment-summary span { margin-top: 3px; color: #6e7e8d; font-size: .61rem; }
.technical-equipment-summary > p { grid-column: 1 / -1; margin: 0; color: #718293; font-size: .7rem; text-align: center; }
.technical-equipment-summary .loading-ring { width: 16px; height: 16px; vertical-align: middle; }
.technical-protection-section,.technical-equipment-section { padding: 14px; border: 1px solid #dce5ec; border-radius: 12px; background:#fbfcfd; }
.technical-protection-section > div:first-child,.technical-equipment-section > div:first-child { margin-bottom: 12px; }
.technical-protection-section h3,.technical-protection-section p,.technical-equipment-section h3,.technical-equipment-section p { margin: 0; }
.technical-protection-section h3,.technical-equipment-section h3 { color: #24425d; font-size: .86rem; }
.technical-protection-section p,.technical-equipment-section p { margin-top: 3px; color: #7a8997; font-size: .65rem; }
.technical-equipment-section .technical-equipment-summary { margin-top:12px; }
.technical-cabling-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.technical-cable-group { min-width:0; margin:0; padding:12px; border:1px solid #dbe5ed; border-radius:10px; background:#fff; }
.technical-cable-group legend { padding:0 7px; color:#315b79; font-size:.66rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.technical-project-panel > .project-technical-form > .string-configuration { margin:0; padding:24px 28px 28px; border:1px solid #d5e1ec; border-radius:16px; background:#fff; }
.technical-project-panel > .project-technical-form > .string-configuration .string-configuration-heading h3 { color:#10203b; font-size:1.15rem; }
.technical-project-panel > .project-technical-form > .string-configuration .string-configuration-heading p { color:#657792; font-size:.72rem; }
.technical-project-panel .string-heading-copy { display:flex; align-items:center; min-width:0; gap:16px; }
.technical-project-panel .string-heading-icon { display:grid; width:42px; height:42px; flex:0 0 42px; place-items:center; color:#218d60; }
.technical-project-panel .string-heading-icon .animated-lucide { width:34px; height:34px; stroke-width:2.3; }
.technical-project-panel .string-heading-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.technical-project-panel .string-reference-note { display:inline-flex; min-height:40px; align-items:center; gap:10px; padding:8px 15px; border-radius:12px; color:#187b57; background:#edf7f2; font-size:.69rem; white-space:nowrap; }
.technical-project-panel .string-reference-note i { display:grid; width:18px; height:18px; flex:0 0 18px; place-items:center; border-radius:50%; color:#fff; background:#218d60; font-size:.67rem; font-style:normal; font-weight:900; }
.technical-project-panel .string-fields-header { display:grid; grid-template-columns:56px minmax(170px,1.18fr) repeat(4,minmax(105px,.82fr)); align-items:center; gap:12px; margin-top:22px; padding:14px 14px; border-radius:12px; color:#445874; background:#f6f8fb; font-size:.68rem; font-weight:800; }
.technical-project-panel .string-fields-header > span:first-child { text-align:center; }
.technical-project-panel .string-fields-header small { display:block; margin-top:2px; font-size:.62rem; font-weight:600; }
.technical-project-panel .string-fields-list { gap:10px; margin-top:0; }
.technical-project-panel .string-field-row { grid-template-columns:56px minmax(170px,1.18fr) repeat(4,minmax(105px,.82fr)); align-items:center; gap:12px; min-height:72px; padding:14px; border-color:#dce5ee; border-radius:12px; background:#fff; }
.technical-project-panel .string-row-title { display:contents; }
.technical-project-panel .string-row-title > span { display:grid; width:38px; height:38px; justify-self:center; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(145deg,#269869,#168552); font-size:1rem; font-weight:850; box-shadow:inset 0 -2px 4px rgba(10,94,61,.16); }
.technical-project-panel .string-row-title > div { min-width:0; color:#10203b; }
.technical-project-panel .string-row-title strong { display:block; font-size:.82rem; line-height:1.25; }
.technical-project-panel .string-row-title small { display:block; margin-top:3px; color:#657792; font-size:.68rem; }
.technical-project-panel .string-panel-count { display:flex; align-items:center; gap:6px; margin-top:5px; color:#657792; font-size:.59rem; font-weight:750; }
.technical-project-panel .string-panel-count > span { display:inline; width:auto; height:auto; border-radius:0; color:inherit; background:none; font-size:inherit; font-weight:inherit; box-shadow:none; }
.technical-project-panel .string-panel-count input { width:58px; min-height:27px; padding:3px 6px; border:1px solid #cad6df; border-radius:6px; font-size:.67rem; }
.technical-project-panel .calculated-string-field .string-input-shell { background:#f4f7f9; }
.technical-project-panel .calculated-string-field input { color:#466177; background:#f4f7f9; }
.technical-project-panel .string-value-column { display:block; min-width:0; }
.technical-project-panel .string-field-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.technical-project-panel .string-input-shell { display:flex; min-width:0; min-height:42px; align-items:center; overflow:hidden; border:1px solid #cbd8e5; border-radius:10px; background:#fff; }
.technical-project-panel .string-input-shell input { min-height:40px; padding:8px 12px; border:0; border-radius:0; color:#10203b; background:#fff; font-size:.8rem; font-weight:800; box-shadow:none; }
.technical-project-panel .string-input-shell input:focus { outline:0; }
.technical-project-panel .string-input-shell:focus-within { border-color:#7f9dbc; box-shadow:0 0 0 2px rgba(42,108,168,.12); }
.technical-project-panel .string-input-shell input:disabled { color:#10203b; background:#fff; opacity:1; }
.technical-project-panel .string-input-shell b { display:grid; width:38px; height:32px; flex:0 0 38px; place-items:center; margin-right:5px; border-radius:6px; color:#657792; background:#f7f9fc; font-size:.76rem; }
.technical-project-panel .string-field-row .remove-string-button { min-width:64px; padding:9px; }
.technical-design-warning { margin: 9px 0 0; padding: 9px 11px; border-radius: 8px; color: #8a5413; background: #fff3d9; font-size: .65rem; line-height: 1.45; }
.technical-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.technical-form-actions span { margin-right: auto; color: #27705a; font-size: .66rem; }
.string-row-title small { display: block; margin-top: 2px; color: #8493a0; font-size: .58rem; }

/* iPad y escritorio: 90% de ancho; iPhone conserva pantalla completa. */
@media (min-width: 768px) {
  #project-modal { place-items: stretch end; }
  #project-modal > .project-modal { width: 90vw; max-width: 90vw; }
}

/* La distribución de escritorio se activa solo cuando hay espacio suficiente. */
@media (min-width: 1200px) {
  .project-tabs { justify-content: space-between; }
  .project-tab { flex: 1; }
  .project-general-layout { grid-template-columns:minmax(0,1.45fr) minmax(390px,.75fr); align-items:start; }
  .detail-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-form button { grid-column: 3; }
  .technical-project-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch; }
  .technical-project-panel > .tab-section-heading { grid-column:1; grid-row:1; align-self:center; }
  #project-technical-form { display:contents; }
  .technical-power-form { display:grid; grid-column:1 / -1; grid-row:2; grid-template-columns:minmax(0,1fr); gap:12px; margin:0; padding:14px; border:1px solid #dce5ec; border-radius:12px; background:#fbfcfd; }
  .technical-power-section { display:contents; }
  .technical-power-section > div:first-child { grid-column:1 / -1; margin:0; }
  .technical-power-section .technical-protection-grid { grid-column:1; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
  .technical-protections-section { grid-column:1; grid-row:3; }
  .technical-equipment-section { grid-column:2; grid-row:3; }
  .string-configuration { grid-column:1; grid-row:4; align-self:start; }
  .technical-installation-section { grid-column:2; grid-row:4; }
  .technical-cabling-section { grid-column:1 / -1; grid-row:5; }
  .technical-main-actions { grid-column:2; grid-row:1; align-self:center; justify-self:end; }
  .technical-equipment-grid,.technical-protection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .technical-equipment-summary strong { overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
  .technical-project-panel > .project-technical-form > .string-configuration { padding:16px; }
  .technical-project-panel .string-configuration-heading { align-items:flex-start; }
  .technical-project-panel .string-heading-copy { gap:10px; }
  .technical-project-panel .string-heading-icon { width:32px; height:32px; flex-basis:32px; }
  .technical-project-panel .string-heading-icon .animated-lucide { width:27px; height:27px; }
  .technical-project-panel > .project-technical-form > .string-configuration .string-configuration-heading h3 { font-size:.9rem; }
  .technical-project-panel > .project-technical-form > .string-configuration .string-configuration-heading p { font-size:.62rem; line-height:1.4; }
  .technical-project-panel .string-heading-actions { max-width:245px; }
  .technical-project-panel .string-reference-note { min-height:34px; padding:6px 9px; gap:7px; font-size:.58rem; line-height:1.35; white-space:normal; }
  .technical-project-panel .string-reference-note i { width:16px; height:16px; flex-basis:16px; font-size:.58rem; }
  .technical-project-panel .string-fields-header,.technical-project-panel .string-field-row { grid-template-columns:34px minmax(120px,1.15fr) repeat(4,minmax(75px,.82fr)); gap:7px; padding-left:9px; padding-right:9px; }
  .technical-project-panel .string-fields-header { margin-top:16px; font-size:.59rem; }
  .technical-project-panel .string-fields-header small { font-size:.53rem; }
  .technical-project-panel .string-field-row { min-height:64px; }
  .technical-project-panel .string-row-title > span { width:32px; height:32px; font-size:.8rem; }
  .technical-project-panel .string-row-title strong { font-size:.68rem; }
  .technical-project-panel .string-row-title small { font-size:.59rem; }
  .technical-project-panel .string-panel-count { gap:4px; font-size:.54rem; }
  .technical-project-panel .string-panel-count input { width:48px; min-height:25px; font-size:.61rem; }
  .technical-project-panel .string-input-shell { min-height:38px; }
  .technical-project-panel .string-input-shell input { min-height:36px; padding:7px 8px; font-size:.68rem; }
  .technical-project-panel .string-input-shell b { width:28px; height:28px; flex-basis:28px; margin-right:4px; font-size:.65rem; }
  .technical-project-panel .string-field-row .remove-string-button { min-width:48px; padding:8px 5px; font-size:.58rem; }
}

.pv-module-backdrop, .pv-module-detail-backdrop { z-index: 410; padding: 0; place-items: stretch end; }
.pv-module-dialog { width: min(760px,96vw); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 0 0 20px; background: #fff; box-shadow: -20px 0 70px rgba(8,30,53,.28); animation: drawer-in .22s ease-out; }
.pv-module-form { padding: 22px 26px 32px; }
.pv-module-form section { padding: 17px 0; border-bottom: 1px solid #e6edf3; }
.pv-module-form section:first-of-type { padding-top: 0; }
.pv-module-form h3 { margin: 0 0 13px; color: #173b62; font-size: .9rem; }
.pv-module-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14px; }
.pv-module-form-grid label { display: grid; min-width: 0; gap: 6px; color: #536a82; font-size: .68rem; font-weight: 800; }
.pv-module-form-grid input, .pv-module-form-grid select { width: 100%; min-width: 0; height: 41px; padding: 0 10px; border: 1px solid #ccd8e5; border-radius: 9px; color: #203d59; background: #fbfcfd; font-size: .76rem; }
.pv-module-file-summary { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #cfe0ef; border-radius: 10px; color: #375873; background: #f3f8fc; font-size: .72rem; }
.pv-module-detail-backdrop { place-items: center; padding: 20px; }
.pv-module-detail-dialog { width: min(760px,100%); max-height: min(780px,calc(100dvh - 40px)); overflow-y: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(8,30,53,.3); }
.pv-module-detail-dialog > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 21px 24px; border-bottom: 1px solid #e3eaf1; background: #fff; }
.pv-module-detail-dialog > header p { margin: 0 0 4px; color: #f29b12; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pv-module-detail-dialog h2 { margin: 0; color: #173b62; font-size: 1.2rem; }
.pv-module-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 10px 24px 20px; }
.pv-module-detail-grid div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 4px; border-bottom: 1px solid #edf1f5; font-size: .74rem; }
.pv-module-detail-grid span { color: #7a8b9d; }
.pv-module-detail-grid strong { color: #203d59; text-align: right; }
.pv-module-detail-dialog footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px; border-top: 1px solid #e3eaf1; background: #fff; }
.pv-ai-review-backdrop { z-index: 520; padding: 18px; place-items: center; }
.pv-ai-review-dialog { display: flex; width: min(1180px,100%); max-height: calc(100dvh - 36px); flex-direction: column; overflow: hidden; border-radius: 20px; color: #203d59; background: #fff; box-shadow: 0 28px 90px rgba(8,30,53,.34); }
.pv-ai-review-dialog > header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #e1e9f1; }
.pv-ai-review-dialog > header p { margin: 0 0 4px; color: #f29b12; font-size: .66rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.pv-ai-review-dialog > header h2 { margin: 0; color: #173b62; font-size: 1.2rem; }
.pv-ai-review-dialog > header span { display: block; margin-top: 5px; color: #718398; font-size: .73rem; }
.pv-ai-review-body { overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px; }
.pv-ai-review-warnings { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #f2cf88; border-radius: 11px; color: #7a5816; background: #fff9eb; font-size: .72rem; }
.pv-ai-review-warnings ul { margin: 7px 0 0; padding-left: 18px; }
.pv-ai-common { margin-bottom: 22px; border: 1px solid #dbe5ef; border-radius: 13px; background: #f8fafc; }
.pv-ai-common summary { padding: 13px 15px; color: #173b62; font-size: .78rem; font-weight: 900; cursor: pointer; }
.pv-ai-common-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; padding: 0 15px 15px; }
.pv-ai-common-grid label { display: grid; min-width: 0; gap: 5px; color: #63788e; font-size: .63rem; font-weight: 800; }
.pv-ai-common-grid input,.pv-ai-common-grid select { width: 100%; min-width: 0; height: 37px; padding: 0 9px; border: 1px solid #ccd8e5; border-radius: 8px; color: #203d59; background: #fff; font-size: .72rem; }
.pv-ai-models-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.pv-ai-models-heading h3 { margin: 0 0 3px; color: #173b62; font-size: .92rem; }
.pv-ai-models-heading p { margin: 0; color: #718398; font-size: .7rem; }
.pv-ai-models-heading button { width: auto; min-width: 0; padding: 8px 11px; font-size: .68rem; }
.pv-ai-table-wrap { overflow-x: auto; border: 1px solid #dbe5ef; border-radius: 12px; }
.pv-ai-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.pv-ai-table th { padding: 9px 8px; color: #718398; background: #f5f7fa; font-size: .6rem; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
.pv-ai-table td { padding: 8px; border-top: 1px solid #e8eef4; vertical-align: middle; }
.pv-ai-table td:first-child { width: 48px; text-align: center; }
.pv-ai-table input:not([type="checkbox"]) { width: 100%; min-width: 78px; height: 35px; padding: 0 8px; border: 1px solid #d0dbe6; border-radius: 7px; color: #203d59; background: #fff; font-size: .7rem; }
.pv-ai-table [data-ai-field="model"] { min-width: 175px !important; }
.pv-ai-table input[type="checkbox"] { width: 16px !important; height: 16px !important; min-width: 16px; }
.pv-ai-confidence { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.pv-ai-confidence.high { color: #13734a; background: #e4f7ec; }.pv-ai-confidence.medium { color: #8a6112; background: #fff3d6; }.pv-ai-confidence.low { color: #a03b3b; background: #fde8e8; }
.pv-ai-table td:last-child small { display: block; margin-top: 3px; color: #8796a6; font-size: .58rem; }
.pv-ai-review-dialog > footer { display: flex; flex: none; justify-content: flex-end; gap: 9px; padding: 14px 24px; border-top: 1px solid #e1e9f1; background: #fff; }
.pv-inverter-ai-table { min-width: 5200px; }
.pv-inverter-ai-table input[type="text"] { min-width: 130px; }
.pv-inverter-ai-table td:last-child { min-width: 90px; }

@media (max-width: 900px) {
  .pv-module-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pv-modules-workspace .dashboard-welcome { align-items: flex-start; }
  .pv-ai-common-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container pv-library (max-width: 980px) {
  .pv-modules-workspace .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .pv-modules-workspace .dashboard-main-actions { width: 100%; }
  .pv-module-table { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .pv-module-row.heading { display: none; }
  .pv-module-table > #pv-module-list { display: grid; min-width: 0; gap: 11px; }
  .pv-module-row { display: grid; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; padding: 12px 15px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(18,48,79,.045); }
  .pv-module-row > span { display: grid; min-height: 48px; align-content: center; gap: 4px; padding: 8px 0; border-top: 1px solid #edf1f5; }
  .pv-module-row > span::before { content: attr(data-label); color: #8493a2; font-size: .59rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
  .pv-module-row .pv-module-name { grid-column: 1 / -1; min-height: 52px; padding-top: 2px; border-top: 0; }
  .pv-module-row .pv-module-name::before { display: none; }
  .pv-module-row .pv-module-name strong { font-size: .88rem; }
  .pv-module-row .pv-module-actions { display: flex; align-items: center; justify-content: flex-end; align-content: initial; }
  .pv-module-row .pv-module-actions::before { margin-right: auto; }
  #pv-module-empty { padding: 34px 18px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; }
}
@container pv-library (max-width: 700px) {
  .pv-module-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container pv-library (max-width: 480px) {
  .pv-modules-workspace .dashboard-main-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pv-modules-workspace .dashboard-main-actions button { width: 100%; white-space: normal; }
  .pv-module-filters, .pv-module-row { grid-template-columns: 1fr; }
  .pv-module-row .pv-module-name { grid-column: 1; }
  .pv-module-row .pv-module-actions { justify-content: flex-start; }
}
@media (max-width: 850px) {
  .pv-module-table { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .pv-module-row.heading { display: none; }
  .pv-module-table > #pv-module-list { display: grid; min-width: 0; gap: 11px; }
  .pv-module-row { display: grid; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; padding: 12px 15px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(18,48,79,.045); }
  .pv-module-row > span { display: grid; min-height: 48px; align-content: center; gap: 4px; padding: 8px 0; border-top: 1px solid #edf1f5; }
  .pv-module-row > span::before { content: attr(data-label); color: #8493a2; font-size: .59rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
  .pv-module-row .pv-module-name { grid-column: 1 / -1; min-height: 52px; padding-top: 2px; border-top: 0; }
  .pv-module-row .pv-module-name::before { display: none; }
  .pv-module-row .pv-module-name strong { font-size: .88rem; }
  .pv-module-row .pv-module-actions { display: flex; align-items: center; justify-content: flex-end; align-content: initial; }
  .pv-module-row .pv-module-actions::before { margin-right: auto; }
  #pv-module-empty { padding: 34px 18px; border: 1px solid #dbe5ef; border-radius: 14px; background: #fff; }
}
@media (max-width: 560px) {
  .pv-module-filters { grid-template-columns: 1fr; }
  .pv-modules-workspace .dashboard-main-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .pv-modules-workspace .dashboard-main-actions button { width: 100%; white-space: normal; }
  .pv-module-dialog { width: 100vw; border-radius: 0; }
  .pv-ai-review-backdrop { padding: 0; }
  .pv-ai-review-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .pv-ai-review-dialog > header,.pv-ai-review-body,.pv-ai-review-dialog > footer { padding-left: 16px; padding-right: 16px; }
  .pv-ai-common-grid { grid-template-columns: 1fr; }
  .pv-module-form { padding: 18px 16px 28px; }
  .pv-module-form-grid, .pv-module-detail-grid { grid-template-columns: 1fr; }
  .pv-module-detail-grid div { gap: 10px; }
  .pv-module-row { grid-template-columns: 1fr; }
  .pv-module-row .pv-module-name { grid-column: 1; }
  .pv-module-row .pv-module-actions { justify-content: flex-start; }
}
.file-library-tabs { display: flex; gap: 8px; border-bottom: 1px solid #dfe7f0; padding: 0 20px; }
.file-library-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 6px; background: transparent; color: #66788c; font-size: 12px; font-weight: 700; cursor: pointer; }
.file-library-tabs button.active { border-color: #f5a623; color: #173b62; }
.file-library-context { overflow-y: auto; min-width: 0; padding: 18px 20px; }
.file-library-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 8px 0 14px; }
.file-library-intro h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.file-library-intro p { margin: 0; color: #718096; font-size: 12px; }
.file-library-connected { color: #197456; font-size: 11px; white-space: nowrap; }
.file-library-section { margin: 0 0 12px; padding: 14px; border: 1px solid #dce5f0; border-radius: 12px; background: #fff; }
.file-library-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 0; border: 0; }
.file-library-section h3 { margin: 0 0 3px; color: #183554; font-size: 13px; }
.file-library-section p { margin: 0; color: #78889a; font-size: 11px; line-height: 1.4; }
.file-library-upload { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; border: 1px solid #cad8e8; border-radius: 8px; color: #173b62; font-size: 11px; font-weight: 700; cursor: pointer; }
.file-library-upload:hover { background: #f0f5fb; }
.file-library-columns { display:grid; grid-template-columns:28px minmax(260px,1fr) minmax(280px,.65fr) auto; align-items:center; gap:14px; min-height:24px; color:#8a98a7; font-size:8px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.file-library-columns span:nth-child(3) { padding-left:14px; border-left:1px solid #e5ebf1; }
.file-library-columns span:last-child { min-width:100px; text-align:center; }
.file-library-row { display: grid; grid-template-columns: 28px minmax(260px,1fr) minmax(280px,.65fr) auto; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid #edf1f5; }
.file-library-type { color: #7992ad; font-size: 19px; }
.file-library-row-main { display: flex; flex-direction: column; min-width: 0; }
.file-library-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #20364f; font-size: 12px; }
.file-library-row-main small { color: #8695a5; font-size: 10px; }
.file-library-mobile-meta { display:none; }
.file-library-metadata { display:flex; align-items:center; min-width:0; gap:7px; padding-left:14px; border-left:1px solid #e5ebf1; }
.file-library-metadata strong { overflow:hidden; color:#64778b; font-size:10px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.file-library-cloud-status { display:inline-grid; width:24px; height:24px; flex:0 0 24px; place-items:center; border-radius:7px; }
.file-library-cloud-status.ready { color:#197456; background:#e6f4ed; }
.file-library-cloud-status.warning { color:#a36a17; background:#fff4df; }
.file-library-cloud-status .animated-lucide { width:14px; height:14px; }
.file-library-actions { display: inline-flex; align-items: center; gap: 5px; }
.file-library-row button { display: inline-grid; width: 30px; min-width: 30px; min-height: 30px; padding: 5px; place-items: center; border: 1px solid #d6e0eb; border-radius: 8px; background: #fff; color: #183b61; cursor: pointer; }
.file-library-row button:hover:not(:disabled) { border-color: #91abc5; background: #f3f7fb; }
.file-library-row button .animated-lucide { width: 15px; height: 15px; }
.file-library-row button:disabled { cursor: not-allowed; opacity: .45; }
.file-library-row button[data-library-remove] { color: #aa4450; }
.file-library-tree { margin: 10px 0; border: 1px solid #e0e7ef; border-radius: 12px; background: #f7f9fc; }
.file-library-tree > summary { padding: 13px 15px; color: #233d59; font-size: 13px; font-weight: 700; cursor: pointer; }
.file-library-tree > .file-library-section { margin: 0 12px 12px; }
.file-library-empty, .file-library-error { padding: 14px 0; color: #8190a1; font-size: 12px; }
.file-library-error { color: #a73b45; }
@media (max-width: 700px) { .file-library-intro { flex-direction: column; } .file-library-columns { display:none; } .file-library-row { grid-template-columns: 22px minmax(0,1fr) auto; gap:8px; } .file-library-mobile-meta { display:flex; align-items:center; gap:5px; margin-top:3px; } .file-library-mobile-meta strong { overflow:hidden; color:#8695a5; font-size:9px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; } .file-library-mobile-meta .file-library-cloud-status { width:20px; height:20px; flex-basis:20px; } .file-library-metadata { display:none; } .file-library-actions { gap: 4px; } .file-library-row button { width: 29px; min-width: 29px; min-height: 29px; } }
.google-connection-dialog h2 { margin: 13px 0 5px; color: #203b58; font-size: 1.1rem; }
.google-connection-dialog p { margin: 0; color: #62758a; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.google-connection-dialog button { margin-top: 22px; min-width: 105px; }
.calendar-new-event { width: 100%; margin-top: 11px; padding: 9px; color: #fff; border-radius: 9px; background: var(--ccs-navy); font-size: .7rem; }
.calendar-account-status { margin: 9px 2px 0; color: #5a796a; font-size: .59rem; line-height: 1.35; }
.calendar-account-status.error { color: #a5474d; }
.catalog-existing-attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-existing-attachments[hidden] { display: none; }
.catalog-existing-attachments button { max-width: 100%; padding: 6px 9px; border: 1px solid #d8e2ed; border-radius: 8px; background: #f8fbff; color: #16375e; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-existing-attachments button:disabled { color: #8a9099; cursor: default; }
.calendar-mini-date { display: grid; margin-top: auto; padding: 17px; border: 1px solid #e0e6ea; border-radius: 13px; background: #fff; text-align: center; }
.calendar-mini-date small { color: #7d8b96; text-transform: capitalize; }
.calendar-mini-date strong { margin: 4px 0; color: var(--ccs-navy); font-size: 2.2rem; line-height: 1; }
.calendar-mini-date span { color: #5d6f7d; font-size: .67rem; text-transform: capitalize; }
.calendar-main { min-width: 0; padding: 19px 21px 24px; }
.calendar-main .fc { --fc-border-color: #e3e7ea; --fc-button-bg-color: #f1f4f6; --fc-button-border-color: #e0e5e9; --fc-button-text-color: #4b5d6c; --fc-button-hover-bg-color: #e6ebef; --fc-button-hover-border-color: #d6dee4; --fc-button-active-bg-color: var(--ccs-navy); --fc-button-active-border-color: var(--ccs-navy); font-size: .72rem; }
.calendar-main .fc .fc-toolbar { margin-bottom: 18px; gap: 10px; }
.calendar-main .fc .fc-toolbar-title { color: #24394b; font-size: 1.35rem; font-weight: 850; text-transform: capitalize; }
.calendar-main .fc .fc-button { min-width: 0; width: auto; padding: .48em .75em; border-radius: 8px; box-shadow: none; font-size: .68rem; font-weight: 750; }
.calendar-main .fc .fc-button-group { gap: 3px; padding: 3px; border-radius: 10px; background: #f1f4f6; }
.calendar-main .fc .fc-button-group > .fc-button { border-radius: 8px; }
.calendar-main .fc .fc-col-header-cell { padding: 10px 4px; color: #687985; background: #fafbfc; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.calendar-main .fc .fc-scrollgrid { overflow: hidden; border: 1px solid #dfe5e9; border-radius: 11px; border-collapse: separate; border-spacing: 0; }
.calendar-main .fc .fc-scrollgrid td, .calendar-main .fc .fc-scrollgrid th { border-width: 0 1px 1px 0; border-style: solid; border-color: #e3e7ea; }
.calendar-main .fc .fc-scrollgrid tr > *:last-child { border-right: 0; }
.calendar-main .fc .fc-scrollgrid tbody tr:last-child > * { border-bottom: 0; }
.calendar-main .fc .fc-daygrid-day-number { padding: 7px 9px; color: #506271; font-weight: 750; }
.calendar-main .fc .fc-day-today { background: rgba(var(--ccs-orange-rgb),.09) !important; }
.calendar-main .fc .fc-day-today .fc-daygrid-day-number { display: grid; width: 27px; height: 27px; margin: 4px; padding: 0; place-items: center; color: #fff; border-radius: 50%; background: var(--ccs-orange); }
.calendar-main .fc .fc-daygrid-day-frame { min-height: 112px; }
.calendar-main .fc .fc-event { margin: 2px 4px; padding: 2px 5px; border-radius: 5px; cursor: pointer; font-size: .64rem; }
.calendar-main .fc .fc-list-event:hover td { background: rgba(var(--ccs-orange-rgb),.08); }
.calendar-load-error { padding: 40px; color: #8a5960; text-align: center; }
.calendar-dialog { width: min(460px, 94vw); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 22px 65px rgba(var(--ccs-navy-rgb),.25); }
.calendar-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #e0e6ea; }
.calendar-dialog h2 { margin: 2px 0 0; color: #2b4051; font-size: 1.2rem; }
.calendar-dialog form { display: grid; gap: 17px; padding: 22px; }
.calendar-dialog form > label { display: grid; gap: 7px; color: #536574; font-size: .72rem; font-weight: 800; }
.calendar-dialog fieldset { margin: 0; padding: 0; border: 0; }
.calendar-dialog legend { margin-bottom: 9px; color: #536574; font-size: .72rem; font-weight: 800; }
.calendar-color-picker { display: flex; gap: 10px; }
.calendar-color-picker label { cursor: pointer; }
.calendar-color-picker input { position: absolute; opacity: 0; pointer-events: none; }
.calendar-color-picker span { display: block; width: 28px; height: 28px; border: 4px solid #fff; border-radius: 50%; background: var(--calendar-color); box-shadow: 0 0 0 1px #d9e0e5; }
.calendar-color-picker input:checked + span { box-shadow: 0 0 0 2px var(--calendar-color); }
.calendar-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.calendar-event-drawer footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .calendar-shell { grid-template-columns: 1fr; }
  .calendar-sidebar { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-right: 0; border-bottom: 1px solid #e1e6ea; }
  .calendar-sidebar-heading, .calendar-groups { grid-column: 1 / -1; }
  .calendar-groups { display: flex; margin-top: 2px; flex-wrap: wrap; }
  .calendar-mini-date { display: none; }
  .calendar-new-event { width: auto; margin: 0; }
  .calendar-main .fc .fc-toolbar { align-items: stretch; flex-direction: column; }
  .calendar-main .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
}

@media (max-width: 650px) {
  .calendar-shell { min-height: auto; border-radius: 12px; }
  .calendar-sidebar { padding: 15px 12px; }
  .calendar-main { padding: 13px 9px 18px; }
  .calendar-main .fc .fc-toolbar-title { font-size: 1.05rem; }
  .calendar-main .fc .fc-button { padding: .42em .55em; font-size: .62rem; }
  .calendar-event-drawer footer { grid-template-columns: 1fr; }
}

/* Barra superior y navegación compacta */
.dashboard-topbar { position: fixed; z-index: 70; inset: 0 0 auto 0; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 24px; color: #fff; background: linear-gradient(105deg, #0e3662, #174a78); border-bottom: 3px solid var(--ccs-orange); box-shadow: 0 5px 18px rgba(var(--ccs-navy-rgb),.16); }
.topbar-brand { display: flex; align-items: center; gap: 11px; }
.topbar-brand .brand-mark { display: grid; width: 39px; height: 39px; place-items: center; color: #17334f; border: 1px solid rgba(255,255,255,.32); border-radius: 11px; background: var(--ccs-orange); font-size: .82rem; font-weight: 950; }
.topbar-brand p, .topbar-brand h1 { margin: 0; }
.topbar-brand p { color: #dce7f0; font-size: .57rem; font-weight: 750; }
.topbar-brand h1 { margin-top: 1px; color: #fff; font-size: 1rem; }
.quick-create-menu { position: relative; margin-left: 3px; }
.quick-create-menu > summary { display: flex; width: auto; min-width: 82px; height: 34px; padding: 0 12px; align-items: center; justify-content: center; gap: 7px; color: var(--ccs-navy); border: 0; border-radius: 9px; background: var(--ccs-orange); cursor: pointer; font-size: 0; font-weight: 800; line-height: 1; list-style: none; transition: filter .18s ease, transform .18s ease, box-shadow .18s ease; }
.quick-create-menu > summary::before { content: "+"; font-size: 1rem; font-weight: 500; transform-origin: center; }
.quick-create-menu > summary::after { content: "Crear"; font-size: .72rem; }
.quick-create-menu > summary::-webkit-details-marker { display: none; }
.quick-create-menu > summary:hover, .quick-create-menu[open] > summary { color: var(--ccs-navy); background: var(--ccs-orange); filter: brightness(1.06); box-shadow: 0 6px 16px rgba(0,0,0,.14); transform: translateY(-1px); }
.quick-create-menu > summary:hover::before, .quick-create-menu > summary:focus-visible::before, .quick-create-menu[open] > summary::before { animation: quick-create-plus-motion .6s cubic-bezier(.22,1,.36,1); }
@keyframes quick-create-plus-motion { 0% { transform: rotate(0) scale(.86); } 55% { transform: rotate(95deg) scale(1.15); } 100% { transform: rotate(90deg) scale(1); } }
.quick-create-popover { position: absolute; z-index: 340; top: calc(100% + 13px); left: 0; display: grid; width: 270px; padding: 9px; border: 1px solid #dce4ea; border-radius: 14px; color: #3e5263; background: #fff; box-shadow: 0 22px 55px rgba(var(--ccs-navy-rgb),.24); animation: menu-in .18s ease-out; }
.quick-create-popover::before { position: absolute; top: -6px; left: 12px; width: 11px; height: 11px; border: 1px solid #dce4ea; border-right: 0; border-bottom: 0; background: #fff; content: ""; transform: rotate(45deg); }
.quick-create-popover > div { padding: 8px 10px 10px; border-bottom: 1px solid #e7ebee; }
.quick-create-popover > div strong, .quick-create-popover > div small { display: block; }
.quick-create-popover > div strong { color: #263f54; font-size: .78rem; }
.quick-create-popover > div small { margin-top: 3px; color: #84919c; font-size: .62rem; }
.quick-create-popover button { display: grid; min-width: 0; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: #526575; background: transparent; box-shadow: none; text-align: left; font-size: .69rem; }
.quick-create-popover button span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--ccs-navy); border-radius: 7px; background: rgba(var(--ccs-orange-rgb),.18); font-weight: 900; }
.quick-create-popover button span img { display: block; width: 15px; height: 15px; opacity: .82; }
.quick-create-popover button:hover { color: var(--ccs-navy); background: #f2f6f8; transform: none; }
.topbar-actions { display: flex; height: 100%; align-items: center; gap: 8px; }
.header-current-date { min-width: 92px; padding: 8px 12px; color: #e9f0f5; border-right: 1px solid rgba(255,255,255,.2); font-size: .72rem; font-weight: 800; text-align: center; }
.header-sync-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 4px 6px; color: #d0dde6; font-size: .6875rem; font-weight: 400; line-height: 1.3; white-space: nowrap; }
.header-sync-status[hidden] { display: none; }
.header-sync-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #80cba9; flex: none; }
.header-sync-status[data-state="saving"]::before { background: #b9ccdf; }
.header-sync-status[data-state="idle"]::before { background: #b9ccdf; }
.header-sync-status[data-state="error"] { color: #ffe1b0; }
.header-sync-status[data-state="error"]::before { background: #ffc36f; }
.header-sync-status:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.header-sync-status { width: auto; min-width: 0; height: auto; min-height: 32px; border: 0; background: transparent; box-shadow: none; font-family: inherit; cursor: pointer; }
.header-sync-status:hover { background: rgba(255,255,255,.07); box-shadow: none; transform: none; }
.cloud-save-panel { position: fixed; z-index: 30000; top: 88px; right: 20px; width: min(460px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 110px)); overflow: auto; padding: 20px; border: 1px solid #dce4ec; border-radius: 12px; background: #fff; color: #102a43; box-shadow: 0 12px 36px rgba(15,45,70,.16); font-family: inherit; font-size: 14px; line-height: 1.5; }
.cloud-save-panel[hidden] { display: none !important; }
.cloud-save-panel header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.cloud-save-panel p { margin: 12px 0; color: #52677a; font-size: 13px; }
.cloud-save-panel ul { list-style: none; padding: 0; margin: 0 0 16px; }
.cloud-save-panel li { padding: 12px 0; border-bottom: 1px solid #e6edf2; overflow-wrap: anywhere; }
.cloud-save-panel li strong, .cloud-save-panel li span { display: block; }
.cloud-save-panel li span { margin: 5px 0; font-size: 13px; color: #52677a; }
.cloud-save-panel li[data-state="error"] strong { color: #986212; }
.cloud-save-panel li[data-state="saved"] strong { color: #167452; }
.cloud-save-panel button { width: auto; min-width: 0; flex: 0 0 auto; min-height: 40px; margin: 0; padding: 7px 12px; border: 1px solid #dce4ec; border-radius: 7px; background: #f7f9fc; color: #0f2d46; font: inherit; font-size: 13px; box-shadow: none; transform: none; }
.cloud-save-panel button:focus-visible { outline: 2px solid #1d8a63; outline-offset: 2px; }
.cloud-save-panel button:disabled { opacity: .5; cursor: not-allowed; }
@media (pointer: coarse) { .cloud-save-panel button, .header-sync-status { min-height: 44px; } }
@media (max-width: 767px) { .header-sync-status { max-width: 76px; white-space: normal; font-size: .625rem; padding: 2px; } }
.notification-button { position: relative; display: grid; min-width: 0; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08); box-shadow: none; }
.notification-button:hover { background: rgba(255,255,255,.16); transform: none; }
.notification-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-plus-animated { transform-origin: top center; }
.bell-plus-animated .bell-clapper, .bell-plus-animated .bell-plus { transform-box: fill-box; transform-origin: center; }
.notification-button:hover .bell-plus-animated, .notification-button:focus-visible .bell-plus-animated { animation: bell-plus-ring 1.3s ease-in-out; }
.notification-button:hover .bell-clapper, .notification-button:focus-visible .bell-clapper { animation: bell-plus-clapper 1.3s .08s ease-in-out; }
.notification-button:hover .bell-plus, .notification-button:focus-visible .bell-plus { animation: bell-plus-sign .8s .16s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes bell-plus-ring { 0%,100% { transform: rotate(0); } 9% { transform: rotate(7deg); } 26% { transform: rotate(-18deg); } 45% { transform: rotate(14deg); } 62% { transform: rotate(-9deg); } 78% { transform: rotate(5deg); } 90% { transform: rotate(-2deg); } }
@keyframes bell-plus-clapper { 0%,100% { transform: translateX(0); } 9% { transform: translateX(1.5px); } 26% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 62% { transform: translateX(-2.5px); } 78% { transform: translateX(1.5px); } 90% { transform: translateX(-1px); } }
@keyframes bell-plus-sign { 0% { opacity: 0; transform: rotate(-90deg) scale(.3); } 55% { opacity: 1; transform: rotate(8deg) scale(1.2); } 78% { opacity: 1; transform: rotate(0) scale(.94); } 100% { opacity: 1; transform: rotate(0) scale(1); } }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #174a78; border-radius: 50%; background: var(--ccs-orange); }
.notification-center { position: relative; }
.notification-count { position: absolute; top: -5px; right: -5px; display: grid; min-width: 18px; height: 18px; margin: 0; padding: 0 4px; place-items: center; color: #172a3c; border: 2px solid var(--ccs-navy); border-radius: 999px; background: var(--ccs-orange); font-size: .56rem; font-weight: 900; line-height: 1; }
.notification-popover { position: absolute; z-index: 90; top: calc(100% + 11px); right: 0; width: min(390px, calc(100vw - 24px)); overflow: hidden; color: #415464; border: 1px solid #dbe3e8; border-radius: 14px; background: #fff; box-shadow: 0 18px 55px rgba(var(--ccs-navy-rgb),.22); animation: dropdown-in .16s ease-out; }
.notification-popover > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-bottom: 1px solid #e3e8ec; }
.notification-popover > header strong, .notification-popover > header small { display: block; }
.notification-popover > header strong { color: #294155; font-size: .82rem; }
.notification-popover > header small { margin-top: 2px; color: #84929d; font-size: .62rem; }
.notification-popover > header button { min-width: 28px; width: 28px; height: 28px; padding: 0; color: #6d7d89; border-radius: 8px; background: #eef2f5; box-shadow: none; }
.notification-list { display: grid; max-height: 360px; overflow-y: auto; }
.notification-item { display: grid; width: 100%; min-width: 0; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 15px; color: #536574; border-bottom: 1px solid #edf0f2; border-radius: 0; background: #fff; box-shadow: none; text-align: left; }
.notification-item:hover { color: #536574; background: #f7f9fa; transform: none; }
.notification-item > span:first-child { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ccs-navy); border-radius: 9px; background: rgba(var(--ccs-orange-rgb),.2); font-size: .82rem; }
.notification-item strong, .notification-item small, .notification-item time { display: block; }
.notification-item strong { color: #30495d; font-size: .7rem; }
.notification-item small { margin-top: 3px; color: #697b89; font-size: .64rem; font-weight: 600; }
.notification-item time { margin-top: 4px; color: #97a2aa; font-size: .56rem; }
.notification-empty { margin: 0; padding: 24px 16px; color: #82909b; text-align: center; font-size: .68rem; }
.suggestion-button svg { width: 19px; height: 19px; }
.message-circle-more-animated { overflow: visible; transform-origin: center; }
.message-circle-more-animated .message-circle-bubble { stroke-dasharray: 80; transform-origin: center; }
.message-circle-more-animated .message-circle-dot { transform-box: fill-box; transform-origin: center; }
.suggestion-button:hover .message-circle-bubble, .suggestion-button:focus-visible .message-circle-bubble { animation: message-circle-draw 1s ease-in-out; }
.suggestion-button:hover .message-circle-dot, .suggestion-button:focus-visible .message-circle-dot { animation: message-circle-dot 1s cubic-bezier(.34,1.4,.64,1) both; }
.suggestion-button:hover .message-circle-dot:nth-child(3), .suggestion-button:focus-visible .message-circle-dot:nth-child(3) { animation-delay: .1s; }
.suggestion-button:hover .message-circle-dot:nth-child(4), .suggestion-button:focus-visible .message-circle-dot:nth-child(4) { animation-delay: .2s; }
@keyframes message-circle-draw { 0% { opacity: .45; stroke-dashoffset: 80; transform: scale(.94); } 65% { opacity: 1; } 100% { stroke-dashoffset: 0; transform: scale(1); } }
@keyframes message-circle-dot { 0% { opacity: 0; transform: translateY(2px) scale(.35); } 65% { opacity: 1; transform: translateY(-1px) scale(1.28); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.suggestion-modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 18px; background: #fff; }
.suggestion-modal .settings-form { display: grid; gap: 17px; }
.suggestion-modal label { display: grid; gap: 7px; color: #526373; font-size: .76rem; font-weight: 800; }
.suggestion-attachment { padding: 15px; border: 1px dashed #b9c7d1; border-radius: 11px; background: #f8fafb; }
.suggestion-attachment small { color: #7d8b96; font-weight: 500; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid #dce4e9; }
.admin-tabs button { min-width: 0; padding: 11px 16px; border-radius: 9px 9px 0 0; color: #667887; background: transparent; box-shadow: none; }
.admin-tabs button.active { color: var(--ccs-navy); background: #fff; box-shadow: inset 0 -3px var(--ccs-orange); }
.admin-tabs span { margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: rgba(var(--ccs-orange-rgb),.2); font-size: .62rem; }
.admin-table { overflow: hidden; border: 1px solid #dbe2e7; border-radius: 12px; background: #fff; }
.admin-row { display: grid; grid-template-columns: 1.25fr .7fr .7fr 1fr .65fr; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid #e5eaee; color: #526272; font-size: .72rem; }
.admin-row.heading { border-top: 0; color: #748392; background: #f3f5f8; font-size: .63rem; font-weight: 850; text-transform: uppercase; }
.admin-row strong,.admin-row small { display:block; }.admin-row strong { color:#304455; }.admin-row small { margin-top:3px; color:#82909b; }
.admin-suggestions-table { overflow: hidden; border: 1px solid #dbe2e7; border-radius: 12px; background: #fff; }
.suggestions-list { display: grid; }
.admin-suggestion-row { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(150px,1fr) 145px 90px 70px; align-items: center; gap: 12px; padding: 13px 16px; color: #526272; border-top: 1px solid #e5eaee; font-size: .71rem; }
.admin-suggestion-row.heading { border-top: 0; color: #748392; background: #f3f5f8; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.admin-suggestion-row strong, .admin-suggestion-row small { display: block; }
.admin-suggestion-row strong { overflow: hidden; color: #304455; text-overflow: ellipsis; white-space: nowrap; }
.admin-suggestion-row small { margin-top: 3px; color: #82909b; font-size: .62rem; }
.suggestion-status { width: fit-content; padding: 4px 7px; color: #6c7882; border-radius: 999px; background: #edf1f4; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.suggestion-status.new { color: #7a4b00; background: rgba(var(--ccs-orange-rgb),.2); }
.view-suggestion-button { min-width: 0; padding: 7px 9px; color: var(--ccs-navy); border: 1px solid #ccd8e1; border-radius: 7px; background: #fff; box-shadow: none; font-size: .62rem; }
.view-suggestion-button:hover { color: #fff; background: var(--ccs-navy); transform: none; }
.suggestion-detail-modal { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 18px; background: #fff; }
.suggestion-detail-body { padding: 22px 25px 26px; }
.suggestion-detail-body > p { margin: 0; color: #425665; line-height: 1.65; white-space: pre-wrap; }
.suggestion-detail-body section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e7eb; }
.suggestion-detail-body h3 { margin: 0 0 11px; color: #334b5d; font-size: .82rem; }
.suggestion-files { display:flex; gap:8px; flex-wrap:wrap; }.suggestion-files button { min-width:0; padding:7px 10px; color:var(--ccs-navy); background:#eef3f7; box-shadow:none; font-size:.68rem; }
@media (max-width: 760px) { .admin-suggestions-table { overflow-x: auto; } .admin-suggestion-row { min-width: 760px; } .notification-popover { position: fixed; top: 64px; right: 8px; } }
.dashboard-topbar .profile-menu { position: relative; margin: 0; }
.dashboard-topbar .profile-menu > summary { display: flex; min-height: 44px; width: auto; padding: 5px 9px; flex-direction: row; align-items: center; gap: 8px; color: #fff; border-radius: 10px; background: transparent; box-shadow: none; list-style: none; }
.dashboard-topbar .profile-menu > summary:hover { color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }
.dashboard-topbar .profile-menu .avatar-placeholder { width: 30px; height: 30px; font-size: .62rem; }
.profile-summary-copy strong, .profile-summary-copy small { display: block; }
.profile-summary-copy strong { font-size: .72rem; }
.profile-summary-copy small { margin-top: 1px; color: #cbd9e4; font-size: .56rem; }
.dashboard-topbar .profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; bottom: auto; left: auto; width: 285px; color: #415464; }
.dashboard-shell { padding-top: 64px; padding-left: 78px; }
.dashboard-header { z-index: 55; inset: 64px auto 0 0; width: 78px; }
.dashboard-header-inner { min-height: calc(100vh - 64px); padding: 12px 7px; }
.dashboard-nav { gap: 3px; }
.dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary { min-height: 55px; padding: 5px 2px; gap: 4px; border-radius: 9px; }
.dashboard-nav > .nav-home small, .dashboard-nav > .side-nav-button small, .nav-menu > summary small { font-size: .56rem; line-height: 1.05; }
.side-nav-icon { width: 21px; height: 21px; border-radius: 6px; font-size: .76rem; }
.nav-sortable-item { cursor: grab; user-select: none; }
.nav-sortable-item:active { cursor: grabbing; }
.nav-sort-ghost { opacity: .3; background: rgba(var(--ccs-orange-rgb),.16) !important; }
.nav-sort-chosen { box-shadow: inset 3px 0 var(--ccs-orange), 0 7px 18px rgba(var(--ccs-navy-rgb),.12) !important; }
.nav-sort-drag { opacity: .96; background: #fff !important; }
.dashboard-content { padding-top: 30px; }
.sidebar-toggle { display: none; }

@media (min-width: 761px) {
  .dashboard-shell { padding-left: 64px; transition: padding-left .22s ease; }
  .dashboard-header { width: 64px; transition: width .22s ease; }
  .dashboard-header-inner { padding: 9px 6px; align-items: stretch; gap: 7px; }
  .sidebar-toggle { display: grid; width: 34px; min-width: 34px; height: 34px; margin: 0 0 3px 9px; padding: 0; place-items: center; align-self: auto; border: 1px solid #dce4e9; border-radius: 9px; color: var(--ccs-navy); background: #fff; box-shadow: none; }
  .sidebar-toggle:hover { border-color: rgba(var(--ccs-orange-rgb),.9); background: rgba(var(--ccs-orange-rgb),.12); box-shadow: none; transform: none; }
  .sidebar-toggle img { grid-area: 1 / 1; width: 19px; height: 19px; }
  .sidebar-collapse-icon { display: none; }
  .dashboard-nav { gap: 2px; }
  .dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary { display: grid; min-height: 46px; padding: 5px 9px; grid-template-columns: 29px; justify-items: start; }
  .dashboard-nav > .nav-home small, .dashboard-nav > .side-nav-button small, .nav-menu > summary small { display: none; }
  .side-nav-icon { display: grid; width: 29px; min-width: 29px; height: 29px; margin: 0; padding: 0; place-self: center start; align-items: center; justify-items: start; border-radius: 8px; background: transparent; }
  .side-nav-icon > :is(svg, img) { display: block; width: 19px; height: 19px; margin: 0; flex: none; }
  .side-nav-icon > :is(.animated-file, .animated-receipt, .animated-calculator) { margin-left: -1px; }
  .side-nav-icon > .animated-book { margin-left: 1px; }
  .dashboard-nav > button.active .side-nav-icon, .nav-menu.active > summary .side-nav-icon { justify-items: center; }
  .side-nav-icon img { width: 20px; height: 20px; opacity: .72; }
  .dashboard-nav > .nav-home:hover, .dashboard-nav > .nav-home.active, .dashboard-nav > .side-nav-button:hover, .dashboard-nav > .side-nav-button.active, .nav-menu > summary:hover, .nav-menu.active > summary { box-shadow: none; }
  .nav-dropdown { left: calc(100% + 8px); }

  .dashboard-shell.sidebar-expanded { padding-left: 196px; }
  .sidebar-expanded .dashboard-header { width: 196px; }
  .sidebar-expanded .dashboard-header-inner { padding: 9px 8px; }
  .sidebar-expanded .sidebar-toggle { margin-right: auto; margin-left: 9px; align-self: auto; }
  .sidebar-expanded .sidebar-expand-icon { display: none; }
  .sidebar-expanded .sidebar-collapse-icon { display: block; }
  .sidebar-expanded .dashboard-nav > .nav-home, .sidebar-expanded .dashboard-nav > .side-nav-button, .sidebar-expanded .nav-menu > summary { min-height: 45px; padding: 7px 9px; grid-template-columns: 29px minmax(0, 1fr); justify-items: stretch; column-gap: 10px; text-align: left; }
  .sidebar-expanded .dashboard-nav > .nav-home small, .sidebar-expanded .dashboard-nav > .side-nav-button small, .sidebar-expanded .nav-menu > summary small { display: block; min-width: 0; align-self: center; justify-self: start; overflow: visible; font-size: .68rem; line-height: 1.1; white-space: nowrap; }
  .sidebar-expanded .side-nav-icon { place-self: center start; }
}
.dashboard-shortcuts { margin: 17px 0 18px; padding: 15px 17px; border: 1px solid #dce4e9; border-radius: 13px; background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.dashboard-shortcuts-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dashboard-shortcuts-heading h3, .dashboard-shortcuts-heading p { margin: 0; }
.dashboard-shortcuts-heading h3 { color: #31495b; font-size: .84rem; }
.dashboard-shortcuts-heading p { margin-top: 3px; color: #82909b; font-size: .64rem; }
.dashboard-shortcuts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.dashboard-shortcuts-list > button { display: grid; min-width: 0; grid-template-columns: 32px 1fr 12px; align-items: center; gap: 9px; padding: 11px 12px; color: #526575; border: 1px solid #e1e7eb; border-radius: 10px; background: #fafbfc; box-shadow: none; text-align: left; }
.dashboard-shortcuts-list > button > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; color: var(--ccs-navy); border-radius: 8px; background: rgba(var(--ccs-orange-rgb),.2); font-size: .75rem; font-weight: 900; }
.dashboard-shortcuts-list > button > span:first-child img { width: 17px; height: 17px; opacity: .82; }
.dashboard-shortcuts-list strong, .dashboard-shortcuts-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shortcuts-list strong { color: #334c5e; font-size: .69rem; }
.dashboard-shortcuts-list small { margin-top: 3px; color: #85929c; font-size: .58rem; }
.dashboard-shortcuts-list i { color: #99a4ad; font-size: 1rem; font-style: normal; }
.dashboard-shortcuts-list > button:hover { border-color: rgba(var(--ccs-orange-rgb),.7); background: rgba(var(--ccs-orange-rgb),.07); box-shadow: 0 6px 16px rgba(var(--ccs-navy-rgb),.08); transform: translateY(-1px); }
.dashboard-shortcuts-empty { grid-column: 1 / -1; margin: 0; padding: 13px; color: #84919c; border: 1px dashed #cbd5dc; border-radius: 9px; text-align: center; font-size: .68rem; }
.dashboard-home-heading { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(430px, 1.25fr); align-items: end; gap: 22px; }
.dashboard-home-heading h2, .dashboard-home-heading p { margin: 0; }
.dashboard-home-heading h2 { color: #253b4c; font-size: 1.65rem; letter-spacing: -.035em; }
.dashboard-home-heading > div > p:last-child { margin-top: 6px; color: #718291; font-size: .78rem; }
.dashboard-home-heading .dashboard-shortcuts { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.dashboard-home-heading .dashboard-shortcuts-heading { justify-content: flex-end; }
.dashboard-home-heading .dashboard-shortcuts-heading h3 { display: none; }
.dashboard-home-heading .dashboard-shortcuts-list { display: flex; justify-content: flex-end; gap: 6px; margin-top: 7px; }
.dashboard-home-heading .dashboard-shortcuts-list > button { display: flex; width: auto; min-height: 34px; grid-template-columns: none; gap: 6px; padding: 5px 9px; border-radius: 8px; background: #fff; }
.dashboard-home-heading .dashboard-shortcuts-list > button > span:first-child { width: 24px; height: 24px; border-radius: 7px; }
.dashboard-home-heading .dashboard-shortcuts-list > button > span:first-child :is(svg, img) { width: 15px; height: 15px; }
.dashboard-home-heading .dashboard-shortcuts-list small, .dashboard-home-heading .dashboard-shortcuts-list i { display: none; }
.dashboard-home-heading .dashboard-shortcuts-list strong { font-size: .62rem; }
.dashboard-home-heading #edit-dashboard-shortcuts { min-width: 0; padding: 6px 9px; font-size: .6rem; }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 17px 0 12px; }
.dashboard-kpi-card { display: grid; min-width: 0; min-height: 108px; grid-template-columns: 1fr auto; gap: 9px; padding: 15px; border: 1px solid #dfe6eb; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(var(--ccs-navy-rgb),.05); }
.dashboard-kpi-card > div { grid-column: 1; grid-row: 1; min-width: 0; }
.dashboard-kpi-card small, .dashboard-kpi-card strong, .dashboard-kpi-card em { display: block; }
.dashboard-kpi-card small { color: #758594; font-size: .66rem; font-weight: 750; }
.dashboard-kpi-card strong { margin-top: 7px; overflow: hidden; color: #293f52; font-size: 1.3rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi-card em { margin-top: 5px; color: #87949e; font-size: .58rem; font-style: normal; }
.dashboard-kpi-icon { display: grid; width: 34px; height: 34px; grid-column: 2; grid-row: 1; place-items: center; border-radius: 9px; color: var(--ccs-navy); background: #e9f1f8; font-size: .9rem; font-weight: 900; }
.dashboard-kpi-icon.waiting { color: #8b5b09; background: #fff2da; }
.dashboard-kpi-icon.quotes { color: #38678d; background: #e8f1f8; }
.dashboard-kpi-icon.money { color: #176849; background: #e7f4ee; }
.dashboard-priority-grid, .dashboard-insight-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 12px; margin-bottom: 12px; }
.dashboard-insight-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.dashboard-panel { overflow: hidden; border: 1px solid #dfe6eb; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(var(--ccs-navy-rgb),.05); }
.dashboard-panel > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px 9px; }
.dashboard-panel > header h3, .dashboard-panel > header p { margin: 0; }
.dashboard-panel > header h3 { color: #30485a; font-size: .82rem; }
.dashboard-panel > header p, .dashboard-panel > header > span { margin-top: 3px; color: #84919c; font-size: .59rem; }
.dashboard-panel-link, .dashboard-attention-item button, .dashboard-funnel-detail button { min-width: 0; padding: 7px 9px; color: var(--ccs-navy); border: 1px solid #d7e0e6; border-radius: 8px; background: #fff; box-shadow: none; font-size: .59rem; }
.dashboard-panel-link:hover, .dashboard-attention-item button:hover, .dashboard-funnel-detail button:hover { color: #fff; background: var(--ccs-navy); transform: none; }
.dashboard-attention-list, .dashboard-agenda-list, .dashboard-activity-list { display: grid; padding: 0 9px 9px; }
.dashboard-attention-item { display: grid; min-height: 54px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid #e7ecef; }
.dashboard-attention-item:first-child, .dashboard-agenda-list > article:first-child, .dashboard-activity-list > article:first-child { border-top: 0; }
.dashboard-attention-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ccs-orange); }
.dashboard-attention-item.urgent .dashboard-attention-dot { background: #c95761; }
.dashboard-attention-item strong, .dashboard-attention-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-attention-item strong { color: #334b5d; font-size: .66rem; }
.dashboard-attention-item small { margin-top: 3px; color: #7e8e9b; font-size: .58rem; }
.dashboard-inactivity-panel { margin-bottom: 12px; }
.dashboard-inactivity-list { display: grid; padding: 0 9px 9px; }
.dashboard-inactivity-item { display: grid; min-height: 54px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid #e7ecef; }
.dashboard-inactivity-item:first-child { border-top: 0; }
.dashboard-inactivity-item > div { min-width: 0; }
.dashboard-inactivity-item > div strong, .dashboard-inactivity-item > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-inactivity-item > div strong { color: #334b5d; font-size: .66rem; }
.dashboard-inactivity-item > div small { margin-top: 3px; color: #7e8e9b; font-size: .58rem; }
.dashboard-inactivity-item > button { min-width: 0; padding: 7px 9px; color: var(--ccs-navy); border: 1px solid #d7e0e6; border-radius: 8px; background: #fff; box-shadow: none; font-size: .59rem; }
.dashboard-inactivity-item > button:hover { color: #fff; background: var(--ccs-navy); transform: none; }
.dashboard-agenda-list > article { display: grid; min-height: 54px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid #e7ecef; }
.dashboard-agenda-list > article > span { width: 7px; height: 7px; border-radius: 50%; background: var(--ccs-orange); }
.dashboard-agenda-list strong, .dashboard-agenda-list small { display: block; }
.dashboard-agenda-list strong { color: #344c5e; font-size: .65rem; }
.dashboard-agenda-list small { margin-top: 3px; color: #82909c; font-size: .58rem; }
.dashboard-empty-state { display: grid; min-height: 80px; padding: 16px; place-content: center; text-align: center; }
.dashboard-empty-state strong { color: #526777; font-size: .68rem; }
.dashboard-empty-state span { margin-top: 4px; color: #8a969f; font-size: .59rem; }
.dashboard-funnel-panel { margin-bottom: 12px; }
.dashboard-funnel-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 0 13px 13px; }
.dashboard-funnel-summary button { display: block; min-width: 0; min-height: 82px; padding: 10px; color: #344b5d; border: 0; border-radius: 10px; background: #f5f7f9; box-shadow: none; text-align: left; }
.dashboard-funnel-summary button:hover { color: #344b5d; background: #eef2f5; transform: none; }
.dashboard-funnel-summary button[aria-pressed="true"] { color: var(--ccs-navy); background: rgba(var(--ccs-orange-rgb),.13); box-shadow: inset 0 -3px var(--ccs-orange); }
.dashboard-funnel-summary small, .dashboard-funnel-summary strong, .dashboard-funnel-summary span { display: block; margin: 0; }
.dashboard-funnel-summary small { color: #81909c; font-size: .56rem; }
.dashboard-funnel-summary strong { min-height: 29px; margin-top: 3px; font-size: .65rem; line-height: 1.25; }
.dashboard-funnel-summary span { margin-top: 7px; color: #7a8995; font-size: .56rem; }
.dashboard-funnel-detail { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #e3e8ec; background: #f7f9fa; }
.dashboard-funnel-detail strong, .dashboard-funnel-detail span { display: block; }
.dashboard-funnel-detail strong { color: #334b5d; font-size: .65rem; }
.dashboard-funnel-detail span { margin-top: 3px; color: #7d8c98; font-size: .58rem; }
.dashboard-finance-body { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 16px; padding: 4px 15px 15px; }
.dashboard-finance-highlight { padding: 13px; border-radius: 10px; background: #e9f1f8; }
.dashboard-finance-highlight small, .dashboard-finance-highlight strong, .dashboard-finance-highlight span { display: block; }
.dashboard-finance-highlight small, .dashboard-finance-highlight span { color: #768794; font-size: .58rem; }
.dashboard-finance-highlight strong { margin: 5px 0; color: var(--ccs-navy); font-size: 1.12rem; }
.dashboard-finance-bars { display: grid; gap: 9px; }
.dashboard-finance-bars p { display: flex; justify-content: space-between; margin: 0 0 4px; color: #758491; font-size: .58rem; }
.dashboard-finance-bars p strong { color: #4d6273; }
.dashboard-finance-bars > div > div { height: 7px; overflow: hidden; border-radius: 999px; background: #e5ebef; }
.dashboard-finance-bars i { display: block; height: 100%; border-radius: inherit; background: var(--ccs-navy); }
.dashboard-finance-bars i.orange { background: var(--ccs-orange); }
.dashboard-finance-bars i.green { background: #248563; }
.dashboard-activity-list > article { display: grid; min-height: 52px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 4px; border-top: 1px solid #e7ecef; }
.dashboard-activity-list > article > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--ccs-navy); background: #e9f1f8; font-size: .7rem; font-weight: 900; }
.dashboard-activity-list strong, .dashboard-activity-list small { display: block; }
.dashboard-activity-list strong { color: #344c5e; font-size: .62rem; }
.dashboard-activity-list small, .dashboard-activity-list time { color: #82909c; font-size: .56rem; }
@media (max-width: 1050px) {
  .dashboard-home-heading { grid-template-columns: 1fr; align-items: start; }
  .dashboard-home-heading .dashboard-shortcuts-list, .dashboard-home-heading .dashboard-shortcuts-heading { justify-content: flex-start; }
  .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-priority-grid, .dashboard-insight-grid { grid-template-columns: 1fr; }
  .dashboard-funnel-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .dashboard-home-heading { gap: 13px; }
  .dashboard-home-heading .dashboard-shortcuts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-home-heading .dashboard-shortcuts-list > button { width: 100%; }
  .dashboard-kpi-grid { grid-template-columns: 1fr; }
  .dashboard-kpi-card { min-height: 94px; }
  .dashboard-attention-item { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-attention-item button { grid-column: 2; justify-self: start; }
  .dashboard-inactivity-item { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-inactivity-item > button { grid-column: 1 / -1; justify-self: start; }
  .dashboard-funnel-summary { grid-template-columns: 1fr; }
  .dashboard-funnel-summary button { min-height: 70px; }
  .dashboard-funnel-detail { align-items: flex-start; flex-direction: column; }
  .dashboard-finance-body { grid-template-columns: 1fr; }
}
.shortcuts-dialog { width: min(620px, 100%); overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 30px 90px rgba(var(--ccs-navy-rgb),.3); animation: modal-pop .2s ease-out; }
.shortcuts-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #e0e6ea; }
.shortcuts-dialog h2, .shortcuts-dialog header p { margin: 0; }
.shortcuts-dialog h2 { color: #2d4354; font-size: 1.18rem; }
.shortcuts-dialog header p:last-child { margin-top: 5px; color: #7e8c97; font-size: .72rem; }
.shortcuts-dialog form { padding: 20px 24px 22px; }
.shortcuts-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.shortcuts-options label { display: grid; grid-template-columns: 18px 30px 1fr; align-items: center; gap: 9px; padding: 11px; border: 1px solid #dfe6ea; border-radius: 10px; color: #536676; background: #fafbfc; cursor: pointer; }
.shortcuts-options label:has(input:checked) { border-color: rgba(var(--ccs-orange-rgb),.75); background: rgba(var(--ccs-orange-rgb),.08); }
.shortcuts-options label:has(input:disabled) { opacity: .48; cursor: not-allowed; }
.shortcuts-options label > span:nth-of-type(1) { display: grid; width: 29px; height: 29px; place-items: center; color: var(--ccs-navy); border-radius: 8px; background: rgba(var(--ccs-orange-rgb),.19); font-size: .72rem; font-weight: 900; }
.shortcuts-options label > span:nth-of-type(1) img { width: 17px; height: 17px; opacity: .82; }
.shortcuts-options strong, .shortcuts-options small { display: block; }
.shortcuts-options strong { color: #354e60; font-size: .7rem; }
.shortcuts-options small { margin-top: 2px; color: #87949e; font-size: .59rem; }
.shortcuts-dialog footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.shortcuts-dialog footer > span { margin-right: auto; color: #72818d; font-size: .65rem; font-weight: 750; }

@media (max-width: 650px) {
  .dashboard-topbar { height: 58px; padding: 0 10px; }
  .topbar-brand p { display: none; }
  .topbar-brand .brand-mark { width: 35px; height: 35px; }
  .topbar-brand { gap: 7px; }
  .quick-create-menu { margin-left: 0; }
  .quick-create-menu > summary { min-width: 70px; height: 30px; padding: 0 9px; gap: 5px; }
  .quick-create-menu > summary::before { font-size: .9rem; }
  .quick-create-menu > summary::after { font-size: .64rem; }
  .quick-create-popover { position: fixed; top: 64px; right: 8px; left: 8px; width: auto; grid-template-columns: 1fr 1fr; }
  .quick-create-popover::before { left: 145px; }
  .quick-create-popover > div { grid-column: 1 / -1; }
  .header-current-date { min-width: 76px; padding: 7px 8px; font-size: .64rem; }
  .profile-summary-copy { display: none; }
  .dashboard-topbar .profile-menu > summary { min-width: 42px; padding: 4px 5px; }
  .dashboard-topbar .profile-dropdown { position: fixed; inset: 64px 8px auto auto; width: min(285px, calc(100vw - 16px)); }
  .dashboard-shell { padding-top: 58px; padding-left: 0; }
  .dashboard-shortcuts-list { grid-template-columns: 1fr 1fr; }
  .shortcuts-options { grid-template-columns: 1fr; }
  .shortcuts-dialog form { padding: 17px; }
  .shortcuts-dialog footer { align-items: stretch; flex-direction: column; }
  .shortcuts-dialog footer > span { margin: 0 0 4px; text-align: center; }
  .dashboard-header { inset: auto 0 0; width: 100%; height: 68px; }
  .dashboard-header-inner { min-height: 68px; padding: 4px 6px; }
  .dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary { min-width: 61px; min-height: 58px; }
  .nav-dropdown { inset: auto 8px 73px 8px; width: auto; }
}

@media (max-width: 650px) {
  .dashboard-shell { padding: 0 0 78px; }
  .dashboard-header { position: fixed; inset: auto 0 0; width: 100%; height: 72px; padding: 0; }
  .dashboard-header-inner { min-height: 72px; padding: 5px 8px; flex-wrap: nowrap; }
  .dashboard-nav { padding-top: 0; }
  .dashboard-nav > .nav-home, .dashboard-nav > .side-nav-button, .nav-menu > summary, .profile-menu > summary { min-width: 67px; min-height: 60px; padding: 4px 3px; white-space: normal; }
  .nav-dropdown, .profile-dropdown { position: fixed; inset: auto 10px 77px 10px; width: auto; }
}

/* iPhone: experiencia táctil de una columna sin alterar iPad ni escritorio. */
@media (max-width: 480px) {
  html,body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }
  button,a,summary,label { -webkit-tap-highlight-color: transparent; }
  input:not([type="checkbox"]):not([type="radio"]),select,textarea { max-width: 100%; min-width: 0; font-size: 16px !important; }
  input[type="checkbox"],input[type="radio"] { flex: 0 0 auto; width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; }
  button,.secondary-button,.danger-outline-button { min-height: 44px; }

  .dashboard-topbar { height: 56px; padding: 0 8px; gap: 6px; }
  .topbar-brand { min-width: 0; gap: 6px; }
  .topbar-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .topbar-brand h1 { font-size: .86rem; }
  .topbar-brand p,.header-current-date { display: none; }
  .quick-create-menu { flex: none; }
  .quick-create-menu > summary { min-width: 54px; height: 32px; padding: 0 8px; gap: 4px; }
  .quick-create-menu > summary::after { font-size: .62rem; }
  .quick-create-popover { top: 60px; right: 8px; left: 8px; max-height: calc(100dvh - 142px); overflow-y: auto; grid-template-columns: 1fr; }
  .quick-create-popover > div { grid-column: 1; }
  .topbar-actions { flex: none; gap: 4px; }
  .notification-button { width: 34px; height: 34px; border-radius: 9px; }
  .dashboard-topbar .profile-menu > summary { width: 36px; min-width: 36px; min-height: 38px; padding: 2px; }
  .dashboard-topbar .profile-menu > summary > span:last-child { display: none; }
  .dashboard-topbar .profile-menu .avatar-placeholder { width: 29px; height: 29px; }
  .notification-popover { inset: 60px 8px auto 8px; width: auto; max-height: calc(100dvh - 140px); }
  .notification-list { max-height: calc(100dvh - 225px); }

  .dashboard-shell { padding: 56px 0 calc(78px + env(safe-area-inset-bottom)); }
  .dashboard-content { width: 100%; padding: 16px 12px 30px; }
  .dashboard-content > section,.dashboard-content > div { min-width: 0; }
  .dashboard-header { height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.98); box-shadow: 0 -8px 24px rgba(12,39,64,.1); }
  .dashboard-header-inner { min-height: 66px; height: 66px; padding: 3px 5px; overflow: hidden; }
  .dashboard-nav { width: 100%; padding: 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .dashboard-nav::-webkit-scrollbar { display: none; }
  .dashboard-nav > .nav-home,.dashboard-nav > .side-nav-button,.nav-menu > summary { min-width: 62px; min-height: 58px; padding: 4px 3px; scroll-snap-align: start; }
  .dashboard-nav > .nav-home small,.dashboard-nav > .side-nav-button small,.nav-menu > summary small { font-size: .52rem; line-height: 1.05; }
  .side-nav-icon { width: 23px; height: 23px; }
  .nav-dropdown { inset: auto 8px calc(72px + env(safe-area-inset-bottom)) 8px; max-height: 60dvh; overflow-y: auto; }

  .dashboard-welcome,.projects-panel-header,.general-projects-panel-header { gap: 12px; }
  .dashboard-welcome h2,.dashboard-home-heading h2 { font-size: 1.32rem; }
  .dashboard-welcome p,.dashboard-home-heading > div > p:last-child { font-size: .72rem; line-height: 1.45; }
  .dashboard-main-actions,.projects-panel-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .dashboard-main-actions button,.projects-panel-actions button { width: 100%; }
  .dashboard-home-heading .dashboard-shortcuts-list { grid-template-columns: 1fr 1fr; gap: 7px; }
  .dashboard-home-heading .dashboard-shortcuts-list > button { min-width: 0; padding: 7px; }
  .dashboard-kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dashboard-kpi-card { min-height: 88px; padding: 12px; }
  .dashboard-kpi-card strong { font-size: 1.05rem; }
  .dashboard-panel > header { min-height: 52px; padding: 11px 12px 8px; }
  .dashboard-attention-item,.dashboard-inactivity-item { gap: 8px; }
  .dashboard-funnel-summary { grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 10px 10px; }
  .dashboard-funnel-summary button { min-height: 74px; }

  .projects-panel { margin-top: 16px; border-radius: 12px; }
  .projects-panel-header { padding: 15px 13px; }
  .kanban-board,.te1-project-board,.general-project-board { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc(100vw - 42px); gap: 11px; padding: 12px; scroll-snap-type: x mandatory; }
  #projects-card-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc(100vw - 42px); gap: 11px; padding: 12px; overflow-x: auto; scroll-padding-inline: 12px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .kanban-column,.te1-column,.general-kanban-column { scroll-snap-align: center; }
  #projects-card-grid > .kanban-column { width: 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .kanban-column-header { min-height: 82px; padding: 12px; }
  .kanban-card { padding: 13px; }

  .catalog-table,.client-table,.saved-quotes,.projects-table,.admin-table,.admin-suggestions-table,.pv-modules-table { margin-right: -12px; margin-left: -12px; overflow-x: auto; border-right: 0; border-left: 0; border-radius: 0; -webkit-overflow-scrolling: touch; }
  .catalog-row,.client-row,.quotes-row,.projects-table-header,.crm-table-row,.admin-row,.admin-suggestion-row { scroll-snap-align: start; }

  .modal-backdrop,.drawer-backdrop,.report-module-picker-backdrop,.file-library-dialog-backdrop { padding: 0; place-items: stretch; }
  .project-modal,.settings-modal,.report-modal,.te4-checklist-dialog,.image-report-dialog,.suggestion-modal,.suggestion-detail-modal,.shortcuts-dialog,.pv-module-dialog,.report-module-picker-dialog,.file-library-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .catalog-drawer,.general-project-drawer,.te1-project-drawer,.calendar-event-drawer { width: 100vw !important; max-width: none; border-radius: 0; }
  .modal-header,.catalog-drawer > header,.report-module-picker-dialog > header { position: sticky; z-index: 8; top: 0; padding: 14px 14px 12px; align-items: flex-start; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .modal-header h2,.catalog-drawer h2 { font-size: 1.08rem; }
  .modal-header p { max-width: 285px; font-size: .68rem; line-height: 1.4; }
  .icon-button { flex: none; width: 42px; min-width: 42px; height: 42px; }
  .settings-form,.report-form,.catalog-drawer form { padding: 16px 14px calc(24px + env(safe-area-inset-bottom)); gap: 14px; }
  .form-grid,.pv-module-form-grid,.quote-info-grid,.general-project-information { grid-template-columns: 1fr; }
  .full-width,.pv-module-form-grid .full-width { grid-column: 1; }
  .form-actions { position: sticky; z-index: 7; bottom: 0; margin: 12px -14px calc(-24px - env(safe-area-inset-bottom)); padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #dfe6ec; backdrop-filter: blur(12px); }
  .form-actions button { width: 100%; }
  .profile-settings-tabs,.project-tabs,.general-project-tabs,.admin-tabs { position: sticky; z-index: 7; top: 70px; padding: 0 8px; overflow-x: auto; background: #fff; scrollbar-width: none; }
  .profile-settings-tabs::-webkit-scrollbar,.project-tabs::-webkit-scrollbar,.general-project-tabs::-webkit-scrollbar { display: none; }
  .profile-settings-tabs button,.project-tab,.general-project-tabs button { flex: none; min-height: 44px; padding: 10px 12px; white-space: nowrap; }
  .profile-personalization-panel,.profile-integrations-panel { padding: 15px 14px calc(24px + env(safe-area-inset-bottom)); }
  .report-cover-settings-form { grid-template-columns: 1fr; }
  .report-cover-preview-wrap { grid-row: 1; }
  .report-cover-preview { min-height: 390px; }
  .report-cover-controls { grid-template-columns: 1fr; }
  .report-cover-controls > * { grid-column: 1 / -1; }

  .project-modal .modal-body,.general-project-tab-panel,.client-portal-body,.suggestion-detail-body { padding: 15px 14px; }
  .project-tabs { top: 70px; }
  .technical-project-panel { padding: 15px 12px 90px; }
  .technical-equipment-grid,.technical-protection-grid,.technical-equipment-summary { grid-template-columns: 1fr; }
  .technical-form-actions { position: sticky; z-index: 4; bottom: 0; margin: 0 -12px -90px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(20,48,75,.08); }
  .technical-form-actions span { display: none; }
  .technical-form-actions button { width: 100%; }
  .project-tab-panel.project-tab-swipe-tracking { transition: none; will-change: transform,opacity; }
  .project-tab-panel.project-tab-swipe-reset { transition: transform .16s ease-out,opacity .16s ease-out; }
  .project-tab-panel.project-tab-swipe-enter { animation: project-tab-swipe-in .18s ease-out; }
  .modal-document-row { padding: 11px 0; }
  .modal-document-actions { display: grid; grid-template-columns: repeat(4,44px); gap: 7px; padding-top: 10px; }
  .te4-report-edit { grid-column: 1 / -1; width: 100%; }
  .te4-document-icon { width: 44px; min-width: 44px; height: 44px; }
  .finance-metrics { grid-template-columns: 1fr; }
  .finance-payment-form { padding: 12px; }
  .payment-record { grid-template-columns: 1fr; }

  .te4-checklist-form { padding: 0 12px calc(20px + env(safe-area-inset-bottom)); }
  .te4-checklist-intro { margin-top: 12px; padding: 12px; }
  .te4-checklist-section > summary { padding: 13px 12px; }
  .te4-checklist-row { padding: 12px; }
  .te4-checklist-choices { display: grid; width: 100%; grid-template-columns: repeat(3,1fr); }
  .te4-checklist-choices label { min-height: 42px; justify-content: center; }
  .te4-checklist-actions { margin-right: -12px; margin-left: -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .te4-checklist-actions,.te4-checklist-actions > div { display: grid; grid-template-columns: 1fr; }

  .image-report-dialog { display: flex; height: 100dvh; max-height: 100dvh; flex-direction: column; overflow: hidden; background: #f6f9fa; }
  .image-report-dialog > .modal-header { flex: none; padding: 18px 16px 14px; border-bottom: 1px solid #e3e9ee; }
  .image-report-dialog > .modal-header .eyebrow { color: #d4830e; font-size: .56rem; letter-spacing: .08em; }
  .image-report-dialog > .modal-header h2 { max-width: 255px; margin-top: 4px; color: #132f4c; font-size: 1.28rem; line-height: 1.12; }
  .image-report-dialog > .modal-header p:last-child { margin-top: 6px; color: #718094; }
  .image-report-form { display: flex; min-height: 0; padding: 12px 12px 0; flex: 1; flex-direction: column; overflow-y: auto; }
  .image-report-template-section { padding: 11px; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px rgba(21,55,84,.04); }
  .image-report-template-section > .image-report-section-heading { display: none; }
  .image-report-mobile-template-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .image-report-mobile-template-heading strong,.image-report-mobile-template-heading small { display: block; }
  .image-report-mobile-template-heading strong { color: #203a55; font-size: .82rem; }
  .image-report-mobile-template-heading small { margin-top: 2px; color: #8793a1; font-size: .58rem; }
  .image-report-mobile-template-heading > span { flex: none; padding: 6px 9px; border-radius: 999px; color: #76500d; background: #fff1d2; font-size: .59rem; font-weight: 800; }
  .image-report-template-options { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
  .image-report-template-card > span { display: grid; min-height: 38px; padding: 8px; place-items: center; border-radius: 9px; }
  .image-report-template-card > span > * { display: none; }
  .image-report-template-card > span::after { color: #5f6f80; content: attr(data-mobile-label); font-size: .65rem; font-weight: 800; }
  .image-report-template-card input:checked + span { border-color: #e8a02c; background: #fff8ea; box-shadow: inset 0 0 0 1px rgba(232,160,44,.2); }
  .image-report-template-card input:checked + span::before { display: none; }
  .image-report-template-card input:checked + span::after { color: #153b62; }
  .image-report-project-summary { grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
  .image-report-project-summary div { padding: 9px 10px; border-radius: 10px; background: #fff; }
  .image-report-project-summary div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .image-report-project-summary small { font-size: .52rem; }
  .image-report-project-summary strong { font-size: .68rem; }
  .image-report-workspace { display: block; min-height: 0; padding-bottom: 76px; }
  .image-report-section { margin-bottom: 8px; border-radius: 12px; box-shadow: 0 2px 8px rgba(21,55,84,.035); }
  .image-report-section > summary { min-height: 54px; padding: 10px 11px; }
  .image-report-section > summary span { flex: 1; }
  .image-report-section > summary small { font-size: .52rem; }
  .image-report-section > summary strong { font-size: .68rem; line-height: 1.28; }
  .image-report-section > summary em { max-width: 96px; padding: 5px 7px; overflow: hidden; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
  .image-report-section > summary::after { font-size: .72rem; }
  .image-report-section-body { grid-template-columns: 1fr; gap: 10px; padding: 11px; background: #fff; }
  .image-report-description { grid-column: 1; grid-row: auto; }
  .image-report-section-body > label { font-size: .61rem; }
  .image-report-section-body select { min-height: 42px; padding: 7px 9px; }
  .image-report-section-body textarea { min-height: 74px; padding: 8px 9px; font-size: 14px !important; line-height: 1.35; resize: none; touch-action: manipulation; }
  .image-report-upload { min-height: 42px; padding: 8px 10px; align-items: center; flex-direction: row; border-style: solid; }
  .image-report-upload span small { display: none; }
  .image-report-upload em { width: auto; min-height: 32px; padding: 8px 10px; text-align: center; }
  .image-report-file-list { display: grid; grid-template-columns: 1fr 1fr; }
  .image-report-file-list > .image-report-file-item { width: 100%; min-width: 0; max-width: none; }
  .image-report-file-list .image-report-file-item button { flex: 0 0 26px; width: 26px; min-width: 26px; height: 26px; min-height: 26px; margin-left: auto; border-radius: 7px; background: #fff4f4; }
  .image-report-file-list .image-report-file-item button .animated-lucide { width: 13px; height: 13px; }
  .image-report-file-list > small { grid-column: 1 / -1; }
  .image-report-preview { display: none; }
  .image-report-dialog.mobile-preview-open .image-report-preview { position: fixed; z-index: 520; inset: 0; display: flex; padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); flex-direction: column; overflow: hidden; border: 0; border-radius: 0; background: #eef2f5; }
  .image-report-dialog.mobile-preview-open .image-report-preview-heading .icon-button { display: grid; }
  .image-report-preview-pages { display: grid; min-height: 0; max-width: 100%; max-height: none; padding: 0 2px 8px 0; flex: 1; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y proximity; }
  .image-report-preview-page { min-width: 0; width: 100%; scroll-snap-align: start; }
  .image-report-actions { position: fixed; z-index: 500; right: 0; bottom: 0; left: 0; display: block; margin: 0; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(18,48,76,.1); }
  .image-report-actions > #cancel-image-report { display: none; }
  .image-report-actions > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .image-report-actions button { min-width: 0; min-height: 36px; height: 36px; padding: 5px 4px; overflow: hidden; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
  .image-report-actions #generate-image-report { grid-column: auto; }

  .file-library-dialog { display: grid; height: auto; min-height: 100dvh; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); place-content: center; }
  #file-library-dialog-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  #file-library-dialog-actions button { width: 100%; }
  .app-toast-stack { top: 8px; right: 8px; width: calc(100vw - 16px); }
  .app-toast { grid-template-columns: 32px minmax(0,1fr) 26px; padding: 12px; }

  .calendar-workspace { grid-template-columns: 1fr; }
  .calendar-sidebar { padding: 12px; }
  .fc .fc-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
  .calendar-event-drawer footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.file-library-role {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #fff1d9;
  color: #9a4d00;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: middle;
}

/* Documentación TE-4 y Archivos · implementación de los frames Documentos TE-4 */
.project-modal-subtitle { margin: 2px 0 0; color: #6e8199; font-size: .72rem; }
.project-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.project-tab .animated-lucide { width: 17px; height: 17px; }
#archive-project { display: inline-flex; align-items: center; gap: 7px; }
#archive-project .animated-lucide { width: 17px; height: 17px; }
#documents-panel { background: #f7fafc; }
.modal-documents-list { display: grid; gap: 16px; margin: 0; overflow: visible; border: 0; border-radius: 0; }
.te4-doc-hero,.file-library-hero { display: grid; grid-template-columns: 58px minmax(280px,1fr) minmax(390px,.85fr); align-items: center; gap: 18px; padding: 15px 22px; border: 1px solid #dbe7f2; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(32,65,98,.035); }
.te4-doc-hero-icon,.file-library-hero-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; color: #0f8b62; background: #e6f7f1; }
.te4-doc-hero-icon .animated-lucide,.file-library-hero-icon .animated-lucide { width: 27px; height: 27px; }
.te4-doc-hero h3,.file-library-hero h2 { margin: 0 0 3px; color: #0c2350; font-size: 1.15rem; }
.te4-doc-hero p,.file-library-hero p { margin: 0; color: #647895; font-size: .78rem; }
.te4-doc-progress { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 7px 14px; }
.te4-doc-progress strong { grid-column: 1 / -1; color: #10284d; font-size: .78rem; }
.te4-doc-progress > div,.file-library-usage > div { height: 9px; overflow: hidden; border-radius: 999px; background: #e8eef4; }
.te4-doc-progress > div span,.file-library-usage > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#129c70,#19b58a); }
.te4-doc-progress b { color: #50698f; font-size: .75rem; }
.te4-doc-card { overflow: visible; border: 1px solid #dbe7f2; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(32,65,98,.025); }
.te4-doc-card > header { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 62px; padding: 10px 18px; border-bottom: 1px solid #e3ebf3; }
.te4-card-icon,.file-library-section-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #154db8; background: #eaf2ff; }
.te4-card-icon .animated-lucide,.file-library-section-icon .animated-lucide { width: 20px; height: 20px; }
.te4-doc-card h3 { margin: 0 0 2px; color: #10284d; font-size: .92rem; }
.te4-doc-card p { margin: 0; color: #657997; font-size: .72rem; }
.te4-doc-card > header > b { min-width: 58px; padding: 7px 12px; border: 1px solid #cfddf0; border-radius: 9px; color: #154aa8; background: #f0f5ff; font-size: .7rem; text-align: center; }
.te4-doc-row { position: relative; display: grid; grid-template-columns: 30px minmax(0,1.15fr) minmax(0,1.2fr) 90px 105px 312px; align-items: center; gap: 10px; min-height: 43px; padding: 5px 16px; border-bottom: 1px solid #e8eef4; color: #173254; font-size: .72rem; }
.te4-doc-row:last-child { border-bottom: 0; }
.te4-doc-row > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te4-doc-status { display: grid; width: 21px; height: 21px; place-items: center; border: 1.5px solid #7588a6; border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 900; }
.te4-doc-status.ready { border-color: #13a36f; background: #13a36f; }
.te4-doc-status.progress { border-color: #efa510; background: #efa510; }
.te4-doc-file,.te4-doc-origin { display: flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; color: #7183a1; text-overflow: ellipsis; white-space: nowrap; }
.te4-doc-file .animated-lucide,.te4-doc-origin .animated-lucide { width: 16px; height: 16px; flex: 0 0 16px; }
.te4-doc-origin { color: #587096; }
.te4-doc-origin .animated-lucide { color: #0f9d58; }
.te4-doc-origin .google-drive-mark { width: 17px; height: 17px; }
.te4-doc-row time { color: #6d80a0; white-space: nowrap; }
.te4-report-edit,.te4-report-view { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px; border: 1px solid #b9dcca; border-radius: 8px; color: #0c7653; background: #f2fbf7; font-size: .69rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.te4-report-view { border-color: #d0dcea; color: #173a70; background: #fff; }
.te4-report-edit:hover,.te4-report-edit:focus-visible { border-color: #85c9ae; color: #086246; background: #e9f8f1; }
.te4-report-view:hover,.te4-report-view:focus-visible { border-color: #aabed5; color: #102f5d; background: #f4f8fc; }
.te4-report-edit .animated-lucide,.te4-report-view .animated-lucide { width: 15px; height: 15px; }
.te4-report-edit input { display: none; }
.te4-doc-row-action { display: flex; width: 100%; justify-content: center; }
.te4-doc-row-action > .te4-report-edit,.te4-doc-row-action > .te4-report-view { width: 100%; }
.te4-doc-actions.file-library-actions { display: grid; grid-template-columns: minmax(0,1fr) repeat(6,28px); width: 100%; min-width: 0; align-items: center; gap: 4px; }
.te4-regeneration-placeholder { width:28px; height:28px; }
.te4-doc-actions > button[data-te4-regenerate] { color:#0c7653; }
.te4-primary-slot > button:disabled { opacity:.45; cursor:wait; }
.te4-primary-slot > button > span { margin:0; }
.te4-primary-slot { display: flex; min-width: 0; justify-content: center; align-items: center; }
.te4-doc-actions > button,.te4-doc-actions > label { display: inline-grid; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 5px; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #183b61; background: transparent; box-shadow: none; cursor: pointer; }
.te4-doc-actions > button:hover:not(:disabled),.te4-doc-actions > label:hover { border-color: #d3dfeb; background: #f4f8fb; }
.te4-doc-actions > button:disabled { cursor: not-allowed; opacity: .4; }
.te4-doc-actions > button[data-te4-fill] { color: #087857; }
.te4-doc-actions > button[data-library-replace],.te4-doc-actions > label:has([data-te4-upload]) { color: #176b87; }
.te4-doc-actions > button[data-library-remove] { color: #b23b48; }
.te4-doc-actions .animated-lucide { width: 15px; height: 15px; }
.te4-doc-actions > button,.te4-doc-actions > label { flex-shrink: 0; margin: 0; box-sizing: border-box; }
.te4-doc-actions [data-animated-icon] { display: inline-flex; align-items: center; justify-content: center; }
.te4-doc-actions input { display: none; }
.te4-primary-slot > button,.te4-primary-slot > label { display: inline-flex; width: 100%; min-width: 0; min-height: 28px; margin: 0; padding: 4px 5px; align-items: center; justify-content: center; gap: 5px; border: 1px solid #b9dcca; border-radius: 8px; color: #0c7653; background: #f2fbf7; box-shadow: none; font-size: .64rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.te4-primary-slot > button:hover,.te4-primary-slot > label:hover { border-color: #85c9ae; color: #086246; background: #e9f8f1; }
.te4-document-menu { position: relative; }
.te4-document-menu { justify-self: center; }
.te4-document-menu > summary,.file-row-menu > summary { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 7px; color: #173a70; background: transparent; cursor: pointer; list-style: none; }
.te4-document-menu > summary::-webkit-details-marker,.file-row-menu > summary::-webkit-details-marker { display: none; }
.te4-document-menu > summary .animated-lucide,.file-row-menu > summary .animated-lucide { width: 16px; height: 16px; }
.te4-document-menu > div,.file-row-menu > div { position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; display: grid; width: 215px; padding: 6px; border: 1px solid #d7e2ec; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(16,40,77,.16); }
.te4-document-icon { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 7px; color: #294767; background: #fff; font-size: .68rem; text-align: left; cursor: pointer; }
.te4-document-icon:hover { background: #f1f6fb; }
.te4-document-icon .animated-lucide { width: 15px; height: 15px; }
.te4-document-icon input { display: none; }
.te4-doc-tip { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid #bceadf; border-radius: 10px; color: #166b5d; background: #eefbf8; }
.te4-doc-tip > .animated-lucide { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #d8f4ec; }
.te4-doc-tip p { margin: 0; font-size: .7rem; }
.te4-doc-tip button { min-height: 34px; padding: 6px 12px; border: 1px solid #bed4ef; border-radius: 8px; color: #1851b1; background: #fff; font-size: .68rem; font-weight: 800; cursor: pointer; }

/* Archivos */
#library-panel { background: #f7fafc; }
#library-panel.file-library-context { padding: 18px 22px 28px; }
#library-panel > .file-library-intro { display: none; }
.file-library-hero { grid-template-columns: 58px minmax(290px,1fr) minmax(215px,.6fr) minmax(180px,.42fr) auto; }
.file-library-usage { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 7px 10px; }
.file-library-usage strong { grid-column: 1 / -1; color: #10284d; font-size: .7rem; }
.file-library-usage small { color: #5e7395; font-size: .67rem; }
.file-library-search { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #ccd9e7; border-radius: 8px; background: #fff; }
.file-library-search .animated-lucide { width: 17px; height: 17px; color: #38577d; }
.file-library-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #173254; background: transparent; font: inherit; font-size: .72rem; }
.file-library-upload.primary { min-height: 40px; padding: 7px 17px; border-color: #078052; color: #fff; background: linear-gradient(135deg,#0b8f5b,#067447); box-shadow: 0 6px 16px rgba(8,121,77,.18); }
.file-library-workspace { display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: start; gap: 16px; margin-top: 16px; }
.file-library-workspace > main { min-width: 0; }
.file-library-section.enhanced { padding: 0; overflow: visible; border-radius: 12px; }
.file-library-section.enhanced > header { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; min-height: 62px; margin: 0; padding: 9px 14px; border-bottom: 1px solid #e2eaf2; }
.file-library-section.enhanced h3 { color: #10284d; font-size: .85rem; }
.file-library-section-count { justify-self: end; color: #496489; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.file-library-columns,.file-library-row { grid-template-columns: 34px minmax(230px,1.5fr) 72px 78px 145px 92px 168px; gap: 8px; }
.file-library-columns { min-height: 28px; padding: 0 14px; color: #7084a2; font-size: .52rem; font-weight: 900; letter-spacing: .09em; }
.file-library-row { min-height: 43px; padding: 5px 14px; }
.file-kind-icon { display: grid; width: 19px; height: 23px; place-items: center; border-radius: 3px; color: #fff; background: #768ba2; font-size: .42rem; font-weight: 900; }
.file-kind-icon.pdf { background: #ee3346; }
.file-kind-icon.word { background: #1976d2; }
.file-kind-icon.image { background: #13a36f; }
.file-library-row-main strong { font-size: .7rem; }
.file-library-row-main small { display: none; }
.file-library-cell,.file-library-origin { overflow: hidden; color: #637897; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.file-library-origin { display: flex; align-items: center; gap: 6px; }
.file-library-drive-logo,.file-library-origin .animated-lucide { width: 16px; height: 16px; flex: 0 0 16px; }
.file-library-origin .animated-lucide { color: #149566; }
.file-library-actions { width: 100%; justify-content: center; gap: 4px; }
.file-library-row .file-library-actions > button { width: 28px; min-width: 28px; min-height: 28px; padding: 5px; border: 1px solid transparent; background: transparent; box-shadow: none; }
.file-library-row .file-library-actions > button:hover:not(:disabled) { border-color: #d3dfeb; background: #f4f8fb; }
.file-library-row .file-library-actions > button[data-library-replace] { color: #176b87; }
.file-library-row .file-library-actions > button[data-library-remove] { color: #b23b48; }
.file-library-dropzone { display: grid; min-height: 130px; margin: 12px; place-items: center; align-content: center; border: 1px dashed #bfcfe0; border-radius: 10px; color: #153a70; }
.file-library-dropzone > .animated-lucide { width: 27px; height: 27px; }
.file-library-dropzone strong { margin-top: 5px; font-size: .72rem; }
.file-library-dropzone p { margin: 3px 0 8px; }
.file-library-info-card { padding: 0 14px; border: 1px solid #d6ebe4; border-radius: 12px; background: linear-gradient(150deg,#f5fcfa,#f9fcff); }
.file-library-info-card section { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid #dfe9e8; }
.file-library-info-card section:last-child { border-bottom: 0; }
.file-library-info-card section > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #087b58; background: #dff4ed; }
.file-library-info-card .animated-lucide { width: 17px; height: 17px; }
.file-library-info-card h3,.file-library-info-card h4 { margin: 0 0 5px; color: #143050; font-size: .74rem; }
.file-library-info-card p { margin: 0; color: #60758e; font-size: .63rem; line-height: 1.55; }

@media (max-width: 900px) {
  .project-modal-subtitle { display: none; }
  .project-tab .animated-lucide { display: none; }
  .te4-doc-hero,.file-library-hero { grid-template-columns: 46px 1fr; padding: 13px; }
  .te4-doc-progress,.file-library-usage,.file-library-search,.file-library-upload.primary { grid-column: 1 / -1; }
  .te4-doc-row { grid-template-columns: 26px minmax(0,1fr) auto; min-height: 56px; padding: 7px 10px; }
  .te4-doc-file { grid-column: 2; font-size: .62rem; }
  .te4-doc-origin,.te4-doc-row time { display: none; }
  .te4-doc-actions.file-library-actions { grid-column: 3; grid-row: 1 / span 2; grid-template-columns: repeat(6,28px); width: 188px; }
  .te4-primary-slot { grid-column: 1 / -1; min-height: 28px; }
  .te4-doc-tip { grid-template-columns: 30px 1fr; }
  .te4-doc-tip button { grid-column: 1 / -1; }
  #library-panel.file-library-context { padding: 12px; }
  .file-library-workspace { grid-template-columns: 1fr; }
  .file-library-info-card { display: none; }
  .file-library-section.enhanced > header { grid-template-columns: 34px 1fr; }
  .file-library-section-count { grid-column: 2; justify-self: end; }
  .file-library-columns { display: none; }
  .file-library-row { grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; padding: 8px 10px; }
  .file-library-row-main small { display: block; margin-top: 3px; }
  .file-library-cell,.file-library-origin { display: none; }
  .file-library-actions { grid-column: 3; grid-row: 1; }
  .file-library-row .file-library-actions > button[data-library-link] { display: none; }
}
.technical-power-section { background: #fbfcfd; }
.technical-power-form { margin-bottom: 16px; }
.technical-power-actions { margin-top: -7px; }
.gda-project-form { display: grid; grid-template-columns: minmax(220px,340px) auto 1fr; align-items: end; gap: 10px; margin: 0 0 16px; padding: 13px 15px; border: 1px solid #dce5ec; border-radius: 12px; background: #f7f9fb; }
.gda-project-form label { display: grid; gap: 5px; color: #526577; font-size: .68rem; font-weight: 800; }
.gda-project-form input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cad6df; border-radius: 9px; color: #263f57; background: #fff; font: inherit; }
.gda-project-form button { min-height: 40px; padding: 8px 14px; }
.gda-project-form span { align-self: center; color: #27705a; font-size: .68rem; font-weight: 750; }

/* Información general · Figma 17:2. Keep field names and the live Leaflet map. */
#general-panel { padding: 30px 24px; background: #f7fafd; }
#general-panel .general-toolbar { margin-bottom: 26px; align-items: center; }
#general-panel .general-toolbar h3 { margin: 0 0 5px; color: #0b234c; font-size: clamp(21px,1.7vw,28px); line-height: 1.25; }
#general-panel .general-toolbar p { margin: 0; color: #6f83a3; font-size: 15px; font-weight: 400; line-height: 1.5; }
#edit-project { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px; border: 1px solid #008e69; border-radius: 10px; color: #fff; background: #008e69; box-shadow: 0 3px 8px #008e6914; font-size: 14px; white-space: nowrap; }
#edit-project:hover { background: #087c60; }
#edit-project .animated-lucide { width: 21px; height: 21px; }
#general-panel .project-general-layout { grid-template-columns: minmax(0,1.34fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
#project-detail-form,.project-general-layout > .project-location-card { min-width: 0; margin: 0; padding: 24px; border: 1px solid #dee8f2; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px #244b7810; }
#project-detail-form { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px; align-content: start; }
#project-detail-form > label { grid-column: span 2; min-width: 0; gap: 7px; color: #506688; font-size: 14px; line-height: 1.3; font-weight: 650; }
#project-detail-form > .general-half { grid-column: span 3; }
#project-detail-form > .full-width,#project-detail-form > header { grid-column: 1 / -1; }
#project-detail-form input:not([type="hidden"]),#project-detail-form select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #c9d8ea; border-radius: 8px; font-size: 15px; font-weight: 400; color: #2e4668; background: #fff; }
#project-detail-form input:disabled,#project-detail-form select:disabled { opacity: 1; color: #2e4668; -webkit-text-fill-color: #2e4668; background: #f7f9fb; }
#project-detail-form > button { grid-column: 1 / -1; }
.te4-general-card-heading { display: flex; gap: 18px; align-items: center; justify-content: flex-start; margin-bottom: 6px; }
.te4-general-card-heading h3,#general-panel .project-location-card h3 { margin: 0 0 4px; color: #0b234c; font-size: 20px; line-height: 1.3; }
.te4-general-card-heading p { margin: 0; color: #7183a0; font-size: 14px; line-height: 1.5; }
.general-card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: #e9f7f1; color: #0b8c67; }
.general-card-icon.location { background: #eaf3ff; color: #0963ca; }
.general-card-icon .animated-lucide { width: 26px; height: 26px; }
.general-input-icon { position: relative; display: flex; min-width: 0; align-items: center; }
.general-input-icon > [data-animated-icon],.general-input-icon > .general-currency { position: absolute; left: 15px; display: flex; color: #7086a4; pointer-events: none; }
.general-input-icon .animated-lucide { width: 20px; height: 20px; }
#project-detail-form .general-input-icon input { padding-left: 44px; }
#general-panel .project-location-card { display: flex; flex-direction: column; }
#general-panel .project-location-card > header { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: start; gap: 16px; margin-bottom: 22px; }
#general-panel .project-location-card header p { font-size: 12px; color: #7183a0; line-height: 1.55; }
#locate-project-address { display: inline-flex; align-items: center; justify-content: center; align-self: center; gap: 8px; min-width: 0; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #c8d9ed; border-radius: 9px; color: #124a94; background: #f8faff; box-shadow: none; font-size: 13px; white-space: nowrap; }
#locate-project-address .animated-lucide { width: 19px; height: 19px; }
#locate-project-address:disabled { opacity: .65; cursor: default; }
#general-panel #project-location-map { height: 365px; min-height: 300px; flex: 1; }
#general-panel .project-location-coordinates { grid-template-columns: 1fr 1.15fr 1.2fr; gap: 14px; margin-top: 24px; }
#general-panel .project-location-coordinates > span + span,#general-panel .general-location-notice { border-left: 1px solid #d6e1eb; padding-left: 18px; }
#general-panel .project-location-coordinates small { color: #587092; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; }
#general-panel .project-location-coordinates b { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
#general-panel .project-location-coordinates strong { color: #214d87; font-size: 15px; margin: 0; }
#general-panel .project-location-coordinates b .animated-lucide { width: 18px; height: 18px; color: #5798f3; }
.general-location-notice { display: flex; gap: 9px; align-items: start; }
.general-location-notice .animated-lucide { width: 16px; height: 16px; color: #8292a9; }
#general-panel .project-location-coordinates p { text-align: left; color: #6b7e9d; font-size: 12px; line-height: 1.5; }
#general-tab.active { color: #00698c; border-bottom-color: #0aa78c; box-shadow: inset 0 -3px #0aa78c; }
@media (min-width: 1101px) and (max-width: 1450px) {
  #general-panel .project-location-card > header { grid-template-columns: 44px minmax(0,1fr); gap: 10px; }
  #general-panel .project-location-card #locate-project-address { grid-column: 2; justify-self: start; }
  #general-panel .project-location-card .general-card-icon { width: 44px; height: 44px; }
  #general-panel .project-location-coordinates { grid-template-columns: 1fr 1fr; }
  #general-panel .general-location-notice { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
@media (max-width: 1100px) {
  #general-panel .project-general-layout { grid-template-columns: minmax(0,1fr); }
  #general-panel #project-location-map { flex: none; }
}
@media (max-width: 600px) {
  #general-panel { padding: 16px 10px; }
  #general-panel .general-toolbar { align-items: stretch; gap: 14px; }
  #general-panel .general-toolbar p { font-size: 13px; }
  #project-detail-form,.project-general-layout > .project-location-card { padding: 16px; }
  #project-detail-form { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #project-detail-form > label,#project-detail-form > .general-half { grid-column: 1; }
  .te4-general-card-heading { gap: 12px; }
  .te4-general-card-heading h3,#general-panel .project-location-card h3 { font-size: 17px; }
  .te4-general-card-heading p { font-size: 12px; }
  .general-card-icon { width: 42px; height: 42px; flex-basis: 42px; }
  #general-panel .project-location-card > header { grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
  #locate-project-address { grid-column: 1 / -1; width: 100%; }
  #general-panel .project-location-coordinates { grid-template-columns: 1fr 1fr; gap: 14px; }
  #general-panel .general-location-notice { grid-column: 1 / -1; border: 0; padding-left: 0; }
}
/* Información técnica — Documentos TE-4 / Figma 12:2. */
#technical-panel .custom-distribution-toggle { display:flex; align-items:center; gap:10px; margin-top:18px; padding:12px; border:1px solid #cde9dc; border-radius:9px; background:#effaf5; cursor:pointer; }
#technical-panel .custom-distribution-toggle input[type="checkbox"] { width:18px; height:18px; min-height:18px; flex:0 0 18px; accent-color:#008b64; }
.custom-distribution-toggle small { display:block; color:#627e8d; font-weight:400; margin-top:3px; }
#custom-mppt-list { display:grid; gap:14px; margin-top:18px; }
.custom-mppt-card { border:1px solid #dce6ef; border-radius:10px; overflow:hidden; }
.custom-mppt-card > header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:center; padding:12px 16px; background:#eef7f4; }
.custom-mppt-card h4 { margin:0; color:#116647; font-size:14px; }
.custom-mppt-card header span { font-size:12px; color:#557168; }
#technical-panel .custom-mppt-toggle { display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:10px; min-width:0; padding:4px 0; border:0; background:transparent; color:#116647; box-shadow:none; text-align:left; transform:none; }
#technical-panel .custom-mppt-toggle strong { font-size:14px; }
#technical-panel .custom-mppt-chevron { font-size:24px; transition:transform .15s; }
.custom-mppt-toggle[aria-expanded="true"] .custom-mppt-chevron { transform:rotate(90deg); }
#technical-panel .custom-mppt-copy { width:auto; min-width:0; padding:7px 10px; border:1px solid #c8ded5; border-radius:6px; background:white; color:#116647; font-size:12px; box-shadow:none; transform:none; }
#technical-panel .custom-mppt-copy:disabled { opacity:.45; cursor:not-allowed; }
.custom-mppt-card > div[hidden] { display:none; }
.custom-mppt-toggle:focus-visible { outline:2px solid #208361; outline-offset:3px; }
.custom-mppt-entry { display:grid; grid-template-columns:110px minmax(220px,2.3fr) repeat(5,minmax(90px,1fr)); align-items:end; gap:12px; padding:16px; border-top:1px solid #e4ebf2; }
.custom-mppt-entry > strong { align-self:center; font-size:13px; color:#224563; }
.custom-mppt-entry small { display:block; margin-top:5px; font-size:11px; color:#6b8392; font-weight:400; }
.custom-module-picker { min-width:0; align-self:start; }
.custom-module-results { max-height:240px; overflow-y:auto; overscroll-behavior:contain; margin-top:6px; padding:6px; border:1px solid #cbd9ea; border-radius:8px; background:#fff; box-shadow:0 4px 12px #173d6210; }
.custom-module-results > small { padding:5px; }
#technical-panel .custom-module-results button { display:flex; flex-direction:column; align-items:flex-start; gap:4px; width:100%; min-width:0; margin:0; padding:10px; border:0; border-radius:6px; text-align:left; white-space:normal; color:#204563; background:#fff; box-shadow:none; font-size:12px; }
#technical-panel .custom-module-results button:hover,#technical-panel .custom-module-results button:focus-visible { background:#eaf7f1; outline:2px solid #208361; outline-offset:-2px; transform:none; }
.custom-module-results button strong { overflow-wrap:anywhere; }
.custom-module-results button span { color:#61788b; font-size:11px; }
#technical-panel [data-custom-panels]:disabled { cursor:not-allowed; background:#edf1f5; }
#technical-panel .custom-mppt-entry label { grid-template-rows:34px 42px; }
#technical-panel .custom-mppt-entry input[readonly] { background:#f3f7fa; font-weight:700; }
@media (min-width:1200px) {
  #technical-panel.custom-distribution .string-configuration { grid-column:1/-1; grid-row:4; }
  #technical-panel.custom-distribution .technical-installation-section { grid-column:1/-1; grid-row:5; }
  #technical-panel.custom-distribution .technical-cabling-section { grid-row:6; }
  #technical-panel.custom-distribution .technical-installation-section .technical-protection-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:1450px) {
  .custom-mppt-entry { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .custom-mppt-entry > strong { grid-column:1; }
  .custom-mppt-entry > .custom-module-picker { grid-column:2/4; }
}
@media (max-width:600px) {
  .custom-mppt-entry { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .custom-mppt-entry > strong,.custom-mppt-entry > .custom-module-picker { grid-column:1/-1; }
}
#technical-panel { background:#f5f9fc; }
#technical-panel .technical-general-feeder { grid-column:1/-1; justify-self:start; margin:0; width:100%; max-width:850px; min-width:0; padding:20px; border:1px solid #dce5ed; border-radius:12px; background:#fff; box-sizing:border-box; container-type:inline-size; font-family:inherit; }
#technical-panel .technical-general-feeder header h3 { display:flex; align-items:center; gap:8px; margin:0 0 6px; color:#0f2d46; font-size:16px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
#technical-panel .technical-general-feeder .general-feeder-icon { display:flex; flex:0 0 18px; color:#1d8a63; }
#technical-panel .technical-general-feeder .general-feeder-icon svg { width:18px; height:18px; }
#technical-panel .technical-general-feeder header p { margin:0 0 20px; color:#62758a; font-size:12px; line-height:1.5; }
#technical-panel .technical-general-feeder .general-feeder-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
#technical-panel .technical-general-feeder .general-feeder-columns section { min-width:0; }
#technical-panel .technical-general-feeder .general-feeder-columns h4 { margin:0 0 12px; color:#137553; font-size:13px; font-weight:600; line-height:1.4; }
#technical-panel .technical-general-feeder .technical-protection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#technical-panel .technical-general-feeder label { display:flex; flex-direction:column; min-width:0; gap:6px; color:#354e67; font-size:12px; font-weight:500; line-height:1.4; }
#technical-panel .technical-general-feeder input,#technical-panel .technical-general-feeder select { width:100%; min-width:0; height:38px; min-height:38px; border:1px solid #cbd9e4; border-radius:6px; color:#102a43; font-family:inherit; font-weight:400; font-size:14px; padding:0 10px; box-sizing:border-box; background:#f7f9fc; }
#technical-panel .technical-general-feeder :is(input,select):focus-visible { border-color:#1d8a63; outline:2px solid #1d8a6330; outline-offset:2px; }
#technical-panel .technical-general-feeder :disabled { opacity:1; background:#fbfdff; -webkit-text-fill-color:#34547a; }
#technical-panel .technical-general-feeder [hidden] { display:none; }
#technical-panel .technical-general-feeder .general-feeder-result { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:18px; padding:12px; border-radius:8px; background:#eaf7f1; color:#245a45; font-size:12px; line-height:1.5; }
#technical-panel .technical-general-feeder [data-drop-result] { color:#126849; font-size:15px; font-weight:600; white-space:nowrap; }
#technical-panel .technical-general-feeder [data-drop-reference] { margin-left:auto; min-width:0; overflow-wrap:anywhere; }
#technical-panel .technical-general-feeder .general-feeder-criteria { margin-top:10px; color:#52677b; font-size:12px; line-height:1.5; }
#technical-panel .technical-general-feeder .general-feeder-criteria summary { padding:8px 0; cursor:pointer; }
#technical-panel .technical-general-feeder .general-feeder-criteria summary:focus-visible { outline:2px solid #1d8a63; outline-offset:2px; border-radius:4px; }
#technical-panel .technical-general-feeder .general-feeder-criteria p { margin:6px 0 12px; }
#technical-panel .technical-general-feeder .general-feeder-independence { margin:10px 0 0; color:#52677b; font-size:12px; line-height:1.5; }
@media(max-width:599px) { #technical-panel .technical-general-feeder .general-feeder-columns { grid-template-columns:minmax(0,1fr); } }
@container(max-width:599px) { #technical-panel .technical-general-feeder .general-feeder-columns { grid-template-columns:minmax(0,1fr); } }
@media(max-width:389px) { #technical-panel .technical-general-feeder .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }
@container(max-width:389px) { #technical-panel .technical-general-feeder .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }
@media(pointer:coarse) { #technical-panel .technical-general-feeder :is(input,select) { height:44px; min-height:44px; font-size:16px; } #technical-panel .technical-general-feeder .general-feeder-criteria summary { min-height:44px; display:list-item; box-sizing:border-box; padding-block:12px; } }
#technical-tab.active { color:#09244e; box-shadow:inset 0 -3px #009369; }
.technical-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; padding:20px; border:1px solid #dfe8f2; border-radius:12px; background:#fff; }
.technical-hero-heading { display:flex; align-items:center; gap:14px; min-width:0; }
.technical-hero h3 { margin:0 0 5px; color:#09244e; font-size:20px; }
.technical-hero p { margin:0; color:#7084a5; font-size:12px; line-height:1.5; }
.technical-hero-icon { display:flex; align-items:center; justify-content:center; flex:0 0 48px; width:48px; height:48px; border-radius:12px; background:#eaf8f3; color:#008961; }
.technical-hero-icon .animated-lucide { width:28px; height:28px; }
#technical-panel .technical-main-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; grid-column:auto; grid-row:auto; position:static; margin:0; padding:0; background:none; box-shadow:none; }
#technical-edit-save { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 18px; border:1px solid #008b64; border-radius:10px; color:#fff; background:#008b64; box-shadow:0 3px 8px #008b6414; font-size:13px; }
#technical-edit-save:hover { background:#067756; }
#technical-edit-save span { display:inline; margin:0; color:inherit; font-size:inherit; }
#technical-edit-save .animated-lucide { width:19px; height:19px; }
.technical-plant-summary { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.technical-summary-card { display:flex; gap:14px; align-items:center; min-width:0; padding:14px; border:1px solid #dfe8f2; border-radius:9px; }
.technical-summary-card > div { min-width:0; }
.technical-summary-card small { color:#09244e; font-size:11px; font-weight:700; }
.technical-summary-card strong { display:block; margin:4px 0; color:#09244e; font-size:16px; overflow-wrap:anywhere; }
.technical-summary-card p { font-size:11px; }
#technical-panel .technical-card-heading { display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:12px; align-content:start; margin-bottom:16px; }
.technical-card-icon { grid-column:1; grid-row:1/3; display:grid; place-items:center; width:36px; height:36px; color:#0962db; background:#edf4ff; border-radius:10px; }
.technical-card-icon .animated-lucide { width:23px; height:23px; }
#technical-panel .technical-card-heading h3 { grid-column:2; margin:0 0 4px; font-size:15px; color:#0a2454; }
#technical-panel .technical-card-heading p { grid-column:2; margin:0; color:#7084a5; font-size:11px; line-height:1.5; }
#technical-panel .technical-equipment-section,#technical-panel .technical-protection-section,#technical-panel .string-configuration { padding:18px; border:1px solid #dfe8f2; border-radius:10px; background:#fff; min-width:0; }
#technical-panel .technical-power-section { display:block; }
#technical-panel .technical-equipment-grid,#technical-panel .technical-protection-grid { gap:14px 12px; align-items:start; }
#technical-panel .project-technical-form label { color:#49658c; font-size:12px; font-weight:650; line-height:1.4; }
#technical-panel .project-technical-form input,#technical-panel .project-technical-form select { min-height:42px; border-color:#cbd9ea; border-radius:8px; color:#34547a; font-size:12px; font-weight:400; }
#technical-panel .project-technical-form input:disabled,#technical-panel .project-technical-form select:disabled { opacity:1; -webkit-text-fill-color:#34547a; background:#fbfdff; }
#technical-panel .project-technical-form label > small { font-size:11px; font-weight:400; color:#7388a9; }
#technical-panel .technical-equipment-grid > label,#technical-panel .technical-protection-grid > label { grid-template-rows:minmax(34px,auto) 42px auto; }
#technical-panel .technical-equipment-summary { margin-top:16px; border:0; background:#eaf8f3; }
#technical-panel .technical-equipment-summary small { color:#00845e; letter-spacing:0; text-transform:none; }
#technical-panel .technical-equipment-summary strong { white-space:normal; overflow-wrap:anywhere; font-size:11px; }
#technical-panel .technical-equipment-summary span { font-size:10px; }
#technical-panel .string-heading-icon { background:#edf4ff; color:#0962db; border-radius:10px; }
#technical-panel .string-heading-copy h3 { color:#0a2454; }
#technical-panel .string-fields-header { background:#f6f9fd; color:#506b94; }
#technical-panel .string-reference-note { background:#eaf8f3; color:#008961; }
@media (max-width:1199px) {
  #technical-panel .string-fields-header { display:none; }
  #technical-panel .string-field-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #technical-panel .string-row-title { display:flex; grid-column:1/-1; gap:12px; }
  #technical-panel .string-field-label { position:static; display:block; width:auto; height:auto; clip:auto; clip-path:none; white-space:normal; margin-bottom:5px; }
  #technical-panel .string-configuration-heading { flex-wrap:wrap; gap:12px; }
  #technical-panel .string-reference-note { white-space:normal; }
}
#technical-panel .technical-cable-group { background:#fff; border-color:#dfe8f2; }
#technical-panel .technical-cable-group legend { color:#00845e; }
@media (min-width:1200px) {
  #technical-panel { grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; align-items:stretch; }
  #technical-panel .technical-hero { grid-column:1/-1; grid-row:1; }
  #technical-panel .technical-general-feeder { grid-row:2; }
  #technical-panel .technical-power-form { display:contents; }
  #technical-panel .technical-power-section { grid-column:1/3; grid-row:3; }
  #technical-panel .technical-protections-section { grid-column:3/5; grid-row:3; }
  #technical-panel .technical-equipment-section { grid-column:5/7; grid-row:3; }
  #technical-panel .string-configuration { grid-column:1/4; grid-row:4; align-self:stretch; }
  #technical-panel .technical-installation-section { grid-column:4/7; grid-row:4; }
  #technical-panel .technical-cabling-section { grid-column:1/-1; grid-row:5; }
  #technical-panel .technical-cabling-grid { grid-template-columns:1.15fr 1fr; }
  #technical-panel .technical-cable-group:first-child .technical-protection-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #technical-panel .technical-cable-group:last-child .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #technical-panel .string-configuration-heading { flex-wrap:wrap; gap:12px; }
  #technical-panel .string-fields-header,#technical-panel .string-field-row { grid-template-columns:30px minmax(95px,1.15fr) repeat(4,minmax(70px,1fr)); gap:8px; }
  #technical-panel .string-fields-header { font-size:10px; }
  #technical-panel .string-row-title strong { font-size:11px; }
}
@media (max-width:1199px) {
  #technical-panel:not([hidden]) { display:grid; gap:16px; }
  #technical-panel .technical-power-form { margin:0; }
  .technical-plant-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  #technical-panel { padding:14px 10px; }
  .technical-hero { grid-template-columns:minmax(0,1fr); padding:14px; gap:16px; }
  .technical-hero h3 { font-size:18px; }
  #technical-panel .technical-main-actions { justify-content:stretch; }
  #technical-edit-save { width:100%; }
  .technical-plant-summary { gap:8px; }
  .technical-summary-card { padding:10px; gap:8px; align-items:start; }
  .technical-summary-card .technical-hero-icon { width:30px; height:30px; flex-basis:30px; }
  .technical-summary-card .animated-lucide { width:20px; height:20px; }
  .technical-summary-card strong { font-size:13px; }
  #technical-panel .technical-equipment-section,#technical-panel .technical-protection-section,#technical-panel .string-configuration { padding:14px; }
  #technical-panel .project-technical-form input,#technical-panel .project-technical-form select { font-size:16px; }
}
@media (max-width: 680px) {
  .gda-project-form { grid-template-columns: 1fr; align-items: stretch; }
  .gda-project-form button { width: 100%; }
}
/* Almacenamiento BESS: prototipo independiente de la configuración FV. */
#storage-form { color: #123456; }
.storage-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.storage-heading h3 { margin: 8px 0; font-size: 23px; color: #102d51; }
.storage-heading p, .storage-card p, .storage-note, #storage-empty { color: #657a91; line-height: 1.5; }
.storage-tag { color: #087b59; background: #e9f7f1; padding: 5px 10px; border-radius: 20px; font-size: 12px; }
.storage-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.storage-toggle { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid #dce7ed; border-radius: 12px; background: #f5faf8; font-weight: 600; }
.storage-toggle input { width: 19px; height: 19px; flex: 0 0 19px; accent-color: #148c66; }
.storage-summary { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 12px; margin: 20px 0; }
.storage-summary > div { display: grid; align-content: start; gap: 9px; padding: 18px; border: 1px solid #dce7ed; border-radius: 12px; min-width: 0; background: #fff; }
.storage-summary strong { overflow-wrap: anywhere; font-size: 16px; }
.storage-summary small { color: #657a91; }
.storage-pending { color: #98660c; }
.storage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.storage-library { margin: 16px 0; }
.storage-library details { margin-top: 16px; }
.storage-library summary { cursor: pointer; color: #087b59; font-weight: 600; padding: 10px 0; }
.storage-product-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.storage-product-specs > div { padding: 12px; background: #f5f9fb; border-radius: 8px; min-width: 0; }
.storage-product-specs dt { font-size: 12px; font-weight: 600; color: #657a91; }
.storage-product-specs dd { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 600px) { .storage-product-specs { grid-template-columns: 1fr; } }
.storage-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid #dce7ed; border-radius: 13px; }
.storage-card h4 { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 17px; }
.storage-card h4 svg { width: 22px; height: 22px; color: #168563; display: block; }
.storage-card p, .storage-note { font-size: 12px; }
.storage-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.storage-fields label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.storage-fields input, .storage-fields select, .storage-fields textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ccdbe6; border-radius: 8px; background: #fff; color: #173952; padding: 10px; font: inherit; font-weight: 400; }
.storage-fields textarea { resize: vertical; }
.storage-fields :disabled { background: #f7f9fb; color: #526b81; opacity: 1; }
#storage-message { color: #087b59; font-size: 13px; }
@media (max-width: 1000px) { .storage-grid { grid-template-columns: 1fr; } .storage-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .storage-heading { flex-direction: column; align-items: stretch; } .storage-fields { grid-template-columns: 1fr; } .storage-card { padding: 15px; } .storage-fields textarea { resize: none; } .storage-summary > div { padding: 12px; } }
/* Installation service properties keep the existing drawer's field styling. */
.installation-empalme { border-top: 1px solid #dce4ec; padding-top: 16px; }
.installation-empalme h3 { margin: 0 0 6px; }
.installation-empalme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 520px) { .installation-empalme-grid { grid-template-columns: minmax(0, 1fr); } }
.technical-generation-controls { grid-column:1/-1; order:-1; padding-bottom:12px; border-bottom:1px solid #dce4ec; }
.technical-generation-controls label,.storage-ug-selector { display:grid; gap:8px; color:#0f2d46; font-weight:600; }
.technical-generation-controls select,.storage-ug-selector select { min-height:44px; padding:10px; border:1px solid #cad6df; border-radius:9px; background:white; color:#0f2d46; max-width:100%; }
.technical-generation-controls p,.storage-ug-selector small { font-size:13px; line-height:1.5; color:#66788a; }
.storage-ug-selector { margin:16px 0; }
#technical-panel.technical-multi:not([hidden]) { display:block; }
#technical-panel.technical-multi .technical-general-feeder { margin:16px 0; }
#technical-panel.technical-multi .technical-power-form { display:block; margin:16px 0; }
.technical-generation-list { display:grid; gap:14px; grid-column:1/-1; }
.technical-generation-list[hidden] { display:none; }
.technical-ug { border:1px solid #dce4ec; border-radius:14px; background:#fff; min-width:0; }
.technical-ug > summary { padding:18px; min-height:48px; color:#0f2d46; font-weight:700; cursor:pointer; overflow-wrap:anywhere; }
.technical-ug > summary:focus-visible { outline:2px solid #1d8a63; outline-offset:2px; }
.technical-ug-body { padding:0 14px 14px; }
#technical-panel.technical-multi #project-technical-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#technical-panel.technical-multi #project-technical-form > section { grid-column:auto; grid-row:auto; min-width:0; }
#technical-panel.technical-multi #project-technical-form > .technical-cabling-section { grid-column:1/-1; }
@media(max-width:900px) { #technical-panel.technical-multi #project-technical-form { grid-template-columns:minmax(0,1fr); } }
/* Project creation: four progressive steps, scoped away from project cards. */
#workflow-view .creation-card { width: min(100%, 1000px); margin-inline: auto; background: #fff; }
.creation-card .card-header { align-items: flex-start; }
.creation-card #project-form { padding: 0; }
.creation-card .card-header { background: #fff; color: #102a43; padding: 32px; }
.creation-card .card-header .eyebrow { color: #1d8a63; }
.creation-card .card-header .intro { color: #66788a; }
.creation-card .workflow-exit-button { color: #66788a; border-color: #dce4ec; background: #f7f9fc; min-height: 44px; }
.creation-card #project-form > .field-help { margin: 0 32px 16px; }
.creation-panel label { position: relative; }
.creation-required { color: #1d8a63; position: absolute; right: 0; top: 0; }
.creation-card .step-badge { position: absolute; right: 32px; bottom: 28px; color: #1d8a63; background: #eff8f4; border-color: #cce8dc; white-space: nowrap; }
.creation-progress button { min-width: 0; }
.creation-progress button span { margin-left: 0; }
.creation-card .card-header h1 { font-size: clamp(24px, 3vw, 32px); color: #0f2d46; }
.creation-card .intro { max-width: 650px; }
.creation-progress { padding: 24px 32px; background: #f7f9fc; border-block: 1px solid #dce4ec; }
.creation-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 12px; }
.creation-progress button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #66788a; padding: 8px; box-shadow: none; text-align: left; min-height: 44px; }
.creation-progress button span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #dce4ec; border-radius: 50%; background: #fff; }
.creation-progress button.active { color: #0f2d46; }
.creation-progress button.active span, .creation-progress button.completed span { background: #1d8a63; border-color: #1d8a63; color: #fff; }
.creation-progress button:disabled { opacity: .65; cursor: default; }
.creation-progress-track { height: 4px; border-radius: 4px; background: #dce4ec; margin-top: 18px; overflow: hidden; }
.creation-progress-track div { height: 100%; background: #1d8a63; transition: width 180ms ease; }
.creation-panel { padding: 28px 32px; min-width: 0; }
.creation-panel[hidden], .creation-card [hidden] { display: none !important; }
.creation-panel > header { margin-bottom: 24px; }
.creation-panel > header h2 { margin: 6px 0; font-size: 23px; color: #102a43; }
.creation-panel > header p { color: #66788a; }
.creation-panel > header h2:focus { outline: none; }
.creation-panel .field-section { margin-top: 20px; padding: 0; border: 0; }
.creation-panel .project-client-linker { margin: 0 0 20px; }
.creation-panel .project-client-linker > div:first-child { display: none; }
.creation-panel .existing-client-controls { grid-template-columns: 1fr; }
.creation-panel .form-grid, .creation-panel .installation-empalme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.creation-panel .full-width { grid-column: 1 / -1; }
.creation-panel label { min-width: 0; }
.creation-panel input:not([type="checkbox"]):not([type="file"]), .creation-panel select { min-height: 48px; width: 100%; box-sizing: border-box; font-size: 16px; }
.creation-installation-reuse { display: flex; align-items: end; gap: 16px; padding: 20px; background: #f7f9fc; border: 1px solid #dce4ec; border-radius: 12px; }
.creation-installation-reuse label { flex: 1; }
.creation-panel .installation-empalme { margin-top: 12px; padding: 20px; background: #f7f9fc; border: 1px solid #dce4ec; border-radius: 12px; }
.creation-note { margin-top: 28px; padding: 20px; background: #eff8f4; border-radius: 12px; color: #31594b; line-height: 1.6; }
.creation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 20px 32px; border-top: 1px solid #dce4ec; background: #fff; }
.creation-actions [data-creation-back] { margin-right: auto; }
.creation-actions button { min-height: 46px; }
.creation-actions button:disabled { opacity: .5; cursor: default; }
.creation-card #form-message { margin: 0 32px 16px; }
.creation-review { display: grid; gap: 16px; }
.creation-review section { position: relative; border: 1px solid #dce4ec; padding: 20px; border-radius: 12px; }
.creation-review h3 { color: #0f2d46; margin: 0 0 14px; }
.creation-review section > button { position: absolute; top: 10px; right: 12px; min-height: 44px; color: #1d8a63; background: transparent; border: 0; box-shadow: none; }
.creation-review dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.creation-review dt { color: #66788a; font-size: 14px; }
.creation-review dd { margin: 4px 0 0; color: #102a43; overflow-wrap: anywhere; }
.creation-open-choice { display: flex; gap: 12px; align-items: center; margin-top: 24px; min-height: 44px; }
.creation-card button:focus-visible { outline: 3px solid #1d8a63; outline-offset: 3px; }
@media (max-width: 767px) {
  .creation-progress { padding: 16px; }
  .creation-progress ol { gap: 4px; }
  .creation-progress button { flex-direction: column; gap: 8px; padding: 4px 0; text-align: center; font-size: 12px; }
  .creation-panel { padding: 24px 20px; }
  .creation-panel .form-grid, .creation-panel .installation-empalme-grid, .creation-review dl { grid-template-columns: 1fr; }
  .creation-installation-reuse { flex-direction: column; align-items: stretch; padding: 16px; }
  .creation-actions { padding: 16px 20px; gap: 8px; }
  .creation-actions [data-creation-next] { width: 100%; }
  .creation-card #form-message { margin-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .creation-progress-track div { transition: none; } }

/* Visible editing state without extra labels on calculated values. */
#technical-panel .technical-edit-notice { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid #b8dfcf; border-left: 4px solid #1d8a63; border-radius: 10px; background: #eaf7f1; color: #145c43; }
#technical-panel .technical-edit-notice[hidden], #technical-panel .technical-editing-toolbar[hidden], #technical-cancel-edit[hidden] { display: none !important; }
#technical-panel .technical-edit-notice > span { display: grid; place-items: center; flex: 0 0 24px; }
#technical-panel .technical-edit-notice strong { font-size: 15px; }
#technical-panel .technical-edit-notice p { margin: 4px 0 0; color: #366454; font-size: 13px; }
#technical-panel :is(input,select,textarea):disabled, #technical-panel :is(input,textarea)[readonly] { background: #f0f3f6; border-color: #dfe5eb; color: #63748a; -webkit-text-fill-color: #63748a; }
#technical-panel.is-editing :is(input,select,textarea):enabled:not([readonly]):not([type="checkbox"]):not([type="hidden"]) { background: #fff; border-color: #78b59d; color: #102a43; -webkit-text-fill-color: #102a43; box-shadow: 0 1px 2px #102a4308; }
#technical-panel.is-editing :is(input,select,textarea):enabled:not([readonly]):focus-visible { border-color: #1d8a63; outline: 2px solid #1d8a6330; outline-offset: 2px; box-shadow: 0 0 0 3px #1d8a6312; }
#technical-panel.is-editing :is(input,select,textarea).invalid { border-color: #c54747; box-shadow: 0 0 0 3px #c5474720; }
#technical-panel .technical-editing-toolbar { position: sticky; bottom: 12px; z-index: 45; grid-column: 1 / -1; display: flex; justify-content: flex-end; padding: 12px 16px; border: 1px solid #b8dfcf; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px #102a431a; }
#technical-cancel-edit { min-height: 44px; padding: 10px 18px; border: 1px solid #cad6df; color: #486073; background: #fff; box-shadow: none; }
#technical-cancel-edit:hover { background: #f3f6f9; }
#technical-panel .technical-editing-toolbar button { min-width: 0; }
@media (max-width: 600px) {
  #technical-panel .technical-editing-toolbar { bottom: 8px; padding: 10px; }
  #technical-panel .technical-editing-toolbar .technical-main-actions { width: 100%; flex-wrap: nowrap; }
  #technical-panel .technical-editing-toolbar #technical-cancel-edit { width: auto; flex: 0 0 auto; padding-inline: 12px; }
  #technical-panel .technical-editing-toolbar #technical-edit-save { width: auto; flex: 1; min-width: 130px; padding-inline: 12px; white-space: nowrap; }
}

/* AC protections reuse the compact feeder's visual language; controls remain in their UG form. */
#technical-panel .technical-protections-section { width:100%; max-width:850px; min-width:0; align-self:start; justify-self:start; padding:20px; border:1px solid #dce5ed; border-radius:12px; background:#fff; box-sizing:border-box; container-type:inline-size; font-family:inherit; }
#technical-panel .technical-protections-section > div:first-child { margin-bottom:20px; }
#technical-panel .technical-protections-section .technical-card-heading { grid-template-columns:18px minmax(0,1fr); column-gap:8px; }
#technical-panel .technical-protections-section .technical-card-icon { width:18px; height:18px; grid-row:1; background:transparent; color:#1d8a63; border-radius:0; align-self:center; }
#technical-panel .technical-protections-section .technical-card-icon .animated-lucide { width:18px; height:18px; }
#technical-panel .technical-protections-section h3 { margin:0 0 6px; color:#0f2d46; font-size:16px; font-weight:600; line-height:1.4; }
#technical-panel .technical-protections-section > div:first-child p { margin:0; color:#62758a; font-size:12px; line-height:1.5; }
#technical-panel .technical-protections-section .technical-card-heading p { grid-column:1/-1; }
#technical-panel .technical-protections-section .ac-protection-block { min-width:0; }
#technical-panel .technical-protections-section .ac-protection-block + .ac-protection-block { margin-top:18px; padding-top:18px; border-top:1px solid #e3eaf0; }
#technical-panel .technical-protections-section h4 { display:flex; gap:8px; align-items:center; margin:0 0 12px; color:#137553; font-size:13px; font-weight:600; line-height:1.4; }
#technical-panel .technical-protections-section h4 span { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border-radius:50%; background:#eaf7f1; font-size:11px; }
#technical-panel .technical-protections-section .technical-protection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#technical-panel .technical-protections-section label { display:flex; flex-direction:column; min-width:0; gap:6px; color:#354e67; font-size:12px; font-weight:500; line-height:1.4; }
#technical-panel .technical-protections-section :is(input,select) { width:100%; min-width:0; height:38px; min-height:38px; padding:0 10px; border:1px solid #cbd9e4; border-radius:6px; color:#102a43; font-family:inherit; font-size:14px; font-weight:400; background:#f7f9fc; box-sizing:border-box; }
#technical-panel .technical-protections-section :is(input,select):focus-visible { border-color:#1d8a63; outline:2px solid #1d8a6330; outline-offset:2px; }
#technical-panel .technical-protections-section .ac-protection-location label { width:100%; max-width:320px; }
@media(min-width:1200px) {
  #technical-panel:not(.technical-multi) .technical-general-feeder { grid-column:1/4; grid-row:2; align-self:start; }
  #technical-panel:not(.technical-multi) .technical-protections-section { grid-column:4/7; grid-row:2; }
  #technical-panel:not(.technical-multi) .technical-power-section { grid-column:1/4; grid-row:3; }
  #technical-panel:not(.technical-multi) .technical-equipment-section { grid-column:4/7; grid-row:3; }
}
@media(max-width:599px) { #technical-panel .technical-protections-section .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container(max-width:599px) { #technical-panel .technical-protections-section .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:389px) { #technical-panel .technical-protections-section .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }
@container(max-width:389px) { #technical-panel .technical-protections-section .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }
@media(pointer:coarse) { #technical-panel .technical-protections-section :is(input,select) { height:44px; min-height:44px; font-size:16px; } }

/* Technical accordions: scoped presentation, original forms and controls stay intact. */
#technical-panel.technical-collapsible:not([hidden]) { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
#technical-panel.technical-collapsible #project-power-form { display:block; width:100%; margin:0; }
#technical-panel.technical-collapsible #project-technical-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; width:100%; margin:0; }
#technical-panel.technical-collapsible :is(#project-power-form, #project-technical-form) { padding:0; border:0; background:transparent; box-shadow:none; }
#technical-panel.technical-collapsible .technical-collapse { width:100%; min-width:0; border:1px solid #dfe8f2; border-radius:12px; background:#fff; box-sizing:border-box; }
#technical-panel.technical-collapsible .technical-collapse > summary { display:flex; align-items:center; gap:12px; min-height:68px; padding:14px 18px; cursor:pointer; list-style:none; border-radius:12px; color:#0f2d46; }
#technical-panel.technical-collapsible .technical-collapse > summary::-webkit-details-marker { display:none; }
#technical-panel.technical-collapsible .technical-collapse > summary::marker { content:''; }
#technical-panel.technical-collapsible .technical-collapse > summary:hover { background:#f7fbfa; }
#technical-panel.technical-collapsible .technical-collapse > summary:focus-visible { outline:2px solid #1d8a63; outline-offset:2px; }
#technical-panel.technical-collapsible .technical-collapse[open] > summary { border-bottom:1px solid #e9eff3; border-radius:12px 12px 0 0; }
#technical-panel .technical-collapse-icon { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:10px; color:#1d8a63; background:#edf8f3; }
#technical-panel .technical-collapse-icon .animated-lucide { width:19px; height:19px; }
#technical-panel .technical-collapse-copy { display:grid; gap:4px; min-width:0; flex:1; }
#technical-panel .technical-collapse-title { font-size:15px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
#technical-panel .technical-collapse-preview { font-size:12px; font-weight:400; line-height:1.45; color:#667c95; overflow-wrap:anywhere; }
#technical-panel .technical-collapse-arrow { flex:0 0 18px; font-size:22px; color:#547367; text-align:center; transition:transform 160ms ease; }
#technical-panel .technical-collapse[open] > summary > .technical-collapse-arrow { transform:rotate(180deg); }
#technical-panel.technical-collapsible .technical-collapse > .technical-collapse-body { grid-column:auto; grid-row:auto; width:100%; min-width:0; margin:0; padding:20px; border:0; border-radius:0 0 12px 12px; box-sizing:border-box; }
#technical-panel.technical-collapsible .technical-collapsed-heading { display:none !important; }
#technical-panel.technical-collapsible .technical-generation-list { margin:0; }
#technical-panel.technical-collapsible .technical-ug-body { padding:0 12px 12px; }
#technical-panel.technical-collapsible .technical-cabling-grid { align-items:start; }
#technical-panel.technical-collapsible .technical-cable-group .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:599px) {
  #technical-panel.technical-collapsible .technical-collapse > summary { padding:12px; gap:10px; }
  #technical-panel.technical-collapsible .technical-collapse > .technical-collapse-body { padding:14px; }
  #technical-panel.technical-collapsible .technical-cabling-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:389px) { #technical-panel.technical-collapsible .technical-cable-group .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { #technical-panel .technical-collapse-arrow { transition:none; } }
#technical-panel .technical-ground-shared { display:flex; flex-direction:row; align-items:flex-start; gap:10px; grid-column:1/-1; padding:10px 12px; border-radius:8px; background:#edf8f3; }
#technical-panel .technical-ground-shared input[type="checkbox"] { width:18px; height:18px; min-height:18px; flex:0 0 18px; padding:0; margin:2px 0 0; accent-color:#1d8a63; }
#technical-panel .technical-ground-shared span { display:grid; gap:4px; }
#technical-panel .technical-ground-shared small { color:#62788c; font-weight:400; line-height:1.5; }
#technical-panel .technical-ground-legacy { margin:12px 0 0; padding:10px; border-radius:8px; background:#fff8e7; color:#805e26; font-size:12px; line-height:1.5; }
#technical-panel .technical-ground-legacy[hidden], #technical-panel label[hidden] { display:none; }
@media(pointer:coarse) { #technical-panel .technical-ground-shared { min-height:44px; } }
#technical-panel.technical-collapsible .technical-side-section > :is(.technical-protections-section,.string-configuration,.technical-cabling-section) { width:100%; max-width:none; grid-column:auto; grid-row:auto; margin:18px 0 0; padding:18px 0 0; border:0; border-top:1px solid #e5edf2; border-radius:0; box-sizing:border-box; }
#technical-panel.technical-collapsible .technical-side-section > .technical-cable-group { width:100%; min-width:0; box-sizing:border-box; margin:0; }
#technical-panel.technical-collapsible .technical-cc-cable-grid { grid-template-columns:minmax(0,1fr); }
#technical-panel.technical-collapsible .technical-side-section .technical-card-heading { margin-bottom:14px; }
#technical-panel.technical-collapsible .technical-side-section .technical-cable-group .technical-protection-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#technical-panel.technical-collapsible .technical-side-section .technical-voltage-drop { grid-column:1/-1; }
#technical-panel.technical-collapsible .technical-side-section .string-configuration-heading { margin-bottom:14px; }
@media(max-width:899px) { #technical-panel.technical-collapsible .technical-side-section .technical-cable-group .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:389px) { #technical-panel.technical-collapsible .technical-side-section .technical-cable-group .technical-protection-grid { grid-template-columns:minmax(0,1fr); } }

/* Compact circuit layout follows the space INSIDE the project card, including UG accordions. */
#technical-panel.technical-collapsible { container-name:technical-layout; container-type:inline-size; }
#technical-panel.technical-collapsible .technical-general-feeder { max-width:none; container-name:technical-feeder; }
#technical-panel.technical-collapsible .technical-collapse > .technical-collapse-body { padding:16px 20px; }
#technical-panel.technical-collapsible :is(.technical-equipment-grid,.technical-protection-grid) { gap:10px 12px; align-items:start; }
#technical-panel.technical-collapsible :is(.technical-general-feeder,.technical-side-section,.technical-installation-section) .technical-protection-grid { align-items:end; }
#technical-panel.technical-collapsible :is(.technical-equipment-grid,.technical-protection-grid) > label:not([hidden]):not(.technical-ground-shared) { display:flex; flex-direction:column; gap:5px; grid-template-rows:none; font-size:12px; font-weight:500; line-height:1.4; }
#technical-panel.technical-collapsible :is(.technical-equipment-grid,.technical-protection-grid) :is(input:not([type="checkbox"]):not([type="hidden"]),select) { width:100%; min-width:0; height:38px; min-height:38px; padding:0 10px; font-size:14px; box-sizing:border-box; }
#technical-panel.technical-collapsible .technical-power-section .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,220px)); }
#technical-panel.technical-collapsible .technical-installation-section .technical-protection-grid { grid-template-columns:repeat(3,minmax(0,250px)); }
#technical-panel.technical-collapsible .technical-general-feeder .general-feeder-columns { gap:20px; }
#technical-panel.technical-collapsible .technical-general-feeder .general-feeder-columns h4 { margin-bottom:10px; }
#technical-panel.technical-collapsible .technical-general-feeder .general-feeder-result { margin-top:14px; padding:10px 12px; }
#technical-panel.technical-collapsible .technical-side-section .technical-protections-section > div:first-child { margin-bottom:12px; }
#technical-panel.technical-collapsible .technical-protections-section .ac-protection-block + .ac-protection-block { margin-top:14px; padding-top:14px; }
#technical-panel.technical-collapsible .technical-protections-section h4 { margin-bottom:10px; }
#technical-panel.technical-collapsible .technical-protections-section .ac-protection-location label { max-width:260px; }
#technical-panel.technical-collapsible .technical-ground-shared { grid-column:auto; min-height:60px; padding:8px 10px; box-sizing:border-box; }
#technical-panel.technical-collapsible .technical-ground-shared small { font-size:11px; line-height:1.35; }
#technical-panel.technical-collapsible .technical-dc-side > .string-configuration { margin-top:0; padding-top:0; border-top:0; }
@container technical-feeder (min-width:960px) {
  #technical-panel.technical-collapsible .technical-general-feeder .general-feeder-columns { grid-template-columns:3fr 2fr; }
  #technical-panel.technical-collapsible .technical-general-feeder [data-cable] { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@container technical-layout (min-width:1000px) {
  #technical-panel.technical-collapsible .technical-equipment-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .technical-equipment-grid > label:has(:is([name="inverterId"],[name="moduleId"])) { grid-column:span 3; }
  #technical-panel.technical-collapsible .technical-equipment-grid > label:has([name="inverterProfile"]) { grid-column:span 2; }
  #technical-panel.technical-collapsible .technical-side-section .technical-cable-group .technical-protection-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .technical-protections-section .technical-protection-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .ac-protection-block[aria-labelledby="ac-differential-heading"] .technical-protection-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@container technical-layout (max-width:999px) {
  #technical-panel.technical-collapsible .technical-equipment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .technical-side-section .technical-cable-group .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .technical-installation-section .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,250px)); }
}
@container technical-feeder (max-width:599px) {
  #technical-panel.technical-collapsible .technical-general-feeder .general-feeder-columns { grid-template-columns:minmax(0,1fr); gap:16px; }
}
@container technical-layout (max-width:599px) {
  #technical-panel.technical-collapsible .technical-collapse > .technical-collapse-body { padding:14px; }
  #technical-panel.technical-collapsible .technical-protections-section .technical-protection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #technical-panel.technical-collapsible .technical-equipment-grid > label:has(:is([name="inverterId"],[name="moduleId"],[name="inverterProfile"])) { grid-column:1/-1; }
  #technical-panel.technical-collapsible .technical-ground-shared { grid-column:1/-1; min-height:44px; }
}
@container technical-layout (max-width:359px) {
  #technical-panel.technical-collapsible :is(.technical-equipment-grid,.technical-side-section .technical-cable-group .technical-protection-grid,.technical-protections-section .technical-protection-grid,.technical-power-section .technical-protection-grid,.technical-installation-section .technical-protection-grid) { grid-template-columns:minmax(0,1fr); }
}
@media(pointer:coarse) {
  #technical-panel.technical-collapsible :is(.technical-equipment-grid,.technical-protection-grid) :is(input:not([type="checkbox"]):not([type="hidden"]),select) { height:44px; min-height:44px; font-size:16px; }
}

/* No battery fields are exposed until storage is explicitly enabled for the selected UG. */
#storage-panel [hidden] { display:none !important; }
#storage-panel .storage-presence { display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:16px; align-items:center; padding:16px 18px; border:1px solid #dce7ed; border-radius:12px; background:#f5faf8; color:#0f2d46; font-size:14px; font-weight:600; }
#storage-panel .storage-presence select { width:100%; min-width:0; min-height:44px; padding:8px 12px; border:1px solid #cad6df; border-radius:8px; background:#fff; color:#0f2d46; font:inherit; }
#storage-panel .storage-presence select:focus-visible, #storage-panel .storage-accessories > summary:focus-visible { outline:2px solid #1d8a63; outline-offset:2px; }
#storage-panel #storage-empty { margin:10px 0 18px; font-size:12px; }
#storage-panel .storage-accessories { margin:16px 0; border:1px solid #dce7ed; border-radius:12px; background:#fff; }
#storage-panel .storage-accessories > summary { min-height:44px; padding:14px 16px; box-sizing:border-box; color:#0f2d46; font-size:14px; font-weight:600; cursor:pointer; }
#storage-panel .storage-accessories > summary small { margin-left:8px; color:#657a91; font-size:12px; font-weight:400; }
#storage-panel .storage-accessories > .storage-card { margin:0; border:0; border-top:1px solid #e5edf2; border-radius:0 0 12px 12px; }
@media(max-width:599px) {
  #storage-panel .storage-presence { grid-template-columns:minmax(0,1fr) 90px; gap:12px; padding:14px; }
  #storage-panel .storage-accessories > summary small { display:block; margin:6px 0 0; }
}
@media(pointer:coarse) { #storage-panel .storage-presence select { font-size:16px; } }
