/* The guard reader is isolated from the existing editor and all other pages. */
#guard-profile-view{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;padding:0;background:#edf2f6;color:#19364d;overflow:auto;font-family:inherit;font-size:14px;line-height:1.6;box-sizing:border-box}#guard-profile-view *{box-sizing:border-box}#guard-profile-view button{font:inherit;cursor:pointer}#guard-profile-view button:focus-visible{outline:3px solid #7da7cf;outline-offset:3px}#guard-profile-view svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}#guard-profile-view .gp-page{max-width:1280px;padding:32px 40px 60px;margin:auto}#guard-profile-view h1,#guard-profile-view h2,#guard-profile-view h3,#guard-profile-view h4,#guard-profile-view p{margin:0}#guard-profile-view h3{font-size:17px;font-weight:750}#guard-profile-view small{font-size:12px}#guard-profile-view .gp-topbar{display:flex;align-items:center;gap:14px;margin-bottom:24px}#guard-profile-view .gp-topbar>div:first-child{order:1}#guard-profile-view .gp-topbar h2{font-size:25px}#guard-profile-view .gp-topbar small{color:#687e90}#guard-profile-view .gp-back{width:44px;height:44px;background:#fff;border:1px solid #d3dfeb;border-radius:12px;display:grid;place-items:center}#guard-profile-view .gp-top-actions{order:2;margin-inline-start:auto;display:flex;gap:10px}#guard-profile-view .gp-edit,#guard-profile-view .gp-delete{min-height:44px;border-radius:10px;padding:10px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#1c3d59;color:#fff;border:1px solid #1c3d59;font-weight:700}#guard-profile-view .gp-delete{color:#ba4049;background:#fff;border-color:#e8bfc3;font-weight:500}#guard-profile-view .gp-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 28px;background:#1d3c57;border-radius:18px;color:#fff;min-height:156px}#guard-profile-view .gp-identity{display:flex;align-items:center;gap:18px;min-width:0}#guard-profile-view .gp-avatar{width:76px;height:76px;background:#305b7b;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-weight:750;font-size:26px}#guard-profile-view .gp-identity h1{font-size:24px;font-weight:800;line-height:1.4}#guard-profile-view .gp-identity p{font-size:16px;color:#c4d4e0;margin-top:8px}#guard-profile-view .gp-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}#guard-profile-view .gp-chips span{background:#2b5372;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:650}#guard-profile-view .gp-mini-stats{display:flex;gap:8px;flex-shrink:0}#guard-profile-view .gp-mini-stats>div{min-width:112px;max-width:145px;padding:10px 14px;background:#fff;border:1px solid #e2e8ee;border-radius:12px;display:grid;gap:4px}#guard-profile-view .gp-mini-stats small{color:#82909b;font-size:11px}#guard-profile-view .gp-mini-stats strong{font-size:14px}#guard-profile-view [data-tone=green]{--gp-color:#288856;--gp-light:#f1f9f4;--gp-border:#cde7d8}#guard-profile-view [data-tone=orange]{--gp-color:#bc741f;--gp-light:#fff6ec;--gp-border:#f0d7b9}#guard-profile-view [data-tone=red]{--gp-color:#b43c47;--gp-light:#fff0f1;--gp-border:#edc2c8}#guard-profile-view [data-tone=blue]{--gp-color:#316ba8;--gp-light:#e9f1fc;--gp-border:#cedff1}#guard-profile-view [data-tone=purple]{--gp-color:#7551aa;--gp-light:#f1ebf9;--gp-border:#dfd2f0}#guard-profile-view [data-tone=neutral],#guard-profile-view [data-tone=navy]{--gp-color:#365568;--gp-light:#edf2f5;--gp-border:#d4e0e8}#guard-profile-view .gp-mini-stats strong{color:var(--gp-color)}#guard-profile-view .gp-quick-actions{display:flex;gap:12px;margin:18px 0 22px}#guard-profile-view .gp-quick-actions button{background:#fff;border:1px solid #d8e2ec;border-radius:13px;min-height:48px;padding:7px 12px;display:flex;align-items:center;gap:9px;color:#24425a}#guard-profile-view .gp-quick-actions button>span{display:grid;place-items:center;padding:7px;border-radius:9px;background:var(--gp-light);color:var(--gp-color)}#guard-profile-view .gp-tabs{display:flex;border-bottom:1px solid #d5dfe8;gap:18px;margin-bottom:20px;overflow:auto}#guard-profile-view .gp-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:12px 10px;white-space:nowrap;color:#5a7186;font-weight:600;min-height:44px}#guard-profile-view .gp-tabs button[aria-selected=true]{border-bottom-color:#254b6b;color:#173d5e;font-weight:800}#guard-profile-view .gp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}#guard-profile-view .gp-grid[data-tab=overview]{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:'personal licenses training';align-items:stretch}#guard-profile-view .gp-grid[data-tab=overview] .gp-personal{grid-area:personal}#guard-profile-view .gp-grid[data-tab=overview] .gp-licenses{grid-area:licenses}#guard-profile-view .gp-grid[data-tab=overview] .gp-training{grid-area:training}#guard-profile-view .gp-grid:not([data-tab=overview]){grid-template-columns:1fr}#guard-profile-view .gp-panel{padding:20px;border:1px solid #d5e0ea;background:#fff;border-radius:17px;min-width:0}#guard-profile-view .gp-panel h3{margin-bottom:18px}#guard-profile-view .gp-panel-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}#guard-profile-view .gp-text-button{background:none;border:0;color:#3474b3;font-size:12px;padding:0;min-height:32px;text-align:start}#guard-profile-view dl{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin:0}#guard-profile-view dt{color:#8191a0;font-size:12px;margin-bottom:3px}#guard-profile-view dd{margin:0;font-size:14px;font-weight:650;overflow-wrap:anywhere}#guard-profile-view .gp-license{display:flex;align-items:center;gap:14px;border:1px solid var(--gp-border);background:var(--gp-light);border-radius:14px;padding:16px;margin-top:12px;min-width:0}#guard-profile-view .gp-license h4{font-size:15px;font-weight:750}#guard-profile-view .gp-license-text{min-width:0;flex:1}#guard-profile-view .gp-license p{font-size:12px;color:var(--gp-color);line-height:1.8}#guard-profile-view .gp-license small{display:block;font-size:11px;color:#6c8497;margin-top:3px}#guard-profile-view .gp-status{display:inline-block;color:var(--gp-color);background:#ffffffbd;padding:2px 8px;font-size:11px;border-radius:20px;margin-block:5px}#guard-profile-view .gp-days-ring{flex-shrink:0;display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:conic-gradient(var(--gp-color) var(--gp-ring),#dfe7ed 0);padding:5px}#guard-profile-view .gp-days-ring>span{background:var(--gp-light);width:100%;height:100%;border-radius:50%;display:grid;align-content:center;text-align:center;color:var(--gp-color);font-size:17px;font-weight:750;line-height:1.3}#guard-profile-view .gp-days-ring small{font-size:9px;margin:0}#guard-profile-view .gp-training-card,#guard-profile-view .gp-leave-card{display:grid;gap:7px;border-radius:12px;padding:16px;margin-bottom:14px;background:#f0eaf9}#guard-profile-view .gp-training-card>small{color:#8d74b2}#guard-profile-view .gp-training-card p,#guard-profile-view .gp-leave-card p{font-size:12px;color:#687e91}#guard-profile-view .gp-leave-card{background:var(--gp-light);color:var(--gp-color)}#guard-profile-view .gp-notes{background:#f7f9fb;padding:10px;border-radius:8px;white-space:pre-wrap;margin-top:5px!important;margin-bottom:12px!important}#guard-profile-view .gp-muted{font-size:12px;color:#8192a0;line-height:1.8;margin-bottom:14px}#guard-profile-view .gp-timeline{list-style:none;padding:0 13px 0 0;margin:14px 0 0;border-inline-start:2px solid #e4ebf1}#guard-profile-view .gp-timeline li{position:relative;padding:0 6px 18px}#guard-profile-view .gp-timeline li:before{content:'';position:absolute;inset-inline-start:-19px;top:5px;width:10px;height:10px;background:var(--gp-color);border:2px solid #fff;border-radius:50%}#guard-profile-view .gp-timeline small{font-size:11px;color:#7b8c9c}#guard-profile-view .gp-timeline p{font-size:13px;margin-top:4px;overflow-wrap:anywhere}#guard-profile-view .gp-files{display:grid;gap:12px;list-style:none;padding:0;margin:0}#guard-profile-view .gp-files li{display:flex;align-items:center;gap:10px;border:1px solid #e2e8ef;border-radius:12px;padding:10px;min-width:0}#guard-profile-view .gp-files strong{font-size:13px}#guard-profile-view .gp-files small{display:block;font-size:11px;color:#7a8da0;overflow-wrap:anywhere}#guard-profile-view .gp-file-icon{background:#edf3f7;padding:9px;border-radius:9px;display:grid;place-items:center}#guard-profile-view .gp-file-view{margin-inline-start:auto;border:1px solid #d6e2ec;background:white;min-width:40px;min-height:40px;border-radius:10px;display:grid;place-items:center;color:#285578}#guard-profile-view .gp-mobile-delete{display:none}#guard-profile-view .gp-additional{grid-column:1/-1}
@media(min-width:768px) and (max-width:1100px){#guard-profile-view .gp-hero{flex-wrap:wrap}#guard-profile-view .gp-mini-stats{width:100%}#guard-profile-view .gp-mini-stats>div{flex:1;max-width:none}#guard-profile-view .gp-page{padding:24px}#guard-profile-view .gp-grid{gap:12px}#guard-profile-view .gp-panel{padding:15px}#guard-profile-view .gp-license{padding:10px;gap:8px}#guard-profile-view .gp-days-ring{width:52px;height:52px}}
@media(max-width:767px){#guard-profile-view .gp-page{padding:0 0 24px}#guard-profile-view .gp-topbar{background:#1d3c57;color:#fff;margin:0;padding:12px 16px;gap:10px}#guard-profile-view .gp-topbar>div:first-child{flex:1;text-align:center}#guard-profile-view .gp-topbar small{display:none}#guard-profile-view .gp-topbar h2{font-size:15px}#guard-profile-view .gp-back{width:40px;height:40px;color:#d5e3ed;background:#2b5271;border:0}#guard-profile-view .gp-top-actions{margin:0}#guard-profile-view .gp-top-actions .gp-delete{display:none}#guard-profile-view .gp-edit{background:#fff;color:#294c69;border-color:#d7e2eb;font-size:12px;min-height:38px;padding:6px 9px}#guard-profile-view .gp-edit svg{display:none}#guard-profile-view .gp-hero{border-radius:0;padding:8px 16px 20px;display:block}#guard-profile-view .gp-identity{gap:12px}#guard-profile-view .gp-avatar{width:54px;height:54px;font-size:20px}#guard-profile-view .gp-identity h1{font-size:17px}#guard-profile-view .gp-identity p{font-size:13px;margin-top:3px}#guard-profile-view .gp-chips{gap:4px;margin-top:7px}#guard-profile-view .gp-chips span{font-size:10px;padding:2px 5px}#guard-profile-view .gp-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:15px}#guard-profile-view .gp-mini-stats>div{min-width:0;max-width:none;padding:7px 9px;border-radius:9px}#guard-profile-view .gp-mini-stats strong{font-size:12px}#guard-profile-view .gp-quick-actions{margin:14px 16px 8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#guard-profile-view .gp-quick-actions button{min-height:72px;padding:8px 3px;flex-direction:column;font-size:11px;border-radius:12px;gap:5px}#guard-profile-view .gp-quick-actions button>span{padding:6px}#guard-profile-view .gp-tabs{margin:0 16px 12px;gap:3px}#guard-profile-view .gp-tabs button{font-size:12px;padding:9px 7px}#guard-profile-view .gp-grid,#guard-profile-view .gp-grid[data-tab=overview]{margin:0 16px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;grid-template-areas:'personal' 'licenses' 'training'}#guard-profile-view .gp-grid:not([data-tab=overview]){grid-template-areas:none}#guard-profile-view .gp-panel{border-radius:13px;padding:16px}#guard-profile-view h3{font-size:15px}#guard-profile-view dl{display:block}#guard-profile-view dl>div{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:10px 0;border-bottom:1px solid #eef2f5}#guard-profile-view dd{font-size:13px;text-align:end}#guard-profile-view dt{font-size:12px;flex-shrink:0}#guard-profile-view .gp-license{flex-direction:row;gap:16px;padding:14px}#guard-profile-view .gp-days-ring{width:58px;height:58px}#guard-profile-view .gp-mobile-delete{display:block;width:calc(100% - 32px);margin:16px 16px 0;min-height:44px}#guard-profile-view .gp-grid[data-tab=overview] .gp-additional{grid-column:auto}}

body.guard-profile-open #workspace-main>:not(#guard-profile-view):not(#notice){display:none!important}
#guard-profile-view{position:relative;inset:auto;height:auto;min-height:100dvh;max-height:none;overflow:visible;background:transparent}#guard-profile-view[hidden]{display:none!important}
#guard-profile-view .gp-page{padding:0 0 30px}#guard-profile-view .gp-topbar{background:#fffffff0;border-radius:12px;padding:12px 16px}#guard-profile-view .gp-tabs{background:#fffffff0;border-radius:10px;padding-inline:10px}#guard-profile-view .gp-panel{background:#fff}#guard-profile-view .gp-timeline p{overflow-wrap:anywhere}
@media(min-width:768px) and (max-width:1350px){#guard-profile-view .gp-hero{flex-wrap:wrap}#guard-profile-view .gp-mini-stats{width:100%}#guard-profile-view .gp-mini-stats>div{flex:1;max-width:none}#guard-profile-view .gp-grid[data-tab=overview]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'personal licenses' 'training training'}}
#record-form[data-kind=guards] [data-fixed-uae] .phone-country-input{grid-template-columns:70px minmax(0,1fr)}#record-form[data-kind=guards] .phone-fixed-code{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #cfd9e7;border-radius:8px;background:#f4f7fa}

#guard-profile-view .gp-file-actions{display:flex;gap:6px;align-items:center}#guard-profile-view .gp-file-delete{min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid #f0c7cd;border-radius:10px;color:#b43c47;background:#fff0f1}#guard-profile-view .gp-file-delete:disabled{opacity:.45;cursor:default}#guard-profile-view .gp-file-pending{color:#9a6519;background:#fff5de;border-radius:6px;padding:3px 6px}.guard-attachment-trash{margin-top:24px}.guard-attachment-trash h3{padding:16px}

body.guard-profile-open #notice:not([hidden]){position:sticky;top:12px;z-index:20}

#guard-profile-view .gp-quick-actions {
  justify-content: center;
  justify-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 680px);
  margin-inline: auto;
}
#guard-profile-view .gp-quick-actions > button {
  justify-content: center;
  min-height: 52px;
  color: #17344b;
  font-weight: 700;
}
#guard-profile-view .gp-quick-actions > button svg {
  stroke-width: 2;
}

/* Guard profile: a license marked «غير صادرة» or «ملغاة» that still has an expiry date asks to be checked */
.gp-license-check{display:inline-block;margin-top:2px;padding:4px 8px;border-radius:8px;background:#fff6e4;border:1px solid #ebc67c;color:#78500c;font-size:12.5px;font-weight:700;line-height:1.5}
