:root,
html[data-theme="light"] {
    --primary: #0b3b60;
    --secondary: #0f766e;
    --accent: #14b8a6;
    --primary-fg: #ffffff;
    --body-fg: #24354b;
    --body-bg: #f3f6fa;
    --body-quiet-color: #718096;
    --body-loud-color: #102a43;
    --header-color: #ffffff;
    --header-branding-color: #ffffff;
    --header-bg: #092f4e;
    --header-link-color: #d8e9f2;
    --breadcrumbs-fg: #5f7186;
    --breadcrumbs-link-fg: #0f766e;
    --breadcrumbs-bg: #ffffff;
    --link-fg: #0f6d78;
    --link-hover-color: #0b3b60;
    --link-selected-fg: #0b3b60;
    --hairline-color: #e1e8f0;
    --border-color: #d8e2ec;
    --darkened-bg: #edf2f7;
    --selected-bg: #e6f7f5;
    --selected-row: #edf9f7;
    --button-bg: #0f766e;
    --button-hover-bg: #0b5f59;
    --default-button-bg: #0b3b60;
    --default-button-hover-bg: #062c49;
    --delete-button-bg: #dc4c64;
    --delete-button-hover-bg: #bd3149;
}

html { background: var(--body-bg); }
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .01em; }

#header {
    min-height: 72px;
    padding: 0 30px;
    background: linear-gradient(115deg, #082d4a 0%, #0a4569 65%, #0f766e 135%);
    box-shadow: 0 8px 30px rgba(8, 45, 74, .18);
}

#branding { display: flex; align-items: center; }
.brand-link { display: inline-flex !important; align-items: center; gap: 13px; color: #fff !important; text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: #083454; background: linear-gradient(145deg, #e5fbf7, #8de4d8);
    font-weight: 800; font-size: 15px; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 5px 18px rgba(0,0,0,.14);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 19px; font-weight: 700; }
.brand-copy small { margin-top: 4px; color: #9edbd4; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
#user-tools { font-size: 12px; font-weight: 600; }
#user-tools a { border-bottom: 0; padding: 8px 10px; border-radius: 8px; }
#user-tools a:hover { color: #fff; background: rgba(255,255,255,.1); }

div.breadcrumbs { padding: 14px 30px; border-bottom: 1px solid var(--hairline-color); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
#container { min-height: 100vh; }
#content { padding: 28px 32px 42px; }
#content h1 { color: #102a43; font-size: 26px; font-weight: 750; }

#nav-sidebar { width: 270px; flex: 0 0 270px; border-right: 1px solid #dfe7ef; background: #fff; box-shadow: 5px 0 18px rgba(41, 58, 78, .035); }
#nav-sidebar .module { margin: 8px 12px 18px; }
#nav-sidebar .module caption { padding: 10px 12px 7px; color: #8a9aad; background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#nav-sidebar .module th, #nav-sidebar .module td { padding: 9px 10px; border: 0; }
#nav-sidebar .module tr { border-radius: 9px; }
#nav-sidebar .module tr:hover { background: #edf8f6; }
#nav-sidebar .current-model { background: #e5f5f2; }
#nav-sidebar .current-model th a { color: #0b5f59; font-weight: 700; }
#nav-filter { margin: 18px 16px 8px; padding: 10px 13px; border: 1px solid #dce6ee; border-radius: 10px; background: #f7fafc; }

/* 业务域导航：与船员业务流程一致的折叠菜单 */
.sidebar-workbench { display: flex; align-items: center; gap: 10px; margin: 10px 12px 8px; padding: 11px 12px; border-radius: 10px; color: #263f55 !important; text-decoration: none; }
.sidebar-workbench:hover, .sidebar-workbench.current { color: #075e58 !important; background: #e6f7f4; }
.sidebar-group-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; color: #0b6e68; background: #e2f5f2; font-size: 11px; font-weight: 850; }
.business-nav-groups { padding: 0 12px 22px; }
#nav-sidebar details.business-nav-group.module { margin: 4px 0; overflow: visible; border: 0; border-radius: 10px; background: transparent; box-shadow: none; }
.business-nav-group summary { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #344b60; cursor: pointer; list-style: none; user-select: none; }
.business-nav-group summary::-webkit-details-marker { display: none; }
.business-nav-group summary:hover, .business-nav-group.current-group > summary { color: #075e58; background: #edf8f6; }
.business-nav-group summary strong { flex: 1; font-size: 12px; }
.business-nav-group .group-chevron { color: #8ba0b0; font-size: 12px; transition: transform .16s; }
.business-nav-group[open] .group-chevron { transform: rotate(180deg); }
.business-nav-group table { width: calc(100% - 20px); margin: 3px 0 7px 20px; border: 0; background: transparent; box-shadow: none; }
#nav-sidebar .business-nav-group th, #nav-sidebar .business-nav-group td { padding: 7px 8px; border: 0; background: transparent; }
#nav-sidebar .business-nav-group th { width: 100%; font-size: 11px; font-weight: 600; }
#nav-sidebar .business-nav-group th a { color: #607486; }
#nav-sidebar .business-nav-group tr:hover, #nav-sidebar .business-nav-group tr.current-model { border-radius: 8px; background: #e8f6f4; }
#nav-sidebar .business-nav-group tr.current-model th a { color: #087069; font-weight: 750; }
.sidebar-add { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #0f766e !important; background: #e5f6f3; font-size: 15px; font-weight: 750; text-decoration: none; }

/* 列表状态卡片 */
.status-tabs { display: flex; gap: 7px; margin: 0 0 12px; padding: 8px; overflow-x: auto; border: 1px solid #e0e7ef; border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(31,48,67,.035); }
.status-tab { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 33px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #607486 !important; background: #f5f8fa; font-size: 11px; font-weight: 700; text-decoration: none; }
.status-tab strong { min-width: 18px; padding: 2px 5px; border-radius: 8px; color: #698092; background: #e8eef3; font-size: 9px; text-align: center; }
.status-tab:hover, .status-tab.is-active { border-color: #9cd8d0; color: #076b64 !important; background: #e7f7f4; }
.status-tab.is-active strong { color: #fff; background: #0f8177; }
.status-tab.status-expired.is-active, .status-tab.status-blacklisted.is-active { border-color: #f2b6c0; color: #b92f49 !important; background: #fff0f2; }
.status-tab.status-expired.is-active strong, .status-tab.status-blacklisted.is-active strong { background: #cf4059; }
.status-tab.status-expiring.is-active, .status-tab.status-pending.is-active { border-color: #efd39f; color: #90600f !important; background: #fff5e2; }
.status-tab.status-expiring.is-active strong, .status-tab.status-pending.is-active strong { background: #d18b1c; }

.module, .inline-group { border-radius: 14px; overflow: hidden; border: 1px solid #e0e7ef; background: #fff; box-shadow: 0 7px 24px rgba(31, 48, 67, .045); }
.module h2, .module caption, .inline-group h2 { padding: 14px 18px; background: #f8fafc; color: #17324d; font-size: 14px; font-weight: 750; }

table { border-radius: 12px; }
thead th { padding: 12px 10px; background: #f7f9fc; color: #66788b; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #f1f9f8; }
td, th { border-bottom-color: #e8edf3; }

input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], select:not([multiple]), .vTextField {
    box-sizing: border-box; height: 39px; min-height: 39px; padding: 7px 10px; border: 1px solid #d7e1ea; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(31,48,67,.03); transition: border-color .18s, box-shadow .18s;
}
textarea, select[multiple] {
    box-sizing: border-box; padding: 9px 11px; border: 1px solid #d7e1ea; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(31,48,67,.03); transition: border-color .18s, box-shadow .18s;
}
.form-row select:not([multiple]) { min-width: 210px; max-width: min(100%, 520px); }
.form-row .vDateField { width: 130px; }
.form-row .vTimeField { width: 110px; }
.form-row .vIntegerField, .form-row input[type="number"] { width: 130px; }
.related-widget-wrapper { align-items: center; }
.related-widget-wrapper select:not([multiple]) { margin-right: 5px; }
input:focus, textarea:focus, select:focus { border-color: #19a695 !important; box-shadow: 0 0 0 3px rgba(20,184,166,.14) !important; outline: 0; }

.button, input[type="submit"], input[type="button"], .submit-row input, a.button {
    min-height: 38px; padding: 9px 17px; border: 0; border-radius: 9px; font-weight: 700; box-shadow: 0 4px 12px rgba(15,118,110,.14); transition: transform .16s, box-shadow .16s, background .16s;
}
.button:hover, input[type="submit"]:hover, input[type="button"]:hover, a.button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(15,118,110,.19); }
.object-tools a { border-radius: 9px; background: #0f766e; font-weight: 700; box-shadow: 0 5px 14px rgba(15,118,110,.16); }
.submit-row { padding: 14px 18px; border-radius: 13px; border: 1px solid #e0e7ef; background: #fff; box-shadow: 0 7px 22px rgba(31,48,67,.05); }

#changelist { border-radius: 14px; }
#changelist .changelist-form-container { background: transparent; }
#changelist-filter { border-left: 0; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px rgba(31,48,67,.05); }
#toolbar { padding: 12px 14px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fff; }
.paginator { border-radius: 0 0 13px 13px; }

/* 船员档案：紧凑页签 + 多列表单 */
.model-crewmember.change-form #content { width: auto; max-width: none; }
.model-crewmember .crew-tab-shell { margin: 0 0 14px; overflow: hidden; border-bottom: 1px solid #dce5ed; background: #fff; }
.model-crewmember .crew-tab-heading { display: none; }
.model-crewmember .crew-tab-list { display: flex; align-items: end; gap: 0; padding: 0 10px; overflow-x: auto; scrollbar-width: thin; }
.model-crewmember .crew-tab-card { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 104px; min-height: 43px; margin: 0 0 -1px; padding: 0 17px; border: 1px solid transparent; border-bottom-color: #dce5ed; border-radius: 8px 8px 0 0; color: #50687d; background: #f8fafc; box-shadow: none; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.model-crewmember .crew-tab-card + .crew-tab-card { border-left-color: #e6ecf1; }
.model-crewmember .crew-tab-card:hover { color: #147e94; background: #f1f8fb; }
.model-crewmember .crew-tab-card.is-active { z-index: 1; border-color: #d5e2eb; border-top: 2px solid #2b9fc5; border-bottom-color: #fff; color: #147d98; background: #fff; }
.model-crewmember .crew-tab-number { display: none; }
.model-crewmember .crew-tab-name { white-space: nowrap; }
.model-crewmember .crew-tab-error { position: absolute; top: 5px; right: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; background: #d6455d; font-size: 10px; }
.model-crewmember fieldset.crew-tab-panel { margin: 0 0 18px; padding: 8px 14px 17px; border: 1px solid #e1e8ee; border-radius: 5px; background: #fff; box-shadow: 0 5px 16px rgba(31,48,67,.035); animation: crew-tab-in .18s ease-out; }
.model-crewmember fieldset.crew-tab-panel.is-active { display: grid !important; grid-template-columns: repeat(3, minmax(240px, 1fr)); align-items: start; gap: 0 22px; }
.model-crewmember fieldset.crew-tab-panel:not(.is-active) { display: none !important; }
.model-crewmember fieldset.crew-tab-panel > h2 { grid-column: 1 / -1; margin: 0 0 4px; padding: 11px 0 9px 13px; border-bottom: 1px solid #e7edf2; color: #263c50; background: #fff; font-size: 14px; }
.model-crewmember fieldset.crew-tab-panel > h2::before { display: inline-block; width: 4px; height: 17px; margin: 0 9px -4px -13px; background: #38a9d0; content: ""; }
.model-crewmember fieldset.crew-tab-panel .form-row { min-width: 0; padding: 11px 0; border-bottom: 0; }
.model-crewmember fieldset.crew-tab-panel .form-row > div { width: 100%; }
.model-crewmember fieldset.crew-tab-panel .flex-container { display: flex !important; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.model-crewmember fieldset.crew-tab-panel .flex-container > label { position: static !important; z-index: 1; display: block !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 2px !important; overflow: visible !important; color: #314b61 !important; font-size: 12px !important; font-weight: 650 !important; line-height: 1.35 !important; text-align: left; text-indent: 0 !important; opacity: 1 !important; visibility: visible !important; white-space: nowrap; }
.model-crewmember fieldset.crew-tab-panel .flex-container.checkbox-row { flex-direction: row; align-items: center; }
.model-crewmember fieldset.crew-tab-panel .flex-container.checkbox-row > label { width: auto !important; }
.model-crewmember fieldset.crew-tab-panel .flex-container > p,
.model-crewmember fieldset.crew-tab-panel .flex-container > .related-widget-wrapper,
.model-crewmember fieldset.crew-tab-panel .flex-container > .readonly { width: 100%; min-width: 0; }
.model-crewmember fieldset.crew-tab-panel .flex-container > p { margin: 0; padding: 0; }
.model-crewmember fieldset.crew-tab-panel .flex-container > p:has(.vDateField),
.model-crewmember fieldset.crew-tab-panel .flex-container > p:has(.vTimeField) { display: flex; align-items: center; gap: 7px; }
.model-crewmember fieldset.crew-tab-panel .flex-container > p:has(.vDateField) .vDateField,
.model-crewmember fieldset.crew-tab-panel .flex-container > p:has(.vTimeField) .vTimeField { flex: 1 1 auto; width: auto; min-width: 0; }
.model-crewmember fieldset.crew-tab-panel .datetimeshortcuts { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; white-space: nowrap; }
.model-crewmember fieldset.crew-tab-panel .flex-container > p.datetime { display: grid !important; grid-template-columns: 34px minmax(70px, 1fr) auto; align-items: center; gap: 7px; width: 100%; }
.model-crewmember fieldset.crew-tab-panel p.datetime > br { display: none; }
.model-crewmember fieldset.crew-tab-panel p.datetime > label { position: static !important; display: block !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; color: #53687b !important; font-size: 11px !important; text-align: left; }
.model-crewmember fieldset.crew-tab-panel p.datetime > .vDateField,
.model-crewmember fieldset.crew-tab-panel p.datetime > .vTimeField { width: 100% !important; min-width: 0 !important; }
.model-crewmember fieldset.crew-tab-panel .form-row > fieldset { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.model-crewmember fieldset.crew-tab-panel .form-row > fieldset > legend { position: static !important; float: none !important; display: block !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 2px 6px !important; color: #314b61 !important; font-size: 12px !important; font-weight: 650 !important; line-height: 1.35 !important; }
.model-crewmember fieldset.crew-tab-panel .form-row > fieldset > div { width: 100%; }
.model-crewmember fieldset.crew-tab-panel input[type="file"] { box-sizing: border-box; display: block; width: 100%; min-height: 39px; padding: 6px 8px; border: 1px solid #d7e1ea; border-radius: 9px; color: #53687b; background: #fff; }
.model-crewmember fieldset.crew-tab-panel input[type="text"],
.model-crewmember fieldset.crew-tab-panel input[type="email"],
.model-crewmember fieldset.crew-tab-panel input[type="tel"],
.model-crewmember fieldset.crew-tab-panel input[type="date"],
.model-crewmember fieldset.crew-tab-panel select:not([multiple]),
.model-crewmember fieldset.crew-tab-panel textarea { width: 100%; max-width: none; }
.model-crewmember fieldset.crew-tab-panel .field-address,
.model-crewmember fieldset.crew-tab-panel .field-remarks { grid-column: span 2; }
.model-crewmember fieldset.crew-tab-panel .field-address textarea,
.model-crewmember fieldset.crew-tab-panel .field-remarks textarea { min-height: 72px; }
.model-crewmember fieldset.crew-tab-panel .help { margin: 3px 2px 0 !important; padding: 0 !important; }

/* 船员档案的备注统一置底并独占整行。 */
.admin-tabbed-form fieldset.crew-tab-panel .field-remarks { grid-column: 1 / -1; }
.admin-tabbed-form fieldset.crew-tab-panel .field-remarks textarea { width: 100%; max-width: none; min-height: 84px; height: 84px; resize: vertical; }
@keyframes crew-tab-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/*
 * 普通业务表单：所有分区在同一页展开。
 * 分区标题保留业务语义，字段采用紧凑网格，长文本自动独占整行。
 */
.admin-single-page-form.change-form #content { width: auto; max-width: none; }
.admin-single-page-form fieldset.admin-single-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    align-items: start;
    gap: 0 22px;
    margin: 0 0 14px;
    padding: 7px 14px 13px;
    overflow: visible;
    border: 1px solid #e1e8ee;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31,48,67,.03);
}
.admin-single-page-form fieldset.admin-single-panel > details[open] { display: contents; }
.admin-single-page-form fieldset.admin-single-panel > details > summary {
    grid-column: 1 / -1;
    display: block;
    list-style: none;
    pointer-events: none;
}
.admin-single-page-form fieldset.admin-single-panel > details > summary::-webkit-details-marker { display: none; }
.admin-single-page-form fieldset.admin-single-panel > h2,
.admin-single-page-form fieldset.admin-single-panel > details > summary > h2 {
    grid-column: 1 / -1;
    margin: 0 0 3px;
    padding: 10px 0 8px 13px;
    border-bottom: 1px solid #e7edf2;
    color: #263c50;
    background: #fff;
    font-size: 14px;
}
.admin-single-page-form fieldset.admin-single-panel > h2::before,
.admin-single-page-form fieldset.admin-single-panel > details > summary > h2::before {
    display: inline-block;
    width: 4px;
    height: 17px;
    margin: 0 9px -4px -13px;
    background: #38a9d0;
    content: "";
}
.admin-single-page-form fieldset.admin-single-panel .form-row {
    min-width: 0;
    padding: 9px 0;
    border-bottom: 0;
}
.admin-single-page-form fieldset.admin-single-panel .form-row > div { width: 100%; }
.admin-single-page-form fieldset.admin-single-panel .flex-container {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container > label {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    overflow: visible !important;
    color: #314b61 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-align: left;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container.checkbox-row {
    flex-direction: row;
    align-items: center;
    min-height: 39px;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container.checkbox-row > label { width: auto !important; }
.admin-single-page-form fieldset.admin-single-panel .flex-container > p,
.admin-single-page-form fieldset.admin-single-panel .flex-container > .related-widget-wrapper,
.admin-single-page-form fieldset.admin-single-panel .flex-container > .readonly {
    width: 100%;
    min-width: 0;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container > p { margin: 0; padding: 0; }
.admin-single-page-form fieldset.admin-single-panel .related-widget-wrapper {
    display: flex;
    flex-wrap: nowrap;
}
.admin-single-page-form fieldset.admin-single-panel .related-widget-wrapper select:not([multiple]) {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}
.admin-single-page-form fieldset.admin-single-panel input[type="text"],
.admin-single-page-form fieldset.admin-single-panel input[type="password"],
.admin-single-page-form fieldset.admin-single-panel input[type="email"],
.admin-single-page-form fieldset.admin-single-panel input[type="url"],
.admin-single-page-form fieldset.admin-single-panel input[type="number"],
.admin-single-page-form fieldset.admin-single-panel input[type="tel"],
.admin-single-page-form fieldset.admin-single-panel input[type="date"],
.admin-single-page-form fieldset.admin-single-panel input[type="time"],
.admin-single-page-form fieldset.admin-single-panel select:not([multiple]),
.admin-single-page-form fieldset.admin-single-panel textarea {
    width: 100%;
    max-width: none;
}
.admin-single-page-form fieldset.admin-single-panel input[type="file"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 39px;
    padding: 6px 8px;
    border: 1px solid #d7e1ea;
    border-radius: 9px;
    color: #53687b;
    background: #fff;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container > p:has(.vDateField),
.admin-single-page-form fieldset.admin-single-panel .flex-container > p:has(.vTimeField) {
    display: flex;
    align-items: center;
    gap: 7px;
}
.admin-single-page-form fieldset.admin-single-panel .flex-container > p:has(.vDateField) .vDateField,
.admin-single-page-form fieldset.admin-single-panel .flex-container > p:has(.vTimeField) .vTimeField {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.admin-single-page-form fieldset.admin-single-panel .datetimeshortcuts {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.admin-single-page-form fieldset.admin-single-panel .form-row > fieldset {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.admin-single-page-form fieldset.admin-single-panel .form-row > fieldset > legend {
    position: static !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px 5px !important;
    color: #314b61 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}
.admin-single-page-form fieldset.admin-single-panel .form-row > fieldset > div { width: 100%; }
.admin-single-page-form fieldset.admin-single-panel .form-row:has(textarea),
.admin-single-page-form fieldset.admin-single-panel .field-remarks {
    grid-column: 1 / -1;
}
.admin-single-page-form fieldset.admin-single-panel textarea {
    min-height: 72px;
    resize: vertical;
}
.admin-single-page-form fieldset.admin-single-panel .field-remarks textarea {
    min-height: 84px;
    height: 84px;
}
.admin-single-page-form fieldset.admin-single-panel .help {
    margin: 3px 2px 0 !important;
    padding: 0 !important;
}

@media (min-width: 1550px) {
    .model-crewmember fieldset.crew-tab-panel.is-active { grid-template-columns: repeat(4, minmax(235px, 1fr)); }
    .admin-single-page-form fieldset.admin-single-panel { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
}

.login { background: radial-gradient(circle at 20% 10%, #e7faf7 0, transparent 32%), linear-gradient(145deg, #eef3f8, #f8fafc); }
.login #container { width: 430px; min-height: 0; border: 1px solid rgba(214,226,236,.9); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(8,45,74,.16); }
.login #header { min-height: 92px; padding: 0 28px; }
.login #content { padding: 30px 34px 34px; }
.login .form-row { padding: 8px 0; }
.login .submit-row { padding: 14px 0 0; border: 0; box-shadow: none; }
.login .submit-row input { width: 100%; }

/* Dashboard */
.crew-dashboard #content { padding-top: 24px; }
.crew-dashboard #content h1 { display: none; }
.crew-dashboard #content.colMS, .crew-dashboard #content.colM { width: auto; max-width: none; margin: 0; }
.crew-dashboard #content-main { float: none; width: auto; }
.crew-dashboard #content-related { float: none; width: auto; margin: 0; }
.dashboard-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

.dashboard-hero { position: relative; display: flex; justify-content: space-between; min-height: 132px; margin-bottom: 16px; padding: 25px 32px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0a3555 0%, #0d5770 60%, #0f8177 120%); box-shadow: 0 14px 34px rgba(8,54,78,.16); }
.hero-content { position: relative; z-index: 2; max-width: 670px; }
.hero-eyebrow, .section-kicker { display: block; margin-bottom: 9px; color: #75ddcf; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.dashboard-hero h1 { display: block !important; margin: 0 0 7px !important; color: #fff !important; font-size: 25px !important; letter-spacing: -.02em; }
.dashboard-hero p { max-width: 590px; margin: 0; color: #d5e9ed; font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; gap: 11px; margin-top: 24px; }
.hero-button { display: inline-flex; align-items: center; min-height: 39px; padding: 0 17px; border-radius: 10px; font-size: 12px; font-weight: 750; text-decoration: none; }
.hero-button-primary { color: #0a4053 !important; background: #a9eee4; }
.hero-button-secondary { color: #fff !important; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.09); }
.hero-visual { position: absolute; right: -20px; top: -10px; width: 370px; height: 250px; opacity: .78; }
.hero-compass { position: absolute; top: 72px; right: 102px; display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #a9eee4; font-size: 35px; box-shadow: 0 0 0 16px rgba(255,255,255,.04), 0 0 0 36px rgba(255,255,255,.025); }
.route-line { position: absolute; border: 1px dashed rgba(169,238,228,.38); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(-18deg); }
.route-line-one { right: 30px; top: 35px; width: 280px; height: 160px; }
.route-line-two { right: -25px; top: 85px; width: 260px; height: 145px; }
.hero-port { position: absolute; width: 9px; height: 9px; border: 2px solid #a9eee4; border-radius: 50%; background: #0d6072; box-shadow: 0 0 0 5px rgba(169,238,228,.12); }
.port-one { top: 46px; right: 65px; }.port-two { top: 165px; right: 275px; }.port-three { top: 205px; right: 45px; }

.quick-access { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.quick-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e0e7ef; border-radius: 13px; color: #18334e !important; background: #fff; box-shadow: 0 5px 18px rgba(31,48,67,.04); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.quick-card:hover { transform: translateY(-3px); border-color: #bcded9; box-shadow: 0 13px 28px rgba(31,74,86,.1); }
.quick-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 14px; font-weight: 800; }
.quick-card-blue .quick-icon { color: #28618b; background: #e4f1fa; }.quick-card-cyan .quick-icon { color: #08756d; background: #def6f1; }.quick-card-amber .quick-icon { color: #9a6512; background: #fff1d6; }
.quick-card-indigo .quick-icon { color: #4356a4; background: #e9edff; }.quick-card-purple .quick-icon { color: #7552a1; background: #f1eafa; }.quick-card-rose .quick-icon { color: #b1415b; background: #ffeaee; }
.quick-card strong, .quick-card small { display: block; }.quick-card strong { font-size: 13px; }.quick-card small { margin-top: 4px; color: #8290a1; font-size: 10px; }
.quick-arrow { color: #9bacbb; font-size: 20px; transition: transform .18s; }.quick-card:hover .quick-arrow { transform: translateX(3px); color: #0f766e; }

.todo-center { margin: 0 0 16px; overflow: hidden; border: 1px solid #dfe7ef; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(31,48,67,.045); }
.todo-center-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 18px; background: linear-gradient(120deg, #f8fbfd, #f3f8f8); }
.todo-center-heading .section-kicker { margin-bottom: 4px; color: #0e8b80; }
.todo-center-heading h2 { margin: 0; color: #18334e; font-size: 18px; }
.todo-center-heading p { margin: 5px 0 0; color: #7c8b9b; font-size: 11px; }
.todo-summary-cards { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 8px; }
.todo-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px; min-width: 82px; padding: 9px 11px; border-radius: 11px; }
.todo-summary strong { font-size: 20px; line-height: 1; }
.todo-summary small { font-size: 9px; font-weight: 750; white-space: nowrap; }
.todo-summary.urgent { color: #bd3149; background: #fff0f2; }
.todo-summary.warning { color: #94600f; background: #fff5e2; }
.todo-summary.review { color: #285f8a; background: #eaf4fc; }
.todo-summary.payment { color: #08756d; background: #e4f7f3; }
.todo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e8edf3; }
.todo-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; min-height: 54px; padding: 8px 16px; border-bottom: 1px solid #edf1f5; color: #294259 !important; text-decoration: none; transition: background .16s; }
.todo-item:nth-child(odd) { border-right: 1px solid #edf1f5; }
.todo-item:hover { background: #f7fbfb; }
.todo-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #0b756c; background: #e4f7f3; font-size: 11px; font-weight: 850; }
.todo-item.urgent .todo-icon { color: #bd3149; background: #ffecef; }
.todo-item.warning .todo-icon { color: #94600f; background: #fff3dc; }
.todo-item.review .todo-icon { color: #285f8a; background: #eaf4fc; }
.todo-copy { min-width: 0; }
.todo-copy strong, .todo-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-copy strong { color: #203b55; font-size: 12px; }
.todo-copy small { margin-top: 4px; color: #8290a1; font-size: 9px; }
.todo-status { padding: 4px 7px; border-radius: 7px; color: #63778a; background: #f0f4f7; font-size: 9px; font-weight: 750; white-space: nowrap; }
.todo-item.urgent .todo-status { color: #bd3149; background: #fff0f2; }
.todo-item.warning .todo-status { color: #94600f; background: #fff5e2; }
.todo-arrow { color: #91a1b1; font-size: 16px; }
.todo-empty { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 82px; border-top: 1px solid #e8edf3; color: #7f8f9f; }
.todo-empty span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #08756d; background: #e4f7f3; font-weight: 800; }
.todo-empty p { margin: 0; font-size: 11px; }

.certificate-alert-panel { position: relative; margin: 0 0 28px; overflow: hidden; border: 1px solid #dfe7ef; border-radius: 17px; background: #fff; box-shadow: 0 8px 26px rgba(31,48,67,.05); }
.certificate-alert-panel::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; content: ""; background: #14a394; }
.certificate-alert-panel.has-expired::before { background: #dc4c64; }
.certificate-alert-panel.has-warning::before { background: #e6a23c; }
.certificate-alert-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 19px 22px; background: linear-gradient(120deg, #fbfcfd, #f7fafc); }
.alert-shield { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #08756d; background: #def6f1; font-size: 20px; font-weight: 850; }
.has-expired .alert-shield { color: #c8344f; background: #ffe9ed; }
.has-warning .alert-shield { color: #9a6512; background: #fff1d6; }
.certificate-alert-summary .section-kicker { margin-bottom: 3px; color: #6c7f92; }
.certificate-alert-summary h2 { margin: 0; color: #18334e; font-size: 17px; }
.certificate-alert-summary p { margin: 5px 0 0; color: #7c8b9b; font-size: 11px; line-height: 1.6; }
.alert-counts { display: flex; gap: 9px; }
.alert-counts > span { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px; min-width: 92px; padding: 9px 12px; border-radius: 11px; }
.alert-counts strong { font-size: 20px; line-height: 1; }
.alert-counts small { font-size: 10px; font-weight: 700; }
.expired-count { color: #bd3149; background: #fff0f2; }
.expiring-count { color: #94600f; background: #fff5e2; }
.certificate-alert-list { border-top: 1px solid #e8edf3; }
.certificate-alert-item { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(140px, 1.4fr) 110px 105px 18px; align-items: center; gap: 14px; min-height: 48px; padding: 0 22px; border-bottom: 1px solid #edf1f5; color: #294259 !important; text-decoration: none; transition: background .16s; }
.certificate-alert-item:hover { background: #f7fbfb; }
.certificate-person { font-weight: 750; }
.certificate-name, .certificate-date { color: #687b8e; }
.certificate-status { justify-self: start; padding: 4px 8px; border-radius: 7px; color: #996316; background: #fff3dc; font-size: 10px; font-weight: 750; }
.certificate-alert-item.expired .certificate-status { color: #be354e; background: #ffecef; }
.certificate-arrow { color: #91a1b1; font-size: 17px; }
.certificate-view-all { display: block; padding: 12px 22px; color: #0b756c !important; background: #fbfcfd; font-size: 11px; font-weight: 750; text-align: right; text-decoration: none; }
.certificate-view-all span { margin-left: 4px; }

.certificate-alert-compact { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 12px 16px; overflow: hidden; border: 1px solid #dfe7ef; border-radius: 14px; color: #294259 !important; background: #fff; box-shadow: 0 6px 20px rgba(31,48,67,.04); text-decoration: none; }
.certificate-alert-compact::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: #14a394; }
.certificate-alert-compact.has-expired::before { background: #dc4c64; }
.certificate-alert-compact.has-warning::before { background: #e6a23c; }
.certificate-alert-compact .alert-shield { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.certificate-compact-copy strong, .certificate-compact-copy small { display: block; }
.certificate-compact-copy strong { color: #18334e; font-size: 13px; }
.certificate-compact-copy small { margin-top: 3px; color: #7c8b9b; font-size: 10px; }
.certificate-compact-count { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 5px; min-width: 75px; padding: 7px 9px; border-radius: 9px; }
.certificate-compact-count strong { font-size: 17px; }
.certificate-compact-count small { font-size: 9px; font-weight: 700; white-space: nowrap; }
.certificate-compact-arrow { margin-left: 4px; color: #0b756c; font-size: 10px; font-weight: 750; white-space: nowrap; }

.recent-activity-fold { margin: 0; overflow: hidden; border: 1px solid #dfe7ef; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(31,48,67,.035); }
.recent-activity-fold summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 17px; color: #294259; cursor: pointer; list-style: none; }
.recent-activity-fold summary::-webkit-details-marker { display: none; }
.recent-activity-fold summary > span:first-child { display: flex; align-items: baseline; gap: 10px; }
.recent-activity-fold summary strong { font-size: 12px; }
.recent-activity-fold summary small { color: #8a98a8; font-size: 9px; }
.fold-action { color: #0b756c; font-size: 10px; font-weight: 750; }
.recent-activity-fold[open] .fold-action { font-size: 0; }
.recent-activity-fold[open] .fold-action::after { content: "收起"; font-size: 10px; }
.recent-activity-body { border-top: 1px solid #edf1f5; }
.recent-activity-body .actionlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 5px 17px 10px; }
.recent-activity-body .actionlist li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 9px; margin: 0; padding: 9px 7px; border-bottom: 1px solid #edf1f5; background: none !important; }
.recent-activity-body .actionlist a, .recent-activity-body .activity-object { display: block; overflow: hidden; color: #294259; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 2px 14px; }
.dashboard-section-heading .section-kicker { margin-bottom: 4px; color: #0e8b80; }
.dashboard-section-heading h2 { margin: 0; color: #18334e; font-size: 20px; }.dashboard-section-heading p { margin: 0; color: #8795a5; font-size: 11px; }
.modern-app-list .module { margin-bottom: 18px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.modern-app-list .module caption { display: block; padding: 8px 2px 10px; color: #637589; background: transparent; font-size: 11px; letter-spacing: .08em; }
.modern-app-list .module table { display: block; background: transparent; }
.modern-app-list .module tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.modern-app-list .module tr { position: relative; display: grid; grid-template-columns: 1fr auto; min-height: 78px; padding: 16px; border: 1px solid #e1e8ef; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(31,48,67,.04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.modern-app-list .module tr:hover { transform: translateY(-2px); border-color: #b7ddd8; background: #fff; box-shadow: 0 12px 25px rgba(31,74,86,.09); }
.modern-app-list .module th { align-self: start; padding: 0; border: 0; font-size: 13px; }.modern-app-list .module th a { color: #18334e; font-weight: 750; }
.modern-app-list .module td { align-self: end; padding: 0; border: 0; font-size: 10px; }.modern-app-list .module td a { display: inline-flex; margin-left: 8px; color: #718397; font-weight: 700; }
.modern-app-list .module td a:hover { color: #0f766e; }
.modern-app-list .addlink::before, .modern-app-list .changelink::before { opacity: .65; }

.activity-panel { position: sticky; top: 22px; }
.activity-panel .module { padding: 0; }
.activity-heading { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid #e7edf2; background: linear-gradient(145deg, #fbfcfd, #f5f9fa); }
.activity-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #0f766e; background: #e1f5f2; font-size: 18px; }
.activity-heading h2 { margin: 0; padding: 0; background: none; font-size: 14px; }.activity-heading p { margin: 3px 0 0; color: #8c99a8; font-size: 10px; }
.activity-panel .actionlist { margin: 0; padding: 7px 18px 14px; }
.activity-panel .actionlist li { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 10px; margin: 0; padding: 11px 0; border-bottom: 1px solid #edf1f5; background: none !important; }
.activity-panel .actionlist li:last-child { border-bottom: 0; }.activity-dot { width: 7px; height: 7px; margin-top: 5px; border: 2px solid #6ccfc2; border-radius: 50%; background: #fff; }
.activity-panel .actionlist a, .activity-object { display: block; overflow: hidden; color: #294259; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta { display: block; margin-top: 3px; color: #98a4b0; font-size: 9px; }.empty-activity { padding: 38px 20px; color: #8a98a8; text-align: center; }.empty-activity span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #0f766e; background: #e5f5f2; }

@media (max-width: 1200px) {
    .dashboard-workspace { grid-template-columns: 1fr; }
    .activity-panel { position: static; }
    .modern-app-list .module tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    #header { padding: 0 16px; }
    #content { padding: 20px 16px 32px; }
    .brand-copy small { display: none; }
    .dashboard-hero { min-height: 0; padding: 28px 24px; }
    .hero-visual { opacity: .28; }
    .quick-access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modern-app-list .module tbody { grid-template-columns: 1fr; }
    .todo-center-heading { display: block; padding: 17px; }
    .todo-summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
    .todo-list { grid-template-columns: 1fr; }
    .todo-item:nth-child(odd) { border-right: 0; }
    .certificate-alert-summary { grid-template-columns: 44px 1fr; padding: 17px; }
    .alert-counts { grid-column: 1 / -1; }
    .certificate-alert-item { grid-template-columns: 1fr auto; gap: 5px 12px; padding: 11px 17px; }
    .certificate-name { grid-column: 1; }
    .certificate-date { grid-column: 2; grid-row: 1; }
    .certificate-status { grid-column: 2; grid-row: 2; }
    .certificate-arrow { display: none; }
    .dashboard-section-heading p { display: none; }
    .certificate-alert-compact { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .certificate-compact-count { display: none; }
    .recent-activity-body .actionlist { grid-template-columns: 1fr; }
    .model-crewmember .crew-tab-heading { align-items: flex-start; padding: 14px 16px 12px; }
    .model-crewmember .crew-tab-list { padding: 0 5px; }
    .model-crewmember .crew-tab-card { flex: 0 0 auto; }
    .model-crewmember fieldset.crew-tab-panel.is-active { grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 0 14px; }
    .admin-single-page-form fieldset.admin-single-panel { grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 0 14px; }
}
@media (max-width: 520px) {
    .quick-access { grid-template-columns: 1fr; }
    .certificate-compact-arrow { display: none; }
    .recent-activity-fold summary small { display: none; }
    .model-crewmember fieldset.crew-tab-panel.is-active { grid-template-columns: 1fr; gap: 0; }
    .model-crewmember fieldset.crew-tab-panel .field-address,
    .model-crewmember fieldset.crew-tab-panel .field-remarks { grid-column: auto; }
    .admin-single-page-form fieldset.admin-single-panel { grid-template-columns: 1fr; gap: 0; }
    .admin-single-page-form fieldset.admin-single-panel .form-row:has(textarea),
    .admin-single-page-form fieldset.admin-single-panel .field-remarks { grid-column: auto; }
}

/* 企业管理后台视觉：减少渐变、装饰、圆角和悬浮阴影。 */
#header {
    min-height: 64px;
    background: #123b59;
    border-bottom: 3px solid #1a7b74;
    box-shadow: none;
}
.brand-link { gap: 10px; }
.brand-mark {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 4px;
    color: #123b59;
    background: #f3f8f7;
    box-shadow: none;
    font-size: 13px;
}
.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 3px; color: #c6d9e2; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
#user-tools a { border-radius: 3px; }
div.breadcrumbs { padding: 11px 30px; background: #fff; backdrop-filter: none; }

#nav-sidebar { width: 260px; flex-basis: 260px; box-shadow: none; }
#nav-filter { border-radius: 4px; background: #fff; }
.sidebar-workbench { border-radius: 4px; }
.sidebar-workbench.current { border-left: 3px solid #1a7b74; border-radius: 2px; background: #eef5f4; }
.sidebar-group-icon { width: 24px; height: 24px; flex-basis: 24px; border: 1px solid #dbe5e8; border-radius: 3px; color: #31566a; background: #f5f7f8; }
#nav-sidebar details.business-nav-group.module { border-radius: 0; }
.business-nav-group summary { border-radius: 3px; }
.business-nav-group summary:hover, .business-nav-group.current-group > summary { color: #174e4a; background: #f0f4f4; }
.sidebar-add { width: 20px; height: 20px; border-radius: 3px; background: #edf3f2; }

.module, .inline-group, .status-tabs, .submit-row, #toolbar {
    border-radius: 6px;
    box-shadow: none;
}
.status-tab { border-radius: 4px; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], select:not([multiple]), .vTextField, textarea, select[multiple] { border-radius: 5px; box-shadow: none; }
.button, input[type="submit"], input[type="button"], .submit-row input, a.button, .object-tools a { border-radius: 4px; box-shadow: none; }
.button:hover, input[type="submit"]:hover, input[type="button"]:hover, a.button:hover { transform: none; box-shadow: none; }

.crew-dashboard #content { padding-top: 20px; background: #f4f6f8; }
.dashboard-hero {
    min-height: 0;
    margin-bottom: 14px;
    padding: 18px 20px;
    align-items: center;
    border: 1px solid #d9e0e5;
    border-left: 4px solid #1a7b74;
    border-radius: 6px;
    color: #20384b;
    background: #fff;
    box-shadow: none;
}
.hero-content { max-width: none; }
.dashboard-hero h1 { margin: 0 0 5px !important; color: #20384b !important; font-size: 21px !important; font-weight: 650; letter-spacing: 0; }
.dashboard-hero p { max-width: none; color: #6c7c88; font-size: 12px; line-height: 1.6; }
.dashboard-report-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 1px solid #bfcbd3; border-radius: 4px; color: #284d63 !important; background: #fff; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.dashboard-report-link:hover { border-color: #6d8b9b; background: #f6f8f9; }

.quick-access { gap: 10px; margin-bottom: 14px; }
.quick-card { padding: 10px 12px; border-color: #d9e0e5; border-radius: 6px; box-shadow: none; }
.quick-card:hover { transform: none; border-color: #8da7b4; background: #fafbfc; box-shadow: none; }
.quick-icon { width: 34px; height: 34px; border: 1px solid #d8e1e5; border-radius: 4px; color: #31566a !important; background: #f3f6f7 !important; font-size: 12px; }
.quick-card strong { font-size: 12px; font-weight: 650; }
.quick-card small { color: #7d8992; font-size: 9px; }
.quick-arrow { color: #71838f; font-size: 15px; }
.quick-card:hover .quick-arrow { transform: none; color: #31566a; }

.todo-center { margin-bottom: 14px; border-color: #d9e0e5; border-radius: 6px; box-shadow: none; }
.todo-center-heading { padding: 14px 17px; background: #f7f8f9; }
.todo-center-heading h2 { color: #20384b; font-size: 16px; font-weight: 650; }
.todo-summary-cards { gap: 0; border: 1px solid #dde3e7; background: #fff; }
.todo-summary { min-width: 86px; padding: 8px 11px; border-radius: 0; background: #fff !important; }
.todo-summary + .todo-summary { border-left: 1px solid #e1e6e9; }
.todo-summary strong { font-size: 17px; }
.todo-item { color: #304b5e !important; }
.todo-item:hover { background: #f7f9fa; }
.todo-icon { border: 1px solid #dbe4e8; border-radius: 3px; color: #31566a !important; background: #f4f6f7 !important; }
.todo-status { border-radius: 3px; }

.certificate-alert-compact { margin-bottom: 12px; border-radius: 6px; box-shadow: none; }
.certificate-alert-compact .alert-shield { border-radius: 4px; }
.certificate-compact-count { border-radius: 3px; }
.recent-activity-fold { border-radius: 6px; box-shadow: none; }

@media (max-width: 850px) {
    .dashboard-hero { align-items: flex-start; gap: 14px; }
}
.tenant-badge {
    margin-left: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 4px;
    color: #e9f5f8;
    font-size: 12px;
    white-space: nowrap;
}
