/* GREEN MILES | Deep Rescue. Scoped to profiles, service centers and role management.
   No hardcoded relative assets, external dependencies or CSS affecting data grid behavior. */
:root{--gmt-deep-ink:#16364a;--gmt-deep-accent:#15677b;--gmt-deep-border:#dbe6ee;--gmt-deep-muted:#617589;--gmt-deep-surface:#fff}
.gmt-profile-page,.gmt-hub-shell,.gmt-role-center,.gmt-role-editor{font-family:var(--gmt-font-body,"Cairo","Noto Sans Arabic",sans-serif);color:var(--gmt-deep-ink);min-width:0}
.gmt-profile-page{max-width:1180px;margin-inline:auto;padding-block:28px 60px}
.gmt-profile-intro{display:flex;align-items:center;gap:20px;margin-bottom:18px;padding:22px 27px;background:linear-gradient(115deg,#14364f,#217084);color:#fff;border-radius:22px}
.gmt-profile-intro h1{color:#fff;font-size:clamp(24px,2.5vw,35px);margin:0 0 5px}
.gmt-profile-intro p{color:#e5f2f6;margin:0}
.gmt-profile-avatar{width:75px;height:75px;display:grid;place-items:center;border-radius:22px;background:#ffffff30;border:1px solid #ffffff60;color:#fff;font-size:37px;font-weight:800;flex-shrink:0}
.gmt-eyebrow{font-size:.75rem!important;letter-spacing:.05em;font-weight:800;color:var(--gmt-deep-accent);margin:0 0 8px}
.gmt-profile-intro .gmt-eyebrow{color:#fbd4a8}
.gmt-profile-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-block:14px 21px}
.gmt-profile-tabs a{background:#fff;color:#234860;border:1px solid var(--gmt-deep-border);border-radius:12px;padding:11px 16px;text-decoration:none;font-weight:750}
.gmt-profile-tabs a:hover,.gmt-profile-tabs a:focus-visible{border-color:var(--gmt-deep-accent);color:#055166}
.gmt-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px;align-items:start}
.gmt-profile-page .panel{border:1px solid var(--gmt-deep-border)!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(17,50,75,.035);padding:24px!important;margin-block:0 20px;min-width:0}
.gmt-profile-page .panel h2{font-size:clamp(19px,2vw,24px);margin:0 0 12px}
.gmt-profile-page .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.gmt-profile-page .field,.gmt-hub-shell .field,.gmt-role-center .field,.gmt-role-editor .field{min-width:0;display:flex;flex-direction:column;gap:7px;margin:0 0 13px}
.gmt-profile-page input,.gmt-hub-shell .field input,.gmt-hub-shell .field select,.gmt-hub-shell .field textarea,.gmt-role-center input,.gmt-role-editor input:not([type=checkbox]){width:100%;max-width:100%;box-sizing:border-box;border-radius:11px;border:1px solid #cddde6;padding:11px 12px;line-height:1.5;background:#fff;color:var(--gmt-deep-ink)}
.gmt-profile-page input:focus-visible,.gmt-hub-shell input:focus-visible,.gmt-hub-shell textarea:focus-visible,.gmt-hub-shell select:focus-visible,.gmt-role-center input:focus-visible,.gmt-role-editor input:focus-visible{outline:3px solid #97c8dc;outline-offset:1px}
.gmt-profile-page label,.gmt-hub-shell .field label,.gmt-role-center label,.gmt-role-editor label{font-weight:750;font-size:.93rem}
.gmt-profile-page .btn,.gmt-hub-shell .btn,.gmt-role-center .btn,.gmt-role-editor .btn{border-radius:11px!important;font-weight:750;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.gmt-profile-security-link{margin:18px 0 0}
.gmt-profile-security-link a{font-weight:700;color:#08718a}
.gmt-profile-session-form{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gmt-profile-session-form input{width:min(180px,100%)}
.gmt-profile-permissions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.gmt-profile-permissions span{border:1px solid var(--gmt-deep-border);background:#f6f9fb;padding:7px 10px;border-radius:8px;font-size:.85rem}
.gmt-hub-shell{max-width:1290px!important;margin-inline:auto;padding-block:20px 50px!important}
.gmt-hub-hero{padding:17px 23px!important;min-height:unset!important;max-height:none!important;display:block!important;background:linear-gradient(110deg,#14364f,#236879)!important;border-radius:18px!important}
.gmt-hub-hero h1{font-size:clamp(23px,2.5vw,31px)!important;margin:3px 0 5px!important}
.gmt-hub-hero p{font-size:.92rem!important;margin-bottom:9px!important}
.gmt-hub-hero .gmt-overline{font-size:.75rem!important}
.gmt-hub-nav-wrap{background:#fff;border:1px solid var(--gmt-deep-border);border-radius:15px;margin:16px 0 19px;box-shadow:0 8px 20px rgba(16,49,72,.035)}
.gmt-hub-nav-wrap>summary{padding:14px 20px;cursor:pointer;font-weight:850;font-size:1rem;list-style-position:inside;user-select:none}
.gmt-hub-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0!important;padding:0 16px 17px}
.gmt-hub-nav .btn{min-height:40px;font-size:.92rem!important;padding:9px 14px!important}
.gmt-hub-shell .panel{border-radius:18px!important;border:1px solid var(--gmt-deep-border)!important;box-shadow:0 10px 25px rgba(16,49,72,.045);padding:23px!important;margin:0 0 18px;min-width:0}
.gmt-hub-shell .panel h2{font-size:clamp(21px,2vw,26px)!important;margin:0 0 14px!important}
.gmt-hub-shell .panel>form{display:block;min-width:0}
.gmt-hub-shell .panel form>label{display:block;font-weight:750;margin:10px 0 6px}
.gmt-hub-shell .panel form>input:not([type=hidden]):not([type=checkbox]),.gmt-hub-shell .panel form>textarea,.gmt-hub-shell .panel form>select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin-bottom:13px;border:1px solid #cddde6;border-radius:11px;padding:11px 12px;line-height:1.55}
.gmt-hub-shell .panel form>textarea,.gmt-hub-shell .field textarea{min-height:105px;resize:vertical}
.gmt-hub-shell .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:13px 16px}
.gmt-hub-shell .field-grid .wide{grid-column:1 / -1}
.gmt-hub-actions,.gmt-hub-row-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.gmt-hub-row-actions form{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.gmt-hub-confirm{display:flex!important;align-items:center;gap:6px;white-space:nowrap}
.gmt-hub-confirm input{width:auto!important}
.gmt-hub-shell .table-wrap{overflow-x:auto;max-width:100%}
.gmt-hub-shell .data-table{min-width:620px}
.gmt-hub-empty{padding:27px 18px;text-align:center;background:#f3f8fb;border:1px dashed #adc8d7;border-radius:14px;color:#4d6574}
.gmt-hub-unavailable{max-width:900px;margin:40px auto}
.gmt-hub-unavailable .panel{padding:25px;border:2px solid #e7c8a0}
.gmt-hub-unavailable code{display:inline-block;max-width:100%;overflow-wrap:anywhere;direction:ltr}
.gmt-role-center,.gmt-role-editor{padding:22px!important;margin-top:19px!important}
.gmt-role-header{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap;margin-bottom:17px}
.gmt-role-header h2{margin:0 0 9px}
.gmt-role-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.gmt-role-summary>div{background:#f4f8fb;border:1px solid var(--gmt-deep-border);border-radius:13px;padding:14px;display:flex;flex-direction:column;gap:3px}
.gmt-role-summary strong{font-size:1.6rem;line-height:1.2;color:#123a56}
.gmt-role-summary span{font-size:.8rem;color:var(--gmt-deep-muted)}
.gmt-role-creator,.gmt-role-danger{border:1px solid var(--gmt-deep-border);border-radius:12px;margin:10px 0 17px;padding:0 16px;background:#fafcfd}
.gmt-role-creator>summary,.gmt-role-danger>summary{cursor:pointer;padding:13px 0;font-weight:800}
.gmt-role-creator[open]>summary,.gmt-role-danger[open]>summary{border-bottom:1px solid var(--gmt-deep-border);margin-bottom:15px}
.gmt-role-form{padding:5px 0 15px}
.gmt-role-form .field-grid,.gmt-role-danger .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gmt-roles-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.gmt-role-item{display:flex;flex-direction:column;gap:5px;padding:14px;background:#fff;border:1px solid var(--gmt-deep-border);border-radius:13px;color:var(--gmt-deep-ink);text-decoration:none;min-width:0}
.gmt-role-item:hover,.gmt-role-item:focus-visible{border-color:#288aa1;background:#f2f9fb}
.gmt-role-item.active{border-color:#145575;background:#e9f5fa}
.gmt-role-item-title{font-weight:850;line-height:1.5;overflow-wrap:anywhere}
.gmt-role-item-meta{font-size:.79rem;color:var(--gmt-deep-muted)}
.gmt-custom-mark{align-self:flex-start;font-size:.7rem;padding:2px 8px;border-radius:30px;background:#f2ead9;color:#66502f;font-weight:750}
.gmt-role-matrix th,.gmt-role-matrix td{text-align:center!important;padding:9px 12px!important}
.gmt-role-matrix th:first-child{text-align:start!important}
.gmt-matrix-toggle{display:inline-flex;justify-content:center;align-items:center;width:36px;height:32px;cursor:pointer}
.gmt-matrix-toggle input{width:18px;height:18px;accent-color:#0c6077}
.gmt-role-save{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;flex-wrap:wrap}
.gmt-role-danger{border-color:#e7b6b6;background:#fff9f9}
.gmt-role-danger>summary{color:#953d3d}
.gmt-role-center :focus-visible,.gmt-role-editor :focus-visible,.gmt-profile-page :focus-visible{outline:3px solid #8abdd5;outline-offset:2px}
@media(max-width:1000px){.gmt-roles-list{grid-template-columns:repeat(2,minmax(0,1fr))}.gmt-profile-grid{grid-template-columns:1fr}}
@media(max-width:670px){.gmt-profile-intro{padding:17px;gap:12px}.gmt-profile-avatar{width:56px;height:56px;font-size:28px}.gmt-profile-page .field-grid,.gmt-hub-shell .field-grid,.gmt-role-form .field-grid,.gmt-role-danger .field-grid{grid-template-columns:1fr}.gmt-roles-list{grid-template-columns:1fr}.gmt-role-summary{grid-template-columns:1fr 1fr}.gmt-hub-shell .panel,.gmt-profile-page .panel{padding:17px!important}.gmt-hub-hero{padding:17px!important}.gmt-hub-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gmt-hub-nav .btn{word-break:normal;white-space:normal}}
