/* Office workspace: shared styling for the existing Kendo screens. */
body.office-shell {
    --office-ink: #242a34;
    --office-muted: #697382;
    --office-line: #e0e5ec;
    --office-accent: #c52649;
    margin: 0;
    background: #f4f6f9;
    color: var(--office-ink);
    font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.office-shell :is(.k-widget,.k-button,.k-input,.k-textbox,.k-textarea) { font-family: inherit; }
.office-content { max-width: 1760px; margin: 28px auto; padding: 0 28px 32px; box-sizing: border-box; display: flow-root; }
.office-content > :is(#divUsers,#divUserMessages,#divLog,#divStatistics,#divReviseStock) { margin: 0; padding: 0; width: 100%; }
.office-shell #menu { box-sizing: border-box; max-width: 100%; padding: 8px 20px; min-height: 60px; border: 0; background: #252d3b; color: #f1f4f8; box-shadow: 0 2px 8px #1f2b3910; }
.office-shell .k-menu-scroll-wrapper { max-width: 100%; box-sizing: border-box; }
.office-shell .office-menu-bar { display: flex; align-items: center; min-width: 0; background: #252d3b; color: #f1f4f8; }
.office-shell .office-menu-brand { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 2px; padding: 7px 16px; color: inherit; text-decoration: none; }
.office-shell .office-menu-brand-logo { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; line-height: 28px; letter-spacing: -.5px; }
.office-shell .office-menu-brand-logo img { display: block; width: 28px; height: 28px; object-fit: contain; }
.office-shell .office-menu-brand-dot { color: #fd4654; }
.office-shell .office-menu-version { font-size: 10px; line-height: 12px; opacity: .65; }
.office-shell .office-menu-bar > #menu,
.office-shell .office-menu-bar > .k-menu-scroll-wrapper { flex: 1; min-width: 0; }
.office-shell .office-menu-bar #menu { padding-left: 0; box-shadow: none; }
.office-shell .office-testing-menu-bar > .office-menu-bar { flex: 1; background: transparent; color: inherit; }
.office-shell .office-module-details { display: none; }
.office-shell.office-show-module-details .office-module-details { display: inline; }
.office-shell .k-menu-scroll-button { background: #303d50; color: #fff; border-color: #475568; }
.office-shell #menu > .k-item { border: 0; border-radius: 7px; margin: 2px; font-size: 13px; }
.office-shell #menu > .k-item > .k-link { padding: 11px 14px; color: #f1f4f8; }
.office-shell #menu > :is(.k-item:hover,.k-state-focused,.k-hover,.k-focus) { background: #3a465a; }
.office-shell #menu .k-sprite.k-icon { background-image: none; color: inherit; font-size: 18px; width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }
.office-shell #menu .m01-menu-user { font-weight: 650; }
.office-shell .k-animation-container .k-menu-group { border-color: var(--office-line); border-radius: 8px; box-shadow: 0 12px 28px #202b3b18; }
.office-shell .k-toolbar { width: 100%; box-sizing: border-box; padding: 14px 16px; gap: 8px; min-height: 66px; border: 1px solid var(--office-line); border-radius: 12px 12px 0 0; background: #fff; box-shadow: none; float: none; }
.office-shell :is(#orders-toolbar, #order-items-toolbar).orders-module-colored { background: linear-gradient(110deg, hsl(var(--orders-module-hue), 70%, 85%) 0%, hsl(var(--orders-module-hue), 70%, 95%) 55%, #fff 100%); }
.office-shell :is(#orders-toolbar, #order-items-toolbar).orders-module-custom-color { background: linear-gradient(110deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.9) 55%, #fff 100%), var(--orders-module-color); }
.office-shell .toolbar-title-span { color: var(--office-ink); font-size: 20px; font-weight: 650; letter-spacing: -.4px; margin-right: 18px; }
.office-shell [id$="-buscador-div"] { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; color: var(--office-muted); }
.office-shell [id$="-buscador-div"] .k-textbox { width: 210px; max-width: 100%; }
.office-shell .k-button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--office-line) !important; border-radius: 7px; background: #fff; color: #394659; font-size: 13px; line-height: 1.4; box-shadow: none; text-transform: none; }
.office-shell .k-button:hover { background: #f4f6f9; border-color: #c7cfdc !important; }
.office-shell .k-button.k-primary, .office-shell .k-button-solid-primary, .office-shell #main-button { background: var(--office-accent); border-color: var(--office-accent) !important; color: #fff; }
.office-shell .k-button.k-primary:hover, .office-shell .k-button-solid-primary:hover, .office-shell #main-button:hover { background: #ae1f3f; }
.office-shell :is(.k-disabled,.k-state-disabled) { opacity: .55; }
.office-shell :is(.k-button,a):focus-visible { outline: 3px solid #ff4350; outline-offset: 2px; }
.office-shell .k-grid { width: 100%; float: none !important; border: 1px solid var(--office-line); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; color: var(--office-ink); font-size: 13px; box-shadow: 0 4px 16px #25364f04; overflow: hidden; box-sizing: border-box; }
.office-shell .k-grid-header, .office-shell .k-grid-header .k-header { background: #f8f9fb; border-color: var(--office-line); }
.office-shell .k-grid-header th.k-header { padding: 12px 10px; color: #647085; font-size: 11px; font-weight: 650; line-height: 1.5; }
.office-shell .k-grid-header .k-link { color: inherit; }
.office-shell .k-grid td { padding: 12px 10px; border-color: #edf0f5; line-height: 1.6; }
.office-shell .k-grid tbody tr.k-state-selected, .office-shell .k-grid tbody tr.k-selected { background: #fff0f3; color: #87203b; }
.office-shell .k-grid td.k-state-focused { box-shadow: inset 0 0 0 2px var(--office-accent); }
.office-shell .k-pager-wrap { padding: 12px 16px; background: #fff; border-color: var(--office-line); color: var(--office-muted); font-size: 12px; }
.office-shell .k-pager-wrap .k-link { border-radius: 5px; border-color: var(--office-line); }
.office-shell .k-pager-wrap :is(.k-state-selected,.k-selected) { background: var(--office-accent); color: #fff; }
.office-shell :is(.k-textbox,.k-input,.k-dropdown,.k-combobox,.k-datepicker,.k-timepicker,.k-numerictextbox,.k-textarea) { border-color: #cfd6e0; border-radius: 6px; background: #fff; color: var(--office-ink); font-size: 13px; }
.office-shell :is(.k-textbox:focus,.k-input:focus-within,.k-textarea:focus-within) { border-color: var(--office-accent); box-shadow: 0 0 0 3px #c5264912; }
.office-shell :is(.k-window,.k-dialog) { border: 1px solid var(--office-line); border-radius: 14px; box-shadow: 0 20px 70px #19283d30; min-width: 0 !important; max-width: calc(100vw - 24px); }
.office-shell :is(.k-window-titlebar,.k-dialog-titlebar) { background: #f7f9fb; color: var(--office-ink); border-bottom: 1px solid var(--office-line); border-radius: 14px 14px 0 0; padding: 14px 18px; }
.office-shell .k-window-title { font-size: 17px; font-weight: 600; }
.office-shell .k-window-content { padding: 20px; max-height: 75vh; box-sizing: border-box; }
.office-shell .k-overlay { background: #1d2b3e; }
.office-shell :is(.form_table,.form_user_table,#foUser-table) { width: 100%; border-collapse: collapse; }
.office-shell :is(.form_table,.form_user_table,#foUser-table) td { padding: 9px; }
.office-shell :is(.form_bottom_buttons,.form_user_bottom_buttons) { padding: 16px 0 0; border-top: 1px solid var(--office-line); margin-top: 18px; }
.office-shell .k-card { border: 1px solid var(--office-line); border-radius: 14px; box-shadow: 0 5px 18px #26364c05; background: #fff; overflow: hidden; }
.office-shell .k-card-header { background: #f8f9fb; color: var(--office-ink); border-color: var(--office-line); padding: 18px 24px; }
.office-shell .k-card-body { padding: 24px; }
.office-shell .k-card h4 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.office-shell .k-card h5 { font-size: 14px; font-weight: 400; color: var(--office-muted); line-height: 1.7; margin: 8px 0; }
.office-shell #divEntrance { max-width: 760px; width: 100%; padding: 0; margin: 16px auto; }
.office-shell #user-info-div { width: 100%; display: block; }
.office-shell #user-info-div .k-card { width: 100%; margin: 0; box-sizing: border-box; }
.office-shell #entrance-edit-user-button { margin: 0; flex-shrink: 0; }
.office-shell .dashboard-profile .k-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.office-shell .dashboard-profile .k-card-title { margin: 0; }
.office-shell .divInfoOut { padding: 20px; border: 1px solid var(--office-line); background: #fff; border-radius: 12px; margin-bottom: 18px; }
.office-shell .m01-toolbar-info-div h4 { line-height: 1.4; }
.office-shell #divSummaryResult { background: #fff; border: 1px solid var(--office-line); padding: 20px; border-radius: 0 0 12px 12px; }
.office-testing-login { min-height: 44px; justify-content: center; }
.office-login-page .office-login { box-shadow: 0 8px 28px #22324707; }
@media (max-width: 700px) {
    .office-content { margin: 18px auto; padding: 0 12px 24px; }
    .office-shell #menu { padding: 6px 8px; }
    .office-shell #menu > .k-item > .k-link { padding: 10px; }
    .office-shell .k-toolbar { padding: 10px; }
    .office-shell .toolbar-title-span { font-size: 18px; margin-right: 10px; }
    .office-shell [id$="-buscador-div"] .k-textbox { width: 160px; }
    .office-shell .k-window-content { padding: 14px; }
    .office-shell :is(.form_table,.form_user_table,#foUser-table) { table-layout: fixed; }
    .office-shell :is(.form_table,.form_user_table,#foUser-table) td { padding: 7px 4px; overflow-wrap: anywhere; }
    .office-shell .k-card-header, .office-shell .k-card-body { padding: 18px; }
    .office-shell #divEntrance { margin: 0 auto; }
}

/* Home dashboard: user profile and company data freshness. */
.office-shell #divEntrance.office-dashboard { max-width: 1120px; }
.office-shell .dashboard-title { margin: 0 0 24px; font-size: 27px; font-weight: 650; letter-spacing: -.7px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.dashboard-profile { min-width: 0; }
.office-shell .dashboard-import-card { width: 100%; box-sizing: border-box; }
.office-shell .dashboard-import-card .k-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.office-shell .dashboard-import-card h2 { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.4; }
.dashboard-import-card .k-card-header > .k-icon { color: var(--office-accent); font-size: 22px; }
.dashboard-import-value { display: flex; flex-direction: column; gap: 6px; }
#last-import-date { font-size: clamp(25px, 3vw, 34px); font-weight: 650; line-height: 1.3; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.dashboard-import-time { color: var(--office-muted); font-size: 17px; font-variant-numeric: tabular-nums; }
.dashboard-import-card p { color: var(--office-muted); font-size: 13px; line-height: 1.6; margin: 22px 0 0; }
.dashboard-import-status #last-import-date { font-size: 21px; letter-spacing: -.2px; }
@media (max-width: 700px) {
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .office-shell .dashboard-title { font-size: 24px; margin-bottom: 20px; }
}

.office-dashboard .k-card-body { overflow-wrap: anywhere; }

/* Dashboard surfaces and hierarchy. */
body.office-dashboard-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 90% 0%, #dce4ed 0, transparent 55%),
        linear-gradient(135deg, #eceef2, #e5e9ef);
}
.office-dashboard-page #divEntrance.office-dashboard { margin-top: 0; }
.office-dashboard-page .dashboard-title { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; font-size: 30px; }
.office-dashboard-page .dashboard-title::before { content: ""; width: 6px; height: 28px; border-radius: 6px; background: var(--office-accent); }
.office-dashboard-page .dashboard-grid { align-items: stretch; gap: 20px; }
.office-dashboard-page .dashboard-profile,
.office-dashboard-page #user-info-div { display: flex; }
.office-dashboard-page .office-dashboard .k-card {
    border: 1px solid #ffffff80;
    border-radius: 20px;
    box-shadow: 0 12px 30px #26364c0d, inset 0 1px 0 #ffffff80;
    background: linear-gradient(145deg, #f5f7fa, #e9eef4);
}
.office-dashboard-page .office-dashboard .k-card-header { min-height: 78px; box-sizing: border-box; background: transparent; border-bottom: 1px solid #28374d12; padding: 20px 24px; }
.office-dashboard-page .office-dashboard .k-card-body { padding: 26px 24px; }
.office-dashboard-page .office-dashboard .k-card-header > .k-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: #dce3ed; color: #4d6078; font-size: 20px; }
.office-dashboard-page .dashboard-profile .k-card {
    background: radial-gradient(ellipse at top right, #46556b, transparent 75%), linear-gradient(145deg, #293343, #202937);
    border-color: #344255;
    box-shadow: 0 14px 32px #202c4424;
    color: #f7f8fc;
}
.office-dashboard-page .dashboard-profile .k-card-header { color: #edf1f7; border-bottom-color: #ffffff1a; }
.office-dashboard-page .dashboard-profile .k-card-body h4 { font-size: 25px; letter-spacing: -.4px; }
.office-dashboard-page .dashboard-profile .k-card-body h5 { color: #d3dce8; }
.office-dashboard-page #entrance-edit-user-button { background: #ffffff10; color: #f7f8fc; border-color: #ffffff30 !important; border-radius: 9px; }
.office-dashboard-page #entrance-edit-user-button:hover { background: #ffffff20; border-color: #ffffff60 !important; }
.office-dashboard-page .dashboard-import-time { align-self: flex-start; background: #dce4ee; color: #435773; padding: 3px 10px; border-radius: 7px; margin-top: 4px; font-size: 14px; }
@media (max-width: 700px) {
    .office-dashboard-page .dashboard-title { font-size: 26px; margin-bottom: 22px; }
    .office-dashboard-page .office-dashboard .k-card-header { padding: 18px 20px; }
    .office-dashboard-page .office-dashboard .k-card-body { padding: 22px 20px; }
}

/* Compact profile and import cards on the home dashboard. */
.office-dashboard-page .office-dashboard :is(.dashboard-profile, .dashboard-import-card) .k-card-header {
    min-height: 58px;
    padding: 10px 20px;
}
.office-dashboard-page .office-dashboard :is(.dashboard-profile, .dashboard-import-card) .k-card-body {
    padding: 14px 20px;
}
.office-dashboard-page .dashboard-profile .k-card-body h4 { margin-bottom: 6px; }
.office-dashboard-page .dashboard-profile .k-card-body h5 { margin: 4px 0; line-height: 1.5; }
.office-dashboard-page .dashboard-import-card p { margin-top: 12px; }

.office-shell a.office-testing-label { align-self: stretch; display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.office-shell a.office-testing-label:hover { background: #a876171f; }

.office-shell .office-grid-empty { clear: both; padding: 48px 24px; text-align: center; color: var(--office-muted); font-size: 15px; background: #edf0f5; border-radius: 0 0 12px 12px; }

.office-shell .office-module-heading { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.office-shell .office-module-subtitle { color: var(--office-muted); font-size: 11px; font-weight: 400; letter-spacing: .02em; line-height: 1.5; }

.office-shell :is(#stocks-download-button,#orders-download-button,#depots-download-button,#transfers-download-button,#charges-download-button) { background: var(--office-accent); border-color: var(--office-accent) !important; color: #fff; }
.office-shell :is(#stocks-download-button,#orders-download-button,#depots-download-button,#transfers-download-button,#charges-download-button):hover { background: #ae1f3f; }

.office-shell :is(#stocks-download-dialog,#orders-download-dialog,#depots-download-dialog,#transfers-download-dialog,#charges-download-dialog) > label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.office-shell :is(#stocks-download-dialog,#orders-download-dialog,#depots-download-dialog,#transfers-download-dialog,#charges-download-dialog) > .k-dropdown { width: 100%; box-sizing: border-box; }
.office-shell :is(.stocks-download-actions,.orders-download-actions,.depots-download-actions,.transfers-download-actions,.charges-download-actions) { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--office-line); }

.office-shell .dashboard-recent-orders { grid-column: 1 / -1; min-width: 0; }
.office-shell .dashboard-recent-orders h2 { margin: 0; font-size: 19px; }
.dashboard-orders-scroll { overflow-x: auto; }
.dashboard-orders-table { width: 100%; border-collapse: collapse; text-align: left; }
.dashboard-orders-table th, .dashboard-orders-table td { padding: 10px 12px; border-bottom: 1px solid var(--office-line); }
.dashboard-orders-table th { color: var(--office-muted); font-size: 12px; }
.dashboard-orders-table td { overflow-wrap: anywhere; }
.dashboard-module-badge { display: inline-block; padding: 4px 10px; border-radius: 8px; color: #000; font-weight: 600; line-height: 1.4; }
.dashboard-orders-table th:last-child, .dashboard-orders-table td:last-child { width: 112px; text-align: center; }
.dashboard-order-actions { display: flex; justify-content: center; gap: 8px; }
.office-shell .dashboard-order-actions .k-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; box-sizing: border-box; }
.office-shell .dashboard-order-actions .k-button .k-icon { margin: 0; flex-shrink: 0; }
@media screen and (max-width: 700px) {
    .office-dashboard-page .office-dashboard .dashboard-recent-orders .k-card-body { padding: 12px; }
    .dashboard-orders-scroll { overflow: visible; }
    .dashboard-orders-table, .dashboard-orders-table tbody { display: block; }
    .dashboard-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .dashboard-orders-table tbody { display: grid; gap: 12px; }
    .dashboard-orders-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--office-line); border-radius: 12px; }
    .dashboard-orders-table td { display: block; min-width: 0; padding: 0; border: 0; }
    .dashboard-orders-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--office-muted); font-size: 11px; font-weight: 500; }
    .dashboard-orders-table .dashboard-order-code { grid-column: 1 / -1; font-size: 17px; font-weight: 650; }
    .dashboard-orders-table :is(.dashboard-order-user, .dashboard-order-module, .dashboard-order-destination) { grid-column: 1 / -1; }
    .dashboard-orders-table td:last-child { grid-column: 1 / -1; width: auto; padding-top: 10px; border-top: 1px solid var(--office-line); text-align: right; }
    .dashboard-orders-table td:last-child::before { display: none; }
    .dashboard-order-actions { justify-content: flex-end; gap: 10px; }
    .office-shell .dashboard-order-actions .k-button { flex-basis: 44px; width: 44px; height: 44px; }
    .dashboard-module-badge { max-width: 100%; box-sizing: border-box; }
}
@media print {
    .office-dashboard-page #divEntrance, .office-shell .office-menu-bar, .office-shell .office-testing-menu-bar, .office-shell .k-overlay { display: none !important; }
    .office-shell #foPrint { max-height: none; overflow: visible; }
}

.office-shell .dashboard-recent-shippings { grid-column: 1 / -1; min-width: 0; }
.office-shell .dashboard-recent-shippings h2 { margin: 0; font-size: 19px; }
.dashboard-shippings-pending { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: #e1e9f4; color: #242a34; font-weight: 600; }
.dashboard-shippings-table { width: 100%; border-collapse: collapse; text-align: left; }
.dashboard-shippings-table th, .dashboard-shippings-table td { padding: 10px 12px; border-bottom: 1px solid var(--office-line); overflow-wrap: anywhere; }
.dashboard-shippings-table th { color: var(--office-muted); font-size: 12px; }
.dashboard-shippings-table th:last-child, .dashboard-shippings-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media screen and (max-width: 700px) {
    .office-dashboard-page .office-dashboard .dashboard-recent-shippings .k-card-body { padding: 12px; }
    .dashboard-shippings-table, .dashboard-shippings-table tbody { display: block; }
    .dashboard-shippings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .dashboard-shippings-table tbody { display: grid; gap: 12px; }
    .dashboard-shippings-table tr { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--office-line); border-radius: 12px; background: #fff; }
    .dashboard-shippings-table td, .dashboard-shippings-table td:last-child { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
    .dashboard-shippings-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--office-muted); font-size: 11px; }
}

.office-shell .office-file-form { display: grid; gap: 14px; }
.office-shell .office-file-field { display: grid; gap: 5px; min-width: 0; }
.office-shell .office-file-field > label { font-weight: 600; }
.office-shell .office-file-field :is(input, textarea, .k-combobox) { width: 100%; box-sizing: border-box; }
.office-shell .office-file-field > :is(input.k-textbox, textarea) { min-height: 36px; border: 1px solid #cfd6e0; border-radius: 6px; padding: 7px 10px; font: inherit; }
.office-shell .office-file-field textarea { min-height: 80px; padding: 8px; resize: vertical; }
.office-shell .office-file-buttons { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.office-shell .office-file-status { color: #ae1f3f; margin: 0; }

.office-module-color-dot { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:8px; border:1px solid rgba(0,0,0,.2); vertical-align:middle; }
.office-shell .office-module-custom-color .office-module-subtitle { color:inherit; }
