/* FireDesk Portal v0.1.0 — isolated, theme-independent appearance. */
html { font-size: 16px; }
body.fd-portal { margin: 0 !important; background: #f5f6f7; color: #17212c; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
.fd-portal *, .fd-portal *::before, .fd-portal *::after { box-sizing: border-box; }
.fd-portal a { text-decoration: none; }
.fd-portal h1, .fd-portal h2, .fd-portal h3, .fd-portal p { margin-top: 0; }
.fd-portal :focus-visible { outline: 3px solid #3c78c3; outline-offset: 3px; }
.fd-brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 750; letter-spacing: -.6px; }
.fd-mark { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; background: #153b54; color: white; border-radius: 9px; font-size: 13px; font-weight: 800; letter-spacing: -.4px; flex-shrink: 0; }
.fd-brand-light .fd-mark { color: #123247; background: #fff; }
.fd-eyebrow { display: inline-block; font-size: 11px; font-weight: 750; color: #4c677a; letter-spacing: 1.3px; }
.fd-eyebrow-light { color: #b5c9d7; }
/* Login */
.fd-login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 42%) 1fr; }
.fd-login-intro { background: #123348; color: white; display: flex; flex-direction: column; padding: 46px clamp(28px, 4vw, 84px); }
.fd-login-copy { margin-top: auto; margin-bottom: auto; }
.fd-login-copy h1 { margin: 24px 0 21px; max-width: 540px; font-size: clamp(38px, 3.6vw, 62px); line-height: 1.08; font-weight: 710; letter-spacing: -2px; color: #fff; }
.fd-login-copy p { color: #c4d2dd; font-size: 17px; max-width: 410px; line-height: 1.75; }
.fd-login-org { color: #a4bbcb; font-size: 13px; }
.fd-login-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 45px 25px 22px; }
.fd-login-card { width: min(100%, 425px); }
.fd-login-card h2 { color: #17212c; font-size: 31px; line-height: 1.2; letter-spacing: -.9px; margin: 16px 0 12px; }
.fd-text-muted { color: #677380; font-size: 15px; margin-bottom: 34px; }
.fd-login-card form { margin: 0; }
.fd-login-card form p { margin: 0 0 19px; }
.fd-login-card label { font-size: 13px; font-weight: 650; display: block; color: #334250; margin-bottom: 8px; }
.fd-login-card input[type="text"], .fd-login-card input[type="password"] { width: 100%; border: 1px solid #cbd2d8; border-radius: 6px; height: 45px; padding: 0 13px; background: #fff; font: inherit; color: #17212c; box-shadow: 0 1px 1px rgba(9, 30, 46, .02); }
.fd-login-card input[type="text"]:focus, .fd-login-card input[type="password"]:focus { border-color: #366e98; outline: 3px solid rgba(54, 110, 152, .14); }
.fd-login-card .login-remember { margin: 3px 0 22px; }
.fd-login-card .login-remember label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 450; color: #5a6672; }
.fd-login-card .login-remember input { margin: 0; width: 15px; height: 15px; accent-color: #153b54; }
.fd-login-card .login-submit { margin-top: 23px; }
.fd-login-card .login-submit input[type="submit"] { display: block; width: 100%; height: 45px; border: 1px solid #123348; background: #123348; color: white; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 650; }
.fd-login-card .login-submit input[type="submit"]:hover { background: #1b4761; }
.fd-text-link { display: inline-block; margin-top: 12px; color: #1b567a; font-size: 13px; font-weight: 600; }
.fd-text-link:hover { text-decoration: underline; }
.fd-login-help { margin-top: 40px; padding-top: 19px; border-top: 1px solid #e0e4e7; font-size: 12px; color: #737e87; }
.fd-login-footer { position: absolute; bottom: 23px; text-align: center; font-size: 12px; color: #81909c; }
/* Main application */
.fd-app { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.fd-sidebar { background: #132e40; color: #f4f7f9; display: flex; flex-direction: column; padding: 27px 17px 20px; }
.fd-side-brand { padding: 2px 11px 36px; color: white; }
.fd-side-brand .fd-mark { background: #fff; color: #173b52; }
.fd-side-section { padding: 4px 12px 13px; font-size: 10px; font-weight: 750; letter-spacing: 1.25px; color: #849fad; }
.fd-nav { display: flex; flex-direction: column; gap: 3px; }
.fd-nav-link { min-height: 41px; border-radius: 6px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; font-size: 13px; font-weight: 550; color: #c8d5dd; }
.fd-nav-active { color: white; background: #29495e; }
.fd-nav-disabled { opacity: .58; cursor: not-allowed; }
.fd-nav-symbol { font-size: 17px; width: 18px; text-align: center; line-height: 1; }
.fd-nav-later { margin-left: auto; font-size: 10px; font-weight: 450; color: #bfd0da; }
.fd-sidebar-bottom { margin-top: auto; padding: 25px 12px 0; border-top: 1px solid #315064; }
.fd-side-org { color: #e2e9ed; font-size: 12px; line-height: 1.5; }
.fd-version { display: inline-block; margin-top: 18px; color: #829dab; font-size: 11px; }
.fd-main-area { min-width: 0; display: flex; flex-direction: column; }
.fd-topbar { min-height: 72px; background: #fff; border-bottom: 1px solid #e3e7ea; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px clamp(22px, 3vw, 51px); }
.fd-topbar-context { color: #4b5a66; font-size: 13px; font-weight: 570; }
.fd-divider { margin: 0 13px; color: #b0bbc3; }
.fd-user-menu { display: flex; align-items: center; gap: 10px; }
.fd-avatar { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; background: #e7edf1; color: #204862; border-radius: 100%; font-size: 13px; font-weight: 750; }
.fd-user-name { color: #273a47; font-size: 13px; font-weight: 650; }
.fd-logout { margin-left: 20px; padding-left: 18px; border-left: 1px solid #e4e8eb; color: #496477; font-size: 13px; }
.fd-logout:hover { color: #123348; text-decoration: underline; }
.fd-content { width: min(1220px, 100%); margin: 0 auto; padding: 39px clamp(22px, 3vw, 51px) 70px; flex: 1; }
.fd-breadcrumb { color: #7a8791; font-size: 12px; margin-bottom: 22px; }
.fd-breadcrumb span { margin: 0 9px; color: #bbc3ca; }
.fd-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.fd-page-head h1 { font-size: 31px; font-weight: 720; letter-spacing: -.9px; margin-bottom: 6px; line-height: 1.2; }
.fd-page-head p { color: #687784; font-size: 14px; margin: 0; }
.fd-status { flex-shrink: 0; background: #eaf4ee; color: #286549; border: 1px solid #d2e6d9; border-radius: 5px; padding: 6px 10px; font-size: 11px; font-weight: 660; }
.fd-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: #468966; margin-right: 7px; }
.fd-note { display: flex; gap: 22px; border: 1px solid #d7e1e6; border-left: 3px solid #365c71; background: #fff; border-radius: 6px; padding: 30px; margin-bottom: 43px; }
.fd-note-icon { flex-shrink: 0; width: 40px; height: 40px; background: #ebf1f4; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 780; color: #24495f; }
.fd-note h2 { font-size: 19px; font-weight: 680; letter-spacing: -.3px; margin-bottom: 8px; }
.fd-note p { font-size: 14px; color: #60707c; max-width: 700px; line-height: 1.7; margin: 0; }
.fd-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px; }
.fd-section-head h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.fd-section-head span { color: #8895a0; font-size: 12px; }
.fd-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fd-module { background: #fff; border: 1px solid #e0e5e8; border-radius: 6px; padding: 23px 23px 27px; min-height: 178px; }
.fd-module-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 26px; }
.fd-module-label { color: #9aa7b1; font-size: 12px; font-weight: 650; }
.fd-badge { font-size: 10px; color: #697783; background: #f3f5f6; border: 1px solid #e3e7e9; padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.fd-module h3 { font-size: 16px; font-weight: 680; margin-bottom: 7px; }
.fd-module p { font-size: 13px; color: #75828b; line-height: 1.55; margin: 0; }
.fd-admin-notice { margin-top: 37px; border-top: 1px solid #e1e6e9; padding-top: 22px; font-size: 13px; color: #677680; }
.fd-admin-notice span { display: block; color: #405463; font-weight: 650; margin-bottom: 5px; }
.fd-admin-notice p { margin-bottom: 8px; }
.fd-admin-notice a { color: #1b567a; font-weight: 650; }
.fd-admin-notice a:hover { text-decoration: underline; }
.fd-app-footer { color: #8a979f; font-size: 11px; padding: 22px clamp(22px, 3vw, 51px); border-top: 1px solid #e7ebed; display: flex; justify-content: space-between; gap: 20px; }
@media(max-width: 980px) { .fd-module-grid { grid-template-columns: 1fr; } .fd-module { min-height: 0; } .fd-module-top { margin-bottom: 14px; } }
@media(max-width: 760px) {
  .fd-login-layout { grid-template-columns: 1fr; }
  .fd-login-intro { min-height: 210px; padding: 24px; }
  .fd-login-copy { display: none; }
  .fd-login-org { margin-top: auto; }
  .fd-login-main { min-height: calc(100vh - 210px); padding: 45px 24px 65px; }
  .fd-login-footer { position: static; margin-top: 55px; }
  .fd-app { display: block; }
  .fd-sidebar { padding: 15px 16px 12px; }
  .fd-side-brand { padding: 0 0 15px; }
  .fd-side-section, .fd-sidebar-bottom { display: none; }
  .fd-nav { flex-direction: row; gap: 5px; overflow-x: auto; }
  .fd-nav-link { white-space: nowrap; font-size: 12px; padding: 9px 10px; min-height: 35px; }
  .fd-nav-later { display: none; }
  .fd-topbar { min-height: 64px; padding: 12px 21px; }
  .fd-content { padding: 30px 21px 55px; }
  .fd-page-head { align-items: flex-start; flex-direction: column; }
  .fd-note { padding: 22px; }
  .fd-app-footer { padding-left: 21px; padding-right: 21px; }
}
@media(max-width: 430px) { .fd-user-name { display: none; } .fd-logout { margin-left: 3px; padding-left: 12px; } .fd-topbar-context { font-size: 11px; } .fd-note-icon { display: none; } .fd-page-head h1 { font-size: 28px; } }
/* FireDesk incident module v0.2.0 */
.fd-portal .fd-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #31576e; border-radius: 5px; min-height: 38px; font-size: 13px; font-weight: 650; cursor: pointer; padding: 9px 14px; white-space: nowrap; text-decoration: none; }
.fd-portal .fd-button-primary { background: #1c465f; color: #fff; }
.fd-portal .fd-button-primary:hover { background: #14374d; }
.fd-portal .fd-button-outline { background: #fff; color: #294e66; border-color: #c9d4dc; }
.fd-portal .fd-button-outline:hover { background: #f5f8fa; }
.fd-panel { background: #fff; border: 1px solid #dfe5e9; border-radius: 6px; padding: 24px; margin-bottom: 18px; }
.fd-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.fd-panel-title h2 { font-size: 17px; color: #1d303f; margin: 0; letter-spacing: -.25px; }
.fd-panel-title p { font-size: 13px; color: #70818c; margin: 7px 0 0; }
.fd-chip { display: inline-block; padding: 4px 9px; background: #eef3f6; color: #446377; border: 1px solid #dce5ea; border-radius: 4px; font-size: 11px; font-weight: 650; }
.fd-table-panel { padding: 0; overflow: hidden; }
.fd-table-panel .fd-panel-title { padding: 20px 24px; margin: 0; border-bottom: 1px solid #e5e9ec; }
.fd-table-wrap { width: 100%; overflow-x: auto; }
.fd-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.fd-table thead th { background: #f8fafb; font-size: 11px; font-weight: 750; letter-spacing: .3px; color: #6b7984; text-transform: uppercase; padding: 13px 24px; white-space: nowrap; }
.fd-table tbody td { border-top: 1px solid #edf0f2; padding: 17px 24px; vertical-align: middle; color: #4f616c; }
.fd-table tbody td strong { color: #203545; font-size: 13px; display: block; }
.fd-table tbody td small { color: #82929f; display: block; margin-top: 5px; }
.fd-table tbody tr:hover { background: #fafcfd; }
.fd-nowrap { white-space: nowrap; }
.fd-row-link { color: #245b7b; font-weight: 650; white-space: nowrap; }
.fd-row-link:hover { text-decoration: underline; }
.fd-empty-state { padding: 46px 24px; text-align: center; }
.fd-empty-state h3 { margin-bottom: 8px; font-size: 17px; }
.fd-empty-state p { font-size: 13px; margin: auto; color: #72828e; max-width: 530px; }
.fd-privacy-note { margin-top: 18px; font-size: 12px; line-height: 1.6; color: #7b8892; }
.fd-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 17px; align-items: start; }
.fd-definition-list { margin: 0; }
.fd-definition-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid #ecf0f2; }
.fd-definition-list dt { color: #778692; font-size: 12px; }
.fd-definition-list dd { color: #203544; font-size: 13px; font-weight: 550; margin: 0; overflow-wrap: anywhere; }
.fd-panel-summary { background: #f8fafb; }
.fd-summary-number { font-size: 49px; font-weight: 750; letter-spacing: -1px; line-height: 1.15; color: #1b445d; margin-top: 18px; }
.fd-panel-summary > p { color: #3e5362; font-size: 13px; margin: 7px 0 15px; }
.fd-panel-summary .fd-summary-help { border-top: 1px solid #e0e8ed; padding-top: 15px; color: #75858e; line-height: 1.6; }
.fd-detail-note { padding: 14px 17px; background: #f6f8fa; border: 1px solid #e5eaed; border-radius: 5px; margin-top: 19px; font-size: 13px; }
.fd-detail-note strong { color: #456173; }
.fd-detail-note p { margin: 7px 0 0; color: #526a78; overflow-wrap: anywhere; }
.fd-attendance-section { margin-top: 6px; }
.fd-member-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.fd-member-row { display: flex; align-items: center; cursor: pointer; gap: 11px; min-height: 49px; border-top: 1px solid #edf0f2; font-size: 13px; color: #263c4c; font-weight: 580; }
.fd-member-row input { width: 17px; height: 17px; accent-color: #1b536f; flex: 0 0 auto; }
.fd-member-username { margin-left: auto; color: #8b969e; font-size: 11px; font-weight: 400; }
.fd-member-list-readonly { margin: 0; padding: 0; list-style: none; }
.fd-member-list-readonly li { border-top: 1px solid #edf0f2; min-height: 45px; display: flex; align-items: center; font-size: 13px; }
.fd-present-label { color: #367451; margin-left: auto; font-size: 12px; }
.fd-empty { color: #657987; font-size: 13px; }
.fd-form label { display: block; font-size: 13px; color: #3c5262; font-weight: 620; margin-bottom: 19px; }
.fd-form label strong { color: #9a493b; }
.fd-form input[type="text"], .fd-form input[type="datetime-local"], .fd-form textarea { display: block; margin-top: 9px; width: 100%; padding: 11px 13px; background: #fff; border: 1px solid #ccd7de; border-radius: 5px; font: inherit; color: #193b50; font-size: 13px; }
.fd-form textarea { resize: vertical; }
.fd-form input:focus, .fd-form textarea:focus { outline: 3px solid rgba(60,120,160,.13); border-color: #356781; }
.fd-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.fd-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid #e7ecef; margin-top: 8px; }
.fd-form-hint { color: #788993; font-size: 12px; line-height: 1.5; }
.fd-alert { background: #fff4ed; border: 1px solid #f2d7c8; color: #8e5034; padding: 12px 16px; border-radius: 5px; font-size: 13px; margin-bottom: 20px; }
.fd-alert-ok { background: #eff8f2; border-color: #d1e8d8; color: #226548; }
.fd-dashboard-incidents { margin-top: 35px; }
.fd-dashboard-incidents .fd-section-head a { color: #245b7b; font-size: 12px; font-weight: 650; }
.fd-quick-incidents { background: white; border: 1px solid #e0e5e8; border-radius: 6px; }
.fd-quick-incidents a { display: flex; align-items: center; gap: 20px; padding: 15px 20px; color: #31556d; font-size: 13px; border-bottom: 1px solid #e9edf0; }
.fd-quick-incidents a:last-child { border-bottom: 0; }
.fd-quick-incidents a:hover { background: #f9fbfc; }
.fd-quick-incidents a span { color: #778994; font-size: 12px; white-space: nowrap; }
.fd-quick-incidents a span:last-child { margin-left: auto; color: #315e76; font-weight: 650; }
.fd-quick-incidents a strong { color: #274354; }
@media(max-width: 920px) { .fd-detail-grid { grid-template-columns: 1fr; } .fd-member-list { grid-template-columns: 1fr; } }
@media(max-width: 650px) { .fd-form-grid { grid-template-columns: 1fr; } .fd-definition-list > div { grid-template-columns: 110px minmax(0,1fr); } .fd-panel { padding: 19px; } .fd-table-panel { padding: 0; } .fd-table-panel .fd-panel-title { padding: 17px 19px; } .fd-table th, .fd-table td { padding-left: 15px !important; padding-right: 15px !important; } .fd-quick-incidents a { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .fd-quick-incidents a strong { grid-column: 1/-1; } .fd-quick-incidents a span:last-child { grid-row: 1; grid-column: 2; } }
