@import '../../../vendor/filament/filament/resources/css/theme.css';

@source '../../../app/Filament/**/*';
@source '../../../resources/views/filament/**/*';

/* Buttons */
.fi-btn {
    padding: 10px !important;
    border-radius:   4px !important;
}

/* Employee self-service blue identity */
.ess-app-body { --ess-green: #4A8DE4; --ess-green-dark: #2f6fbd; --ess-green-soft: #edf5ff; }
.ess-desktop-sidebar { background: #4A8DE4 !important; }
.ess-welcome { min-height: 166px; background: #4A8DE4; }
.ess-welcome::before { inset: -70% 5% auto 22%; width: 72%; height: 155%; background: rgba(255,255,255,.12); transform: rotate(-13deg); }
.ess-welcome::after { display: block; content: ''; position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; top: -105px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ess-hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,120px); gap: .65rem; margin-left: auto; }
.ess-hero-metrics a { display: flex; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: .7rem; background: rgba(255,255,255,.13); color: #fff; text-decoration: none; }
.ess-hero-metrics span { color: rgba(255,255,255,.78); font-size: .7rem; }
.ess-hero-metrics strong { margin-top: .15rem; color: #fff; font-size: 1.5rem; font-weight: 400; }
.ess-login-logo, .ess-login-card button, .ess-scan-start, .ess-ticket-actions button, .ess-detail-action, .ess-profile-card form button, .ess-card-ticket, .ess-ticket-modal-actions button[type=submit], .ess-reply-form button { background: #4A8DE4 !important; color: #fff !important; }
.ess-action > svg, .ess-native-row > svg:first-child, .ess-device-icon, .ess-model-placeholder, .ess-camera-placeholder svg { color: #4A8DE4; }
.ess-count, .ess-ticket-state, .ess-conversation-head > span, .ess-list-page article > span, .ess-comment.is-employee .ess-comment-avatar { background: #edf5ff; color: #2f6fbd; }
.ess-comment.is-employee p, .ess-modal-device { background: #edf5ff; }
.ess-ticket-modal input:focus, .ess-ticket-modal textarea:focus, .ess-reply-form textarea:focus, .ess-scan-input input:focus { border-color: #4A8DE4; box-shadow: 0 0 0 3px rgba(74,141,228,.13); }
.ess-menu-button { background: #4A8DE4 !important; }
.ess-menu-grid a > span, .ess-menu-grid > button > span, .ess-menu-grid form button > span { background: #edf5ff; color: #4A8DE4; }
.ess-scanner-modal { position: fixed; inset: 0; margin: auto; }
.ess-actions button.ess-action { background: #4A8DE4; color: #fff; }
.ess-actions button.ess-action > svg, .ess-actions button.ess-action small { color: rgba(255,255,255,.9); }
.ess-desktop-sidebar nav .ess-menu-create { background: #4A8DE4; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
@media(max-width:767px){.ess-welcome{min-height:auto;align-items:flex-start;flex-direction:column}.ess-hero-metrics{width:100%;grid-template-columns:1fr 1fr;margin:1rem 0 0}.ess-hero-metrics a{min-height:62px}}
@media (max-width: 767px) {
    .ess-detail-head > div > p,
    .ess-scanner-card > h1 + p,
    .ess-ticket-card > h1 + p {
        display: none;
    }
}

.ess-manuals-page { padding-bottom: 2rem; }
.ess-detail-head p { margin: .3rem 0 0; color: #667085; }
.ess-manual-search { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: .7rem; margin: 1rem 0; padding: .65rem .75rem; border: 1px solid #dce5f0; border-radius: .85rem; background: #fff; box-shadow: 0 8px 24px rgba(23,32,51,.04); }
.ess-manual-search > svg { width: 1.3rem; color: #4A8DE4; }
.ess-manual-search input { min-width: 0; height: 42px; padding: 0 .25rem; border: 0; outline: 0; background: transparent; color: #172033; font: inherit; }
.ess-manual-search a { color: #667085; font-size: .78rem; text-decoration: none; }
.ess-manual-search button { min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: .6rem; background: #4A8DE4; color: #fff; font: inherit; cursor: pointer; }
.ess-manual-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; color: #172033; }
.ess-manual-result-head small { color: #667085; }
.ess-manual-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.ess-manual-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1rem; min-width: 0; padding: 1.15rem; border: 1px solid #dfe7f1; border-radius: .9rem; background: #fff; box-shadow: 0 10px 28px rgba(23,32,51,.045); }
.ess-manual-file-icon { display: grid; width: 58px; height: 68px; place-items: center; align-content: center; gap: .15rem; border-radius: .75rem; background: #edf5ff; color: #4A8DE4; }
.ess-manual-file-icon.is-pdf { background: #fff0f0; color: #dc3f3f; }
.ess-manual-file-icon svg { width: 27px; }
.ess-manual-file-icon span { font-size: .58rem; font-weight: 700; }
.ess-manual-copy { min-width: 0; }
.ess-manual-copy h2 { margin: 0; color: #172033; font-size: 1rem; font-weight: 500; }
.ess-manual-copy p { display: -webkit-box; margin: .4rem 0; overflow: hidden; color: #667085; font-size: .8rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ess-manual-copy small { display: block; overflow: hidden; color: #94a3b8; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.ess-manual-open { grid-column: 1 / -1; display: flex; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; border-radius: .6rem; background: #edf5ff; color: #2f6fbd; font-size: .78rem; text-decoration: none; }
.ess-manual-open:hover { background: #4A8DE4; color: #fff; }
.ess-manual-open svg { width: 1rem; }
.ess-manual-empty { grid-column: 1 / -1; display: grid; min-height: 260px; place-items: center; align-content: center; padding: 2rem; border: 1px dashed #cfdbea; border-radius: .9rem; background: #fff; color: #667085; text-align: center; }
.ess-manual-empty > svg { width: 3rem; color: #4A8DE4; }
.ess-manual-empty h2 { margin: .8rem 0 .25rem; color: #172033; font-size: 1.05rem; font-weight: 500; }
.ess-manual-empty p { margin: 0; }
.ess-manual-pagination { margin-top: 1rem; }
@media (min-width: 768px) { .ess-actions { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 767px) {
    .ess-manual-grid { grid-template-columns: 1fr; }
    .ess-manual-search { grid-template-columns: auto minmax(0,1fr); }
    .ess-manual-search a { display: none; }
    .ess-manual-search button { grid-column: 1 / -1; width: 100%; }
}

@media (min-width: 992px) {
    body.ess-app-body .ess-desktop-sidebar nav .ess-menu-create {
        background: #f7f8fa !important;
        color: #52617a !important;
        box-shadow: none;
    }
    body.ess-app-body .ess-desktop-sidebar nav .ess-menu-create:hover,
    body.ess-app-body .ess-desktop-sidebar nav .ess-menu-create:focus-visible {
        background: #edf5ff !important;
        color: #4A8DE4 !important;
    }
    body.ess-app-body .ess-desktop-sidebar nav .ess-menu-create:focus:not(:focus-visible) {
        outline: none;
    }
}

body.ess-app-body { font-size: 16px; }
body.ess-app-body .ess-welcome,
body.ess-app-body .ess-login-logo,
body.ess-app-body .ess-login-card button,
body.ess-app-body .ess-scan-start,
body.ess-app-body .ess-ticket-actions button,
body.ess-app-body .ess-detail-action,
body.ess-app-body .ess-card-ticket,
body.ess-app-body .ess-ticket-modal-actions button[type=submit],
body.ess-app-body .ess-reply-form button,
body.ess-app-body .ess-agreement-actions button,
body.ess-app-body .ess-agreement-sign-form button { background-color: var(--ess-portal-color, #4A8DE4) !important; }
body.ess-app-body .ess-action > svg,
body.ess-app-body .ess-device-icon,
body.ess-app-body .ess-native-row > svg:first-child,
body.ess-app-body .ess-manual-search > svg,
body.ess-app-body .ess-ticket-number { color: var(--ess-portal-color, #4A8DE4) !important; }
body.ess-app-body .ess-desktop-sidebar nav a.is-active,
body.ess-app-body .ess-desktop-sidebar nav a:hover { color: var(--ess-portal-color, #4A8DE4) !important; }
.ess-file-help { display: block; margin-top: -.35rem; color: #667085; font-size: .72rem; }
.ess-ticket-form input[type=file], .ess-ticket-modal input[type=file] { padding: .6rem; border: 1px dashed #bdcbe0; border-radius: .6rem; background: #f8fafc; }
.ess-ticket-screenshot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4eaf2; }
.ess-ticket-screenshot > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ess-ticket-screenshot a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ess-portal-color, #4A8DE4); font-size: .75rem; text-decoration: none; }
.ess-ticket-screenshot a svg { width: 1rem; }
.ess-ticket-screenshot img { display: block; width: 100%; max-height: 480px; margin-top: .65rem; border: 1px solid #dfe7f1; border-radius: .7rem; background: #f8fafc; object-fit: contain; }
.ess-agreement-actions { grid-template-columns: 1fr; }
.ess-signature-pad { position: relative; overflow: hidden; border: 1px solid #bdcbe0; border-radius: .65rem; background: #fff; touch-action: none; }
.ess-signature-pad canvas { display: block; width: 100%; height: 170px; cursor: crosshair; touch-action: none; }
.ess-signature-pad button { position: absolute; right: .5rem; bottom: .5rem; min-height: 32px !important; margin: 0 !important; padding: 0 .65rem !important; background: var(--ess-primary, #4A8DE4) !important; color: #fff !important; font-size: .7rem; }
.ess-saved-signature { margin-top: .8rem; padding: .75rem; border-radius: .65rem; background: #f8fafc; }
.ess-saved-signature small { display: block; color: #667085; }
.ess-saved-signature img { display: block; max-width: 320px; max-height: 120px; margin-top: .35rem; }
.ess-agreement-terms { margin-top: 1rem; border: 1px solid #dfe7f1; border-radius: .75rem; background: #fff; }
.ess-agreement-terms-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #e5ebf3; background: #f8fafc; }
.ess-agreement-terms-head > svg { width: 1.6rem; color: var(--ess-portal-color, #4A8DE4); }
.ess-agreement-terms-head h3 { margin: 0; font-size: .95rem; font-weight: 500; }
.ess-agreement-terms-head p { margin: .15rem 0 0; color: #667085; font-size: .72rem; }
.ess-agreement-terms-scroll { padding: .25rem 1rem; overflow: visible; }
.ess-agreement-terms-scroll article { padding: .8rem 0; border-bottom: 1px solid #edf1f5; }
.ess-agreement-terms-scroll article:last-child { border-bottom: 0; }
.ess-agreement-terms-scroll h4 { margin: 0 0 .25rem; color: #172033; font-size: .82rem; font-weight: 500; }
.ess-agreement-terms-scroll p { margin: 0; color: #667085; font-size: .75rem; line-height: 1.55; }

/* Definitive employee self-service palette and responsive shell. */
body.ess-app-body {
    --ess-green: #4A8DE4;
    --ess-green-dark: #2f6fbd;
    --ess-green-soft: #edf5ff;
    overflow-x: hidden;
}

body.ess-app-body .ess-shell { --ess-blue: #4A8DE4; }
body.ess-app-body .ess-app-logo > span,
body.ess-app-body .ess-login-logo,
body.ess-app-body .ess-scan-start,
body.ess-app-body .ess-ticket-actions button,
body.ess-app-body .ess-detail-action,
body.ess-app-body .ess-profile-card form button,
body.ess-app-body .ess-card-ticket,
body.ess-app-body .ess-ticket-modal-actions button[type=submit],
body.ess-app-body .ess-reply-form button { background: #4A8DE4 !important; color: #fff !important; }
body.ess-app-body .ess-native-row > svg,
body.ess-app-body .ess-ticket-device > span,
body.ess-app-body .ess-list-page article > span,
body.ess-app-body .ess-device-icon,
body.ess-app-body .ess-model-placeholder,
body.ess-app-body .ess-camera-placeholder svg { color: #4A8DE4 !important; }
body.ess-app-body .ess-ticket-device > span,
body.ess-app-body .ess-list-page article > span,
body.ess-app-body .ess-device-icon,
body.ess-app-body .ess-profile-avatar,
body.ess-app-body .ess-avatar,
body.ess-app-body .ess-colleagues span { background: #edf5ff !important; }
body.ess-app-body .ess-colleagues span,
body.ess-app-body .ess-profile-avatar,
body.ess-app-body .ess-avatar { color: #2f6fbd !important; }
body.ess-app-body .ess-status,
body.ess-app-body .ess-ticket-state,
body.ess-app-body .ess-count,
body.ess-app-body .ess-conversation-head > span {
    background: #edf5ff !important;
    color: #2f6fbd !important;
}

@media (min-width: 992px) {
    body.ess-app-body .ess-desktop-sidebar {
        position: fixed;
        z-index: 60;
        inset: 0 auto 0 0;
        display: flex;
        box-sizing: border-box;
        width: 112px;
        padding: 1rem .65rem;
        border-right: 1px solid #e3e9f1;
        background: #fff !important;
        color: #667085;
    }
    body.ess-app-body .ess-desktop-brand { border-color: #dce8f6; background: #edf5ff; color: #4A8DE4; }
    body.ess-app-body .ess-desktop-sidebar nav a,
    body.ess-app-body .ess-desktop-sidebar nav button,
    body.ess-app-body .ess-desktop-sidebar form button { color: #7b8a9e; }
    body.ess-app-body .ess-desktop-sidebar nav a:hover,
    body.ess-app-body .ess-desktop-sidebar nav a.is-active,
    body.ess-app-body .ess-desktop-sidebar nav .ess-menu-create { background: #edf5ff !important; color: #4A8DE4 !important; }
    body.ess-app-body .ess-app-header,
    body.ess-app-body .ess-native-main {
        box-sizing: border-box;
        width: calc(100% - 112px);
        margin-left: 112px;
    }
    body.ess-app-body .ess-detail-page {
        box-sizing: border-box;
        width: calc(100% - 112px);
        max-width: none;
        margin-left: 112px;
    }
}

@media (max-width: 991px) {
    body.ess-app-body .ess-desktop-sidebar { display: none !important; }
    body.ess-app-body .ess-app-header,
    body.ess-app-body .ess-native-main,
    body.ess-app-body .ess-detail-page { width: 100%; margin-left: 0; }
}

body.ess-app-body .ess-bottom-nav,
body.ess-app-body .ess-menu-panel { background: #fff !important; }
body.ess-app-body .ess-bottom-nav a.is-active { color: #4A8DE4 !important; }
body.ess-app-body .ess-menu-button { background: #fff !important; color: #4A8DE4 !important; border-color: #dce8f6; }
body.ess-app-body .ess-mobile-scan-button { flex-direction: column; gap: .15rem; background: #4A8DE4 !important; color: #fff !important; border: 4px solid #fff; font-size: .65rem; }
body.ess-app-body .ess-mobile-scan-button svg { width: 1.7rem; height: 1.7rem; }
body.ess-app-body .ess-mobile-hamburger { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; padding: 0; border: 0; background: transparent; color: #98a6b8; font: inherit; font-size: .7rem; line-height: 1.1; }
body.ess-app-body .ess-mobile-hamburger svg { width: 1.65rem; height: 1.65rem; }
body.ess-app-body .ess-menu-grid a > span,
body.ess-app-body .ess-menu-grid > button > span,
body.ess-app-body .ess-menu-grid form button > span { background: #edf5ff !important; color: #4A8DE4 !important; }

.ess-brand-logo { display: inline-flex; align-items: center; gap: .65rem; color: #172033; line-height: 1; }
.ess-brand-logo img { display: block; width: 178px; height: 52px; object-fit: contain; object-position: left center; }
.ess-app-header .ess-header-logo { display: block; width: auto; height: auto; max-width: 180px; max-height: 48px; object-fit: contain; object-position: left center; }
.ess-brand-logo-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #4A8DE4; color: #fff; box-shadow: 0 7px 18px rgba(74,141,228,.22); }
.ess-brand-logo-mark svg { width: 24px; height: 24px; }
.ess-brand-logo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: .96rem; font-weight: 600; letter-spacing: -.015em; }
.ess-brand-logo-text small { color: #667085; font-size: .7rem; font-weight: 400; letter-spacing: .01em; }
.ess-app-logo { text-decoration: none; }
.ess-login-brand { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.ess-login-brand .ess-header-logo { display: block; width: auto; height: auto; max-width: 260px; max-height: 128px; object-fit: contain; object-position: center; }
.ess-login-brand .ess-brand-logo-mark { width: 52px; height: 52px; border-radius: 14px; }
.ess-login-brand .ess-brand-logo-mark svg { width: 30px; height: 30px; }
.ess-login-brand .ess-brand-logo-text { font-size: 1.2rem; }
.ess-login-brand .ess-brand-logo-text small { font-size: .82rem; }

@media (max-width: 767px) {
    .ess-app-header .ess-header-logo { width: auto; height: auto; max-width: 150px; max-height: 42px; }
    .ess-app-header .ess-brand-logo-mark { width: 34px; height: 34px; border-radius: 9px; }
    .ess-app-header .ess-brand-logo-mark svg { width: 20px; height: 20px; }
    .ess-app-header .ess-brand-logo-text { font-size: .84rem; }
    .ess-app-header .ess-brand-logo-text small { font-size: .63rem; }
}

@media(min-width:992px){
    .ess-desktop-sidebar { border-right: 1px solid #e3e9f1; background: #fff !important; }
    .ess-desktop-brand { border-color: #d9e6f5; background: #edf5ff; color: #2f6fbd; }
    .ess-desktop-sidebar nav a, .ess-desktop-sidebar nav button, .ess-desktop-sidebar form button { color: #7b8a9e; }
    .ess-desktop-sidebar nav a:hover, .ess-desktop-sidebar nav a.is-active { background: #edf5ff; color: #4A8DE4; }
    .ess-desktop-sidebar nav .ess-menu-create { background: #edf5ff; color: #4A8DE4; box-shadow: none; }
    .ess-desktop-sidebar nav .ess-menu-create:hover { background: #e1efff; color: #2f6fbd; }
}
.ess-bottom-nav { background: #fff; }
.ess-bottom-nav .ess-menu-button { background: #fff !important; color: #4A8DE4; border: 1px solid #dce8f6; }
.ess-menu-panel { background: rgba(255,255,255,.98); }

.ess-ticket-modal[open], .ess-scanner-modal[open] { position: fixed !important; inset: auto !important; top: 50% !important; left: 50% !important; margin: 0 !important; transform: translate(-50%,-50%) !important; }
.ess-modal-device, .ess-ticket-device > span, .ess-success, .ess-list-page article > span, .ess-list-page em, .ess-colleagues span, .ess-profile-avatar, .ess-avatar, .ess-count, .ess-device-icon { background: #edf5ff; color: #2f6fbd; }
.ess-modal-device > svg { color: #4A8DE4; }
.ess-success { color: #2f6fbd; }
.ess-bottom-nav a.is-active { color: #4A8DE4; }
.ess-shell { --ess-blue: #4A8DE4; }
.ess-nav-icon, .ess-menu-ticket-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ess-nav-icon b, .ess-menu-ticket-icon b { position: absolute; top: -.55rem; right: -.7rem; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #4A8DE4; color: #fff; font-size: .58rem; font-weight: 400; line-height: 1; }
.ess-menu-ticket-icon b { top: -.15rem; right: -.15rem; }
.ess-desktop-sidebar, .ess-bottom-nav, .ess-menu-panel { background-color: #fff !important; }

/* Headers and Labels */
.fi-fo-field-wrp-label,
.fi-header-heading {
    font-weight: normal !important;
}

.fi-simple-header-heading {
    display: none !important;
}

.fi-simple-header {
    text-align: center !important;
}

/* Badges */
.fi-badge {
    padding: 5px !important;
    font-weight: 400 !important;
}

.fi-badge * {
    font-weight: 400 !important;
}

/* Body */
.fi-body {
    background-color: #ffffff !important;
}

/* Input / Text Areas */
.fi-ta-ctn,
.fi-input-wrp {
    border: 1px solid #EFEFEF;
    box-shadow: none !important;
    padding: 4px !important;

}

.fi-input-wrp {
      border-radius:   5px !important;
}

.fi-input-wrp,
.fi-ta-search-field,
.choices__inner {
    border: 1px solid #d9dee7 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

.fi-input,
.fi-select-input,
.fi-select-input-btn,
.fi-textarea,
textarea.fi-input {
    border-radius: 4px !important;
}

.fi-fo-select .fi-input-wrp,
.fi-fo-select-wrp .fi-input-wrp {
    border: 1px solid #d9dee7 !important;
    border-radius: 6px !important;
    padding: 5px !important;
}

.fi-fo-select .fi-select-input,
.fi-fo-select .fi-select-input-btn,
.fi-fo-select-wrp .fi-select-input,
.fi-fo-select-wrp .fi-select-input-btn {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: 0 !important;
}

.fi-input-wrp:focus-within,
.fi-ta-search-field:focus-within,
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--primary-500, #6b7280) !important;
    box-shadow: 0 0 0 1px var(--primary-500, #6b7280) !important;
}

/* Keep the Filament global-search magnifying glass visible inside the field. */
.fi-global-search .fi-input-wrp-prefix {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    padding-inline: .65rem .35rem !important;
}

.fi-global-search .fi-input-wrp-prefix > .fi-icon:not(.fi-loading-indicator) {
    display: block !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
    flex: 0 0 1.15rem !important;
    color: #667085 !important;
}

.fi-global-search input.fi-input-has-inline-prefix {
    padding-inline-start: .35rem !important;
}

.fi-fo-field-has-error .fi-input-wrp,
.fi-fo-select-wrp.fi-fo-field-has-error .fi-input-wrp {
    border-color: #ef4444 !important;
}

.dark .fi-input-wrp,
.dark .fi-ta-search-field,
.dark .choices__inner {
    border-color: #374151 !important;
    background-color: #111827 !important;
}

.dark .fi-fo-select .fi-select-input,
.dark .fi-fo-select .fi-select-input-btn,
.dark .fi-fo-select-wrp .fi-select-input,
.dark .fi-fo-select-wrp .fi-select-input-btn {
    background: transparent !important;
}

/* Kanban */
.fi-kanban-column {
    border-color: #edf0f5 !important;
    box-shadow: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: calc((100% - 4rem) / 5) !important;
}

.fi-kanban-board > .relative.flex {
    overflow-x: hidden !important;
}

.fi-kanban-column .fi-kanban-card,
.fi-kanban-column .fi-kanban-cards,
.fi-kanban-column .truncate {
    min-width: 0 !important;
}

.dark .fi-kanban-column {
    border-color: #374151 !important;
}

/* Topbar */


/* .fi-topbar-open-sidebar-btn {
    color: white !important;
}
 */

.fi-topbar .fi-icon {
  
}.fi-sidebar-header-logo-ctn{
    display: none !important;
}




/* Logos */
.fi-logo,
.fi-topbar-start .fi-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.fi-topbar-start .fi-logo {
    max-height: 40px;
        display: none;
}

.fi-sidebar-header .fi-logo {
    padding-top: 40px !important;
    max-height: 100px !important;
}

.fi-section {
 
    border: 1px solid #ebe6e6!important ;
  
    box-shadow: none !important;
 
}
.fi-ta[data-empty="true"] thead {
    display: none;
}

.fi-section-header {
   background-color: #ffffff !important;
    border: 0px solid #ebe6e6!important ;
  
}

/* Misc */
.fi-ac {
    height: 40px;
}

/* Table rows */
.table_row_deleted {
    background-color: rgb(252, 241, 241);
}
.table_row_warning {
    background-color: rgb(255, 252, 216);
} 
.fi-ta-header-cell{
    background-color: #F9FAFC;
    font-weight: normal !important;
}


/* Remove shadows from the topbar */
.fi-topbar > nav {
    @apply shadow-none ring-0;
}

/* Remove shadows from the sidebar header */
.fi-sidebar-header {
    @apply shadow-none ring-0;
}

/* Remove shadows from all cards/widgets (e.g., dashboard widgets, form sections) */
.fi-card, .fi-section, .fi-widget {
    @apply shadow-none ring-0;
}
.fi-topbar-start .fi-icon {
    color: white !important;
}   

.fi-topbar-open-sidebar-btn {
    color: white !important;
}
 
/* Target specific components if needed, for example, forms with bg-white shadow */
.dark .shadow, .shadow {
  --tw-shadow: none !important;
  --tw-shadow-rgb: none !important;
  box-shadow: none !important;
}

/* Mobile management PWA */
.mobile-relations-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-relations-heading p {
    margin: .35rem 0 0;
    color: #6b7280;
    font-size: .875rem;
}

.mobile-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .875rem;
}

.mobile-management-card {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 108px;
    gap: .875rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: #111827;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.mobile-management-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.mobile-management-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: .875rem;
    background: #eff6ff;
    color: #2563eb;
}

.mobile-management-card--amber .mobile-management-icon { background: #fffbeb; color: #d97706; }
.mobile-management-card--emerald .mobile-management-icon { background: #ecfdf5; color: #059669; }
.mobile-management-card--violet .mobile-management-icon { background: #f5f3ff; color: #7c3aed; }
.mobile-management-card--sky .mobile-management-icon { background: #eff6ff; color: #4A8DE4; }
.mobile-management-icon svg { width: 24px; height: 24px; }

.mobile-management-card-content {
    min-width: 0;
    flex: 1;
}

.mobile-management-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.mobile-management-card-heading strong { font-size: .95rem; }
.mobile-management-card-heading > span {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: .72rem;
    font-weight: 700;
}

.mobile-management-card-content small {
    display: block;
    margin-top: .35rem;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.4;
}

.mobile-management-chevron { width: 18px; color: #9ca3af; }

.mobile-relations-section {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}

.mobile-relations-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-relations-heading a { color: #4d7c0f; font-size: .8rem; font-weight: 700; white-space: nowrap; }

.mobile-search {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 1rem;
    padding: 0 .85rem;
    border: 1px solid #d1d5db;
    border-radius: .75rem;
    background: #fff;
}

.mobile-search svg { width: 20px; color: #9ca3af; }
.mobile-search input { width: 100%; min-height: 46px; border: 0; outline: 0; background: transparent; font: inherit; }
.mobile-relation-list { border-top: 1px solid #f3f4f6; }

.mobile-relation-row {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.mobile-relation-row:last-child { border-bottom: 0; }
.mobile-relation-row:hover { background: #f9fafb; }
.mobile-relation-avatar { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #ecfccb; color: #4d7c0f; font-weight: 800; }
.mobile-relation-main { min-width: 0; flex: 1; }
.mobile-relation-main > strong, .mobile-relation-main > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-relation-main > strong { font-size: .9rem; }
.mobile-relation-main > small { margin-top: .15rem; color: #6b7280; font-size: .75rem; }
.mobile-relation-counts { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin-top: .45rem; color: #6b7280; font-size: .68rem; }
.mobile-relation-row > svg { width: 18px; color: #9ca3af; }
.mobile-empty-state { padding: 2rem; color: #6b7280; text-align: center; }

@media (max-width: 767px) {
    .fi-main { padding-inline: .75rem !important; padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important; }
    .fi-header { gap: .75rem !important; }
    .fi-header-actions { width: 100%; }
    .fi-header-actions .fi-ac { width: 100%; }
    .fi-header-actions .fi-btn { min-height: 46px; }
    .fi-modal-window { max-height: calc(100dvh - env(safe-area-inset-top)) !important; }
    .fi-ta-header-toolbar { gap: .75rem !important; }
    .fi-ta-search-field { width: 100% !important; }
    .fi-ta-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .fi-btn, .fi-icon-btn, .fi-dropdown-trigger { min-height: 44px; }

    .mobile-management-grid { grid-template-columns: 1fr; gap: .7rem; }
    .mobile-management-card { min-height: 96px; padding: .875rem; }
    .mobile-relations-heading { align-items: flex-start; padding: 1rem; }
    .mobile-relations-heading p { max-width: 240px; }
    .mobile-search { margin: .75rem; }
    .mobile-relation-row { padding: .9rem 1rem; }
}

@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
    .fi-topbar > nav { padding-top: max(.5rem, env(safe-area-inset-top)); }
}

/* Employee self-service — compact, mobile-first layout inspired by Famflow. */
.ess-app-body { --ess-green: #9dcea1; --ess-green-dark: #4f8053; --ess-green-soft: #eef7ef; --ess-page: #f3f5f7; min-height: 100dvh; margin: 0; background: var(--ess-page); color: #172033; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ess-app-body *, .ess-app-body *::before, .ess-app-body *::after { box-sizing: border-box; }
.ess-app-header { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .65rem clamp(1rem,2.5vw,2rem); border-bottom: 1px solid #dde3e8; background: #fff; }
.ess-desktop-sidebar { display: none; }
.ess-app-logo { display: flex; align-items: center; gap: .65rem; color: #172033; font-size: .95rem; font-weight: 600; text-decoration: none; }
.ess-app-logo > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: .65rem; background: #65a30d; color: #fff; }
.ess-app-user { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.ess-app-user > img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ess-app-user > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f0f9e8; color: #3f6f08; font-size: .62rem; font-weight: 400; }
.ess-app-user strong, .ess-app-user small { display: block; }
.ess-app-user strong { font-size: .78rem; }
.ess-app-user small { color: #64748b; font-size: .68rem; }
.ess-native-main { width: 100%; padding: 1.5rem clamp(1rem,3vw,3rem) 6rem; }
.ess-bottom-nav { display: none; }
.ess-menu-backdrop, .ess-menu-panel { display: none; }
.ess-native-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .65rem; padding: .75rem 0; border-bottom: 1px solid #eef2f7; }
.ess-native-row { color: inherit; text-decoration: none; }
.ess-native-row > svg { width: 20px; color: #65a30d; }
.ess-native-row > svg:last-child { margin-left: auto; color: #98a2b3; }
.ess-native-row strong, .ess-native-row small { display: block; }
.ess-native-row strong { font-size: .82rem; }
.ess-native-row small { color: #64748b; font-size: .7rem; }
.ess-login-page { display: grid; min-height: 100dvh; place-items: center; padding: 1rem; }
.ess-login-card { width: min(100%, 560px); padding: 2.25rem; border: 1px solid #e1e7ef; border-radius: .75rem; background: #fff; box-shadow: 0 12px 35px rgba(20,32,51,.07); }
.ess-login-logo { display: grid; width: 58px; height: 58px; margin-bottom: 1.25rem; place-items: center; border-radius: 1rem; background: #65a30d; color: #fff; font-size: 1.1rem; font-weight: 400; }
.ess-login-card h1 { margin: .25rem 0 0; font-size: 1.6rem; }
.ess-login-card > p { margin: .5rem 0 1.5rem; color: #64748b; font-size: .85rem; }
.ess-login-card form > label:not(.ess-remember) { display: block; margin: .8rem 0 .35rem; color: #52637a; font-size: .78rem; font-weight: 650; }
.ess-login-card input[type=email], .ess-login-card input[type=password], .ess-login-card .ess-organization-input { box-sizing: border-box; width: 100%; min-height: 48px; margin-bottom: 1rem; padding: .7rem .8rem; border: 1px solid #d7e2ef; border-radius: .7rem; background: #f8fafc; color: #142033; font: inherit; outline: none; }
.ess-login-card input:focus { border-color: #65a30d; box-shadow: 0 0 0 3px rgba(101,163,13,.12); }
.ess-remember { display: flex; align-items: center; gap: .45rem; margin: 1rem 0; color: #64748b; font-size: .78rem; }
.ess-login-card button { width: 100%; min-height: 48px; border: 0; border-radius: .7rem; background: #65a30d; color: #fff; font: inherit; font-weight: 400; cursor: pointer; }
.ess-login-error { padding: .7rem; border-radius: .6rem; background: #fff1f2; color: #be123c; font-size: .76rem; }
.ess-password-strength { overflow: hidden; height: 7px; margin: -.55rem 0 .45rem; border-radius: 999px; background: #e7edf5; }
.ess-password-strength span { display: block; width: 0; height: 100%; border-radius: inherit; background: #dc2626; transition: width .2s, background .2s; }
.ess-password-strength span[data-score="2"] { background: #f59e0b; }
.ess-password-strength span[data-score="3"] { background: #4A8DE4; }
.ess-password-strength span[data-score="4"] { background: #16a34a; }
.ess-password-strength-label { display: block; min-height: 18px; color: #64748b; font-size: .72rem; }
.ess-password-logout { margin-top: .75rem; }
.ess-password-logout button { background: #eef2f7 !important; color: #52617a !important; }

.relation-ticket-status-strip { display: grid; grid-template-columns: repeat(8, minmax(105px, 1fr)); gap: .5rem; width: 100%; }
.relation-ticket-status-item { display: flex; min-width: 0; min-height: 54px; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid #e2e8f0; border-radius: .65rem; background: #fff; color: #52617a; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.relation-ticket-status-item:hover { border-color: #9fc3f2; box-shadow: 0 4px 12px rgba(29,78,140,.08); transform: translateY(-1px); }
.relation-ticket-status-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: .45rem; background: #eef5ff; color: #4A8DE4; }
.relation-ticket-status-icon svg { width: 16px; height: 16px; }
.relation-ticket-status-copy { min-width: 0; }
.relation-ticket-status-copy small { display: block; overflow: hidden; color: #64748b; font-size: .68rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.relation-ticket-status-copy strong { display: block; margin-top: .12rem; color: #172033; font-size: 1.05rem; font-weight: 600; line-height: 1; }
.fi-resource-relation-manager .fi-dropdown-list-item .fi-loading-indicator { display: none !important; }
.fi-header-actions .fi-dropdown-list-item .fi-loading-indicator { display: none !important; }
@media (max-width: 1199px) { .relation-ticket-status-strip { grid-template-columns: repeat(4, minmax(120px, 1fr)); } }
@media (max-width: 639px) { .relation-ticket-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ess-microsoft-login { display: flex; box-sizing: border-box; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: .7rem; padding: .7rem 1rem; border: 1px solid #d7e2ef; border-radius: .7rem; background: #fff; color: #142033; text-decoration: none; }
.ess-microsoft-login:hover { background: #f8fafc; border-color: #b9c9dc; }
.ess-microsoft-login svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ess-login-divider { display: flex; align-items: center; gap: .75rem; margin: 1.15rem 0 .5rem; color: #7b899b; font-size: .72rem; }
.ess-login-divider::before, .ess-login-divider::after { content: ''; height: 1px; flex: 1; background: #e1e7ef; }
.ess-scanner-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e1e7ef; border-radius: .6rem; background: #fff; color: #667085; }
.ess-scanner-close svg { width: 20px; }
.ess-scanner-page { display: grid; min-height: calc(100dvh - 64px); place-items: start center; padding: clamp(1rem, 3vw, 2rem); }
.ess-scanner-card, .ess-ticket-card { width: min(100%, 620px); padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid #e1e7ef; border-radius: .75rem; background: #fff; }
.ess-scanner-card h1, .ess-ticket-card h1 { margin: .2rem 0 0; font-size: 1.45rem; font-weight: 600; }
.ess-scanner-card > p, .ess-ticket-card > p { margin: .4rem 0 1.25rem; color: #667085; }
.ess-camera { position: relative; display: grid; min-height: 330px; overflow: hidden; place-items: center; border-radius: .7rem; background: #101828; }
.ess-camera video { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.ess-camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: #f2f6fb; color: #667085; text-align: center; }
.ess-camera-placeholder[hidden] { display: none; }
.ess-camera-placeholder svg { width: 52px; margin-bottom: .65rem; color: #65a30d; }
.ess-camera-placeholder strong, .ess-camera-placeholder small { display: block; }
.ess-camera-frame { position: absolute; width: min(62%, 250px); aspect-ratio: 1; pointer-events: none; }
.ess-camera-frame span { position: absolute; width: 34px; height: 34px; border-color: #fff; border-style: solid; }
.ess-camera-frame span:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.ess-camera-frame span:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.ess-camera-frame span:nth-child(3) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.ess-camera-frame span:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.ess-scan-start { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: .5rem; margin-top: .75rem; border: 0; border-radius: .65rem; background: #65a30d; color: #fff; font: inherit; font-weight: 400; }
.ess-scan-start svg { width: 20px; }
.ess-scan-status { position: relative; z-index: 1; min-height: 1.25rem; margin: .75rem 0 0; padding: .55rem .75rem; border-radius: .55rem; color: #667085; font-size: .78rem; line-height: 1.4; text-align: center; }
.ess-scan-status:empty { min-height: 0; margin: 0; padding: 0; }
.ess-scan-status.is-error { margin-top: .75rem; border: 1px solid #fecaca; background: #fef2f2; color: #b42318; }
.ess-scan-info { margin-bottom: .75rem; padding: .7rem; border-radius: .6rem; background: #eff6ff; color: #1d4ed8; font-size: .78rem; }
.ess-scan-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; color: #98a2b3; font-size: .72rem; }
.ess-scan-divider::before, .ess-scan-divider::after { content: ''; height: 1px; flex: 1; background: #e4e9f0; }
.ess-scanner-card form label, .ess-ticket-form label { display: block; margin-bottom: .35rem; color: #52637a; font-size: .78rem; font-weight: 600; }
.ess-scan-input { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.ess-scan-input input, .ess-ticket-form input, .ess-ticket-form textarea { width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #d7e0eb; border-radius: .6rem; background: #f8fafc; color: #172033; font: inherit; outline: none; }
.ess-scan-input input:focus, .ess-ticket-form input:focus, .ess-ticket-form textarea:focus { border-color: #65a30d; box-shadow: 0 0 0 3px rgba(101,163,13,.12); }
.ess-scan-input button { padding: 0 1rem; border: 0; border-radius: .6rem; background: #172033; color: #fff; font: inherit; font-weight: 600; }
.ess-ticket-device { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; margin: 1rem 0 1.25rem; padding: .85rem; border: 1px solid #e4e9f0; border-radius: .65rem; background: #f8fafc; }
.ess-ticket-device > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .6rem; background: #f0f9e8; color: #65a30d; }
.ess-ticket-device svg { width: 21px; }
.ess-ticket-device strong, .ess-ticket-device small, .ess-ticket-device code { display: block; }
.ess-ticket-device small, .ess-ticket-device code { color: #667085; font: inherit; font-size: .72rem; }
.ess-ticket-device em { color: #667085; font-size: .7rem; font-style: normal; }
.ess-ticket-form label:not(:first-child) { margin-top: 1rem; }
.ess-ticket-form textarea { resize: vertical; }
.ess-ticket-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }
.ess-ticket-actions a { padding: .7rem 1rem; color: #667085; text-decoration: none; }
.ess-ticket-actions button { display: inline-flex; min-height: 44px; align-items: center; gap: .4rem; padding: 0 1rem; border: 0; border-radius: .6rem; background: #65a30d; color: #fff; font: inherit; font-weight: 400; }
.ess-ticket-actions svg { width: 18px; }
.ess-detail-page { width: 100%; padding: clamp(1rem,3vw,2rem); }
.ess-detail-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.ess-detail-head > a:first-child { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e1e7ef; border-radius: .6rem; background: #fff; color: #667085; }
.ess-detail-head svg { width: 20px; }
.ess-detail-head h1 { margin: .1rem 0 0; font-size: 1.45rem; font-weight: 400; }
.ess-detail-action { display: inline-flex; min-height: 42px; align-items: center; gap: .4rem; margin-left: auto; padding: 0 .85rem; border: 0; border-radius: .6rem; background: #65a30d; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.ess-detail-action > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ess-scanner-modal { width: min(calc(100% - 1.5rem),620px); max-height: calc(100dvh - 1.5rem); padding: 1.25rem; overflow-y: auto; border: 0; border-radius: .85rem; background: #fff; color: #172033; box-shadow: 0 24px 70px rgba(16,24,40,.25); }
.ess-scanner-modal::backdrop { background: rgba(16,24,40,.48); backdrop-filter: blur(3px); }
.ess-scanner-modal > p:not(.ess-scan-status) { margin: -.35rem 0 1rem; color: #667085; }
.ess-success { margin-bottom: 1rem; padding: .75rem; border-radius: .6rem; background: #f0f9e8; color: #3f6f08; }
.ess-record-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.ess-my-workplaces { width: 100%; margin-bottom: 1rem; padding: 1rem; border: 1px solid #dce4ee; border-radius: .75rem; background: #fff; }
.ess-my-workplaces-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.ess-my-workplaces-heading > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: .55rem; background: #eff6ff; color: #4a8de4; }
.ess-my-workplaces-heading svg { width: 20px; }
.ess-my-workplaces-heading h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.ess-my-workplaces-heading p { margin: .1rem 0 0; color: #667085; font-size: .78rem; }
.ess-my-workplaces-grid { display: grid; gap: .65rem; }
.ess-my-workplace-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: .85rem; border-radius: .65rem; background: #f8fafc; color: #172033; text-decoration: none; }
.ess-my-workplace-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: .6rem; background: #fff; color: #4a8de4; }
.ess-my-workplace-card svg { width: 21px; }
.ess-my-workplace-card > svg { width: 18px; color: #98a2b3; }
.ess-my-workplace-card h3 { margin: 0; font-size: .95rem; font-weight: 500; }
.ess-my-workplace-card p { margin: .15rem 0; color: #667085; font-size: .8rem; }
.ess-my-workplace-card small { color: #667085; font-size: .72rem; }
.ess-my-workplace-card:hover { background: #f1f6fc; }
.ess-workplace-hardware-section { width: 100%; margin-top: 1.25rem; overflow: hidden; border: 1px solid #dce4ee; border-radius: .75rem; background: #fff; }
.ess-workplace-hardware-section .ess-section-header { display: flex; width: 100%; align-items: center; gap: .8rem; padding: 1rem 1.15rem; border-bottom: 1px solid #e4e9f0; background: #fff; }
.ess-workplace-hardware-section .ess-section-header > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: .55rem; background: #eff6ff; color: #4a8de4; }
.ess-workplace-hardware-section .ess-section-header svg { width: 20px; }
.ess-workplace-hardware-section .ess-section-header div { min-width: 0; flex: 1; }
.ess-workplace-hardware-section .ess-section-header h2 { margin: 0; color: #172033; font-size: 1rem; font-weight: 600; }
.ess-workplace-hardware-section .ess-section-header p { margin: .15rem 0 0; color: #667085; font-size: .78rem; }
.ess-workplace-hardware-section .ess-section-header em { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: .75rem; font-style: normal; font-weight: 600; }
.ess-workplace-hardware-section .ess-record-grid { width: 100%; padding: 1rem; }
.ess-workplace-hardware-section .ess-record-grid { grid-template-columns: 1fr; }
.ess-workplace-hardware-section .ess-empty-card { grid-column: 1 / -1; width: 100%; }
.ess-workplace-hardware-card { width: 100%; padding: 1.15rem; }
.ess-workplace-hardware-card .ess-model-image, .ess-workplace-hardware-card .ess-model-placeholder { height: 175px; background: #f7f9fc; }
.ess-workplace-hardware-card > div:not(.ess-hardware-card-actions) > h2 { margin-top: .15rem; font-size: 1.05rem; }
.ess-workplace-hardware-card > div:not(.ess-hardware-card-actions) > p { margin-bottom: 1rem; font-size: .9rem; }
.ess-workplace-hardware-card dl div { min-height: 66px; padding: .75rem; }
.ess-workplace-hardware-card dt { font-size: .72rem; }
.ess-workplace-hardware-card dd { font-size: .95rem; }
.ess-record-card { position: relative; display: flex; min-width: 0; flex-direction: column; gap: .8rem; padding: 1rem; border: 1px solid #e1e7ef; border-radius: .75rem; background: #fff; }
.ess-hardware-ticket-badge { position: absolute; z-index: 2; top: 1.7rem; right: 1.7rem; display: inline-flex; min-height: 30px; align-items: center; gap: .35rem; padding: 0 .65rem; border: 1px solid #d5e5f9; border-radius: 999px; background: #fff; color: #2f6fbd; font-size: .7rem; text-decoration: none; box-shadow: 0 5px 16px rgba(23,32,51,.08); }
.ess-hardware-ticket-badge svg { width: 1rem; }
.ess-hardware-ticket-badge:hover { background: #4A8DE4; color: #fff; }
.ess-model-image, .ess-model-placeholder { width: 100%; height: 150px; border-radius: .6rem; background: #f8fafc; object-fit: contain; }
.ess-model-placeholder { display: grid; place-items: center; color: #65a30d; }
.ess-model-placeholder svg { width: 42px; }
.ess-card-ticket { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; margin-top: auto; padding: 0 .8rem; border: 0; border-radius: .55rem; background: #9dcea1; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.ess-hardware-card-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-top: auto; }
.ess-hardware-card-actions .ess-card-ticket { margin-top: 0; }
.ess-hardware-card-actions .ess-card-view { border: 1px solid #d7e0eb; background: #fff; color: #344054; }
.ess-hardware-card-actions .ess-card-create-ticket { background: #4a8de4; color: #fff; }
.ess-hardware-card-actions svg { width: 18px; }
@media (max-width: 640px) { .ess-hardware-card-actions { grid-template-columns: 1fr; } }
.ess-ticket-list-link { color: inherit; text-decoration: none; }
.ess-ticket-list-link article > svg:last-child { width: 18px; color: #98a2b3; }
.ess-ticket-state { margin-left: auto; padding: .3rem .65rem; border-radius: 999px; background: #eef7ef; color: #4f8053; font-size: .72rem; }
.ess-ticket-detail-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); gap: 1rem; }
.ess-ticket-main-card, .ess-conversation-card { padding: 1.25rem; border: 1px solid #dde3e8; background: #fff; }
.ess-ticket-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.ess-ticket-meta div { padding: .65rem; background: #f7f9fa; }
.ess-ticket-meta span { display: block; margin-bottom: .15rem; color: #667085; font-size: .68rem; }
.ess-ticket-main-card h2, .ess-conversation-head h2 { margin: .15rem 0 .5rem; font-size: 1rem; font-weight: 400; }
.ess-ticket-description { color: #344054; line-height: 1.65; }
.ess-conversation-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8edf1; }
.ess-conversation-head > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #eef7ef; color: #4f8053; }
.ess-comment-list { display: grid; gap: .75rem; max-height: 420px; padding: 1rem 0; overflow-y: auto; }
.ess-comment { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .65rem; }
.ess-comment-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e9eef4; color: #52637a; font-size: .72rem; }
.ess-comment.is-employee .ess-comment-avatar { background: #dff0e1; color: #4f8053; }
.ess-comment header { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.ess-comment header span { color: #344054; }
.ess-comment time { color: #98a2b3; font-size: .68rem; }
.ess-comment p { margin: 0; padding: .65rem .75rem; border-radius: 0 .6rem .6rem .6rem; background: #f5f7f9; color: #475467; }
.ess-comment.is-employee p { background: #eef7ef; }
.ess-no-comments { padding: 1rem; color: #667085; text-align: center; }
.ess-reply-form { padding-top: 1rem; border-top: 1px solid #e8edf1; }
.ess-reply-form label { display: block; margin-bottom: .35rem; color: #52637a; font-size: .75rem; }
.ess-reply-form textarea { width: 100%; padding: .7rem; border: 1px solid #d7e0eb; border-radius: .55rem; background: #f8fafc; font: inherit; resize: vertical; }
.ess-reply-form button { display: inline-flex; min-height: 42px; align-items: center; gap: .4rem; margin-top: .6rem; padding: 0 .85rem; border: 0; border-radius: .55rem; background: #9dcea1; color: #fff; font: inherit; }
.ess-reply-form button svg { width: 17px; }
@media(max-width:900px){.ess-ticket-detail-grid{grid-template-columns:1fr}.ess-ticket-meta{grid-template-columns:1fr}}
.ess-card-ticket svg { width: 18px; }
.ess-ticket-modal { width: min(calc(100% - 2rem),560px); padding: 0; border: 0; border-radius: .85rem; background: #fff; color: #172033; box-shadow: 0 24px 70px rgba(16,24,40,.24); }
.ess-ticket-modal::backdrop { background: rgba(16,24,40,.48); backdrop-filter: blur(3px); }
.ess-ticket-modal form { padding: 1.25rem; }
.ess-ticket-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ess-ticket-modal-head h2 { margin: .15rem 0 0; font-size: 1.25rem; }
.ess-modal-close { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #e1e7ef; border-radius: .55rem; background: #fff; color: #667085; }
.ess-modal-close svg { width: 19px; }
.ess-modal-device { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; padding: .75rem; border-radius: .6rem; background: #f0f9e8; color: #3f6f08; }
.ess-modal-device > svg { width: 24px; }
.ess-modal-device span, .ess-modal-device small { display: block; }
.ess-modal-device small { color: #667085; font-size: .72rem; }
.ess-ticket-modal label { display: block; margin: .8rem 0 .35rem; color: #52637a; font-size: .78rem; }
.ess-ticket-modal input, .ess-ticket-modal textarea { width: 100%; padding: .7rem .75rem; border: 1px solid #d7e0eb; border-radius: .6rem; background: #f8fafc; color: #172033; font: inherit; outline: none; }
.ess-ticket-modal input:focus, .ess-ticket-modal textarea:focus { border-color: #65a30d; box-shadow: 0 0 0 3px rgba(101,163,13,.12); }
.ess-ticket-modal textarea { resize: vertical; }
.ess-ticket-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }
.ess-ticket-modal-actions button { min-height: 42px; padding: 0 .85rem; border: 0; border-radius: .55rem; background: #eef1f5; color: #52637a; font: inherit; }
.ess-ticket-modal-actions button[type=submit] { display: inline-flex; align-items: center; gap: .4rem; background: #65a30d; color: #fff; }
.ess-ticket-modal-actions svg { width: 17px; }
.ess-record-card h2, .ess-list-page h2, .ess-info-card h2, .ess-profile-card h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.ess-record-card p, .ess-list-page p, .ess-profile-card p { margin: .2rem 0 .8rem; color: #667085; }
.ess-record-card dl, .ess-info-card dl, .ess-profile-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin: 0; }
.ess-record-card dl div, .ess-info-card dl div, .ess-profile-card dl div { padding: .6rem; border-radius: .5rem; background: #f8fafc; }
.ess-record-card dt, .ess-info-card dt, .ess-profile-card dt { color: #667085; font-size: .7rem; }
.ess-record-card dd, .ess-info-card dd, .ess-profile-card dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.ess-list-page { display: grid; gap: .65rem; }
.ess-list-page article { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #e1e7ef; border-radius: .7rem; background: #fff; }
.ess-list-page .ess-ticket-list-link article > svg:last-child { justify-self: end; color: #94a3b8; }
.ess-list-page article > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: .6rem; background: #f0f9e8; color: #65a30d; }
.ess-list-page svg { width: 21px; }
.ess-list-page small { color: #667085; }
.ess-list-page em { padding: .2rem .5rem; border-radius: 999px; background: #f0f9e8; color: #3f6f08; font-size: .7rem; font-style: normal; }
.ess-ticket-number { margin-right: .25rem; color: #4A8DE4; font-weight: 500; }
.ess-ticket-hardware-preview { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 1rem; margin-bottom: 1rem; padding: .75rem; border: 1px solid #e1e9f3; border-radius: .75rem; background: #f8fafc; }
.ess-ticket-hardware-preview > span { display: grid; width: 76px; height: 64px; place-items: center; overflow: hidden; border-radius: .6rem; background: #fff; color: #4A8DE4; }
.ess-ticket-hardware-preview img { width: 100%; height: 100%; object-fit: contain; }
.ess-ticket-hardware-preview svg { width: 2rem; }
.ess-ticket-hardware-preview small, .ess-ticket-hardware-preview strong, .ess-ticket-hardware-preview p { display: block; }
.ess-ticket-hardware-preview small { color: #4A8DE4; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.ess-ticket-hardware-preview strong { margin-top: .15rem; color: #172033; font-size: .9rem; font-weight: 500; }
.ess-ticket-hardware-preview p { margin: .15rem 0 0; color: #667085; font-size: .72rem; }
.ess-agreement-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.ess-agreement-card { min-width: 0; padding: 1rem; border: 1px solid #dfe7f1; border-radius: .85rem; background: #fff; box-shadow: 0 10px 28px rgba(23,32,51,.04); }
.ess-agreement-head { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: .85rem; }
.ess-agreement-head > span { display: grid; width: 66px; height: 58px; place-items: center; overflow: hidden; border-radius: .65rem; background: #f8fafc; color: #4A8DE4; }
.ess-agreement-head img { width: 100%; height: 100%; object-fit: contain; }
.ess-agreement-head svg { width: 1.8rem; }
.ess-agreement-head small { color: #4A8DE4; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.ess-agreement-head h2 { margin: .12rem 0; font-size: .95rem; font-weight: 500; }
.ess-agreement-head p { margin: 0; color: #667085; font-size: .75rem; }
.ess-agreement-head em { padding: .25rem .5rem; border-radius: 999px; background: #fff5e8; color: #a35d00; font-size: .65rem; font-style: normal; }
.ess-agreement-head em.is-signed { background: #edf5ff; color: #2f6fbd; }
.ess-agreement-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 1rem 0; }
.ess-agreement-card dl > div { padding: .6rem; border-radius: .55rem; background: #f8fafc; }
.ess-agreement-card dt { color: #667085; font-size: .65rem; }
.ess-agreement-card dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-size: .78rem; }
.ess-agreement-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ess-agreement-actions a, .ess-agreement-actions button { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; padding: 0 .7rem; border: 0; border-radius: .6rem; background: #edf5ff; color: #2f6fbd; font: inherit; font-size: .75rem; text-decoration: none; cursor: pointer; }
.ess-agreement-actions button { background: #4A8DE4; color: #fff; }
.ess-agreement-actions svg { width: 1rem; }
@media(max-width:767px){.ess-agreement-grid{grid-template-columns:1fr}.ess-agreement-head{grid-template-columns:58px minmax(0,1fr)}.ess-agreement-head>em{grid-column:2}.ess-agreement-card dl{grid-template-columns:1fr}.ess-agreement-actions{grid-template-columns:1fr}}
.ess-agreement-modal { width: min(95vw,960px); height: min(92vh,900px); max-height: none; overflow: hidden; }
.ess-agreement-modal-content { box-sizing: border-box; height: 100%; max-height: none; padding: 1.25rem 1.25rem 2rem; overflow-y: auto; overscroll-behavior: contain; }
.ess-agreement-modal-device { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; gap: 1rem; margin: 1rem 0; padding: .8rem; border-radius: .75rem; background: #f8fafc; }
.ess-agreement-modal-device > span { display: grid; width: 110px; height: 90px; place-items: center; overflow: hidden; border-radius: .65rem; background: #fff; color: #4A8DE4; }
.ess-agreement-modal-device img { width: 100%; height: 100%; object-fit: contain; }
.ess-agreement-modal-device svg { width: 2.4rem; }
.ess-agreement-modal-device small { color: #4A8DE4; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.ess-agreement-modal-device h3 { margin: .18rem 0; font-size: 1rem; font-weight: 500; }
.ess-agreement-modal-device p { margin: 0; color: #667085; font-size: .78rem; }
.ess-agreement-modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0; }
.ess-agreement-modal-details > div { padding: .65rem; border-radius: .55rem; background: #f8fafc; }
.ess-agreement-modal-details dt { color: #667085; font-size: .68rem; }
.ess-agreement-modal-details dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-size: .8rem; }
.ess-agreement-pdf { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: .45rem; margin-top: .8rem; border-radius: .6rem; background: #edf5ff; color: #2f6fbd; font-size: .78rem; text-decoration: none; }
.ess-agreement-pdf svg { width: 1.1rem; }
.ess-agreement-sign-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4eaf2; }
.ess-agreement-sign-form h3 { margin: 0; font-size: .95rem; font-weight: 500; }
.ess-agreement-sign-form p { margin: .25rem 0 .75rem; color: #667085; font-size: .75rem; }
.ess-agreement-sign-form label { display: block; margin-bottom: .3rem; color: #52617a; font-size: .75rem; }
.ess-agreement-sign-form input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 .75rem; border: 1px solid #d7e2ef; border-radius: .6rem; background: #f8fafc; font: inherit; }
.ess-agreement-sign-form button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: .4rem; margin: .7rem 0 0 auto; padding: 0 1rem; border: 0; border-radius: .6rem; background: #4A8DE4; color: #fff; font: inherit; cursor: pointer; }
.ess-agreement-sign-form button svg { width: 1rem; }
@media(max-width:600px){.ess-agreement-modal-device{grid-template-columns:80px minmax(0,1fr)}.ess-agreement-modal-device>span{width:80px;height:70px}.ess-agreement-modal-details{grid-template-columns:1fr}}
.ess-empty-card, .ess-info-card, .ess-profile-card { padding: 1.25rem; border: 1px solid #e1e7ef; border-radius: .75rem; background: #fff; }
.ess-info-card h3 { margin: 1.25rem 0 .5rem; font-size: .9rem; font-weight: 400; }
.ess-colleagues { display: flex; flex-wrap: wrap; gap: .4rem; }
.ess-colleagues span { padding: .35rem .6rem; border-radius: 999px; background: #f0f9e8; color: #3f6f08; }
.ess-profile-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1rem; }
.ess-profile-avatar { display: grid; width: 92px; height: 92px; place-items: center; overflow: hidden; border-radius: 50%; background: #f0f9e8; color: #3f6f08; font-size: 1.25rem; }
.ess-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ess-profile-card form, .ess-profile-card dl { grid-column: 1 / -1; }
.ess-profile-card form { display: grid; gap: .5rem; padding: 1rem; border-radius: .65rem; background: #f8fafc; }
.ess-profile-card form input { padding: .55rem; border: 1px solid #d7e0eb; border-radius: .5rem; background: #fff; }
.ess-profile-card form button { width: fit-content; min-height: 40px; padding: 0 .8rem; border: 0; border-radius: .5rem; background: #65a30d; color: #fff; }
.ess-profile-card form small { color: #667085; }
.ess-working-hours-list { display: grid; gap: .6rem; margin-top: 1rem; }
.ess-working-hours-open { display:flex;align-items:center;gap:.35rem;min-height:40px;padding:0 .8rem;border:0;border-radius:.5rem;background:#4A8DE4;color:#fff; }
.ess-working-hours-open svg { width:18px; }
.ess-working-hours-modal { width:min(620px,calc(100vw - 2rem)); }
.ess-working-hours-form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1rem;padding:1rem;border-radius:.65rem;background:#f8fafc; }
.ess-working-hours-form label { display:grid;gap:.35rem;color:#667085;font-size:.75rem; }
.ess-working-hours-form input, .ess-working-hours-form select, .ess-working-hours-form textarea { width:100%;padding:.65rem;border:1px solid #d7e0eb;border-radius:.5rem;background:#fff;color:#111827;font:inherit; }
.ess-working-hours-form .ess-working-hours-notes { grid-column:1 / -1; }
.ess-working-hours-list article { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.35rem 1rem;padding:.8rem;border-radius:.6rem;background:#f8fafc; }
.ess-working-hours-list article strong, .ess-working-hours-list article small { display: block; font-weight: 400; }
.ess-working-hours-list article small, .ess-working-hours-list article p { color: #667085; }
.ess-working-hours-list article p { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.ess-working-hours-list article form button { display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:.45rem;background:#fff;color:#667085; }
.ess-working-hours-list article form svg { width:17px; }
@media(max-width:767px){.ess-working-hours-form{grid-template-columns:1fr}.ess-working-hours-form .ess-working-hours-notes{grid-column:auto}}
.ess-app-body strong, .ess-app-body h1, .ess-app-body h2, .ess-app-body h3, .ess-app-body .ess-card-heading h2 { font-weight: 400; }
@media (min-width: 992px) {
    .ess-desktop-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; display: flex; width: 112px; flex-direction: column; align-items: center; gap: .75rem; padding: 1rem .65rem; border-right: 0; background: var(--ess-green); }
    .ess-desktop-brand { display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-weight: 400; text-decoration: none; }
    .ess-desktop-brand img { width: 42px; height: 42px; object-fit: cover; }
    .ess-desktop-sidebar nav { display: flex; width: 100%; flex: 1; flex-direction: column; align-items: center; gap: .5rem; padding-top: .5rem; }
    .ess-desktop-sidebar nav a, .ess-desktop-sidebar nav button, .ess-desktop-sidebar form button { display: flex; width: 82px; min-height: 68px; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .3rem; border: 0; border-radius: .75rem; background: transparent; color: rgba(255,255,255,.95); font: inherit; font-size: .68rem; line-height: 1.15; text-align: center; text-decoration: none; }
    .ess-desktop-sidebar nav a:hover, .ess-desktop-sidebar nav a.is-active { background: rgba(255,255,255,.25); color: #fff; }
    .ess-desktop-sidebar nav .ess-menu-create { background: rgba(255,255,255,.82); color: #4f8053; }
    .ess-desktop-sidebar nav .ess-menu-create:hover { background: #fff; color: #38653c; }
    .ess-desktop-sidebar nav a span, .ess-desktop-sidebar form button span { display: block; }
    .ess-desktop-sidebar svg { width: 1.45rem; height: 1.45rem; flex: 0 0 auto; }
    .ess-desktop-sidebar form { display: grid; width: 100%; place-items: center; }
    .ess-app-header, .ess-native-main { margin-left: 112px; }
    .ess-detail-page { width: calc(100% - 112px); margin-left: 112px; }
}
.fi-simple-layout { background: #f6f8fb; }
.fi-simple-main { width: min(100% - 2rem, 540px) !important; padding: 2.25rem !important; border: 1px solid #e6edf5; border-radius: 1rem !important; background: #fff; box-shadow: 0 18px 45px rgba(20, 32, 51, .08) !important; }
.fi-simple-header { text-align: center !important; }
.fi-simple-header-heading { display: block !important; color: #142033; font-size: 1.55rem !important; font-weight: 400 !important; }
.fi-simple-header-subheading { max-width: 330px; margin: .45rem auto 0; color: #64748b !important; line-height: 1.5; }
.fi-simple-main .fi-btn { min-height: 48px; border-radius: .7rem !important; background: #4A8DE4 !important; font-weight: 400 !important; }
.fi-simple-main .fi-input-wrp { min-height: 46px; border: 1px solid #d7e2ef !important; border-radius: .65rem !important; background: #f8fafc !important; }
.fi-simple-main .fi-logo {
    width: auto;
    max-width: min(100%, 380px);
    height: 150px !important;
    max-height: 150px !important;
    margin-inline: auto;
    object-fit: contain;
}
.ess-shell { --ess-blue: #65a30d; --ess-ink: #172033; --ess-muted: #667085; width: 100%; max-width: none; margin-inline: 0; color: var(--ess-ink); }
.ess-welcome { position: relative; isolation: isolate; display: flex; min-height: 165px; align-items: center; gap: 1.1rem; overflow: hidden; padding: 1.5rem 1.4rem; border: 0; border-radius: 0; background: #a9d5ad; color: #fff; box-shadow: none; }
.ess-welcome::before { content: ''; position: absolute; z-index: -1; inset: auto -8% -55% 38%; width: 75%; height: 105%; border: 0; border-radius: 0; background: rgba(255,255,255,.14); transform: rotate(-12deg); }
.ess-welcome::after { display: none; }
.ess-brand-mark { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: .7rem; background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.ess-brand-mark svg { width: 28px; height: 28px; }
.ess-welcome-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.ess-kicker, .ess-card-heading span:not(.ess-count) { color: var(--ess-blue); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ess-welcome .ess-kicker { color: rgba(255,255,255,.82); }
.ess-welcome h1 { margin: .18rem 0 0; color: #fff; font-size: clamp(1.35rem,2.5vw,1.85rem); font-weight: 400; }
.ess-welcome p { margin: .35rem 0 0; color: rgba(255,255,255,.88); font-size: .9rem; }
.ess-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #f0f9e8; color: #3f6f08; font-size: .8rem; font-weight: 400; box-shadow: 0 4px 15px rgba(63,111,8,.12); }
.ess-avatar img, .ess-menu-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ess-avatar { contain: layout paint; }
.ess-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.ess-action { display: flex; align-items: center; gap: .75rem; min-height: 68px; padding: .85rem 1rem; border: 1px solid #dde3e8; border-radius: 0; background: #fff; color: var(--ess-ink); text-align: left; text-decoration: none; transition: border-color .15s ease,background .15s ease; }
.ess-action:hover { border-color: #b9d3f4; background: #f8fbff; }
.ess-action > svg { width: 22px; color: var(--ess-blue); }
.ess-action span, .ess-action strong, .ess-action small { display: block; }
.ess-action strong { font-size: .88rem; }
.ess-action small { margin-top: .12rem; color: var(--ess-muted); font-size: .72rem; }
.ess-install { width: 100%; cursor: pointer; font: inherit; }
.ess-install-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.ess-install-footer .ess-install { grid-column: 1; }
.ess-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; gap: 1rem; margin-top: 1rem; }
.ess-card { grid-column: span 6; min-width: 0; padding: 1.25rem; border: 1px solid #dde3e8; border-radius: 0; background: #fff; }
.ess-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ess-card-heading h2 { margin: .15rem 0 0; font-size: 1rem; font-weight: 600; }
.ess-card-heading > svg { width: 22px; color: #94a3b8; }
.ess-count { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 999px; background: #f0f9e8; color: #3f6f08; font-size: .78rem; font-weight: 400; }
.ess-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: .9rem 0 0; }
.ess-details div { padding: .65rem 0; border-bottom: 1px solid #eef2f7; }
.ess-details div:nth-child(odd) { padding-right: .75rem; }
.ess-details dt { color: var(--ess-muted); font-size: .7rem; }
.ess-details dd { overflow: hidden; margin: .15rem 0 0; font-size: .83rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ess-text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; color: #3273c4; font-size: .78rem; font-weight: 700; text-decoration: none; }
.ess-text-link svg { width: 15px; }
.ess-hardware-list { margin-top: .6rem; }
.ess-hardware-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #edf1f5; }
.ess-hardware-ticket-button { display: inline-flex; min-height: 34px; align-items: center; gap: .3rem; padding: 0 .6rem; border: 0; border-radius: .5rem; background: #edf5ff; color: var(--ess-portal-color, #4A8DE4); font: inherit; font-size: .68rem; cursor: pointer; }
.ess-hardware-ticket-button:hover { background: var(--ess-portal-color, #4A8DE4); color: #fff; }
.ess-hardware-ticket-button svg { width: 1rem; }
@media(max-width:600px){.ess-hardware-item{grid-template-columns:auto minmax(0,1fr) auto}.ess-hardware-ticket-button{grid-column:2 / -1;width:100%;justify-content:center}}
.ess-device-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: .65rem; background: #f0f9e8; color: #65a30d; }
.ess-device-icon svg { width: 19px; }
.ess-hardware-item strong, .ess-hardware-item small, .ess-hardware-item div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ess-hardware-item strong { font-size: .82rem; }
.ess-hardware-item small, .ess-hardware-item div > span { color: var(--ess-muted); font-size: .68rem; }
.ess-status { padding: .2rem .45rem; border-radius: 999px; background: #eefbf3; color: #15803d; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.ess-child-item { margin-left: 1.5rem; }
.ess-child-item .ess-device-icon { background: #f8fafc; color: #94a3b8; }
.ess-empty { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; color: var(--ess-muted); text-align: center; }
.ess-empty svg { width: 32px; margin-bottom: .5rem; color: #b5c2d2; }
.ess-empty strong { color: var(--ess-ink); font-size: .84rem; }
.ess-empty span { max-width: 280px; margin-top: .25rem; font-size: .73rem; }
.ess-linked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .85rem; }
.ess-linked-grid > div { display: flex; align-items: center; gap: .55rem; padding: .65rem; border-radius: .65rem; background: #f8fafc; }
.ess-linked-grid svg { width: 18px; color: var(--ess-blue); }
.ess-linked-grid span, .ess-linked-grid strong { display: block; font-size: .73rem; }
.ess-linked-grid strong { font-size: .9rem; }
.ess-support nav { margin-top: .6rem; }
.ess-support nav a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid #eef2f7; color: var(--ess-ink); text-decoration: none; }
.ess-support nav a:last-child { border-bottom: 0; }
.ess-support nav a > svg:first-child { width: 20px; color: var(--ess-blue); }
.ess-support nav a > svg:last-child { width: 15px; color: #94a3b8; }
.ess-support nav strong, .ess-support nav small { display: block; }
.ess-support nav strong { font-size: .8rem; }
.ess-support nav small { color: var(--ess-muted); font-size: .7rem; }

@media (max-width: 767px) {
    .ess-app-header { min-height: 58px; }
    .ess-app-logo { font-size: .8rem; }
    .ess-app-user div { display: none; }
    .ess-native-main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    .ess-bottom-nav { position: fixed; z-index: 3000; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: center; min-height: calc(64px + env(safe-area-inset-bottom)); padding: .35rem .65rem calc(.35rem + env(safe-area-inset-bottom)); border-top: 1px solid #eef1f5; background: #fff; box-shadow: 0 -10px 24px rgba(17,32,51,.06); }
    .ess-bottom-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; color: #98a6b8; font-size: .7rem; line-height: 1.1; text-align: center; text-decoration: none; }
    .ess-bottom-nav a.is-active { color: #65a30d; }
    .ess-bottom-nav a svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
    .ess-menu-button { display: inline-flex; width: 4rem !important; height: 4rem; min-height: 0 !important; align-self: start; align-items: center; justify-content: center; justify-self: center; margin-top: -2rem; padding: 0; border: 0; border-radius: 999px; background: #65a30d !important; color: #fff; box-shadow: 0 12px 28px rgba(17,32,51,.18); }
    .ess-grid-icon { display: grid; width: 1.75rem; height: 1.75rem; grid-template-columns: repeat(3,1fr); gap: 3px; }
    .ess-grid-icon i { border: 1.5px solid currentColor; border-radius: 2px; }
    .ess-menu-backdrop { position: fixed; z-index: 3010; inset: 0; display: block; background: rgba(247,249,252,.76); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
    .ess-menu-backdrop.is-visible { opacity: 1; pointer-events: auto; }
    .ess-menu-panel { position: fixed; z-index: 3020; inset: 0; display: flex; flex-direction: column; gap: 1.4rem; padding: calc(1.5rem + env(safe-area-inset-top)) 1.25rem calc(5.5rem + env(safe-area-inset-bottom)); background: rgba(251,252,254,.98); opacity: 0; overflow-y: auto; pointer-events: none; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; backdrop-filter: blur(18px); }
    .ess-menu-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .ess-menu-head { display: flex; width: 100%; max-width: 460px; align-items: center; justify-content: space-between; margin: 0 auto; }
    .ess-menu-head h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
    .ess-menu-head button { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: .8rem; background: #fff; color: #667085; }
    .ess-menu-head svg { width: 1.25rem; }
    .ess-menu-grid { display: grid; width: 100%; max-width: 460px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4rem .85rem; margin: 0 auto; }
    .ess-menu-grid a, .ess-menu-grid > button, .ess-menu-grid form, .ess-menu-grid form button { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .55rem; padding: 0; border: 0; background: transparent; color: #667085; font: inherit; font-size: .88rem; font-weight: 400; text-align: center; text-decoration: none; }
    .ess-menu-grid form button { width: 100%; }
    .ess-menu-grid a > span, .ess-menu-grid > button > span, .ess-menu-grid form button > span { display: inline-flex; width: 4.4rem; height: 4.4rem; align-items: center; justify-content: center; border-radius: 999px; background: #f0f9e8; color: #65a30d; box-shadow: inset 0 -8px 18px rgba(0,0,0,.035),0 8px 18px rgba(32,42,70,.05); }
    .ess-menu-grid > :nth-child(2n) span { background: #f8e8f2; color: #b64286; }
    .ess-menu-grid > :nth-child(3n) span { background: #e7f5fb; color: #238bb4; }
    .ess-menu-grid svg { width: 1.8rem; height: 1.8rem; }
    body.ess-menu-open { overflow: hidden; }
    .ess-record-grid { grid-template-columns: 1fr; }
    .ess-record-card dl, .ess-info-card dl, .ess-profile-card dl { grid-template-columns: 1fr; }
    .ess-profile-card { grid-template-columns: auto 1fr; }
    .fi-simple-layout { background: #fff; }
    .fi-simple-main { width: 100% !important; padding: 1.25rem !important; border: 0; box-shadow: none !important; }
    .ess-welcome { align-items: flex-start; padding: 1rem; }
    .ess-brand-mark { width: 44px; height: 44px; }
    .ess-avatar { display: none; }
    .ess-welcome p { max-width: 260px; }
    .ess-actions { grid-template-columns: 1fr 1fr; }
    .ess-install { grid-column: 1 / -1; }
    .ess-grid { grid-template-columns: 1fr; }
    .ess-card { grid-column: auto; padding: 1rem; }
    .ess-details { grid-template-columns: 1fr; }
    .ess-details div:nth-child(odd) { padding-right: 0; }
    .ess-child-item { margin-left: .75rem; }
}

/* Microsoft 365 button on the standard Filament login */
.fi-simple-main a.fi-btn[href*="/oauth/azure"] {
    min-height: 50px;
    border: 1px solid #d7e2ef !important;
    background: #fff !important;
    color: #172033 !important;
    box-shadow: none !important;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}
.fi-simple-main a.fi-btn[href*="/oauth/azure"]:hover {
    border-color: #b9c9dc !important;
    background: #f8fafc !important;
}
.fi-simple-main a.fi-btn[href*="/oauth/azure"] > svg {
    display: none !important;
}
.fi-simple-main a.fi-btn[href*="/oauth/azure"]::before {
    content: '';
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f35325' d='M1 1h10v10H1z'/%3E%3Cpath fill='%2381bc06' d='M13 1h10v10H13z'/%3E%3Cpath fill='%2305a6f0' d='M1 13h10v10H1z'/%3E%3Cpath fill='%23ffba08' d='M13 13h10v10H13z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fi-simple-main a.fi-btn[href*="/oauth/azure"] .fi-btn-label {
    color: #172033 !important;
}
@media (max-width: 767px) {
    .ess-install-footer { grid-template-columns: 1fr; }
    .ess-install-footer .ess-install { grid-column: 1; }
}

.ess-app-body { --ess-green: #4A8DE4; --ess-green-dark: #2f6fbd; --ess-green-soft: #edf5ff; }
.ess-desktop-sidebar { background: #4A8DE4 !important; }
.ess-welcome { min-height: 166px; background: #4A8DE4; }
.ess-welcome::before { inset: -70% 5% auto 22%; width: 72%; height: 155%; background: rgba(255,255,255,.12); transform: rotate(-13deg); }
.ess-welcome::after { display: block; content: ''; position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; top: -105px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ess-hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,120px); gap: .65rem; margin-left: auto; }
.ess-hero-metrics a { display: flex; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: .7rem; background: rgba(255,255,255,.13); color: #fff; text-decoration: none; }
.ess-hero-metrics span { color: rgba(255,255,255,.78); font-size: .7rem; }
.ess-hero-metrics strong { margin-top: .15rem; color: #fff; font-size: 1.5rem; font-weight: 400; }
.ess-login-logo, .ess-login-card button, .ess-scan-start, .ess-ticket-actions button, .ess-detail-action, .ess-profile-card form button, .ess-card-ticket, .ess-ticket-modal-actions button[type=submit], .ess-reply-form button { background: #4A8DE4 !important; color: #fff !important; }
.ess-action > svg, .ess-native-row > svg:first-child, .ess-device-icon, .ess-model-placeholder, .ess-camera-placeholder svg { color: #4A8DE4; }
.ess-count, .ess-ticket-state, .ess-conversation-head > span, .ess-list-page article > span, .ess-comment.is-employee .ess-comment-avatar { background: #edf5ff; color: #2f6fbd; }
.ess-comment.is-employee p, .ess-modal-device { background: #edf5ff; }
.ess-ticket-modal input:focus, .ess-ticket-modal textarea:focus, .ess-reply-form textarea:focus, .ess-scan-input input:focus { border-color: #4A8DE4; box-shadow: 0 0 0 3px rgba(74,141,228,.13); }
.ess-menu-button { background: #4A8DE4 !important; }
.ess-menu-grid a > span, .ess-menu-grid > button > span, .ess-menu-grid form button > span { background: #edf5ff; color: #4A8DE4; }
.ess-scanner-modal { position: fixed; inset: 0; margin: auto; }
@media(max-width:767px){.ess-welcome{min-height:auto;align-items:flex-start;flex-direction:column}.ess-hero-metrics{width:100%;grid-template-columns:1fr 1fr;margin:1rem 0 0}.ess-hero-metrics a{min-height:62px}}
