:root {
    --navy: #0b214a;
    --navy-2: #12376b;
    --navy-3: #1c4f8d;
    --mint: #19bda7;
    --mint-dark: #0b7f74;
    --paper: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #17243a;
    --muted: #67768c;
    --line: #dce4ee;
    --danger: #c43f4f;
    --warning: #a66a05;
    --success: #087d68;
    --info: #2869a8;
    --shadow: 0 14px 42px rgba(17, 43, 80, .09);
    --sidebar: 276px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.boot-screen {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
    align-content: center; gap: 18px; background: radial-gradient(circle at 25% 12%, #214f86, #071a36 58%); color: #fff;
}
.boot-screen img { width: 68px; height: 68px; border-radius: 18px; }
.boot-screen p { margin: 0; color: #c7d7ea; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr); background: #fff; }
.auth-presentation { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 76px); overflow: hidden; position: relative; color: #fff; background: radial-gradient(circle at 75% 18%, rgba(25,189,167,.34), transparent 26%), linear-gradient(145deg, #102e5b, #071a36 70%); }
.auth-presentation::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -170px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.auth-brand, .brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.025em; }
.auth-brand img, .brand img { width: 42px; height: 42px; border-radius: 12px; }
.auth-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { display: block; color: var(--mint); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.auth-copy h1 { max-width: 9ch; margin: 18px 0 24px; font-size: clamp(3.6rem, 7vw, 7rem); line-height: .9; letter-spacing: -.07em; }
.auth-copy p { max-width: 54ch; margin: 0; color: #c5d4e8; font-size: 1.05rem; line-height: 1.7; }
.auth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.auth-features span { padding: 13px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #dae5f2; background: rgba(255,255,255,.05); font-size: .85rem; }
.auth-features span::before { content: "✓"; margin-right: 8px; color: #6ce9d8; font-weight: 900; }
.auth-presentation > small { color: #9db1ca; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); background: linear-gradient(135deg, #f9fbfe, #eef4fa); }
.auth-card { width: min(620px, 100%); padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(205,216,230,.85); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 28px 80px rgba(19,51,91,.13); backdrop-filter: blur(16px); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--navy); }
.auth-mobile-brand img { width: 38px; height: 38px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 28px; padding: 5px; border-radius: 13px; background: #edf2f8; }
.auth-tab { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.auth-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 5px 16px rgba(22,50,87,.1); }
.auth-form { display: grid; gap: 16px; }
.auth-form header h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.8rem; letter-spacing: -.035em; }
.auth-form header p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.password-field { display: grid; grid-template-columns: 1fr auto; border: 1px solid #cdd8e5; border-radius: 11px; overflow: hidden; background: #fff; }
.password-field input { border: 0 !important; border-radius: 0 !important; }
.password-field button { border: 0; padding: 0 14px; background: transparent; color: var(--mint-dark); font-size: .8rem; font-weight: 800; cursor: pointer; }
.link-button, .back-button { border: 0; padding: 0; color: var(--mint-dark); background: transparent; font-weight: 800; cursor: pointer; }
.back-button { margin-bottom: 16px; }
.field-help { margin-top: -9px; color: var(--muted); line-height: 1.5; }
.form-feedback { min-height: 22px; margin: 0; color: var(--danger); font-size: .88rem; line-height: 1.45; }
.form-feedback.success { color: var(--success); }

.platform-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 50; height: 100vh; display: flex; flex-direction: column; color: #dce7f4; background: radial-gradient(circle at 30% 4%, #1e4e82, transparent 29%), linear-gradient(180deg, #0c2852, #071a36); box-shadow: 10px 0 35px rgba(6,24,50,.13); }
.sidebar-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { color: #fff; font-size: 1.03rem; }
.brand img { width: 38px; height: 38px; }
.sidebar-close { display: none; color: #fff; }
.main-navigation { flex: 1; overflow: auto; padding: 18px 13px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-group { margin-bottom: 21px; }
.nav-group-title { display: block; margin: 0 11px 8px; color: #7993b2; font-size: .67rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { width: 100%; min-height: 42px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 7px; margin: 2px 0; padding: 8px 11px; border: 0; border-radius: 10px; color: #c6d5e7; background: transparent; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active { color: #fff; background: linear-gradient(90deg, rgba(25,189,167,.28), rgba(25,189,167,.09)); box-shadow: inset 3px 0 var(--mint); }
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); color: #77e5d7; font-size: .76rem; font-weight: 900; }
.nav-count { min-width: 21px; padding: 3px 6px; border-radius: 999px; color: #8ff0e2; background: rgba(25,189,167,.15); text-align: center; font-size: .66rem; font-weight: 900; }
.sidebar-foot { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 22px; border-top: 1px solid rgba(255,255,255,.08); color: #9fb2ca; font-size: .78rem; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d39b; box-shadow: 0 0 12px #35d39b; }
.connection-dot.offline { background: #f1a94b; box-shadow: none; }

.app-column { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 40; min-height: 78px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(18px, 3vw, 38px); border-bottom: 1px solid rgba(210,220,232,.9); background: rgba(255,255,255,.93); backdrop-filter: blur(18px); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #fff; cursor: pointer; }
.icon-button:hover { border-color: #a9bacd; background: #f7f9fc; }
.menu-button { display: none; }
.topbar-search { width: min(420px, 36vw); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.topbar-search input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.workspace-picker { display: grid; grid-template-columns: auto minmax(150px, 220px); align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.workspace-picker select { min-height: 40px; }
.user-button { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.user-button > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; font-size: .78rem; font-weight: 900; }
.user-copy { display: grid; gap: 2px; }
.user-copy strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.user-copy small { color: var(--muted); font-size: .7rem; }
.user-menu { position: fixed; z-index: 80; top: 68px; right: 28px; width: 215px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.user-menu button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.user-menu button:hover { background: #f1f5f9; }

.content { flex: 1; width: 100%; padding: clamp(22px, 3.2vw, 44px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-header h1 { margin: 6px 0 8px; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.045em; }
.page-header p { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.55; }
.breadcrumb { min-height: 17px; color: var(--mint-dark); font-size: .74rem; font-weight: 800; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.context-warning { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #ead39e; border-radius: 12px; color: #6f4b0b; background: #fff8e8; line-height: 1.5; }
.screen { min-height: 320px; }
.screen-loading { min-height: 320px; display: grid; place-items: center; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 18px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 7px 24px rgba(22,48,85,.045); }
.card-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 19px; border-bottom: 1px solid #e8edf3; }
.card-header h2, .card-header h3 { margin: 0; color: var(--navy); font-size: 1rem; letter-spacing: -.015em; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.card-body { padding: 19px; }
.card-body.flush { padding: 0; }
.metric-card { position: relative; overflow: hidden; padding: 20px; }
.metric-card::after { content: ""; position: absolute; width: 95px; height: 95px; right: -35px; bottom: -43px; border-radius: 50%; background: var(--metric-color, #d9f7f2); opacity: .8; }
.metric-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.metric-value { display: block; color: var(--navy); font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.metric-note { display: block; margin-top: 10px; color: var(--muted); font-size: .77rem; }
.metric-icon { float: right; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--mint-dark); background: #e3f8f4; font-weight: 900; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; font-size: .83rem; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: 0 10px 22px rgba(11,33,74,.15); }
.button.accent { color: #043a34; background: var(--mint); }
.button.secondary { border-color: var(--line); color: var(--navy); background: #fff; }
.button.danger { border-color: #efc9cf; color: var(--danger); background: #fff6f7; }
.button.small { min-height: 34px; padding: 0 11px; font-size: .75rem; }
.button.is-loading span { opacity: .6; }

label { display: grid; gap: 7px; color: #3b4a5f; font-size: .78rem; font-weight: 800; }
.field-label { display: inline-flex; width: fit-content; align-items: baseline; line-height: 1.25; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #cdd8e5; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; transition: .16s ease; }
select[multiple] { min-height: 112px; }
textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(25,189,167,.14); }
input[type="file"] { padding: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.check input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--mint-dark); }
.check-label { display: inline-flex; align-items: baseline; }
.form-fieldset { min-width: 0; display: grid; gap: 7px; margin: 0; padding: 0; border: 0; color: #3b4a5f; font-size: .78rem; font-weight: 800; }
.form-fieldset legend { margin: 0 0 7px; padding: 0; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 3px; }
.search-filters { grid-column: 1 / -1; gap: 12px; padding: 14px; border: 1px solid #dce5ef; border-radius: 13px; background: #fbfcfe; }
.search-filters legend { color: var(--navy); font-size: .88rem; }
.search-rules { display: grid; gap: 10px; }
.search-rule-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid #e3eaf2; border-radius: 11px; background: #fff; }
.search-rule-remove { align-self: end; }
.search-filter-options { margin-top: 2px; }
.inline-form { display: grid; gap: 14px; }
.resource-tabs { display: inline-flex; width: fit-content; max-width: 100%; gap: 5px; padding: 5px; border: 1px solid #d9e3ee; border-radius: 14px; background: #eaf0f7; box-shadow: 0 8px 24px rgba(17, 43, 80, .06); }
.resource-tab { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; color: #526177; background: transparent; cursor: pointer; font-weight: 850; transition: .16s ease; }
.resource-tab:hover { color: var(--navy); background: rgba(255,255,255,.64); }
.resource-tab.active { color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); box-shadow: 0 7px 16px rgba(18,55,107,.2); }
[data-resource-panel] { display: grid; gap: 18px; }
.input-group { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.help { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.select-assist { display: grid; gap: 6px; width: 100%; padding: 7px; border: 1px solid #dce5ef; border-radius: 12px; background: #f8fbfd; }
.select-assist:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(25,189,167,.12); }
.select-assist-search { min-height: 38px; padding: 8px 10px 8px 34px; border: 0; border-bottom: 1px solid #dce5ef; border-radius: 7px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2367768c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 10px center; box-shadow: none; }
.select-assist select { border-color: transparent; background-color: #fff; }
.select-assist-status { color: var(--muted); font-size: .7rem; font-weight: 650; }
.select-assist select[multiple] { min-height: 150px; }
.required::after { content: "*"; margin-left: 2px; color: var(--danger); }

.table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #e8edf3; background: #fbfcfe; }
.table-search-group { display: flex; align-items: center; gap: 10px; flex: 1; min-width: min(340px, 100%); }
.table-search { width: min(340px, 100%); }
.table-count { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: #eef3f8; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.table-responsive { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #526177; background: #f7f9fc; text-align: left; font-size: .69rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table-sort { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: inherit; font: inherit; font-weight: 850; letter-spacing: inherit; text-transform: inherit; }
.table-sort:hover { color: var(--navy-3); }
.table-sort-indicator { color: #8d9bad; font-size: .82rem; }
.table-column-filters th { top: 41px; z-index: 2; padding: 7px 8px; background: #eef3f8; }
.table-column-filters input { min-width: 130px; min-height: 32px; padding: 6px 8px; border-radius: 7px; background: #fff; font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
td { max-width: 420px; padding: 12px 14px; border-bottom: 1px solid #edf1f5; color: #344258; vertical-align: middle; }
tbody tr:hover { background: #f9fbfd; }
tbody tr:last-child td { border-bottom: 0; }
td.numeric, th.numeric { text-align: center; font-variant-numeric: tabular-nums; }
td.currency, th.currency { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-main { display: block; color: var(--ink); font-weight: 750; }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.cell-clip { max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-cell { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: var(--info); background: #eaf3fc; font-size: .68rem; font-weight: 900; text-transform: capitalize; white-space: nowrap; }
.badge.success, .badge.ativa, .badge.ativo, .badge.vencida, .badge.confirmado, .badge.concluida { color: var(--success); background: #e5f7f2; }
.badge.warning, .badge.teste, .badge.pendente, .badge.analisando, .badge.concorrendo { color: var(--warning); background: #fff4dc; }
.badge.danger, .badge.inativa, .badge.inadimplente, .badge.perdida, .badge.revogada, .badge.falhou { color: var(--danger); background: #fdebee; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.pagination-buttons { display: flex; gap: 6px; }

.empty-state { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 32px; text-align: center; color: var(--muted); }
.empty-state-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--mint-dark); background: #e6f8f5; font-size: 1.4rem; }
.empty-state h3 { margin: 4px 0 0; color: var(--navy); }
.empty-state p { max-width: 520px; margin: 0; line-height: 1.55; }
.error-state { border-color: #efc9cf; background: #fffafa; }
.error-list { margin: 10px 0 0; padding-left: 20px; }

.definition-list { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; margin: 0; }
.definition-list dt, .definition-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #edf1f5; overflow-wrap: anywhere; }
.definition-list dt { color: var(--muted); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.definition-list dd { color: var(--ink); }
.not-informed { color: var(--muted); font-size: .75rem; font-style: italic; }
.tender-detail { display: grid; gap: 18px; }
.tender-hero { display: grid; grid-template-columns:minmax(0,1fr) auto; gap: 22px; align-items: start; padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0b214a, #0d4d79); }
.tender-hero .eyebrow { color: #76e3d0; }
.tender-hero h3 { max-width: 720px; margin: 8px 0 0; font-size: 1.15rem; line-height: 1.5; }
.tender-value { min-width: 190px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.tender-value small,.tender-value strong { display: block; }
.tender-value small { color: #c8d8ec; }
.tender-value strong { margin-top: 5px; font-size: 1.15rem; }
.tender-value .not-informed { color: #d6e0eb; }
.tender-info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tender-info-grid>div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfd; }
.tender-info-grid span,.tender-info-grid strong { display: block; overflow-wrap: anywhere; }
.tender-info-grid span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.tender-info-grid strong { margin-top: 5px; color: var(--ink); font-size: .82rem; }
.tender-section { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.tender-section>h4,.tender-section>p,.tender-section-head { margin: 0; padding: 15px 17px; }
.tender-section>p { padding-top: 0; color: var(--muted); line-height: 1.6; }
.tender-section-head { display: flex; align-items:center; justify-content:space-between; border-bottom: 1px solid var(--line); }
.tender-section-head h4 { margin: 0; }
.json-block { max-height: 440px; overflow: auto; margin: 0; padding: 15px; border-radius: 11px; color: #d9e6f5; background: #081b35; font: .75rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e8edf3; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #2bd3ba); }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: #dfe7f0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 12px; height: 12px; margin-top: 3px; border: 3px solid #c9f2eb; border-radius: 50%; background: var(--mint-dark); }
.timeline-content strong { display: block; color: var(--ink); }
.timeline-content small { display: block; margin-top: 5px; color: var(--muted); }
.map-layout { display: grid; gap: 18px; }
.map-plot { position: relative; min-height: 420px; overflow: hidden; border: 1px solid #cfdceb; border-radius: 16px; background: radial-gradient(circle at 35% 30%, rgba(25,189,167,.12), transparent 24%), linear-gradient(145deg, #eaf2f8, #f8fbfd); }
.map-plot::before { content: ""; position: absolute; inset: 12% 18% 9% 20%; border: 2px solid rgba(11,33,74,.12); border-radius: 48% 42% 55% 36%; transform: rotate(-8deg); }
.map-label { position: absolute; left: 16px; bottom: 14px; padding: 7px 10px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.86); font-size: .72rem; }
.map-point { position: absolute; z-index: 2; width: 15px; height: 15px; padding: 0; border: 3px solid #d7faf4; border-radius: 50%; background: var(--mint-dark); box-shadow: 0 5px 15px rgba(10,81,73,.25); cursor: pointer; transform: translate(-50%, -50%); }
.map-point:hover { width: 20px; height: 20px; background: var(--mint); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,18,38,.66); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(900px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.34); }
.modal-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-card h2 { margin: 5px 0 0; color: var(--navy); }
.modal-body { overflow: auto; padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); }
.toast-region { position: fixed; z-index: 300; right: 22px; bottom: 22px; width: min(390px, calc(100% - 44px)); display: grid; gap: 10px; }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); animation: toast-in .22s ease; }
.toast::before { content: "✓"; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--success); background: #e3f7f2; font-weight: 900; }
.toast.error::before { content: "!"; color: var(--danger); background: #fdebed; }
.toast strong { display: block; color: var(--navy); font-size: .82rem; }
.toast p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.toast button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.session-warning { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 22px; }
.session-warning-backdrop { position: absolute; inset: 0; background: rgba(4,18,38,.78); backdrop-filter: blur(4px); }
.session-warning > section { position: relative; width: min(480px,100%); padding: 30px; border-radius: 19px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.34); text-align: center; }
.session-warning h2 { margin: 8px 0; color: var(--navy); }
.session-warning p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.session-warning strong { color: var(--danger); }

.app-footer { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 clamp(18px, 3vw, 38px); border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .74rem; }

@media (max-width: 1240px) {
    .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-picker span { display: none; }
}
@media (max-width: 700px) {
    .tender-hero { grid-template-columns: 1fr; }
    .tender-value { min-width: 0; }
    .tender-info-grid { grid-template-columns: 1fr; }
    .table-search-group { align-items: stretch; flex-direction: column; }
}

@media (max-width: 980px) {
    .auth-screen { grid-template-columns: 1fr; }
    .auth-presentation { display: none; }
    .auth-mobile-brand { display: flex; }
    .platform-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(var(--sidebar), calc(100vw - 42px)); transition: transform .22s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-close, .menu-button { display: grid; }
    .topbar-search { width: min(280px, 33vw); }
    .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .auth-panel { padding: 14px; align-items: start; }
    .auth-card { margin: 10px 0; padding: 22px 18px; border-radius: 18px; }
    .form-grid.two, .form-grid.three, .form-grid.four, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
    .search-rule-row { grid-template-columns: 1fr; }
    .auth-row { align-items: flex-start; flex-direction: column; }
    .topbar { min-height: 68px; padding: 0 13px; gap: 8px; }
    .topbar-search { display: none; }
    .workspace-picker { flex: 1; display: block; }
    .workspace-picker select { width: 100%; }
    .user-copy { display: none; }
    .content { padding: 20px 14px; }
    .page-header { align-items: stretch; flex-direction: column; }
    .page-actions { justify-content: flex-start; }
    .card-body { padding: 15px; }
    .definition-list { grid-template-columns: 1fr; }
    .definition-list dt { padding-bottom: 3px; border-bottom: 0; }
    .definition-list dd { padding-top: 0; }
    .modal { padding: 0; align-items: end; }
    .modal-card { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
    .app-footer { align-items: flex-start; flex-direction: column; padding-block: 14px; }
}

@media print {
    .sidebar, .topbar, .page-actions, .app-footer, .table-tools, .button, .resource-tabs, .table-column-filters { display: none !important; }
    .platform-shell { display: block; }
    .content { padding: 0; }
    .card { break-inside: avoid; box-shadow: none; }
}
/* Registration company block */
.registration-company{border:1px solid #dce5ef;border-radius:11px;padding:14px;margin:4px 0 17px;background:#fbfcfe}.registration-company legend{font-weight:800;color:var(--navy)}.registration-company>p{margin:0 0 11px}
