:root {
    --brand: #087fd0;
    --brand2: #154f91;
    --dark: #10263f;
    --ink: #1e2d3c;
    --muted: #66798d;
    --line: #d9e1e9;
    --panel: #fff;
    --bg: #f2f5f8;
    --ok: #0ba66a;
    --warn: #d28b00;
    --danger: #c83f51;
    --shadow: 0 8px 25px rgba(19,44,70,.07)
}

* {
    box-sizing: border-box
}

html,body {
    margin: 0;
    font-family: Inter,Segoe UI,Arial,sans-serif;
    color: var(--ink);
    background: var(--bg)
}

a {
    color: inherit;
    text-decoration: none
}

.topbar {
    height: 64px;
    background: linear-gradient(90deg,#0d3158,#0c6ab3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 30
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.topbar-brand-group {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.mobile-menu-toggle,
.sidebar-mobile-head,
.sidebar-backdrop {
    display: none !important;
}

.brand>span,.login-logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0b8bea;
    font-size: 23px
}

.brand b {
    display: block;
    font-size: 17px
}

.brand small {
    display: block;
    font-size: 10px;
    color: #d0e7fb
}

.top-actions {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px
}

.top-actions .inst {
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.13);
    font-weight: 700
}

.app-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px)
}

.sidebar {
    background: #10263f;
    color: #eaf4ff;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.sidebar nav {
    display: grid;
    gap: 3px
}

.sidebar nav a {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #d6e4f4;
    font-size: 13px
}

.sidebar nav a i {
    width: 18px;
    text-align: center;
    font-style: normal
}

.sidebar nav a:hover,.sidebar nav a.active {
    background: #1e4e7c;
    color: #fff
}

.side-note {
    padding: 12px;
    background: #183450;
    border-radius: 10px;
    display: grid;
    gap: 4px
}

.side-note small {
    font-size: 10px;
    color: #b9cde2
}

.content {
    padding: 22px;
    min-width: 0
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}

.page-head h1 {
    margin: 0;
    font-size: 24px
}

.page-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #1e4568;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px
}

.btn:hover {
    filter: brightness(.98)
}

.btn.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff
}

.btn.danger {
    color: var(--danger);
    background: #fff2f4;
    border-color: #f0c0c7
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35)
}

.btn.small {
    padding: 6px 8px;
    font-size: 11px
}

.btn.wide {
    width: 100%
}

.alert {
    padding: 10px 13px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #eaf5ff;
    border: 1px solid #bdddf7;
    color: #155487
}

.alert.error {
    background: #fff0f2;
    color: #8b293a;
    border-color: #efbcc4
}

.alert.success {
    background: #edfff8;
    color: #0b6e50;
    border-color: #b8ead8
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.card h2,.card h3 {
    margin-top: 0
}

.card.narrow {
    max-width: 520px
}

.muted {
    color: var(--muted);
    font-size: 12px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.users-institution-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start
}

.users-institution-sidebar {
    position: sticky;
    top: 14px
}

.user-institution-list {
    display: grid;
    gap: 7px;
    max-height: calc(100vh - 250px);
    overflow-y: auto
}

.user-institution-option {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

.user-institution-option:hover {
    border-color: #8eb6da;
    background: #f3f8fc
}

.user-institution-option.active {
    color: #fff;
    border-color: #23669e;
    background: #23669e
}

.user-institution-option small {
    color: inherit;
    opacity: .8
}

.users-institution-content,
.users-institution-workspace {
    min-width: 0
}

.users-institution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px
}

.users-institution-header h2 {
    margin: 3px 0
}

.users-institution-workspace {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(460px, 1.4fr);
    gap: 14px;
    align-items: start
}

.users-institution-empty {
    min-height: 260px;
    display: grid;
    align-content: center
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 15px
}

.kpi-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow)
}

.kpi-grid span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px
}

.kpi-grid b {
    font-size: 22px
}

.flow {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center
}

.flow span {
    padding: 7px 9px;
    background: #edf6ff;
    border: 1px solid #c6dff5;
    border-radius: 7px;
    font-weight: 700
}

.dashboard-account-statistics {
    min-width: 0;
}

.dashboard-history-toolbar {
    justify-content: flex-end;
}

.dashboard-account-charts {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.dashboard-account-chart h3 {
    margin: 0 0 9px;
    font-size: 14px;
}

.dashboard-bar-list {
    display: grid;
    gap: 8px;
    max-height: 310px;
    overflow: auto;
    padding-right: 5px;
}

.dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(100px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.dashboard-bar-label {
    min-width: 0;
}

.dashboard-bar-label b,
.dashboard-bar-label small {
    display: block;
}

.dashboard-bar-label small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.25;
}

.dashboard-bar-track {
    height: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf3;
}

.dashboard-bar {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
}

.dashboard-bar.count {
    background: linear-gradient(90deg, var(--brand2), var(--brand));
}

.dashboard-bar.value {
    background: linear-gradient(90deg, #08764e, var(--ok));
}

.dashboard-bar-value {
    min-width: 36px;
    text-align: right;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.dashboard-bar-value.money {
    min-width: 92px;
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow)
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px
}

th,td {
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    font-size: 12px;
    vertical-align: top
}

th {
    background: #244d7b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1
}

.table-wrap tbody tr:nth-child(odd) td {
    background: #fff
}

.table-wrap tbody tr:nth-child(even) td {
    background: #e2e8f0
}

.table-wrap tbody tr:hover td {
    background: #deebf7
}

.num {
    text-align: right;
    white-space: nowrap
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px
}

.filters,.inline-form {
    display: flex;
    gap: 8px;
    align-items: end;
    flex-wrap: wrap
}

.filters input,.filters select {
    min-width: 180px
}

.card label,.form-grid label,.login-card label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #364b60;
    margin-bottom: 10px
}

.card input,.card select,.card textarea,.filters input,.filters select,.login-card input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cdd8e3;
    border-radius: 7px;
    background: #fff;
    color: var(--ink)
}

textarea {
    min-height: 74px;
    resize: vertical
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px 12px
}

.form-grid .span-2 {
    grid-column: 1/-1
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px
}

dialog .modal-form-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line)
}

dialog form>footer.modal-form-actions {
    padding: 14px 16px
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px
}

.checks label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0
}

.checks input {
    width: auto
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px;
    margin: 10px 0
}

legend {
    font-weight: 800;
    color: var(--brand2)
}

.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.tabs a {
    padding: 8px 11px;
    background: #e8eef4;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700
}

.tabs a.active {
    background: var(--brand);
    color: #fff
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 12px
}

.institution-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: grid;
    gap: 5px
}

.org-layout {
    display: grid;
    grid-template-columns: minmax(320px,.8fr) minmax(500px,1.5fr);
    gap: 14px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px
}

.org-tree,.org-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 18px
}

.org-tree {
    padding-left: 0
}

.org-tree li {
    position: relative
}

.org-tree li:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    border-left: 1px dotted #c4ccd5
}

.tree-node {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    column-gap: 5px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 7px;
    margin: 2px 0;
    font-size: 12px
}

.tree-node-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
    align-items: center
}

.tree-node-row>.tree-node {
    min-width: 0
}

.tree-node-edit {
    white-space: nowrap
}

.tree-node:hover,.tree-node.active {
    background: #e7edf2;
    color: #0755a0
}

.tree-node small {
    grid-column: 2/4;
    color: #84919e;
    font-size: 9px
}

.tree-node b {
    font-size: 8px;
    background: #e7f6ee;
    color: #0b8056;
    padding: 2px 4px;
    border-radius: 4px
}

.folder {
    color: #b8830c
}

.cargo-list {
    display: grid;
    gap: 5px
}

.cargo-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px
}

.cargo-row:hover,.cargo-row.active {
    background: #eef6ff;
    border-color: #acd4f4
}

.cargo-row small {
    color: var(--muted)
}

.cargo-row>span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.organization-toolbar {
    margin-top: 0
}

.organization-form-card {
    margin: 0;
    border: 0;
    box-shadow: none
}

.tracto-dialog {
    width: min(1100px,calc(100% - 28px))
}

.tracto-dialog .table-wrap {
    max-height: 330px;
    overflow: auto
}

dialog {
    border: 0;
    border-radius: 13px;
    padding: 0;
    width: min(650px,calc(100% - 28px));
    box-shadow: 0 25px 80px rgba(0,0,0,.25)
}

dialog.large {
    width: min(850px,calc(100% - 28px))
}

dialog::backdrop {
    background: rgba(12,26,40,.5)
}

dialog form>header,dialog form>footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line)
}

dialog form>footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-end
}

dialog form>.form-grid {
    padding: 16px
}

.master-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0
}

.master-search {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1
}

.master-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px
}

.master-filter-field {
    display: flex;
    flex: 0 1 300px;
    flex-direction: column;
    gap: 5px;
    margin: 0
}

.master-filter-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700
}

.master-filter-field select {
    width: 100%;
    margin: 0
}

.master-search input[type="search"] {
    width: min(560px,100%);
    margin: 0
}

.master-content,
.master-list-layout,
.master-list-layout>.table-wrap {
    width: 100%
}

.master-list-layout {
    display: block
}

.master-list-layout>.table-wrap {
    overflow-x: auto
}

.master-dialog {
    position: relative;
    max-height: 92vh;
    overflow: auto
}

.master-dialog>.card {
    margin: 0;
    border: 0;
    box-shadow: none
}

.master-dialog-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    line-height: 34px;
    cursor: pointer
}

.master-dialog-close:hover {
    background: var(--surface-2,#eef2f5)
}

.master-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card,#fff)
}

.master-pagination-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px
}

@media (max-width: 720px) {
    .master-toolbar,
    .master-search,
    .master-pagination {
        align-items: stretch;
        flex-direction: column
    }

    .master-search input[type="search"] {
        width: 100%
    }

    .master-filter-field {
        flex-basis: auto;
        width: 100%
    }

    .master-toolbar-actions {
        justify-content: stretch;
    }

    .master-toolbar-actions .btn {
        flex: 1
    }
}

.x {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer
}

.person-found {
    margin-top: 10px;
    padding: 10px;
    background: #eef4f9;
    border-radius: 7px;
    color: #52697f
}

.person-found.good {
    background: #eafaf3;
    color: #0c6f4e
}

.person-found.bad {
    background: #fff3f3;
    color: #a32929
}

.worker-contract-form {
    display: grid;
    gap: 14px
}

.worker-section {
    margin: 0;
    padding: 14px;
    background: #fbfdff
}

.person-search-row {
    display: grid;
    grid-template-columns: minmax(220px,1fr) auto;
    gap: 10px;
    align-items: end
}

.person-search-row label {
    margin: 0
}

.person-create-panel {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #cddfec;
    border-radius: 9px;
    background: #f4f9fd
}

.person-create-panel[hidden] {
    display: none
}

.person-create-title {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    color: #294b69
}

.person-create-title span {
    font-size: 12px;
    color: #61788c
}

.switch-field {
    display: flex!important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #d5e0e9;
    border-radius: 9px;
    background: #fff;
    cursor: pointer
}

.switch-copy {
    display: grid;
    gap: 3px
}

.switch-copy small {
    font-weight: 400;
    color: #64798c
}

.field-help {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    color: #64798c
}

.inventory-use-switch {
    min-height: 74px
}

.compact-switch {
    min-height: 58px
}

.switch-control {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px
}

.switch-control input {
    position: absolute;
    width: 1px!important;
    height: 1px;
    margin: 0;
    opacity: 0
}

.switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #aebbc7;
    transition: background .18s ease
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .18s ease
}

.switch-control input:checked + .switch-slider {
    background: var(--brand)
}

.switch-control input:checked + .switch-slider::after {
    transform: translateX(22px)
}

.switch-control input:focus-visible + .switch-slider {
    outline: 3px solid rgba(34,126,184,.25);
    outline-offset: 2px
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 12px
}

.inventory-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid #2c9fda;
    border-radius: 11px;
    padding: 13px;
    box-shadow: var(--shadow)
}

.inventory-card header,.inventory-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px
}

.inventory-card header b {
    font-size: 25px
}

.inventory-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px
}

.inventory-card dl div {
    background: #f6f9fb;
    padding: 7px;
    border-radius: 6px
}

.inventory-card dt {
    font-size: 9px;
    color: var(--muted)
}

.inventory-card dd {
    font-weight: 800;
    margin: 2px 0
}

.progress {
    height: 7px;
    background: #e9edf2;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0
}

.progress i {
    display: block;
    height: 100%;
    background: var(--ok)
}

.row-observed td {
    background: #fff9ea
}

.asset-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    color: #fff;
    background: linear-gradient(115deg,#14539a,#0c8dd6);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px
}

.asset-hero h2 {
    margin: 4px 0;
    font-size: 25px
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px
}

.compare-grid section {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px
}

.compare-grid dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 6px
}

.compare-grid dd {
    margin: 0;
    font-weight: 700
}

.suggestion {
    padding: 11px;
    background: #f1f7fc;
    border: 1px solid #cce2f5;
    border-radius: 8px;
    margin: 10px 0
}

.suggestion.good {
    background: #ebfaf4;
    border-color: #bce7d5
}

.suggestion p {
    margin: 4px 0
}

.auto-results {
    display: none;
    position: absolute;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    max-height: 280px;
    overflow: auto;
    box-shadow: var(--shadow);
    width: min(620px,calc(100% - 40px))
}

.catalog-search-field {
    position: relative;
    z-index: 60
}

.catalog-search-field .auto-results {
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: -4px
}

.autocomplete-search-field {
    position: relative;
    z-index: 55
}

.autocomplete-search-field .auto-results {
    top: 42px;
    left: 0;
    width: 100%
}

.search-status {
    display: block;
    margin-top: 5px;
    color: #5f7183;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35
}

.search-status.searching {
    color: #1169a8
}

.search-status.selected {
    color: #167049;
    font-weight: 700
}

.search-status.empty,
.search-status.error {
    color: #a13b32
}

.auto-results.show {
    display: block
}

.auto-results button {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
    text-align: left;
    padding: 9px;
    cursor: pointer
}

.auto-results button:hover,
.auto-results button.active {
    background: #f0f7fd
}

.auto-results button.more-results {
    background: #e7f3ff;
    color: #0755a0;
    border-top: 2px solid #8fc5ef;
    font-weight: 800;
    text-align: center
}

.auto-results button.more-results:hover,
.auto-results button.more-results.active {
    background: #cfe8fb;
    color: #043c72
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px
}

.month-grid article p {
    font-size: 11px;
    color: var(--muted)
}

.badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eaf0f5;
    font-size: 9px;
    font-weight: 800
}

.badge.ok {
    background: #def7ea;
    color: #08764e
}

.notice {
    padding: 11px 13px;
    background: #fff8e7;
    border: 1px solid #ead49c;
    color: #6b500c;
    border-radius: 8px
}

.report-sheet {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--line);
    max-width: 1150px;
    margin: auto
}

.report-sheet header {
    text-align: center
}

.report-sheet h2,.report-sheet h3 {
    margin: 3px
}

.report-layout-table {
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.report-layout-table > thead > tr > td,
.report-layout-table > tbody > tr > td {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.report-meta {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 8px;
    font-size: 12px
}

.assignment-report-header {
    display: grid;
    grid-template-columns: 190px 1fr 125px;
    align-items: start;
    gap: 12px;
    min-height: 125px
}

.assignment-report-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
    font-size: 12px
}

.assignment-report-brand img {
    width: 155px;
    height: 90px;
    object-fit: contain;
    object-position: left center
}

.assignment-report-title {
    padding-top: 12px
}

.assignment-report-title h2,
.assignment-report-title h3 {
    margin: 5px 0
}

.assignment-report-page {
    padding-top: 4px;
    text-align: left;
    line-height: 1.6
}

.report-page-number::after {
    content: "1";
}

.assignment-report-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 22px;
    padding: 7px 12px;
    border: 1px solid #333;
    font-size: 12px
}

.assignment-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px
}

.assignment-report-table th,
.assignment-report-table td {
    padding: 4px 5px;
    border-bottom: 1px dashed #555;
    vertical-align: top
}

.assignment-report-table th {
    border-bottom: 1px solid #333;
    white-space: nowrap
}

.assignment-report-table small {
    font-size: 9px
}

.signatures {
    display: flex;
    justify-content: space-around;
    margin-top: 60px
}

.signatures span {
    border-top: 1px solid #333;
    padding: 8px 50px;
    font-size: 11px
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #163b5e;
    color: #fff;
    padding: 11px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: .2s;
    z-index: 100
}

.toast.show {
    opacity: 1;
    transform: none
}

.toast.ok {
    background: #0c7553
}

.toast.bad {
    background: #a62f42
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 15%,#1b6fc3,#0e2f55 55%,#081b30)
}

.login-card {
    width: min(420px,calc(100% - 30px));
    background: #fff;
    padding: 27px;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.28)
}

.login-logo {
    color: #fff;
    font-size: 28px
}

.login-card h1 {
    margin: 13px 0 3px
}

.login-card>p {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 16px
}

.login-card form {
    display: grid;
    gap: 11px
}

.login-card>small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    text-align: center
}

@media(max-width:1000px) {
    .users-institution-layout,
    .users-institution-workspace {
        grid-template-columns: 1fr
    }

    .users-institution-sidebar {
        position: static
    }

    .user-institution-list {
        max-height: 260px
    }

    .content {
        padding: 14px
    }

    .kpi-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .month-grid {
        grid-template-columns: repeat(2,1fr)
    }

}

@media(min-width:721px) {
    .mobile-menu-toggle,
    .sidebar-mobile-head,
    .sidebar-backdrop {
        display: none !important;
        visibility: hidden !important;
    }

    .sidebar {
        position: static!important;
        display: flex!important;
        width: auto!important;
        height: auto!important;
        overflow: visible!important;
        transform: none!important;
        box-shadow: none!important;
    }
}

@media(max-width:720px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        display: flex!important;
        width: min(86vw, 310px);
        height: 100vh;
        height: 100dvh;
        justify-content: flex-start;
        gap: 12px;
        overflow-y: auto;
        box-shadow: 18px 0 45px rgba(0,0,0,.28);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .sidebar .side-note {
        margin-top: auto;
    }

    .sidebar-mobile-head {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        justify-content: space-between;
        padding: 3px 4px 10px;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    .sidebar-mobile-head button,
    .mobile-menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 8px;
        background: rgba(255,255,255,.12);
        color: #fff;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block !important;
        visibility: visible !important;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(7,20,34,.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .sidebar,
    .sidebar.mobile-open {
        transform: translateX(0)!important;
    }

    body.mobile-menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .org-layout,
    .grid-2,
    .compare-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {
    .topbar {
        padding: 0 9px;
    }

    .brand {
        gap: 6px;
    }

    .brand > span {
        width: 36px;
        height: 36px;
    }

    .brand small {
        display: none;
    }

    .top-actions {
        gap: 4px;
    }

    .top-actions .btn {
        padding: 7px 8px;
    }

    .top-actions .inst,.top-actions span:not(.inst) {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid .span-2 {
        grid-column: auto
    }

    .checks {
        grid-template-columns: 1fr
    }

    .toolbar,.page-head {
        align-items: flex-start;
        flex-direction: column
    }

    .content {
        padding: 9px
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr
    }

    .month-grid {
        grid-template-columns: 1fr 1fr
    }

}

@media print {
    @page {
        size: landscape;
        margin: 0
    }

    html,
    body {
        width: auto!important;
        height: auto!important;
        min-height: 0!important;
        margin: 0!important;
        padding: 0!important;
        overflow: visible!important;
        background: #fff!important
    }

    .topbar,.sidebar,.sidebar-backdrop,.no-print,.btn,.filters,.tabs,.page-head,#toast {
        display: none!important
    }

    .app-shell {
        display: block!important;
        width: auto!important;
        height: auto!important;
        min-height: 0!important;
        margin: 0!important;
        padding: 0!important;
        overflow: visible!important
    }

    .content {
        width: auto!important;
        height: auto!important;
        min-height: 0!important;
        margin: 0!important;
        padding: 8mm!important;
        overflow: visible!important;
        background: #fff!important
    }

    .report-sheet {
        width: 100%!important;
        height: auto!important;
        min-height: 0!important;
        margin: 0!important;
        padding: 0!important;
        border: 0!important;
        max-width: none!important;
        break-before: auto;
        break-after: auto;
        page-break-before: auto;
        page-break-after: auto
    }

    body.print-report-page .content > * {
        display: none!important
    }

    body.print-report-page .content > .report-sheet {
        display: block!important
    }

    body.print-report-page .content > .asset-label-sheet {
        display: grid!important
    }

    .table-wrap {
        box-shadow: none;
        border: 0
    }

    .assignment-report-table th {
        background: transparent!important;
        color: #000!important
    }

    .assignment-report-table thead {
        display: table-header-group!important;
    }

    .assignment-report-table th {
        position: static!important;
    }

    .assignment-report-table tfoot {
        display: table-row-group!important;
    }

    .report-page-number::after {
        content: counter(page);
    }

    .report-layout-table > thead {
        display: table-header-group!important;
    }

    .report-layout-table > tbody {
        display: table-row-group!important;
    }

    .report-layout-table > thead > tr {
        break-inside: avoid!important;
        page-break-inside: avoid!important;
    }

    .report-layout-table > tbody > tr,
    .report-layout-table > tbody > tr > td {
        break-inside: auto!important;
        page-break-inside: auto!important;
    }

}

.clean-list {
    margin: 8px 0;
    padding-left: 18px
}

.clean-list li {
    margin: 5px 0;
    font-size: 12px
}

/* ============================================================
   SIGIPAT v0.9 - FLUJO PATRIMONIAL POR CARGO
============================================================ */

.table-wrap .btn {
    margin: 1px 2px;
}

.card code {
    background: #eef3f7;
    padding: 2px 5px;
    border-radius: 4px;
}

.card hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.build-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255,255,255,.10);
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.responsibility-context,
.assignment-banner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
}

.responsibility-context > div,
.assignment-banner > div {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbfd;
}

.assignment-banner {
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(115deg, #123f70, #087fd0);
    color: #fff;
}

.assignment-banner > div {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
}

.responsibility-context small,
.assignment-banner small {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    opacity: .8;
}

.responsibility-context b,
.assignment-banner b {
    display: block;
    font-size: 12px;
}

.responsibility-asset-count {
    text-align: center;
}

.responsibility-context .responsibility-asset-count b {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.inventory-main-actions {
    justify-content: flex-start;
    gap: 8px;
}

.inventory-incidence-help {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 200ch;
    margin: 6px 0 0;
    line-height: 1.45;
}

.inventory-selection-grid {
    margin-bottom: 12px;
}

.inventory-page-head {
    align-items: flex-start;
}

.inventory-page-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.inventory-page-heading h1,
.inventory-page-heading p {
    margin-right: 8px;
}

.inventory-year {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.inventory-explorer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.inventory-list-toolbar {
    align-items: flex-end;
    margin-top: 12px;
}

.inventory-list-toolbar .filters {
    margin: 0;
}

.inventory-incidence-card {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 14px;
}

.inventory-incidence-card h3 {
    margin-bottom: 6px;
}

.inventory-incidence-card > p:not(.inventory-incidence-help) {
    margin: 6px 0;
}

.inventory-commission-dialog > header,
.inventory-commission-dialog > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.inventory-commission-dialog > footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.inventory-qr-reader {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #07131f;
}

.inventory-qr-reader video {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: 7px;
    object-fit: cover;
}

.inventory-qr-reader p {
    margin: 8px 0 0;
    color: #fff;
    text-align: center;
}

.asset-label-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: 2mm;
    padding: 4mm;
    background: #fff;
}

.asset-label {
    display: grid;
    grid-template-columns: 25mm minmax(0, 1fr) 25mm;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 1.5mm;
    row-gap: .5mm;
    width: 100%;
    height: 31mm;
    overflow: hidden;
    padding: 1.5mm;
    border: .35mm solid #222;
    border-radius: 2mm;
    background: #fff;
    color: #000;
    break-inside: avoid;
}

.asset-label-brand,
.asset-label-data,
.asset-label-qr,
.asset-label-area {
    min-width: 0;
}

.asset-label-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.asset-label-brand img {
    width: 23mm;
    height: 18mm;
    object-fit: contain;
}

.asset-label-data {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding-top: .3mm;
    text-align: center;
    font-size: 7.2pt;
    line-height: 1.05;
}

.asset-label-data > b {
    font-size: 7.8pt;
}

.asset-label-data small {
    display: -webkit-box;
    overflow: hidden;
    margin: 1mm 0;
    font-size: 7.68pt;
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.asset-label-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15pt;
    text-align: center;
}

.asset-label-qr img {
    width: 21mm;
    height: 21mm;
    image-rendering: crisp-edges;
}

.asset-label-qr b {
    white-space: nowrap;
    transform: scaleX(.65);
    transform-origin: center;
}

.asset-label-area {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    text-align: left;
    font-size: 6.7pt;
    font-weight: 700;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

@media print {
    .asset-label-sheet {
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        break-before: auto;
        break-after: auto;
        page-break-before: auto;
        page-break-after: auto;
    }
}

@media(max-width:800px) {
    .inventory-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-list-toolbar {
        align-items: stretch;
    }

    .inventory-explorer-actions {
        justify-content: flex-start;
    }
}

.asset-actions-cell {
    width: 1%;
    white-space: nowrap;
}

.asset-row-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.account-detail-dialog {
    width: min(1180px, calc(100vw - 32px));
}

.account-detail-dialog th:last-child,
.account-detail-dialog td:last-child {
    min-width: 180px;
}

.accounting-report-actions {
    justify-content: flex-end;
}

.accounting-report-sheet {
    max-width: 1250px;
}

.accounting-report-meta {
    line-height: 1.6;
}

.accounting-report-year {
    margin: 7px 0 0;
    font-size: 12px;
}

.accounting-report-table td.num {
    white-space: nowrap;
}

.accounting-detail-report .assignment-report-header {
    grid-template-columns: 180px 1fr 115px;
    min-height: 105px;
}

.accounting-detail-report .assignment-report-title {
    padding-top: 20px;
}

.accounting-detail-report .assignment-report-title h2 {
    font-size: 19px;
}

.accounting-total-row th {
    padding-top: 7px;
    border-top: 2px solid #222;
    border-bottom: 0;
    font-weight: 800;
}

.accounting-total-row th:first-child {
    text-align: right;
}

.asset-record-sheet {
    max-width: 1250px;
}

.asset-record-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    text-align: center;
}

.asset-record-header-qr {
    width: 24mm;
    height: 24mm;
    flex: 0 0 24mm;
    object-fit: contain;
    image-rendering: crisp-edges;
}

.asset-record-section-title {
    margin: 18px 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
    text-align: left!important;
    font-size: 14px;
}

.asset-record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.asset-record-grid > div {
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.asset-record-grid small,
.asset-record-grid b {
    display: block;
}

.asset-record-grid small {
    margin-bottom: 3px;
    color: var(--muted);
}

.asset-timeline {
    position: relative;
    display: grid;
    gap: 10px;
    padding-left: 22px;
}

.asset-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: var(--brand);
}

.asset-timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
}

.asset-timeline-event::before {
    content: '';
    position: absolute;
    top: 13px;
    left: -19px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: #fff;
}

.asset-timeline-year {
    padding-top: 8px;
    color: var(--brand2);
    font-weight: 800;
}

.asset-timeline-content {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.asset-timeline-content header {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.asset-timeline-content p {
    margin: 5px 0;
    font-size: 11px;
}

.asset-timeline-changes {
    color: var(--brand2);
}

.asset-timeline-transfer {
    padding: 6px 8px;
    border-left: 3px solid var(--brand);
    background: #edf6ff;
    color: #123f69;
}

@media print {
    .asset-record-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .asset-timeline-event,
    .asset-timeline-content {
        break-inside: avoid;
    }
}

.asset-sections {
    display: grid;
    gap: 14px;
}

.asset-section {
    position: relative;
}

.asset-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.money-field,
.number-field {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.inventory-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #b9d8ef;
    border-radius: 10px;
    background: #f1f8fd;
}

.inventory-context > div {
    min-width: 0;
}

.inventory-context small,
.inventory-context b {
    display: block;
}

.inventory-context small {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
}

.inventory-context b {
    color: #123f70;
    font-size: 12px;
}

.asset-form input[readonly],
.asset-form input:disabled:not([type="checkbox"]),
.asset-form textarea[readonly],
.asset-form select:disabled {
    border-color: #9eacba;
    background: #dce3e9;
    color: #1d3042;
    font-weight: 700;
    opacity: 1;
}

.inventory-observed-check {
    align-self: end;
    min-height: 39px;
}

.section-title {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.section-title > span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.section-title h2,
.section-title h3 {
    margin: 0 0 3px;
}

.section-title small {
    color: var(--muted);
}

.check-line {
    display: flex!important;
    flex-direction: row!important;
    align-items: center;
    gap: 7px!important;
}

.check-line input[type="checkbox"] {
    width: auto;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 15;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 24px rgba(20,40,60,.08);
}

.cargo-assets-toolbar {
    margin-top: 14px;
}

.asset-registration-layout {
    display: grid;
    gap: 14px;
    min-width: 0
}

.asset-selection-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    min-width: 0
}

.asset-selection-panel {
    display: flex;
    flex-direction: column;
    height: 300px;
    min-width: 0;
    overflow: hidden
}

.asset-selection-panel>.panel-head {
    flex: 0 0 auto
}

.asset-selection-scroll,
.asset-selection-panel>.cargo-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-gutter: stable
}

.asset-results-panel {
    width: 100%;
    min-width: 0
}

.asset-results-panel>.panel-head {
    margin-bottom: 14px
}

.asset-description-text {
    display: block;
    width: min(360px,32vw);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer
}

.table-sort-button span {
    opacity: .75
}

.institution-logo-preview {
    display: block;
    width: 130px;
    max-height: 90px;
    margin-top: 8px;
    padding: 5px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

@media(max-width:800px) {
    .asset-selection-grid {
        grid-template-columns: 1fr
    }

    .asset-selection-panel {
        height: 260px
    }
}

.dialog-body {
    display: grid;
    gap: 12px;
    padding: 16px;
    max-height: 72vh;
    overflow: auto;
    background: var(--bg);
}

.flat-card {
    box-shadow: none;
}

.commission-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.commission-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(160px, .8fr) auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbfd;
}

.commission-row label {
    margin-bottom: 0;
}

.movement-origin-card {
    margin-bottom: 14px;
}

.movement-grid {
    align-items: start;
    margin-bottom: 14px;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.batch-actions span {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.batch-assets-list {
    display: grid;
    gap: 5px;
    max-height: 480px;
    overflow: auto;
    padding-right: 3px;
}

.batch-asset-row {
    display: grid!important;
    grid-template-columns: auto 1fr;
    gap: 9px!important;
    align-items: start;
    margin: 0!important;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.batch-asset-row:hover {
    border-color: #a9cce8;
    background: #f6fbff;
}

.batch-asset-row input {
    width: auto!important;
    margin-top: 3px;
}

.batch-asset-row span {
    display: grid;
    gap: 2px;
}

.batch-asset-row small {
    color: var(--muted);
}

.movement-history {
    margin-top: 14px;
}

@media (max-width: 1000px) {
    .asset-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .responsibility-context,
    .assignment-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commission-row {
        grid-template-columns: 1fr 1fr;
    }

    .commission-row .remove-comision-row {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 600px) {
    .asset-entry-grid {
        grid-template-columns: 1fr;
    }

    .responsibility-context,
    .assignment-banner,
    .inventory-context,
    .commission-row {
        grid-template-columns: 1fr;
    }

    .person-search-row {
        grid-template-columns: 1fr;
    }

    .person-search-row .btn {
        width: 100%;
    }

    .switch-field {
        align-items: flex-start;
    }

    .batch-actions span {
        width: 100%;
        margin-left: 0;
    }
}
