@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --red: #d71920;
    --red2: #ef302b;
    --blue: #087bb5;
    --navy: #152330;
    --bg: #f4f7f9;
    --card: #fff;
    --text: #17212b;
    --muted: #81909d;
    --line: #e4e9ee;
    --green: #15966a;
    --orange: #e58a12;
    --shadow: 0 8px 30px rgba(19, 35, 48, .06)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text)
}

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

button {
    cursor: pointer
}

button:disabled {
    opacity: .55;
    cursor: not-allowed
}

.hidden {
    display: none !important
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    bottom: 0;
    width: 255px;
    background: var(--navy);
    color: #dce6ed;
    display: flex;
    flex-direction: column;
    padding: 20px 14px
}

.cskh-mode .sidebar > .brand,
.cskh-mode .sidebar > .workspace {
    display: none
}

.cskh-mode .main-nav {
    display: none
}

.cskh-mode .sidebar-bottom {
    order: -1;
    width: 100%;
    margin-top: 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 3px 9px 22px
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef3b32, #b70e17);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 6px 18px #0003
}

.brand strong {
    display: block;
    font-size: 13px;
    letter-spacing: .4px
}

.brand span {
    display: block;
    color: #8194a4;
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 3px
}

.workspace {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #1d2e3c;
    border: 1px solid #29404f;
    border-radius: 10px;
    padding: 10px;
    margin: 0 2px 18px
}

.workspace b {
    display: block;
    font-size: 11px
}

.workspace small {
    color: #8195a4;
    font-size: 9px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c28a;
    box-shadow: 0 0 0 4px #27c28a1c
}

.main-nav {
    display: grid;
    gap: 4px
}

.nav-item {
    position: relative;
    border: 0;
    background: transparent;
    color: #aebfcb;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    text-align: left;
    font-size: 12px
}

.nav-item i {
    font-style: normal;
    width: 18px;
    text-align: center;
    font-size: 16px
}

.nav-item:hover {
    background: #203544;
    color: #fff
}

.nav-item.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 5px 15px #d719202b
}

.nav-item em {
    font-style: normal;
    margin-left: auto;
    background: #ffffff18;
    color: #fff;
    border-radius: 20px;
    padding: 2px 7px;
    font-size: 9px
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #2a3b48;
    padding-top: 10px
}

.user-box {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dbe5eb;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    padding: 10px;
    border-radius: 9px
}

.user-box:hover {
    background: #203544
}

.user-box div:nth-child(2) {
    flex: 1
}

.user-box b {
    display: block;
    font-size: 10px
}

.user-box small {
    display: block;
    color: #7f92a2;
    font-size: 8px;
    margin-top: 3px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #315064;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700
}

.main {
    margin-left: 255px;
    min-height: 100vh
}

.topbar {
    height: 84px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 10
}

.topbar h1 {
    font-size: 21px;
    margin: 0 0 5px
}

.topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 11px
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.app-shell.focused-module-page .topbar {
    display: none
}

.app-shell.focused-module-page .main {
    margin-left: 255px
}

.app-shell.focused-module-page .page-title-row {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: -26px -28px 17px;
    padding: 26px 28px 18px;
    background: #f4f7f9;
    border-bottom: 1px solid var(--line)
}

.search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    width: 240px
}

.search-box span {
    font-size: 20px;
    color: #98a5af
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    padding: 10px 0;
    font-size: 11px
}

.employee-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-search {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 245px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.employee-search span {
    color: #8b9ba5;
    font-size: 18px;
}

.employee-search input {
    width: 100%;
    padding: 10px 0;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 10px;
}

.icon-btn {
    height: 38px;
    width: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #657582;
    font-size: 18px
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 700
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 12px #d7192020
}

.btn-primary:hover {
    background: #bd1118
}

.btn-light {
    background: #edf1f4;
    color: #50616e
}

.btn-block {
    width: 100%;
    padding: 13px
}

.page {
    padding: 26px 28px 45px
}

.hero {
    border-radius: 15px;
    background: linear-gradient(110deg, #152633, #284a60);
    padding: 27px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 17px
}

.hero:after {
    content: "";
    position: absolute;
    right: -90px;
    top: -100px;
    width: 380px;
    height: 380px;
    border: 50px solid #fff0;
    border-right-color: #ffffff0e;
    border-radius: 50%
}

.hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #b9ccd8;
    text-transform: uppercase
}

.hero h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 9px 0
}

.hero p {
    font-size: 11px;
    color: #c5d2dc;
    max-width: 680px;
    line-height: 1.7;
    margin: 0
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 8px
}

.hero .btn-light {
    background: #ffffff16;
    color: #fff;
    border: 1px solid #ffffff22
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-bottom: 16px
}

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

.stat-card .label {
    font-size: 10px;
    color: var(--muted)
}

.stat-card .value {
    font-size: 27px;
    font-weight: 800;
    margin: 8px 0 4px
}

.stat-card .hint {
    font-size: 9px;
    color: #9ba8b2
}

.stat-card .icon {
    float: right;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f1f5f7;
    font-size: 17px
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.department-office-unit {
    grid-column: 1 / -1;
    min-width: 0
}

.department-office-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 4px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px
}

.department-office-heading>div {
    display: flex;
    align-items: center;
    gap: 10px
}

.department-office-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 14px
}

.department-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 14px;
    padding-top: 14px
}

.department-office-card {
    min-width: 0
}

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

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

.card-head h3 {
    margin: 0;
    font-size: 14px
}

.card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px
}

.link-btn {
    border: 0;
    background: none;
    color: var(--red);
    font-size: 10px;
    font-weight: 700
}

.table-wrap {
    overflow: auto
}

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

th {
    text-align: left;
    background: #d71920;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 9px 7px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

td {
    padding: 11px 7px;
    border-bottom: 1px solid #eef2f5;
    vertical-align: middle
}

tbody tr:hover {
    background: #fafcfd
}

td b {
    font-size: 10px
}

td small {
    display: block;
    color: #97a4ad;
    font-size: 8px;
    margin-top: 4px
}

.asset-group-row td {
    padding: 9px 7px 7px;
    background: #f4f7f9;
    color: #b9151b;
    font-size: 10px;
    font-weight: 800;
    border-top: 1px solid #e4e9ee;
    border-bottom: 1px solid #e4e9ee
}

.asset-group-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #152330;
    text-align: left;
    font-size: 10px;
    font-weight: 800
}

.asset-group-toggle span {
    color: #315064;
    font-size: 9px
}

.badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap
}

.badge-red {
    background: #ffeded;
    color: #cb2027
}

.badge-orange {
    background: #fff3df;
    color: #bd7110
}

.badge-green {
    background: #e9f8f2;
    color: #087b55
}

.badge-blue {
    background: #e9f4fc;
    color: #0d6e9f
}

.badge-purple {
    background: #f0e4f7;
    color: #82539b
}

.badge-gray {
    background: #edf1f4;
    color: #687985
}

.progress-line {
    height: 5px;
    background: #e9eef1;
    border-radius: 20px;
    overflow: hidden
}

.progress-line span {
    display: block;
    height: 100%;
    background: var(--red);
    border-radius: 20px
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px
}

.quick-tool {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f8fafb);
    padding: 12px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    color: var(--text);
    box-shadow: var(--shadow)
}

.quick-tool:hover {
    border-color: #d0dfe8;
    transform: translateY(-1px)
}

.quick-tool-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3f7fa;
    display: grid;
    place-items: center;
    font-size: 17px
}

.quick-tool strong {
    display: block;
    font-size: 10px;
    margin-bottom: 2px
}

.quick-tool small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4
}

.workflow-mini {
    display: grid;
    gap: 8px
}

.workflow-visual-page {
    position: relative;
    padding: 8px 20px 0;
    min-height: 760px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.workflow-visual-header {
    text-align: center;
    margin: 8px 0 18px;
}

.workflow-visual-header h2 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 54px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: #111;
}

.process-diagram {
    position: relative;
    width: min(1200px, 100%);
    height: 620px;
    margin: 0 auto;
}

.process-ring-wrap {
    position: absolute;
    left: 50%;
    top: 48%;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.process-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.10), inset 0 0 0 42px rgba(255, 255, 255, 0.15);
}

.process-ring::before,
.process-ring::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 20, 0.06);
}

.process-ring::after {
    inset: 22%;
    border: 2px solid rgba(20, 20, 20, 0.04);
    background: rgba(255, 255, 255, 0.08);
}

.process-node {
    position: absolute;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.22);
}

.process-node .process-step-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: clamp(20px, 1.8vw, 30px);
    font-weight: 900;
    color: #fff;
    background: var(--red);
    box-shadow: 0 8px 20px rgba(215, 25, 32, 0.25);
}

.process-node.node-1 {
    left: 50%;
    top: 8%;
    transform: translate(-50%, 0);
}

.process-node.node-2 {
    left: 71%;
    top: 23%;
    transform: translate(-50%, 0);
}

.process-node.node-3 {
    left: 78%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.process-node.node-4 {
    left: 68%;
    top: 77%;
    transform: translate(-50%, -50%);
}

.process-node.node-5 {
    left: 32%;
    top: 82%;
    transform: translate(-50%, -50%);
}

.workflow-visual-page.blue .process-node .process-step-badge {
    background: #0a82d3;
}

.process-side {
    position: absolute;
    top: 0;
    width: 360px;
    height: 100%;
    z-index: 2;
}

.process-side.left {
    left: 0;
}

.process-side.right {
    right: 0;
}

.process-copy {
    position: absolute;
    width: 280px;
    color: #111;
}

.process-side.left .node-1 {
    left: 50%;
    top: 25px;
    width: 360px;
    transform: translateX(-50%);
    text-align: center;
}

.process-side.left .node-3 {
    left: 0;
    top: 188px;
    width: 260px;
}

.process-side.left .node-5 {
    left: 0;
    top: 462px;
    width: 260px;
}

.process-side.right .node-2 {
    right: 0;
    top: 155px;
    width: 270px;
}

.process-side.right .node-4 {
    right: 0;
    top: 398px;
    width: 270px;
}

.process-copy-title {
    font-size: clamp(18px, 1.7vw, 36px);
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0;
    color: #111;
}

.process-copy-text {
    font-size: clamp(12px, 1vw, 22px);
    line-height: 1.35;
    font-weight: 500;
    color: #111;
}

.process-copy.node-1 .process-copy-title,
.process-copy.node-1 .process-copy-text {
    display: block;
    text-align: center;
}

.process-info {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: .2px;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
}

.workflow-visual-page.blue .process-info {
    color: #0a82d3;
}

.system-requests {
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.system-request-header,
.system-request-toolbar,
.system-request-row,
.system-request-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-request-header {
    justify-content: space-between;
    align-items: flex-start;
}

.system-request-header h2 {
    margin: 6px 0 4px;
    font-size: 22px;
}

.system-request-header p,
.system-request-hint {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.system-request-overview {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0 14px;
}

.system-request-stats {
    margin: 0;
    flex: 0 0 auto;
}

.system-request-stats div {
    min-width: 112px;
    padding: 10px 14px;
    border-left: 3px solid #0a82d3;
    background: #f2f8fc;
}

.system-request-stats div:nth-child(2) {
    border-left-color: var(--red);
    background: #fff6f6;
}

.system-request-stats div:nth-child(3) {
    border-left-color: var(--green);
    background: #f1faf6;
}

.system-request-stats b,
.system-request-stats span {
    display: block;
}

.system-request-stats b {
    font-size: 21px;
}

.system-request-stats span {
    color: #748691;
    font-size: 8px;
}

.system-request-toolbar {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr);
    align-items: center;
    flex: 1;
    max-width: 560px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
}

.system-request-toolbar select {
    min-width: 170px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #526572;
    font-size: 10px;
    background: #fff;
}

.system-request-list {
    display: grid;
}

.system-request-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 110px 170px;
    min-width: 0;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f3;
}

.system-request-row:last-child {
    border-bottom: 0;
}

.system-request-id {
    min-width: 0;
    overflow: hidden;
}

.system-request-id b,
.system-request-id small,
.system-request-main b,
.system-request-main small,
.system-request-status small {
    display: block;
}

.system-request-id b {
    color: #0874b8;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-request-id small,
.system-request-main small,
.system-request-status small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.system-request-main {
    min-width: 0;
}

.system-request-main b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.system-request-main .progress-line {
    margin-top: 8px;
}

.system-request-status {
    display: grid;
    min-width: 110px;
    gap: 5px;
    justify-items: start;
}

.system-request-actions {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}

.system-request-empty {
    padding: 18px 0 4px;
}

.system-capabilities {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fb 100%);
}

.system-capability-header,
.system-catalog-toolbar,
.system-capability-meta,
.system-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.system-capability-header {
    align-items: flex-start;
}

.system-kicker {
    display: block;
    color: #0a82d3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.system-capability-header h2 {
    margin: 6px 0 4px;
    font-size: 22px;
}

.system-capability-header p,
.system-focus-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.system-capability-stats {
    min-width: 108px;
    padding: 10px 13px;
    border-left: 3px solid #0a82d3;
    background: #eaf5fc;
}

.system-capability-stats strong,
.system-capability-stats span {
    display: block;
}

.system-capability-stats strong {
    color: #0874b8;
    font-size: 23px;
}

.system-capability-stats span {
    color: #658092;
    font-size: 8px;
}

.system-catalog-toolbar {
    margin: 20px 0 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce7ee;
}

.system-search {
    display: flex;
    align-items: center;
    gap: 7px;
    width: min(360px, 100%);
    padding: 0 10px;
    border: 1px solid #d7e1e7;
    border-radius: 8px;
    background: #fff;
}

.system-search span {
    color: #8b9ba5;
    font-size: 18px;
}

.system-search input {
    width: 100%;
    padding: 10px 0;
    border: 0;
    outline: 0;
    font-size: 10px;
}

.segmented-control {
    display: flex;
    padding: 3px;
    border-radius: 8px;
    background: #e7eef2;
}

.segmented-control button {
    border: 0;
    border-radius: 6px;
    padding: 8px 11px;
    background: transparent;
    color: #6c7d87;
    font-size: 9px;
    font-weight: 700;
}

.segmented-control button.active {
    background: #fff;
    color: #0874b8;
    box-shadow: 0 2px 7px #162d3b14;
}

.system-capability-meta {
    justify-content: flex-start;
    color: #81909d;
    font-size: 9px;
}

.system-capability-meta span + span::before {
    content: "•";
    margin: 0 8px;
    color: #b1c0c9;
}

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

.system-capability-card,
.system-focus-panel {
    padding: 15px;
    border: 1px solid #dce7ee;
    border-radius: 10px;
    background: #fff;
}

.system-capability-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    gap: 9px;
}

.system-capability-card.selected {
    border-color: #0a82d3;
    box-shadow: 0 0 0 2px #0a82d31c;
}

.system-capability-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.system-capability-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #eaf5fc;
    font-size: 18px;
}

.system-capability-card h3 {
    margin: 0;
    font-size: 14px;
}

.system-capability-group {
    display: block;
    margin-top: -6px;
    color: var(--muted);
    font-size: 9px
}

.system-skill {
    flex: 1;
    padding: 9px 10px;
    border-left: 3px solid #0a82d3;
    background: #f3f9fd;
}

.system-skill.advanced {
    border-left-color: #d71920;
    background: #fff6f6;
}

.system-skill b {
    display: block;
    margin-bottom: 4px;
    color: #536b79;
    font-size: 9px;
}

.system-skill p,
.system-focus-grid p {
    margin: 0;
    color: #596a75;
    font-size: 9px;
    line-height: 1.55;
}

.system-card-actions {
    justify-content: flex-start;
}

.system-matrix .btn-primary,
.system-matrix .small-btn.primary {
    border: 0;
    background: var(--red) !important;
    color: #fff !important;
    opacity: 1;
}

.system-matrix .btn-primary:hover,
.system-matrix .small-btn.primary:hover {
    background: #bd1118 !important;
}

.module-create-btn {
    min-width: 102px;
    min-height: 34px;
    padding: 8px 12px;
    font-size: 10px;
    white-space: nowrap;
}

.small-btn.primary {
    border-color: #d71920;
    background: #d71920;
    color: #fff;
}

.system-focus-panel {
    margin: 10px 0 14px;
    border-color: #0a82d3;
    box-shadow: 0 8px 24px #0a82d314;
}

.system-focus-panel h3 {
    margin: 5px 0 3px;
    font-size: 17px;
}

.system-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.system-focus-grid > div {
    padding: 11px;
    background: #f7fafb;
}

.system-focus-grid b {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
}

.system-empty {
    grid-column: 1 / -1;
}

.system-matrix {
    margin-top: 18px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.system-matrix-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: #f8fbfc;
    border-bottom: 1px solid #dce7ee;
}

.system-matrix-header h2 {
    margin: 6px 0 4px;
    font-size: 22px;
}

.system-matrix-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.system-matrix .table-wrap {
    margin: 0;
}

.system-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.system-module-grid .system-capability-card {
    min-height: 270px;
}

.system-matrix-table {
    min-width: 1080px;
}

.system-matrix-table th {
    background: #a9dc8d;
    color: #17212b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.system-matrix-table td {
    vertical-align: top;
    color: #263641;
    font-size: 10px;
    line-height: 1.55;
}

.system-matrix-table td:nth-child(1) {
    width: 48px;
    text-align: center;
}

.system-matrix-table td:nth-child(2) {
    width: 105px;
    font-size: 9px;
}

.system-matrix-table td:nth-child(3) {
    width: 155px;
}

.system-matrix-table td:nth-child(6) {
    width: 44px;
    text-align: center;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px
}

.quick-tool {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f8fafb);
    padding: 12px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    color: var(--text);
    box-shadow: var(--shadow)
}

.quick-tool:hover {
    border-color: #d0dfe8;
    transform: translateY(-1px)
}

.quick-tool-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3f7fa;
    display: grid;
    place-items: center;
    font-size: 17px
}

.quick-tool strong {
    display: block;
    font-size: 10px;
    margin-bottom: 2px
}

.quick-tool small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fafcfd
}

.workflow-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f0f4f6;
    display: grid;
    place-items: center
}

.workflow-item b {
    font-size: 10px
}

.workflow-item small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    margin-top: 3px
}

.workflow-item .count {
    margin-left: auto;
    font-weight: 800;
    font-size: 13px
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px
}

.page-title-row h2 {
    margin: 0;
    font-size: 18px
}

.page-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px
}

.management-page-header {
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
}

.management-page-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start
}

.link-btn[data-back-to-management],
.link-btn[data-back] {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px 10px !important;
    border: 1px solid #dce5ea;
    border-radius: 7px;
    background: #fff;
    color: #536672;
    font-size: 9px;
    font-weight: 700;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease
}

.link-btn[data-back-to-management]:hover,
.link-btn[data-back]:hover {
    border-color: #e3b7ba;
    background: #fff7f7;
    color: #b51d25
}

.link-btn[data-back-to-management]:focus-visible,
.link-btn[data-back]:focus-visible {
    outline: 2px solid #b51d25;
    outline-offset: 2px
}

.management-page-title h2 {
    font-size: 21px;
}

.management-page-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.management-page-actions .btn {
    min-height: 38px;
    border-radius: 7px;
    white-space: nowrap
}

.management-home-header {
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line)
}

.management-home-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #b51d25;
    font-size: 9px;
    font-weight: 800
}

.management-home-header h2 {
    font-size: 24px;
    line-height: 1.2
}

.management-home-header p {
    margin-top: 6px
}

.management-home-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600
}

.management-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch
}

.management-tool {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 92px;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%);
    color: var(--text);
    text-align: left;
    box-shadow: 0 5px 18px rgba(21, 35, 48, .035);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease
}

.management-tool:hover {
    transform: translateY(-2px);
    border-color: #c9d8e0;
    box-shadow: 0 10px 24px rgba(21, 35, 48, .09)
}

.management-tool:focus-visible {
    outline: 2px solid #b51d25;
    outline-offset: 2px
}

.management-tool-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #eaf4f9;
    color: #176f9c;
    font-size: 20px
}

.management-tool:nth-child(2) .management-tool-icon {
    background: #edf7f0;
    color: #267a4c
}

.management-tool:nth-child(3) .management-tool-icon {
    background: #fff2e7;
    color: #a65a19
}

.management-tool:nth-child(4) .management-tool-icon {
    background: #fff0f0;
    color: #b51d25
}

.management-tool:nth-child(5) .management-tool-icon {
    background: #eef4fb;
    color: #456a91
}

.management-tool-copy {
    display: block;
    min-width: 0
}

.management-tool-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.35
}

.management-tool-copy small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5
}

.management-tool-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #f2f5f7;
    color: #72828d;
    font-size: 14px;
    transition: background-color .16s ease, color .16s ease, transform .16s ease
}

.management-tool:hover .management-tool-arrow {
    transform: translateX(2px);
    background: #fff0f0;
    color: #b51d25
}

@media(max-width:1050px) {
    .management-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:580px) {
    .management-home-header {
        align-items: flex-start
    }

    .management-tools-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px
    }

    .management-tool {
        min-height: 82px;
        padding: 12px
    }
}

@media(max-width:700px) {
    .management-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 13px
    }

    .management-page-actions {
        width: 100%
    }

    .management-page-actions .btn {
        flex: 1;
        justify-content: center
    }
}

.filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.filters select,
.filters input {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 10px;
    outline: 0
}

.ticket-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: center
}

.ticket-card:hover {
    border-color: #d3dce2;
    box-shadow: var(--shadow)
}

.ticket-main {
    flex: 1;
    min-width: 0
}

.ticket-main b {
    font-size: 11px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ticket-main small {
    color: var(--muted);
    font-size: 8px;
    display: block;
    margin-top: 4px
}

.ticket-actions {
    display: flex;
    gap: 3px
}

.small-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 7px;
    padding: 7px 9px;
    font-size: 9px;
    color: #52616d
}

.small-btn.icon-action,
.btn.icon-action {
    display: inline-grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    font-size: 13px;
    border-radius: 6px;
    line-height: 1;
}

.small-btn:hover {
    background: #f5f7f9
}

.small-btn.danger,
.btn.danger {
    border-color: #f1c5c8;
    color: #c51b23
}

.small-btn.danger:hover,
.btn.danger:hover {
    background: #fff1f2
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px
}

.flow-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    min-height: 105px
}

.flow-step.active {
    border-color: #efaaa9;
    box-shadow: 0 5px 18px #d7192010
}

.flow-step .n {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf1f4;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px
}

.flow-step.done .n,
.flow-step.active .n {
    background: var(--red);
    color: #fff
}

.flow-step b {
    font-size: 9px;
    display: block;
    line-height: 1.4
}

.flow-step small {
    font-size: 8px;
    color: var(--muted);
    display: block;
    margin-top: 5px;
    line-height: 1.4
}

.step-count {
    font-size: 8px;
    color: var(--red);
    font-weight: 700;
    margin-top: 8px
}

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

.system-tile {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff
}

.system-tile .sys-icon {
    font-size: 22px;
    margin-bottom: 9px
}

.system-tile b {
    display: block;
    font-size: 11px
}

.system-tile small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    margin-top: 4px
}

.system-tile .health {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: var(--green)
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor
}

.empty {
    padding: 38px 15px;
    text-align: center;
    color: var(--muted);
    font-size: 10px
}

.empty strong {
    display: block;
    color: #52616d;
    font-size: 12px;
    margin-bottom: 5px
}

.kpi-list {
    display: grid;
    gap: 12px
}

.kpi {
    display: grid;
    grid-template-columns: 150px 1fr 45px;
    align-items: center;
    gap: 10px
}

.kpi label {
    font-size: 9px;
    color: #60717d
}

.kpi strong {
    text-align: right;
    font-size: 10px
}

.modal-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    background: #0c1720aa;
    display: grid;
    place-items: center;
    padding: 18px
}

.modal {
    background: #fff;
    width: min(600px, 100%);
    max-height: 92vh;
    overflow: auto;
    border-radius: 14px;
    box-shadow: 0 25px 70px #0004
}

.modal-lg {
    width: min(760px, 100%)
}

.user-profile-modal {
    width: min(440px, 100%)
}

.user-profile-content {
    padding: 20px
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line)
}

.user-profile-summary .avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    font-size: 13px
}

.user-profile-summary h3 {
    margin: 0;
    font-size: 15px
}

.user-profile-summary p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px
}

.user-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px
}

.change-password-toggle {
    margin-top: 20px
}

.change-password-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line)
}

.change-password-form h3 {
    margin: 0 0 4px;
    font-size: 14px
}

.change-password-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700
}

.change-password-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: 0
}

.change-password-form input:focus {
    border-color: #aebfcb;
    box-shadow: 0 0 0 3px #eaf0f4
}

.change-password-form .btn {
    justify-self: start;
    margin-top: 3px
}

#departmentDirectoryModal .modal {
    max-height: calc(100vh - 36px);
    overflow: hidden
}

#departmentDirectoryContent {
    max-height: calc(100vh - 148px);
    overflow: auto;
    padding: 20px 21px 24px
}

#departmentDirectoryContent .department-office-grid {
    align-items: start
}

#departmentDirectoryContent .department-office-card {
    height: fit-content
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 21px 15px;
    border-bottom: 1px solid var(--line);
    background: #d71920
}

.modal-header h2 {
    font-size: 17px;
    margin: 0;
    color: #fff !important
}

.modal-header p {
    font-size: 9px;
    color: #ffe5e5;
    margin: 5px 0 0
}

.ticket-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 18px 24px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.ticket-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #8a98a3;
    text-align: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer
}

.ticket-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: #dce4e9
}

.ticket-step span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 2px solid #dce4e9;
    border-radius: 50%;
    background: #fff;
    color: #52636f;
    font-size: 11px;
    font-weight: 800
}

.ticket-step small {
    max-width: 105px;
    font-size: 8px;
    line-height: 1.35
}

.ticket-step.current,
.ticket-step.completed {
    color: #b9151b
}

.ticket-step.current span {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 4px #fff1f1
}

.ticket-step.selected span {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 4px #fff1f1
}

.ticket-step.selected small {
    color: var(--red);
    font-weight: 800
}

.ticket-step.completed span {
    border-color: var(--red);
    background: var(--red);
    color: #fff
}

.ticket-step.completed:not(:last-child)::after {
    background: var(--red)
}

.close-btn {
    border: 0;
    background: transparent;
    font-size: 25px;
    color: #fff;
    line-height: 1
}

.modal form {
    padding: 17px 21px
}

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

.form-grid label {
    font-size: 9px;
    font-weight: 700;
    color: #4f606d
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid #dce4e9;
    border-radius: 9px;
    padding: 10px 12px;
    outline: 0;
    font-size: 10px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    color: var(--text);
    transition: all .2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none
}

.form-grid textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5
}

.maintenance-inline-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px
}

.maintenance-inline-grid label {
    min-width: 0
}

.form-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 7px;
    padding: 13px 14px 11px;
    border: 1px solid #f1c9cb;
    border-left: 4px solid var(--red);
    border-radius: 9px;
    background: #fff7f7
}

.form-grid>[hidden],
.form-section[hidden] {
    display: none !important
}

.form-section strong {
    color: #b9151b;
    font-size: 13px;
    line-height: 1.3
}

.form-section small {
    color: #7c8992;
    font-size: 9px;
    line-height: 1.4
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08);
    background: #fff
}

/* Disable the malformed generated form-control block. */
/*
.form-grid select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7d8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E%);background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}.form-grid select:hover{border-color:#c6d5df;box-shadow:0 6px 18px rgba(23,33,43,.04)}.employee-picker{position:relative}.employee-picker .employee-value{display:block;width:100%;margin-top:6px;border:1px solid #cfe0ea;border-radius:9px;padding:10px 36px 10px 12px;background:linear-gradient(180deg,#fff,#f8fbfd);text-align:left;font-size:10px;font-weight:700;color:#243342;position:relative;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:all .2s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-picker .employee-value:after{content:" ";position:absolute;right:12px;top:50%;width:10px;height:10px;transform:translateY(-50%);background-image:url(" data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236c7d8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpolyline points='6 9 12 15 18 9' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center}.employee-picker .employee-value.has-value{border-color:#9bb9cc;box-shadow:0 0 0 4px rgba(8,123,181,.08)}.employee-picker .employee-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #dce4e9;border-radius:10px;box-shadow:0 16px 32px rgba(17,31,42,.14);z-index:60;overflow:hidden}.employee-picker .employee-search{padding:9px;border-bottom:1px solid var(--line)}.employee-picker .employee-search input{width:100%;border:1px solid #dce4e9;border-radius:7px;padding:8px 10px;font-size:10px;outline:0;background:#fff}.employee-picker .employee-search input:focus{border-color:#9bb9cc;box-shadow:0 0 0 3px rgba(8,123,181,.08)}.employee-picker .employee-options{max-height:220px;overflow:auto}.employee-picker .employee-option{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eef3f7;background:#fff;text-align:left;cursor:pointer}.employee-picker .employee-option:last-child{border-bottom:0}.employee-picker .employee-option:hover,.employee-picker .employee-option.selected{background:#f5f9fc}.employee-picker .employee-option-name{display:block;font-size:10px;font-weight:700;color:#213242}.employee-picker .employee-option-meta{display:block;font-size:8px;color:#758796;margin-top:3px}.employee-picker .employee-empty{padding:12px;font-size:9px;color:#758796;text-align:center}.hidden{display:none!important}.span-2{grid-column:1/-1}.modal-footer{display:flex;justify-content:flex-end;gap:7px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
*/
.toast {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    background: #172530;
    color: #fff;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 10px;
    box-shadow: 0 10px 30px #0003;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: .25s
}

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

.toast.success {
    border-left: 4px solid #19a974
}

.toast.error {
    border-left: 4px solid #e33
}

.login-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #12232f, #203f52);
    display: grid;
    place-items: center;
    padding: 20px
}

.login-card {
    background: #fff;
    width: min(410px, 100%);
    padding: 30px;
    border-radius: 17px;
    box-shadow: 0 30px 80px #0004
}

.brand.large {
    padding: 0 0 8px
}

.brand.large .brand-mark {
    width: 48px;
    height: 48px
}

.login-card h1 {
    font-size: 21px;
    margin: 4px 0 7px
}

.login-card form {
    display: grid;
    gap: 13px;
    margin-top: 4px
}

.login-card label {
    font-size: 10px;
    font-weight: 700
}

.login-card input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0
}

.login-note {
    font-size: 8px;
    color: var(--muted);
    text-align: center;
    margin-top: 15px
}

.mobile-menu {
    display: none;
    border: 0;
    background: none;
    font-size: 20px
}

.detail-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 19px
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 15px
}

.detail-head h2 {
    margin: 0;
    font-size: 17px
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 17px 0
}

.meta-box {
    background: #f7f9fa;
    border-radius: 8px;
    padding: 10px
}

.meta-box small {
    display: block;
    color: var(--muted);
    font-size: 8px
}

.meta-box b {
    display: block;
    font-size: 10px;
    margin-top: 5px
}

.detail-section {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 15px
}

.detail-section h4 {
    font-size: 10px;
    margin: 0 0 8px
}

.detail-section p {
    font-size: 10px;
    line-height: 1.7;
    color: #53636e;
    white-space: pre-wrap
}

.audit {
    display: grid;
    gap: 8px
}

.audit-item {
    display: flex;
    gap: 9px
}

.audit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-top: 4px
}

.audit-item b {
    font-size: 9px
}

.audit-item small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    margin-top: 3px
}

@media(max-width:1050px) {
    .stats {
        grid-template-columns: 1fr 1fr
    }

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

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

    .flow-steps {
        grid-template-columns: 1fr 1fr 1fr
    }

    .search-box {
        width: 180px
    }

    .system-capability-grid {
        grid-template-columns: 1fr
    }

    .system-request-row {
        grid-template-columns: 110px minmax(0, 1fr) 100px 150px;
        align-items: start
    }

    .system-request-main {
        min-width: 0
    }

    .system-request-status {
        margin-left: 0
    }
}

@media(max-width:760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s
    }

    .sidebar.open {
        transform: none
    }

    .main {
        margin-left: 0
    }

    .mobile-menu {
        display: block
    }

    .topbar {
        padding: 15px;
        height: auto
    }

    .topbar h1 {
        font-size: 17px
    }

    .top-actions .search-box,
    .top-actions .icon-btn {
        display: none
    }

    .page {
        padding: 17px
    }

    .app-shell.focused-module-page .page-title-row {
        margin: -17px -17px 17px;
        padding: 17px;
    }

    .form-section {
        gap: 4px 8px;
        padding: 12px
    }

    .hero {
        padding: 21px
    }

    .hero h2 {
        font-size: 21px
    }

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

    .flow-steps {
        grid-template-columns: 1fr 1fr
    }

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

    .detail-meta {
        grid-template-columns: 1fr 1fr
    }

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

    .ticket-stepper {
        padding: 15px 10px 12px
    }

    .ticket-step small {
        max-width: 62px;
        font-size: 7px
    }

    .ticket-step:not(:last-child)::after {
        left: calc(50% + 14px);
        width: calc(100% - 28px)
    }

    .span-2 {
        grid-column: auto
    }

    .top-actions .btn {
        padding: 9px 10px
    }

    .ticket-card {
        align-items: flex-start
    }

    .ticket-actions {
        flex-direction: column
    }

    .system-capabilities {
        padding: 17px
    }

    .system-capability-header,
    .system-catalog-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .system-capability-stats {
        width: 100%
    }

    .system-search {
        width: 100%
    }

    .segmented-control {
        justify-content: stretch
    }

    .segmented-control button {
        flex: 1
    }

    .system-focus-grid {
        grid-template-columns: 1fr
    }

    .system-requests {
        padding: 17px
    }

    .system-matrix-header {
        flex-direction: column;
        padding: 17px
    }

    .system-matrix-header .btn {
        width: 100%
    }

    .system-module-grid {
        grid-template-columns: 1fr;
        padding: 0
    }

    .system-request-overview {
        align-items: stretch;
        flex-direction: column;
        gap: 12px
    }

    .system-request-header,
    .system-request-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .employee-page-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column
    }

    .employee-search {
        width: 100%
    }

    .system-request-toolbar {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .system-request-header .btn,
    .system-request-toolbar select {
        width: 100%
    }

    .system-request-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 9px
    }

    .system-request-id,
    .system-request-main,
    .system-request-status {
        width: auto;
        min-width: 0;
        margin-left: 0
    }

    .system-request-main {
        grid-column: 1 / -1;
        grid-row: 2
    }

    .system-request-status {
        grid-column: 1;
        grid-row: 3
    }

    .system-request-actions {
        grid-column: 2;
        grid-row: 3;
        justify-self: end
    }
}

@media(max-width:480px) {
    .stats {
        grid-template-columns: 1fr
    }

    .page-title-row {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column
    }

    .flow-steps {
        grid-template-columns: 1fr
    }

    .detail-meta {
        grid-template-columns: 1fr
    }

    .topbar p {
        display: none
    }

    .manager-row {
        grid-template-columns: 1fr 1fr !important
    }

    .manager-row button {
        grid-column: 1/-1
    }
}

.employee-group,
.employee-subgroup {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden
}

.employee-group>summary,
.employee-subgroup>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 12px 15px;
    font-size: 11px;
    font-weight: 700;
    background: #eef4fb
}

.employee-group>summary::-webkit-details-marker,
.employee-subgroup>summary::-webkit-details-marker {
    display: none
}

.employee-group>summary b,
.employee-subgroup>summary b {
    color: var(--muted);
    font-size: 9px
}

.employee-subgroup {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    margin: 0
}

.employee-subgroup>summary {
    background: #fafcfd;
    color: #50616e;
    font-size: 10px;
    padding: 10px 18px
}

.employee-subgroup .table-wrap {
    padding: 0 10px 10px
}

.employee-table {
    min-width: 1120px
}

.employee-table th,
.employee-table td {
    white-space: nowrap
}

.employee-table th:nth-child(3),
.employee-table td:nth-child(3) {
    min-width: 145px
}

.employee-table th:nth-child(5),
.employee-table td:nth-child(5) {
    min-width: 170px;
    white-space: normal
}

.employee-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid var(--line)
}

.employee-pagination-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--muted);
    font-size: 10px
}

.employee-pagination-summary strong {
    color: var(--text);
    font-size: 11px
}

.employee-pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px
}

.employee-page-button {
    display: grid;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease
}

.employee-page-button:hover:not(:disabled):not(.active) {
    border-color: #d71920;
    background: #fff1f2;
    color: #b9151b;
    box-shadow: 0 2px 6px rgba(215, 25, 32, .12)
}

.employee-page-button.active {
    border-color: #d71920;
    background: #d71920;
    color: #fff
}

.employee-page-button.active:hover:not(:disabled) {
    border-color: #b9151b;
    background: #b9151b;
    color: #fff;
    box-shadow: 0 2px 7px rgba(185, 21, 27, .24)
}

.employee-page-button:disabled {
    opacity: .4;
    cursor: not-allowed
}

.employee-page-button:focus-visible {
    outline: 2px solid #152330;
    outline-offset: 2px
}

@media(prefers-reduced-motion:reduce) {
    .employee-page-button {
        transition: none
    }
}

@media(max-width:600px) {
    .employee-pagination {
        align-items: flex-start;
        flex-direction: column
    }

    .employee-pagination-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap
    }
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 21px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2
}

.modal-footer .btn {
    min-width: 120px
}

.form-section {
    grid-column: 1 / -1;
    flex-wrap: wrap
}

.employee-picker {
    position: relative;
    display: block;
    width: 100%
}

.employee-picker .employee-value {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid #cfe0ea;
    border-radius: 9px;
    padding: 10px 36px 10px 12px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #243342;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: all .2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5
}

.employee-picker .employee-value:after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236c7d8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center
}

.employee-picker .employee-value.has-value {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08)
}

.employee-picker .employee-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(17, 31, 42, .14);
    z-index: 60;
    overflow: hidden
}

.employee-picker .employee-search {
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

.employee-picker .employee-search input {
    width: 100%;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 10px;
    outline: 0;
    background: #fff
}

.employee-picker .employee-search input:focus {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 3px rgba(8, 123, 181, .08)
}

.employee-picker .employee-options {
    max-height: 230px;
    overflow: auto;
    background: #fff
}

.employee-picker .employee-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f4f7;
    background: #fff;
    text-align: left;
    cursor: pointer;
    color: var(--text)
}

.employee-picker .employee-option:hover,
.employee-picker .employee-option.selected {
    background: #eef6fd
}

.employee-picker .employee-option-name {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text)
}

.employee-picker .employee-option-meta {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: var(--muted)
}

.employee-picker .employee-empty {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 9px
}

.employee-picker .hidden {
    display: none !important
}

.department-picker {
    position: relative;
    display: block;
    width: 100%
}

.department-value {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cfe0ea;
    border-radius: 9px;
    background: #fff;
    color: #243342;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.department-value:after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-55%);
    color: #657582;
    font-size: 15px
}

.department-value.has-value {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08)
}

.department-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 70;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(17, 31, 42, .16)
}

.department-search {
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

.department-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    font-size: 10px
}

.department-search input:focus {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 3px rgba(8, 123, 181, .08)
}

.department-options {
    max-height: 220px;
    overflow: auto
}

.department-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f4f7;
    background: #fff;
    color: var(--text);
    text-align: left
}

.department-option:hover,
.department-option.selected {
    background: #fff4f4
}

.department-option-name {
    display: block;
    font-size: 10px;
    font-weight: 700
}

.department-option-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.department-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 9px;
    text-align: center
}

.department-picker .hidden {
    display: none !important
}

.choice-picker {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 6px
}

.choice-picker .choice-native {
    display: none !important
}

.choice-value {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cfe0ea;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    color: #243342;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.choice-value:after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-55%);
    color: #657582;
    font-size: 15px
}

.choice-value.has-value {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08)
}

.choice-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 70;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(17, 31, 42, .16)
}

.choice-menu.hidden {
    display: none !important
}

.choice-search {
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

.choice-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    font-size: 10px
}

.choice-options {
    max-height: 220px;
    overflow: auto
}

.choice-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f4f7;
    background: #fff;
    color: var(--text);
    text-align: left;
    font-size: 10px
}

.choice-option:hover,
.choice-option.selected {
    background: #fff4f4
}

.choice-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 9px;
    text-align: center
}

.visit-performer-picker {
    position: relative;
    display: block;
    width: 100%
}

.visit-performer-value {
    display: block;
    width: 100%;
    margin-top: 6px;
    min-height: 38px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cfe0ea;
    border-radius: 9px;
    background: #fff;
    color: #243342;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.visit-performer-value:after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-55%);
    color: #657582;
    font-size: 15px
}

.visit-performer-value.has-value {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08)
}

.visit-performer-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 70;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(17, 31, 42, .16)
}

.visit-performer-search {
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

.visit-performer-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    outline: 0;
    font-size: 10px
}

.visit-performer-options {
    max-height: 220px;
    overflow: auto
}

.visit-performer-option {
    display: block;
    width: 100%;
    padding: 10px 34px 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f4f7;
    background: #fff;
    color: var(--text);
    text-align: left;
    position: relative
}

.visit-performer-option:hover,
.visit-performer-option.selected {
    background: #fff4f4
}

.visit-performer-option-name {
    display: block;
    font-size: 10px;
    font-weight: 700
}

.visit-performer-option-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.visit-performer-check {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-weight: 800
}

.visit-performer-option.selected .visit-performer-check {
    display: block
}

.visit-performer-picker .hidden {
    display: none !important
}

.asset-picker {
    position: relative;
    display: block;
    width: 100%
}

.asset-picker-value {
    display: block;
    width: 100%;
    margin-top: 6px;
    min-height: 38px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cfe0ea;
    border-radius: 9px;
    background: #fff;
    color: #243342;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.asset-picker[data-picker-type="department"] .asset-picker-value:after {
    display: none
}

.asset-picker[data-picker-type="department"] .asset-picker-value {
    padding-right: 12px
}

.asset-picker-value:after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-55%);
    color: #657582;
    font-size: 15px
}

.asset-picker-value.has-value {
    border-color: #9bb9cc;
    box-shadow: 0 0 0 4px rgba(8, 123, 181, .08)
}

.asset-picker-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 70;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(17, 31, 42, .16)
}

.asset-picker-search {
    padding: 9px;
    border-bottom: 1px solid var(--line)
}

.asset-picker-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    outline: 0;
    font-size: 10px
}

.asset-picker-options {
    max-height: 220px;
    overflow: auto
}

.asset-picker-option {
    display: block;
    width: 100%;
    padding: 10px 34px 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0f4f7;
    background: #fff;
    color: var(--text);
    text-align: left;
    position: relative
}

.asset-picker-option:hover,
.asset-picker-option.selected {
    background: #fff4f4
}

.asset-picker-option-name {
    display: block;
    font-size: 10px;
    font-weight: 700
}

.asset-picker-option-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px
}

.asset-picker-check {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-weight: 800
}

.asset-picker-option.selected .asset-picker-check {
    display: block
}

.asset-picker-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 9px;
    text-align: center
}

.asset-picker .hidden {
    display: none !important
}

.store-visit-card {
    padding: 0;
    overflow: hidden
}

.store-visit-table {
    min-width: 980px
}

.store-visit-table th {
    background: #d71920;
    color: #fff;
    padding: 12px 10px
}

.store-visit-table td {
    padding: 12px 10px;
    vertical-align: top
}

.store-visit-table td:nth-child(3) {
    min-width: 260px;
    max-width: 360px
}

.store-visit-table td:nth-child(4) {
    min-width: 150px
}

.person-chip {
    display: block;
    width: max-content;
    max-width: 220px;
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e7f3f7;
    color: #315968;
    font-size: 9px;
    line-height: 1.25
}

.row-actions {
    min-width: 210px;
    white-space: nowrap
}

.row-actions .small-btn+.small-btn {
    margin-left: 4px
}

.form-field {
    min-width: 0
}

.form-field>label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #4f606d
}

.form-field select {
    display: block;
    width: 100%;
    margin-top: 6px;
    min-height: 112px;
    padding: 7px;
    border: 1px solid #dce4e9;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-size: 10px
}

.form-field option {
    padding: 5px 6px
}

.field-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px
}

.login-card h1,
.modal-header h2,
.form-grid>label,
.form-field>label {
    color: #d71920
}

@media(max-width:760px) {
    .store-visit-table {
        min-width: 900px
    }
}

@media(max-width:760px) {
    html,
    body {
        overflow-x: hidden
    }

    .app-shell.focused-module-page .main {
        margin-left: 0
    }

    .page,
    .main,
    .card,
    .detail-panel {
        min-width: 0
    }

    .topbar {
        flex-wrap: wrap;
        gap: 10px 12px
    }

    .topbar>div:nth-child(2) {
        min-width: 0;
        flex: 1
    }

    .top-actions {
        width: 100%
    }

    .top-actions .btn {
        width: 100%
    }

    .grid-3,
    .department-office-grid,
    .system-grid,
    .tool-grid {
        grid-template-columns: 1fr
    }

    .tool-grid {
        gap: 8px
    }

    .management-page-actions,
    .management-home-header,
    .page-title-row {
        width: 100%
    }

    .management-page-actions,
    .management-home-header {
        align-items: stretch
        
    }

    .management-page-actions .btn,
    .management-home-header .btn,
    .employee-page-actions .btn {
        width: 100%
    }

    .employee-page-actions {
        gap: 8px
    }

    .employee-table {
        min-width: 760px
    }

    .table-wrap {
        max-width: 100%;
        -webkit-overflow-scrolling: touch
    }

    .modal-backdrop {
        place-items: start center;
        overflow-y: auto;
        padding: 10px
    }

    .modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 11px
    }

    .modal-header {
        padding: 16px 15px 13px
    }

    .modal-header h2 {
        font-size: 15px
    }

    .modal-footer {
        flex-wrap: wrap
        
    }

    .modal-footer .btn {
        flex: 1;
        min-width: 110px
    }

    #departmentDirectoryContent {
        padding: 14px 12px 18px
    }

    .user-profile-details {
        grid-template-columns: 1fr
    }

    .login-card {
        padding: 22px 18px
    }
}

@media(max-width:380px) {
    .page,
    .topbar {
        padding-left: 12px;
        padding-right: 12px
    }

    .app-shell.focused-module-page .page-title-row {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px
    }

    .stats,
    .detail-meta {
        grid-template-columns: 1fr
    }

    .login-card {
        padding: 20px 15px
    }
}