/* ==========================================================================
   Dimension pages (Víddir list, dimension page, access tree, dialogs)
   ========================================================================== */

.dim-page {
    --dim-heading: #12263f;
    --dim-muted: #6e84a3;
    --dim-primary: #2c7be5;
    --dim-chip: #eef4fd;
    --dim-warning: #b26a00;
    --order-ease: cubic-bezier(.22, 1, .36, 1);
    --order-spring: cubic-bezier(.34, 1.36, .64, 1);
    min-width: 0;
    overflow-wrap: anywhere;
}

.dim-shell {
    max-width: 1088px;
    margin-inline: auto;
}

.dim-btn-static:hover {
    transform: none;
}

.dim-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
}

.dim-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dim-toolbar .grid-search-bar {
    min-width: min(100%, 240px);
}

.dim-note {
    font-size: 0.875rem;
    color: var(--dim-muted, #6e84a3);
    margin: 0.5rem 0 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dim-note--info {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    margin-top: 0.75rem;
    padding: 0.6875rem 0.875rem;
    border-radius: 10px;
    background: #eef5fd;
    color: #1d3f6e;
}

.dim-note--info .fe {
    flex-shrink: 0;
    margin-top: 0.1875rem;
}

.dim-note--warning {
    color: var(--dim-warning, #b26a00);
}

.dim-meta {
    font-size: 0.8125rem;
    color: var(--dim-muted, #6e84a3);
}

.dim-link {
    color: var(--dim-primary, #2c7be5);
    font-weight: 500;
    text-decoration: none;
}

.dim-link:hover {
    text-decoration: underline;
}

.dim-warning-link {
    color: var(--dim-warning, #b26a00);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    background: none;
    padding: 0;
}

.dim-icon-btn {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dim-muted, #6e84a3);
    flex-shrink: 0;
}

.dim-icon-btn:hover:not(:disabled) {
    background: #f1f4f8;
    color: var(--dim-heading, #12263f);
}

.dim-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 110px minmax(0, 1.3fr) 170px;
    gap: 16px;
    align-items: center;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid #f0f3f5;
    cursor: pointer;
}

.dim-list-row--plain {
    grid-template-columns: minmax(0, 3fr) 170px;
}

.dim-list-row--card {
    grid-template-columns: minmax(0, 2.4fr) 140px 170px;
}

.dim-list-row--card-epo {
    grid-template-columns: minmax(0, 1.5fr) 140px 110px minmax(0, 1.2fr) 170px;
}

.dim-cell-label {
    display: none;
    margin-right: 6px;
    font-size: 12px;
    color: var(--dim-muted, #6e84a3);
}

@media (max-width: 1199.98px) {
    .dim-list-row--card-epo {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .dim-list-head.dim-list-row--card-epo {
        display: none;
    }

    .dim-list-row--card-epo .dim-cell-label {
        display: inline;
    }
}

.dim-list-row:last-child {
    border-bottom: none;
}

.dim-list-row:not(.dim-list-head):hover {
    background: #f9fbfd;
}

.dim-list-row:not(.dim-list-head):hover .grid-row-title {
    color: var(--dim-primary, #2c7be5);
}

.dim-list-head {
    padding-top: 0.8125rem;
    padding-bottom: 0.8125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #95aac9;
    cursor: default;
}

.dim-list-row .grid-row-meta,
.dim-list-row .grid-row-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dim-list-row .grid-row-identity {
    min-width: 0;
}

.dim-req {
    font-size: 13px;
    color: var(--dim-muted, #6e84a3);
}

.dim-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    margin-left: 12px;
    vertical-align: middle;
}

.dim-pills .dim-type-tag {
    margin-left: 0;
    line-height: 1.4;
    vertical-align: baseline;
}

.dim-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #edf2f9;
    color: var(--dim-muted, #6e84a3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

button.dim-pill {
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

button.dim-pill:hover {
    border-color: #c6d3e6;
}

.dim-pill.is-filled {
    background: #12263f;
    color: #fff;
}

button.dim-pill.is-filled:hover {
    border-color: #12263f;
    background: #24426b;
}

.dim-pill.is-amber,
.dim-pill.is-warn {
    background: #fff4e0;
    color: #7a4b00;
}

.dim-pill.is-amber::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #d9961c;
}

.dim-pill.is-warn {
    border-color: #f3d39a;
}

button.dim-pill.is-amber:hover,
button.dim-pill.is-warn:hover {
    border-color: #d9961c;
}

.dim-acc b {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #7a4b00;
}

.dim-acc b::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: #d9961c;
}

.dim-acc-all {
    font-size: 13.5px;
    color: var(--dim-muted, #6e84a3);
}

.dim-cnt {
    font-size: 13.5px;
    text-align: right;
    color: var(--dim-heading, #12263f);
    font-variant-numeric: tabular-nums;
}

.dim-type-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 7px;
    background: #edf2f9;
    color: #3b506c;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}

.dim-fsec {
    margin-bottom: 18px;
}

.dim-fsec h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #12263f;
}

.dim-fld {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6e84a3;
}

.dim-fld input,
.dim-fld select,
.dim-fld textarea {
    padding: 8px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 9px;
    background: #fff;
    color: #12263f;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
}

.dim-fld input,
.dim-fld select {
    height: 38px;
}

.dim-fld textarea {
    min-height: 64px;
    resize: vertical;
}

.dim-fld input:focus,
.dim-fld select:focus,
.dim-fld textarea:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px #e8f1fd;
}

.dim-ferr {
    margin: -6px 0 12px;
    font-size: 12.5px;
    color: #b42318;
}

.dim-ckrow {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: none;
    text-align: left;
}

.dim-ckrow .acc-chk {
    margin-top: 2px;
}

.dim-ckrow b,
.dim-choice b {
    display: block;
    font-size: 13.5px;
    color: #12263f;
}

.dim-ckrow small,
.dim-choice small {
    display: block;
    font-size: 12.5px;
    color: #6e84a3;
}

.dim-ckrow small.is-warn {
    margin-top: 4px;
    color: var(--dim-warning, #b26a00);
}

.dim-ckrow:disabled,
.dim-choice:disabled {
    opacity: .5;
    cursor: default;
}

.dim-choice {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--dim-line, #edf1f6);
    text-align: left;
    transition: box-shadow 120ms ease, background-color 120ms ease;
}

.dim-choice.is-on {
    background: #e8f1fd;
    box-shadow: inset 0 0 0 1.5px #2c7be5;
}

.dim-radio {
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid #c3d0e1;
    border-radius: 9px;
    background: #fff;
}

.dim-choice.is-on .dim-radio {
    border-color: #2c7be5;
}

.dim-choice.is-on .dim-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #2c7be5;
}

.dim-bar {
    max-width: 160px;
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: #edf1f6;
    overflow: hidden;
}

.dim-bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: #d9961c;
}

.dim-tile {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f9;
    color: var(--dim-primary, #2c7be5);
    font-size: 18px;
}

.tile-no {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Víddir ordering mode */
.dim-list-card {
    transition: box-shadow .3s var(--order-ease);
}

.dim-list-card.is-ordering {
    box-shadow: 0 0 0 2px rgba(44, 123, 229, .18), 0 12px 32px rgba(18, 38, 63, .08);
}

.is-ordering .dim-list-row:not(.dim-list-head) {
    cursor: grab;
    user-select: none;
    transition: transform .22s var(--order-ease), background .15s;
}

.is-ordering .dim-list-row:not(.dim-list-head):hover .grid-row-title {
    color: inherit;
}

.is-ordering .tile-no {
    animation: order-no-in .24s var(--order-ease);
}

@keyframes order-no-in {
    from { opacity: 0; transform: translateY(30%); }
}

.order-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 32px;
    margin-right: -0.375rem;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #95aac9;
    cursor: grab;
    touch-action: none;
    transition: background .15s, color .15s;
    animation: order-handle-in .32s var(--order-ease);
}

@keyframes order-handle-in {
    from { width: 0; margin-right: -1rem; opacity: 0; }
}

.order-handle:hover {
    background: #f1f4f8;
    color: var(--dim-heading, #12263f);
}

.order-handle:focus-visible {
    outline: 2px solid #2c7be5;
    outline-offset: 1px;
}

.order-handle .fe {
    font-size: 16px;
}

.order-was {
    display: inline-block;
    margin-left: .5rem;
    padding: .0625rem .4375rem;
    border-radius: 99px;
    background: var(--dim-chip, #eef4fd);
    color: var(--dim-primary, #2c7be5);
    font-size: .6875rem;
    font-weight: 600;
    vertical-align: 1px;
    animation: order-was-in .28s var(--order-spring);
}

@keyframes order-was-in {
    from { opacity: 0; transform: scale(.6); }
}

.order-bar {
    display: grid;
    grid-template-rows: 1fr;
    animation: order-bar-in .32s var(--order-ease);
}

.order-bar > div {
    overflow: hidden;
}

@keyframes order-bar-in {
    from { grid-template-rows: 0fr; }
}

.order-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f3f5;
    background: linear-gradient(180deg, #f5f9ff, #fff);
}

.order-bar-text {
    flex: 1 1 320px;
    min-width: 0;
}

.order-bar-title {
    color: var(--dim-heading, #12263f);
    font-weight: 600;
}

.order-bar-sub {
    color: var(--dim-muted, #6e84a3);
    font-size: .875rem;
}

.order-bar .btn:hover {
    transform: none;
}

.order-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The lifted row follows the pointer in a host on <body>; the slot marks where it will land */
.ghost-host {
    position: absolute;
    z-index: 1080;
    pointer-events: none;
    will-change: transform;
}

.ghost-host.is-landing {
    transition: transform .34s var(--order-spring);
}

.ghost-ctx {
    margin: 0;
    background: none;
}

.ghost-ctx * {
    animation: none !important;
}

.drag-ghost {
    position: relative;
    margin: 0;
    background: #fff;
    border-radius: 14px;
    border-bottom: 0 !important;
    box-shadow: 0 1px 2px rgba(18, 38, 63, .06), 0 0 0 1px rgba(44, 123, 229, .12);
    transform-origin: 50% 50%;
    transition: transform .22s var(--order-ease), box-shadow .22s var(--order-ease);
}

.drag-ghost.is-lifted {
    transform: scale(1.025);
    box-shadow: 0 1px 2px rgba(18, 38, 63, .06), 0 18px 40px rgba(18, 38, 63, .18), 0 0 0 1px rgba(44, 123, 229, .22);
}

.drag-slot {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
    background: rgba(44, 123, 229, .06);
    box-shadow: inset 0 0 0 1.5px rgba(44, 123, 229, .35);
    transition: transform .26s var(--order-ease), opacity .2s;
}

.is-placeholder {
    visibility: hidden;
}

.is-dragging,
.is-dragging * {
    cursor: grabbing !important;
}

.no-anim,
.no-anim * {
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .ghost-host,
    .drag-ghost,
    .drag-slot {
        transition: none !important;
    }
}

.dim-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--dim-muted, #6e84a3);
}

.dim-attention {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #7a5a00;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dim-note--warning-box {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.6875rem 0.875rem;
    border-radius: 10px;
    background: #fff6e0;
    color: #7a5a00;
}

.dim-note--warning-box .fe {
    flex-shrink: 0;
    margin-top: 0.1875rem;
}

.dim-note-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Aðgangur deilda: department tree with the value editor inline under the row */
.acc-card,
.dim-form {
    --acc-ink: #12263f;
    --acc-text: #3b506c;
    --acc-muted: #6e84a3;
    --acc-faint: #a3b4cb;
    --acc-line: #edf1f6;
    --acc-sunken: #f1f4f8;
    --acc-hover: #f7f9fc;
    --acc-primary: #2c7be5;
    --acc-primary-soft: #e8f1fd;
    --acc-inherited: #a9c8f2;
    --acc-dept: #1f6f8b;
    --acc-val: #7a4b00;
    --acc-val-soft: #fff4e0;
    --acc-amber: #d9961c;
    --acc-ease: cubic-bezier(0.2, 0, 0, 1);
    --acc-spring: cubic-bezier(.34, 1.5, .64, 1);
    --acc-mono: 'SF Mono', Menlo, Consolas, monospace;
}

.acc-card {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    color: var(--acc-text);
    box-shadow: 0 0 0 1px rgba(18, 38, 63, .06), 0 1px 2px rgba(18, 38, 63, .04), 0 12px 32px -16px rgba(18, 38, 63, .16);
}

.acc-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--acc-line);
}

.acc-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--acc-ink);
}

.acc-summary {
    color: var(--acc-muted);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

.acc-lim {
    color: var(--acc-val);
}

.acc-sws {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
}

.acc-sw {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    height: 34px;
    margin-left: auto;
    padding: 0 12px 0 8px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--acc-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.acc-sw:hover {
    background: var(--acc-hover);
}

.acc-sw[aria-checked="true"] {
    color: var(--acc-ink);
}

.acc-sw-track {
    position: relative;
    width: 30px;
    height: 18px;
    border-radius: 9px;
    background: #d3dce8;
    transition: background-color 160ms var(--acc-ease);
}

.acc-sw-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 38, 63, .3);
    transition: translate 200ms var(--acc-ease);
}

.acc-sw[aria-checked="true"] .acc-sw-track {
    background: var(--acc-primary);
}

.acc-sw[aria-checked="true"] .acc-sw-track::after {
    translate: 12px 0;
}

.acc-search {
    position: relative;
    display: block;
    flex: 1 1 220px;
    max-width: 340px;
    margin: 0;
}

.acc-search .fe {
    position: absolute;
    top: 50%;
    left: 12px;
    translate: 0 -50%;
    color: var(--acc-faint);
}

.acc-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 0;
    border-radius: 10px;
    background: var(--acc-sunken);
    color: var(--acc-ink);
    transition: box-shadow 150ms var(--acc-ease), background-color 150ms var(--acc-ease);
}

.acc-search input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 1px var(--acc-primary), 0 0 0 4px rgba(44, 123, 229, .12);
}

/* .acc-search on the shared TextInput: its own 46px bordered field and icon offsets give way to the look above. */
.text-input.acc-search .text-input-wrap input {
    height: 38px;
    padding: 0 12px 0 36px;
    border: 0;
    border-radius: 10px;
    background: var(--acc-sunken);
    color: var(--acc-ink);
    font-size: 1rem;
    line-height: 1.5;
    transition: box-shadow 150ms var(--acc-ease), background-color 150ms var(--acc-ease);
}

.text-input.acc-search .text-input-wrap input:focus {
    background: #fff;
}

.text-input.acc-search .text-input-wrap input::placeholder {
    color: #757575;
}

.text-input.acc-search .text-input-icon {
    left: 12px;
    transform: none;
    color: var(--acc-faint);
    font-size: inherit;
}

.acc-tree {
    padding: 6px 8px 10px;
}

.acc-row {
    --d: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 4px 12px 4px calc(var(--d) * 28px + 12px);
    border-radius: 10px;
    transition: background-color 120ms var(--acc-ease);
}

.acc-row:hover {
    background: var(--acc-hover);
}

.acc-row.is-flash-a { animation: acc-flash-a 1400ms var(--acc-ease); }
.acc-row.is-flash-b { animation: acc-flash-b 1400ms var(--acc-ease); }
.acc-row.is-flash-a .acc-st { animation: acc-pin-a 320ms var(--acc-spring); }
.acc-row.is-flash-b .acc-st { animation: acc-pin-b 320ms var(--acc-spring); }
@keyframes acc-flash-a { 0%, 25% { background: #e8f1fd; } }
@keyframes acc-flash-b { 0%, 25% { background: #e8f1fd; } }
@keyframes acc-pin-a { from { opacity: 0; scale: .7; } }
@keyframes acc-pin-b { from { opacity: 0; scale: .7; } }

.acc-node.is-marked > .acc-row {
    box-shadow: inset 3px 0 0 var(--acc-primary);
}

.acc-chev {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--acc-muted);
    transition: background-color 150ms var(--acc-ease);
}

.acc-chev::after {
    content: '';
    position: absolute;
    inset: -6px;
}

.acc-chev:hover {
    background: var(--acc-sunken);
    color: var(--acc-ink);
}

.acc-chev .fe {
    transition: rotate 250ms var(--acc-ease);
}

.acc-node.is-open > .acc-row .acc-chev .fe {
    rotate: 90deg;
}

.acc-chev.is-leaf {
    visibility: hidden;
}

.acc-chk {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1.5px solid #c3d0e1;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    font-size: 12px;
    transition: background-color 120ms var(--acc-ease), border-color 120ms var(--acc-ease);
}

.acc-chk::after {
    content: '';
    position: absolute;
    inset: -8px;
}

.acc-chk .acc-tick {
    opacity: 0;
    transition: opacity 120ms var(--acc-ease);
}

.acc-chk.is-on {
    border-color: var(--acc-primary);
    background: var(--acc-primary);
}

.acc-chk.is-on .acc-tick {
    opacity: 1;
}

.acc-chk.is-fresh-a { animation: acc-press-a 260ms var(--acc-spring); }
.acc-chk.is-fresh-b { animation: acc-press-b 260ms var(--acc-spring); }
.acc-chk.is-fresh-a .acc-tick path { stroke-dasharray: 24; animation: acc-draw-a 260ms var(--acc-ease) 60ms backwards; }
.acc-chk.is-fresh-b .acc-tick path { stroke-dasharray: 24; animation: acc-draw-b 260ms var(--acc-ease) 60ms backwards; }
@keyframes acc-press-a { 40% { scale: .82; } }
@keyframes acc-press-b { 40% { scale: .82; } }
@keyframes acc-draw-a { from { stroke-dashoffset: 24; } }
@keyframes acc-draw-b { from { stroke-dashoffset: 24; } }

.acc-chk.is-inh {
    border-color: var(--acc-inherited);
    background: var(--acc-inherited);
}

.acc-chk.is-mixed {
    border-color: var(--acc-primary);
}

.acc-chk.is-mixed::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--acc-primary);
}

.acc-who {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
}

.acc-name {
    font-weight: 600;
    color: var(--acc-ink);
    overflow-wrap: anywhere;
}

.acc-node.is-off > .acc-row .acc-name {
    font-weight: 400;
    color: var(--acc-muted);
}

.acc-name mark {
    padding: 0 1px;
    border-radius: 3px;
    background: #fff0c2;
    color: inherit;
}

.acc-emp,
.acc-cmeta {
    font-size: 12.5px;
    color: var(--acc-muted);
    font-variant-numeric: tabular-nums;
}

.acc-cmeta {
    transition: opacity 200ms var(--acc-ease);
}

.acc-node.is-open > .acc-row .acc-cmeta {
    opacity: 0;
}

.acc-rt {
    display: flex;
    flex: none;
    gap: 6px;
    align-items: center;
}

.acc-st {
    min-width: 84px;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
    color: var(--acc-muted);
}

b.acc-st {
    min-width: 0;
    font-weight: 400;
}

.acc-inh {
    font-weight: 400;
    color: var(--acc-muted);
}

.acc-st.is-lim .acc-inh {
    margin-left: -4px;
}

.acc-st.is-lim {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
    font-weight: 600;
    color: var(--acc-val);
}

.acc-st.is-lim::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: var(--acc-amber);
}

.acc-slot {
    display: inline-flex;
    width: 112px;
}

.acc-act {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--acc-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 140ms var(--acc-ease), transform 180ms var(--acc-ease), background-color 120ms var(--acc-ease);
}

.acc-act:hover {
    background: var(--acc-primary-soft);
}

.acc-row:hover .acc-act,
.acc-act:focus-visible {
    opacity: 1;
    transform: none;
}

.acc-kids {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms var(--acc-ease);
}

.acc-node.is-open > .acc-kids {
    grid-template-rows: 1fr;
}

.acc-in {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.acc-in::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    left: calc(var(--d) * 28px + 22px);
    width: 2px;
    border-radius: 1px;
    background: var(--acc-line);
    transition: background-color 250ms var(--acc-ease);
}

.acc-empty {
    padding: 28px;
    text-align: center;
    color: var(--acc-muted);
}

.acc-ro {
    --d: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: -2px 12px 12px calc(var(--d) * 28px + 72px);
    padding: 2px 0 2px 12px;
    border-left: 2px solid #f1d39b;
}

.acc-also {
    padding: 0 4px;
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-also b {
    font-weight: 600;
    color: var(--acc-ink);
}

.acc-pill {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 7px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e1e8f1;
    color: var(--acc-ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.acc-pill.is-fresh-a { animation: acc-pin-a 260ms var(--acc-spring); }
.acc-pill.is-fresh-b { animation: acc-pin-b 260ms var(--acc-spring); }
.acc-pill.is-leaving { animation: acc-pout 140ms var(--acc-ease) forwards; pointer-events: none; }
@keyframes acc-pout { to { opacity: 0; scale: .7; } }

@media (prefers-reduced-motion: reduce) {
    .dim-shell *, .dim-shell *::before, .dim-shell *::after,
    .offcanvas *, .offcanvas *::before, .offcanvas *::after {
        animation: none !important;
        transition: none !important;
    }
}

.acc-pill code {
    font-family: var(--acc-mono);
    font-size: 11.5px;
    color: var(--acc-muted);
}

.acc-emp.is-own {
    color: var(--acc-val);
}

.acc-emp-row {
    min-height: 40px;
}

.acc-emp-row .acc-name {
    font-size: 13.5px;
    font-weight: 500;
}

.acc-emp-row.is-off .acc-name {
    font-weight: 400;
    color: var(--acc-muted);
}

.acc-emp-row.is-marked {
    box-shadow: inset 3px 0 0 var(--acc-primary);
}

.acc-av {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #e8eef6;
    color: #4a5f7a;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.acc-emp-row.is-own .acc-av {
    background: #fdf1dc;
    color: #8a5a0b;
}

.acc-emore {
    --d: 0;
    display: block;
    margin: 0 0 4px calc(var(--d) * 28px + 46px);
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--acc-primary);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.acc-emore:hover {
    background: var(--acc-primary-soft);
}

.acc-emps {
    animation: acc-open 220ms var(--acc-ease);
}

.acc-more {
    padding: 3px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--acc-primary-soft);
    color: var(--acc-primary);
    font-size: 12.5px;
    font-weight: 600;
}

.acc-ed {
    --d: 0;
    margin: 2px 12px 12px calc(var(--d) * 28px + 72px);
    padding: 12px 14px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px #dbe4ef, 0 14px 30px -20px rgba(18, 38, 63, .4);
    animation: acc-open 260ms var(--acc-ease);
    transform-origin: top center;
}

@keyframes acc-open {
    from { opacity: 0; transform: translateY(-6px) scaleY(.96); }
}

.acc-ed-lbl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-ink);
    overflow-wrap: anywhere;
}

.acc-link {
    padding: 2px 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-primary);
}

.acc-link:disabled {
    opacity: .5;
}

.acc-sub {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 560px;
    margin: -4px 0 8px -10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    text-align: left;
}

.acc-sub:hover {
    background: var(--acc-sunken);
}

.acc-sub .acc-chk {
    margin-top: 2px;
}

.acc-sub b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--acc-ink);
}

.acc-sub small {
    display: block;
    margin-top: 1px;
    font-size: 12.5px;
    color: var(--acc-muted);
    overflow-wrap: anywhere;
}

.acc-pick {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #dbe4ef;
    transition: box-shadow 150ms var(--acc-ease);
}

.acc-pick:focus-within {
    box-shadow: inset 0 0 0 1px var(--acc-primary), 0 0 0 3px rgba(44, 123, 229, .12);
}

.acc-pick-h {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 6px 0 12px;
    border-bottom: 1px solid var(--acc-line);
    background: #fff;
}

.acc-pick-h .fe {
    flex: none;
    color: var(--acc-faint);
}

.acc-pick-h input {
    flex: 1 1 120px;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--acc-ink);
}

.acc-cnt {
    font-size: 12.5px;
    white-space: nowrap;
    color: var(--acc-muted);
    font-variant-numeric: tabular-nums;
}

.acc-only {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: none;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--acc-muted);
}

.acc-only[aria-pressed="true"] {
    background: var(--acc-primary-soft);
    color: var(--acc-primary);
}

.acc-plist:not(.is-ready),
.acc-win:not(.is-ready),
.acc-win-scrim:has(+ .acc-win:not(.is-ready)) {
    visibility: hidden;
}

.acc-plist {
    max-height: min(60vh, 560px);
    padding: 4px;
    overflow: auto;
    background: #fbfcfe;
}

.acc-opt {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: none;
    text-align: left;
    transition: background-color 100ms var(--acc-ease);
}

.acc-opt:hover:not(:disabled),
.acc-opt.is-hi {
    background: var(--acc-hover);
}

.acc-opt.is-locked {
    cursor: default;
}

.acc-opt.is-locked .acc-chk.is-on {
    opacity: 0.55;
}

.acc-opt .acc-chk.is-on {
    transition: opacity 200ms var(--acc-ease);
}

.acc-opt .acc-chk.is-fresh-a { animation: acc-settle-a 240ms var(--acc-spring) calc(var(--i, 0) * 16ms) backwards; }
.acc-opt .acc-chk.is-fresh-b { animation: acc-settle-b 240ms var(--acc-spring) calc(var(--i, 0) * 16ms) backwards; }
.acc-opt .acc-chk.is-fresh-a .acc-tick path,
.acc-opt .acc-chk.is-fresh-b .acc-tick path { animation-delay: calc(60ms + var(--i, 0) * 16ms); }
.acc-opt .acc-chk.is-fresh-a ~ .acc-tag { animation: acc-tag-a 200ms var(--acc-ease) calc(80ms + var(--i, 0) * 16ms) backwards; }
.acc-opt .acc-chk.is-fresh-b ~ .acc-tag { animation: acc-tag-b 200ms var(--acc-ease) calc(80ms + var(--i, 0) * 16ms) backwards; }
@keyframes acc-settle-a { from { background-color: #fff; border-color: #c3d0e1; scale: .82; } }
@keyframes acc-settle-b { from { background-color: #fff; border-color: #c3d0e1; scale: .82; } }
@keyframes acc-tag-a { from { opacity: 0; translate: 4px 0; } }
@keyframes acc-tag-b { from { opacity: 0; translate: 4px 0; } }

.acc-swap { animation: acc-swap 180ms var(--acc-ease); }
@keyframes acc-swap { from { opacity: 0; } }

.acc-opt code {
    flex: none;
    min-width: 40px;
    white-space: nowrap;
    font-family: var(--acc-mono);
    font-size: 12px;
    color: var(--acc-muted);
}

.acc-opt-n {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.acc-all {
    position: sticky;
    top: -4px;
    z-index: 1;
    background: #fbfcfe;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-ink);
    box-shadow: 0 1px 0 var(--acc-line);
}

.acc-sep {
    height: 1px;
    margin: 4px 8px;
    background: var(--acc-line);
}

.acc-tag {
    flex: none;
    font-size: 12px;
    color: var(--acc-faint);
}

.acc-cap {
    padding: 10px;
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-ed-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 12px -14px 0;
    padding: 10px 14px;
    border-top: 1px solid var(--acc-line);
}

.acc-hint {
    font-size: 12.5px;
    color: var(--acc-muted);
}

.acc-acts {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.acc-btn {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #d8e2ef;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-ink);
    transition: background-color 120ms var(--acc-ease);
}

.acc-btn:hover:not(:disabled) {
    background: var(--acc-sunken);
}

.acc-btn.is-primary {
    background: var(--acc-primary);
    box-shadow: none;
    color: #fff;
}

.acc-btn.is-primary:hover:not(:disabled) {
    background: #1f6fd8;
}

.acc-btn:disabled {
    opacity: .45;
}

.acc-ed-lacts {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.acc-iconbtn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--acc-muted);
    transition: background-color 120ms var(--acc-ease), color 120ms var(--acc-ease);
}

.acc-iconbtn:hover {
    background: var(--acc-hover);
    color: var(--acc-primary);
}

.acc-vgrip {
    position: relative;
    display: block;
    height: 12px;
    border-top: 1px solid var(--acc-line);
    background: #fbfcfe;
    cursor: ns-resize;
    touch-action: none;
}

.acc-vgrip::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 32px;
    height: 3px;
    margin-left: -16px;
    border-radius: 2px;
    background: #c3cfdd;
    transition: background-color 120ms var(--acc-ease);
}

.acc-vgrip:hover::after {
    background: var(--acc-primary);
}

.acc-win-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(18, 38, 63, .38);
}

.acc-win-scrim:has(+ .acc-win.is-ready) {
    animation: acc-fade 160ms var(--acc-ease);
}

.acc-win {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1051;
    display: flex;
    flex-direction: column;
    width: min(1040px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 80px -20px rgba(18, 38, 63, .45);
    color: var(--acc-text);
    translate: -50% -50%;
    outline: none;
}

.acc-win.is-ready {
    animation: acc-pop 180ms var(--acc-ease);
}

@keyframes acc-fade {
    from { opacity: 0; }
}

@keyframes acc-pop {
    from { opacity: 0; scale: .98; }
}

.acc-win-h {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 18px 14px 22px;
    border-bottom: 1px solid var(--acc-line);
}

.acc-win-crumb {
    font-size: 12px;
    color: var(--acc-faint);
    overflow-wrap: anywhere;
}

.acc-win-h h2 {
    margin: 2px 0 0;
    font-size: 19px;
    color: var(--acc-ink);
    overflow-wrap: anywhere;
}

.acc-win-q {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
    margin-top: 2px;
    font-size: 13.5px;
    color: var(--acc-muted);
}

.acc-win-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--acc-muted);
}

.acc-win-x:hover {
    background: var(--acc-sunken);
    color: var(--acc-ink);
}

.acc-win-x.is-sm {
    width: 24px;
    height: 24px;
}

.acc-win-b {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    min-height: 0;
}

.acc-win-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 18px 0 22px;
}

.acc-win-search {
    flex: none;
    max-width: none;
}

.acc-win-range {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-win-rin {
    width: 72px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: var(--acc-sunken);
    color: var(--acc-ink);
}

.acc-link.is-muted {
    color: var(--acc-muted);
}

.acc-win-list {
    flex: 1;
    min-height: 0;
    margin: 8px -8px 0;
    padding: 0 8px 12px;
    overflow: auto;
    overscroll-behavior: contain;
}

.acc-win-list .acc-all {
    top: 0;
    margin-bottom: 2px;
    border-radius: 8px 8px 0 0;
    background: #fff;
}

.acc-win-sel {
    padding-left: 18px;
    border-left: 1px solid var(--acc-line);
    background: #fafbfd;
}

.acc-win-selh {
    display: flex;
    flex: none;
    gap: 10px;
    align-items: center;
    height: 38px;
}

.acc-win-selh b {
    color: var(--acc-ink);
}

.acc-win-selh span {
    flex: 1;
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-win-srow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    padding: 5px 5px 5px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e6ecf3;
}

.acc-win-srow code {
    flex: none;
    min-width: 40px;
    white-space: nowrap;
    font-family: var(--acc-mono);
    font-size: 12px;
    color: var(--acc-muted);
}

.acc-win-srow .acc-opt-n {
    font-size: 14px;
    color: var(--acc-ink);
}

.acc-win-srow.is-fresh-a { animation: acc-sin-a 260ms var(--acc-spring); }
.acc-win-srow.is-fresh-b { animation: acc-sin-b 260ms var(--acc-spring); }
@keyframes acc-sin-a { from { opacity: 0; scale: .7; } }
@keyframes acc-sin-b { from { opacity: 0; scale: .7; } }

.acc-win-srow.is-leaving {
    pointer-events: none;
    animation: acc-sout 140ms var(--acc-ease) forwards;
}

@keyframes acc-sout {
    to { opacity: 0; scale: .7; }
}

.acc-win-empty {
    padding: 32px 8px;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
    color: var(--acc-muted);
}

.acc-win-f {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--acc-line);
}

.acc-win-f .acc-sub {
    margin: 0 0 0 -6px;
}

.acc-win-grip {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cg fill='%2394a3b8'%3E%3Ccircle cx='14' cy='6' r='1.3'/%3E%3Ccircle cx='10' cy='10' r='1.3'/%3E%3Ccircle cx='14' cy='10' r='1.3'/%3E%3Ccircle cx='6' cy='14' r='1.3'/%3E%3Ccircle cx='10' cy='14' r='1.3'/%3E%3Ccircle cx='14' cy='14' r='1.3'/%3E%3C/g%3E%3C/svg%3E") center / 20px no-repeat;
    opacity: .55;
    cursor: nwse-resize;
    touch-action: none;
    transition: opacity 120ms var(--acc-ease);
}

.acc-win-grip:hover {
    opacity: 1;
}

@media (max-width: 700px) {
    .acc-win {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0;
    }

    .acc-win-grip {
        display: none;
    }

    .acc-win-b {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(0, 38%);
    }

    .acc-win-sel {
        border-top: 1px solid var(--acc-line);
        border-left: 0;
    }

    .acc-win-col {
        padding: 12px 14px 0;
    }
}

.acc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px 20px;
    border-top: 1px solid var(--acc-line);
    font-size: 13px;
    color: var(--acc-muted);
}

.acc-legend span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* Ný vídd: departments that see the new dimension */
.dim-ndtree {
    margin-top: 4px;
    padding: 4px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--acc-line);
    animation: acc-open 240ms var(--acc-ease);
    transform-origin: top center;
}

.dim-ndtree-h {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--acc-line);
    font-size: 12.5px;
    color: var(--acc-muted);
}

.dim-nd {
    --d: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 7px 10px 7px calc(10px + var(--d) * 22px);
    border: 0;
    border-radius: 8px;
    background: none;
    text-align: left;
}

.dim-nd:hover {
    background: var(--acc-hover);
}

.dim-nd-n {
    flex: 1;
    min-width: 0;
    color: var(--acc-ink);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dim-nd.is-root .dim-nd-n {
    font-weight: 600;
}

.dim-nd small {
    font-size: 12px;
    color: var(--acc-faint);
}

.dim-ndnote {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--acc-muted);
}

.dim-ndnote .fe {
    margin-top: 3px;
}

/* Gildi og deildir: one row per value, the departments that can pick it underneath */
.gv-hacts {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.gv-hacts .acc-search {
    flex: 0 1 240px;
}

.gv-slot {
    display: inline-flex;
    justify-content: flex-start;
    width: 240px;
}

.gv-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--acc-line);
    background: var(--acc-val-soft);
    color: var(--acc-val);
    font-size: 13px;
}

.gv-notice .acc-link {
    margin-left: auto;
}

.gv-open-note {
    margin-top: 10px;
    padding: 8px 8px 8px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--acc-primary-soft);
    color: var(--acc-text);
}

.gv-open-note > span {
    flex: 1 1 260px;
    min-width: 0;
}

.gv {
    padding: 12px 14px 14px 20px;
    border-bottom: 1px solid var(--acc-line);
    transition: background-color 150ms var(--acc-ease);
}

.gv:last-of-type {
    border-bottom: 0;
}

.gv:hover,
.gv.is-on {
    background: #fafcfe;
}

.gv.is-flash-a { animation: acc-flash-a 1400ms var(--acc-ease); }
.gv.is-flash-b { animation: acc-flash-b 1400ms var(--acc-ease); }

.gv-pagesize {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    font-size: 12.5px;
    color: var(--acc-muted);
}

.gv-pagesize select {
    padding: 2px 6px;
    border: 1px solid var(--acc-line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    color: var(--acc-ink);
}

.gv-sorthead {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 14px 8px 20px;
    border-bottom: 1px solid var(--acc-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--acc-muted);
}

.gv-sort-code {
    flex: none;
    width: calc(var(--gv-code, 4ch) + 2px);
}

.gv-h {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 32px;
}

.gv-h code {
    flex: none;
    width: calc(var(--gv-code, 4ch) + 2px);
    white-space: nowrap;
    font-family: var(--acc-mono);
    font-size: 12.5px;
    color: var(--acc-muted);
}

.gv-h code.is-wide {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
}

.gv-n {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-weight: 600;
    color: var(--acc-ink);
    overflow-wrap: anywhere;
}

.gv.is-inactive .gv-n,
.gv.is-inactive code {
    color: var(--acc-faint);
}

.gv-tag {
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--acc-sunken);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--acc-muted);
}

.gv:hover .acc-act,
.gv .acc-act:focus-visible {
    opacity: 1;
    transform: none;
}

.gv-ro {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 6px 0 0 calc(var(--gv-code, 4ch) + 14px);
}

.gv-dept {
    padding-right: 10px;
}

.gv-par {
    font-size: 12.5px;
    color: var(--acc-faint);
}

.gv-ed {
    margin: 10px 0 0 46px;
    padding: 12px 14px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px #dbe4ef, 0 14px 30px -20px rgba(18, 38, 63, .4);
    animation: acc-open 260ms var(--acc-ease);
    transform-origin: top center;
}

.gv > .gv-ed:first-child {
    margin-top: 0;
}

.gv-nrow {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.gv-nv {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--acc-line);
}

.gv-nv-h {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-ink);
}

.gv-ed.is-embedded {
    margin: 0 0 12px;
    padding-top: 10px;
    box-shadow: 0 0 0 1px #dbe4ef;
}

.gv-ed.is-embedded .acc-ed-foot {
    padding-bottom: 10px;
}

.gv-nv-auto {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.gv-nv-auto .fe {
    color: var(--acc-primary);
}

.gv-nv-sub {
    margin: 10px 0 4px;
    font-size: 13px;
    color: var(--acc-muted);
}

.gv-nv-row {
    padding: 6px 4px;
    border-radius: 8px;
}

.gv-nv-row:hover {
    background: var(--acc-hover);
}

.gv-hint {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--acc-muted);
}

.gv-danger {
    color: #b42318;
}

.gv-acts {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.gv-dsearch {
    display: flex;
    max-width: none;
}

.gv-dsearch .text-input-wrap {
    flex: 1;
}

.gv-dtree {
    margin-top: 8px;
    padding: 4px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #e6ecf3;
}

.gv-drow {
    min-height: 38px;
    cursor: pointer;
}

.gv-drow .acc-name {
    flex: 1;
    font-weight: 500;
}

.acc-tag.is-warn {
    color: var(--acc-val);
}

.gv-foot {
    align-items: center;
}

@media (max-width: 720px) {
    .gv-ro,
    .gv-ed {
        margin-left: 0;
    }

    .gv {
        padding: 10px 12px;
    }

    .gv-h {
        flex-wrap: wrap;
    }
}

@media (hover: none) {
    .acc-act {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 720px) {
    .acc-row {
        flex-wrap: wrap;
        padding-left: calc(var(--d) * 16px + 4px);
    }

    .acc-who {
        flex-basis: calc(100% - 80px);
    }

    .acc-rt {
        flex-basis: 100%;
        justify-content: flex-start;
        padding-left: 64px;
    }

    .acc-st {
        min-width: 0;
        text-align: left;
    }

    .acc-slot {
        width: auto;
    }

    .acc-ro,
    .acc-ed {
        margin-left: calc(var(--d) * 16px + 4px);
        margin-right: 4px;
    }

    .acc-in::before {
        left: calc(var(--d) * 16px + 14px);
    }

    .acc-node.is-open > .acc-row .acc-cmeta {
        display: none;
    }

    .acc-emp-row .acc-who {
        flex-basis: calc(100% - 110px);
    }

    .acc-emore {
        margin-left: calc(var(--d) * 16px + 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-card *,
    .acc-card *::before,
    .acc-card *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
    }
}

.app-dialog-body .dim-note {
    margin-top: 0;
}

.dim-dialog-text {
    margin: 0 0 0.75rem;
    max-width: 60ch;
}

.dept-dims-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.dept-dims-stat {
    flex: 1 1 150px;
    min-width: 0;
    padding: 0.875rem 1.125rem;
    border: 1px solid #e3ebf6;
    border-radius: 12px;
    background: white;
}

.dept-dims-stat strong {
    display: block;
    font-size: 1.375rem;
    font-weight: 600;
    color: #12263f;
    font-variant-numeric: tabular-nums;
}

.dept-dims-stat span {
    font-size: 0.8125rem;
    color: #6e84a3;
}

.dept-dims-table {
    margin: 0 -1.5rem -1.5rem;
    border-top: 1px solid #f0f3f5;
}

.dept-dims-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 0.75rem 1.375rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f3f5;
    overflow-wrap: anywhere;
}

.dept-dims-row:last-child {
    border-bottom: none;
}

.dept-dims-head {
    padding-top: 0.8125rem;
    padding-bottom: 0.8125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #95aac9;
}

.dept-dims-ident {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.dept-dims-name {
    font-weight: 600;
    color: #12263f;
    text-decoration: none;
}

a.dept-dims-row {
    color: inherit;
    text-decoration: none;
    transition: background-color 120ms ease;
}

a.dept-dims-row:hover {
    background: #f7f9fc;
}

a.dept-dims-row:hover .dept-dims-name {
    color: var(--dim-primary, #2c7be5);
}

.dept-dims-sees {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #12263f;
}

.dept-dims-sees.is-lim {
    color: #7a4b00;
}

.dept-dims-own {
    color: #8a5a0b;
}

.dept-dims-sees.is-lim::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: #d9961c;
}

.dept-dims-sees.is-off {
    font-weight: 400;
    color: #a3b4cb;
}

.dept-dims-row.is-hidden .dept-dims-name {
    color: #6e84a3;
}

.dept-dims-values {
    font-weight: 600;
    color: #12263f;
}

.dept-dims-list {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .dim-list-row,
    .dim-settings-card,
    .dim-choice-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .dim-set + .dim-set {
        border-left: 0;
        border-top: 1px solid #f0f3f5;
    }

    .dim-list-row {
        gap: 0.5rem;
        padding: 1rem;
    }

    .dept-dims-head,
    .dim-list-head {
        display: none;
    }

    .dim-cell-label {
        display: inline;
    }

    .dept-dims-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dept-dims-row > :nth-child(n + 3) {
        grid-column: 1 / -1;
    }

    .dept-dims-list {
        white-space: normal;
    }
}
