/* Stronger typography and accents; compact Home numbers and colored quick actions. */
.portal-shell {
    color: #102a30;
    font-weight: 600;
    background: #e1efe9;
}
.portal-shell .portal-main,
.portal-shell.home-redesign .portal-main {
    background: #e5f1eb;
}
.portal-shell button,
.portal-shell input,
.portal-shell select,
.portal-shell textarea,
.portal-shell a {
    font-weight: 600;
}
.portal-shell h1,
.portal-shell h2,
.portal-shell h3,
.portal-shell strong,
.portal-shell th,
.portal-shell .home-period dd,
.portal-shell .metric-detail-line b {
    font-weight: 800;
}
.portal-shell td,
.portal-shell .order-money,
.portal-shell .numeric-column {
    font-weight: 600;
}
.portal-shell .portal-icon,
.portal-shell .action-icon,
.portal-shell .overview-icon,
.login-card .portal-icon {
    stroke-width: 2.2;
}
.portal-shell .portal-sidebar {
    background: linear-gradient(110deg, #003d2d, #00291f);
}
.portal-shell .portal-sidebar nav button {
    font-weight: 700;
}
.portal-shell .portal-sidebar nav button.active {
    background: #006346;
    box-shadow: inset 3px 0 #5ce32b;
}
.portal-shell .portal-sidebar nav .portal-icon {
    color: #ffe15a;
}
.portal-shell .metric-icon,
.portal-shell .home-period > .metric-icon,
.portal-shell .home-quick-actions .metric-icon {
    background: #cdebdc;
    color: #005034;
}
.portal-shell .portal-card,
.portal-shell .portal-metrics article,
.portal-shell .home-period,
.portal-shell .home-overdue,
.portal-shell .orders-summary article,
.portal-shell .document-stats article,
.portal-shell .home-quick-actions > button,
.portal-shell .home-quick-actions > a {
    box-shadow: inset 0 0 0 1px #c6dcd0;
    background-color: #fff;
}
.portal-shell .portal-metrics p,
.portal-shell .orders-summary small,
.portal-shell .portal-card small,
.portal-shell .home-period dt,
.portal-shell .metric-detail-line,
.portal-shell .data-date,
.portal-shell .home-search input::placeholder,
.portal-shell .customers-intro {
    color: #365368;
    font-weight: 600;
}
.portal-shell .portal-metrics strong,
.portal-shell .home-period dd,
.portal-shell .home-overdue strong,
.portal-shell .metric-detail-line b {
    color: #0b2029;
}
.portal-shell .portal-metrics small,
.portal-shell .home-overdue small {
    color: #00613d;
    font-weight: 600;
}
.portal-shell .card-link,
.portal-shell .home-text-link,
.portal-shell .home-quick-actions > button,
.portal-shell .home-quick-actions > a {
    color: #004d34;
    font-weight: 700;
}
.portal-shell .card-link {
    background: #d9eee2;
}
.portal-shell .card-link:hover,
.portal-shell .home-quick-actions > button:hover,
.portal-shell .home-quick-actions > a:hover {
    background: #c6e6d5;
}
.portal-shell .portal-primary,
.portal-shell .home-create-button,
.portal-shell .portal-header-actions .notification-bell,
.portal-shell .portal-header-actions .portal-refresh {
    background: #005039;
    color: #fff;
    border-color: #005039;
}
.portal-shell .home-period-toolbar {
    background: #004d37;
    color: #fff;
}
.portal-shell .home-period-toolbar h2,
.portal-shell .home-period-toolbar button {
    color: #fff;
    font-weight: 700;
}
.portal-shell .representative-trigger {
    border-color: #79a48e;
    color: #064d36;
    font-weight: 700;
}
.portal-shell .info-row {
    border-bottom-color: #d5e4dc;
}
.portal-shell .document-table-scroll thead th {
    background: #d6eadd;
    color: #164731;
}
.portal-shell .data-source-dialog textarea,
.portal-shell .data-source-dialog pre {
    font-weight: 400;
}
.login-card input,
.login-card label,
.login-card button {
    font-weight: 600;
}

/* Keep numeric summaries at their original weight; retain stronger labels/icons. */
.portal-shell .portal-metrics strong,
.portal-shell .home-period dd,
.portal-shell .home-overdue strong,
.portal-shell .metric-detail-line b,
.portal-shell .orders-summary strong,
.portal-shell .document-stats strong {
    font-weight: 700;
}

/* Reduce only Home amounts; retain label and icon sizing and numeric weight. */
.portal-shell.home-redesign .portal-metrics strong,
.portal-shell.home-redesign .home-overdue strong {
    font-size: 18px;
    letter-spacing: normal;
}
.portal-shell.home-redesign .home-period dd,
.portal-shell.home-redesign .metric-detail-line b {
    font-size: 16px;
    letter-spacing: normal;
}

/* Quick action palette follows the supplied reference, in the displayed order. */
.portal-shell .home-quick-actions > :nth-child(1) {
    --quick-background: #ead000;
    --quick-foreground: #00452e;
}
.portal-shell .home-quick-actions > :nth-child(2) {
    --quick-background: #df0035;
    --quick-foreground: #fff;
}
.portal-shell .home-quick-actions > :nth-child(3) {
    --quick-background: #287fbc;
    --quick-foreground: #fff;
}
.portal-shell .home-quick-actions > :nth-child(4) {
    --quick-background: #a24c99;
    --quick-foreground: #fff;
}
.portal-shell .home-quick-actions > :nth-child(5) {
    --quick-background: #d66a2c;
    --quick-foreground: #fff;
}
.portal-shell .home-quick-actions > button,
.portal-shell .home-quick-actions > a {
    background: var(--quick-background);
    color: var(--quick-foreground);
    box-shadow: inset 0 0 0 1px #ffffff30;
}
.portal-shell .home-quick-actions > button:hover,
.portal-shell .home-quick-actions > a:hover {
    background: color-mix(in srgb, var(--quick-background) 87%, black);
    box-shadow: inset 0 0 0 1px #ffffff30;
    color: var(--quick-foreground);
}
.portal-shell .home-quick-actions .metric-icon {
    background: transparent;
    color: inherit;
}

/* Leave room for complete amounts on phones, including the currency suffix. */
@media (max-width: 600px) {
    .home-redesign .navigable-period .home-period-body {
        padding: 12px;
    }
    .home-redesign .home-period-body > .metric-icon {
        display: none;
    }
    .home-redesign .home-period dl > div {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .home-redesign .home-period dd {
        margin-left: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: right;
    }
    .home-redesign .navigable-period .home-period-toolbar {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 4px 8px;
    }
    .home-redesign .portal-metrics article > div {
        min-width: 0;
        flex: 1;
    }
    .portal-shell.home-redesign .portal-metrics strong,
    .portal-shell.home-redesign .metric-detail-line b,
    .portal-shell.home-redesign .home-overdue strong {
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }
}

/* Dashboard 1.0.49: commission beside OZ, overdue metric and notification preview. */
.home-rep-summary{font-size:12px;min-width:165px;color:#163c30}.home-rep-summary dl{margin:0}.home-rep-summary dl>div{display:flex;justify-content:space-between;gap:16px}.home-rep-summary dt{font-weight:700}.home-rep-summary dd{margin:0;font-weight:800}.home-rep-summary>span{display:block;font-size:11px;margin-top:3px;color:#245640}.home-overdue-top{position:relative;min-width:0}.home-overdue-top>div,.home-overdue-top article{height:100%;box-sizing:border-box}.home-overdue-top-open{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:7px;background:transparent}.home-overdue-top-open:hover{box-shadow:none}.portal-shell .home-period dt{display:block;white-space:nowrap}.portal-shell .home-period dt>b{display:inline;min-width:0;margin:0;font-size:inherit;font-weight:900}.home-notifications{min-width:0}.home-notifications header h2{display:flex;align-items:center;gap:10px}.home-notifications header .portal-icon{color:#075740}.notification-preview-note{font-size:11px;color:#587062;margin:0 0 8px}.home-notification-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #e0ece6;font-size:12px}.home-notification-row:last-child{border:0}.notification-dot{width:10px;height:10px;border-radius:50%;flex:none;background:#18ae35}.notification-dot.calendar{background:#f2b900}.notification-dot.document{background:#0862ff}.notification-time{margin-left:auto;color:#587092}.home-redesign .info-row[data-category=megaphone] .portal-icon{color:#efb800}.home-redesign .info-row[data-category=warning] .portal-icon{color:#ef2525}.home-redesign .info-row[data-category=new-document] .portal-icon{color:#0862ff}.home-redesign .info-row[data-category=price-document] .portal-icon{color:#b21eb3}.home-redesign .info-row[data-category=flyer] .portal-icon{color:#ff7900}.home-redesign .info-row[data-category=book] .portal-icon{color:#075740}
@media(min-width:1251px){.home-redesign .portal-main{grid-template-columns:minmax(540px,1fr) minmax(400px,1fr)}}
@media(max-width:760px){.home-rep-summary{width:100%;max-width:300px}.home-notifications header{flex-wrap:wrap;gap:8px}}

.home-overdue-top{height:100%}.home-redesign .home-overdue-top article{height:100%}

.overview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px 0}.overview-search{display:flex;align-items:center;position:relative;width:340px;max-width:100%;margin:0}.overview-search>.portal-icon{position:absolute;left:12px;width:20px;height:20px;color:#075740;pointer-events:none}.portal-shell .overview-search input[type=search]{width:100%;min-width:0;min-height:42px;padding:9px 12px 9px 42px;border:1px solid #b6d1c3;border-radius:6px;background:white;color:#163c30}.overview-export{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.overview-export>.document-open{min-height:42px;display:flex;align-items:center;gap:8px}.export-status{font-size:12px;color:#245640}.portal-form-content{--agenda-accent:#5a947c}.portal-form-content[data-agenda="Nabídky"]{--agenda-accent:#e6c500}.portal-form-content[data-agenda="Objednávky"]{--agenda-accent:#d53e53}.portal-form-content[data-agenda="Kalendář"]{--agenda-accent:#328fca}.portal-form-content[data-agenda="Dokumenty"]{--agenda-accent:#a450a3}.portal-form-content[data-agenda="Poznámky"]{--agenda-accent:#e77b37}.portal-form-content[data-agenda="Výrobky"]{--agenda-accent:#7da14d}.portal-form-content:not([data-agenda="Domů"]) .documents-list,.portal-form-content:not([data-agenda="Domů"]) .draft-title{border-top:3px solid var(--agenda-accent)}.portal-form-content:not([data-agenda="Domů"]) .overview-search input{border-left:3px solid var(--agenda-accent)}@media(max-width:600px){.overview-toolbar{align-items:stretch}.overview-search{width:100%}}

/* Shared controls outside the document editor. Editor descendants are deliberately excluded. */
.portal-shell :is(.document-open,.portal-primary,.home-create-button,.portal-refresh,.notification-bell):not(.draft-shell *) {
 min-height:44px; border-radius:6px; background:#075740; color:#fff; border:1px solid #075740; font-size:14px; line-height:1.25; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
}
.portal-shell :is(.document-open,.portal-primary,.home-create-button,.portal-refresh,.notification-bell):not(.draft-shell *):hover:not(:disabled){background:#064631;color:#fff;border-color:#064631}
.portal-shell :is(.document-open,.portal-primary,.home-create-button,.portal-refresh,.notification-bell):not(.draft-shell *):disabled{opacity:.5;cursor:not-allowed}
.portal-shell .portal-header-actions :is(.notification-bell,.portal-refresh){width:44px;height:44px;min-height:44px;border-radius:6px;padding:0}
.portal-shell :is(.period-shift,.overview-pager button):not(.draft-shell *){min-width:44px;min-height:44px;border-radius:6px}
.portal-shell .period-shift:not(.draft-shell *){width:44px;height:44px;padding:0}
.portal-shell .home-period-toolbar button{min-width:44px;min-height:44px;border-radius:6px}
.portal-shell :is(.customer-basic-filters button,.customer-actions button,.card-link):not(.draft-shell *){min-height:44px;border-radius:6px}
.portal-shell :is(.customer-basic-filters button.selected,.overview-pager button.active):not(.draft-shell *){background:#075740;color:white;border-color:#075740}
.portal-shell :is(.portal-secondary,.customer-actions button):not(.draft-shell *){background:#e5f1eb;color:#075740;border:1px solid #aac6b8}
.portal-shell :is(.portal-secondary,.customer-actions button):not(.draft-shell *):hover:not(:disabled){background:#cee4d8;color:#075740;border-color:#79a48e}
.portal-shell :is(.meeting-close,.portal-close):not(.draft-shell *){display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #aac6b8;border-radius:6px;background:#e5f1eb;color:#075740;font-size:24px;flex-shrink:0}
.portal-shell :is(.meeting-close,.portal-close):not(.draft-shell *):hover{background:#cee4d8;color:#075740}
.portal-shell .representative-trigger:not(.draft-shell *){min-height:44px;height:auto;border-radius:6px}
.portal-select{min-width:0;width:210px;max-width:100%}.orders-page-size .portal-select{width:85px}.portal-select .representative-trigger{width:100%}.meeting-editor .portal-select{width:100%}
.portal-shell .overview-search input[type=search]{min-height:44px}
.login-card .primary-button,.login-card .primary-button:hover{background:#075740;border-radius:6px;min-height:44px}
.portal-shell .portal-notice:not(.draft-shell *){border:1px solid #dec58e;color:#604517;background:#fff7e5;border-radius:6px;line-height:1.5}
.portal-feedback{position:fixed;z-index:1200;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#075740;color:white;padding:12px 16px;border-radius:6px;max-width:calc(100vw - 32px);box-shadow:0 6px 24px #003a2d40;font-size:14px}.portal-feedback button{background:transparent;color:white;border:0;min-width:44px;min-height:44px;font-size:24px}

.data-source-dialog>.portal-close,.data-source-dialog>header>.portal-close{width:44px;height:44px;min-height:44px;padding:0;border:1px solid #aac6b8;border-radius:6px;background:#e5f1eb;color:#075740;font-size:24px;justify-content:center}

.portal-sidebar nav .operations-admin-nav{white-space:normal;gap:10px}.portal-sidebar nav .operations-admin-nav span{font-size:12px;line-height:1.4}

.portal-shell .operations-admin-nav .portal-icon{color:#ffe000;width:28px;height:28px}

/* Equal bottom-card heights only while the dashboard uses two columns. */
@media(min-width:1001px){
 .home-bottom-panels{align-items:stretch}
 .home-bottom-panels>.source-region{display:flex;min-width:0}
 .home-bottom-panels>.source-region>.document-tile{flex:1;min-width:0}
}

/* Administration navigation remains separate from each form's filters. */
.administration-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 12px;margin:0 0 20px;border-bottom:1px solid #b6d1c3}
.portal-shell .administration-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;flex-shrink:0;border:1px solid #aac6b8;border-radius:6px;background:#e5f1eb;color:#075740;font-size:14px}
.portal-shell .administration-tabs button[aria-selected=true]{background:#075740;color:#fff;border-color:#075740}
.portal-shell .administration-tabs button:hover{background:#cee4d8}
.portal-shell .administration-tabs button[aria-selected=true]:hover{background:#064631}
.administration-tabs .portal-icon{width:20px;height:20px}
.administration-workspace{min-width:0}
