/* Esposito B2B — private company portal. Alpha 7. */
.egp-shell{--egp-red:var(--eg-brand,#e91d2d);--egp-dark:#111a24;--egp-muted:#657180;display:grid;grid-template-columns:260px minmax(0,1fr);min-height:850px;align-items:stretch;background:#f3f5f8;color:#121b26;font:inherit;box-shadow:0 0 0 1px #e3e6ea;max-width:1680px;margin:0 auto}
.egp-shell *, .egp-shell *::before, .egp-shell *::after{box-sizing:border-box}
.egp-shell h1,.egp-shell h2,.egp-shell p{color:inherit}
.egp-shell a{color:var(--egp-red);text-decoration:none}
.egp-shell a:focus-visible,.egp-shell button:focus-visible,.egp-shell input:focus-visible,.egp-shell select:focus-visible,.egp-shell textarea:focus-visible{outline:3px solid #295ad3;outline-offset:3px}
.egp-sidebar{background:linear-gradient(180deg,#17222f 0%,#0f1824 100%);color:#eaf0f6;padding:30px 12px;display:flex;flex-direction:column;gap:22px;min-width:0}
.egp-company{display:flex;align-items:center;gap:12px;padding:8px 9px 22px;border-bottom:1px solid #ffffff22}
.egp-company-mark{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;background:linear-gradient(145deg,var(--egp-red),#8c0412);border:2px solid #ffffff75;border-radius:50%;font-size:25px;font-weight:900;color:#fff}
.egp-company strong{display:block;font-size:15px;line-height:1.2;color:#fff;overflow-wrap:anywhere}
.egp-company small{display:block;font-size:11px;color:#c5d1dc;padding:5px 0}
.egp-status{display:inline-block;background:#13843c;color:#fff;padding:4px 8px;border-radius:4px;font-size:10px;font-weight:800}
.egp-sidebar nav{display:grid;gap:5px}
.egp-sidebar nav a{display:flex;align-items:center;gap:11px;color:#e5edf4;border-radius:8px;padding:11px 12px;font-size:13px;font-weight:700}
.egp-sidebar nav a:hover,.egp-sidebar nav a.is-active{background:linear-gradient(95deg,var(--egp-red),#c7081c);color:#fff}
.egp-sidebar nav a>span{font-size:20px;line-height:1;min-width:22px;text-align:center}
.egp-sidebar-support{border:1px solid #ffffff55;border-radius:12px;padding:16px;margin:18px 3px 0;background:#ffffff08}
.egp-sidebar-support strong{font-size:15px;color:#fff}
.egp-sidebar-support p{font-size:12px;line-height:1.5;color:#cfdae3;margin:6px 0 12px}
.egp-sidebar-support a{display:block;text-align:center;border-radius:7px;background:var(--egp-red);color:#fff;padding:10px;font-weight:800;font-size:12px}
.egp-main{padding:26px 24px 42px;min-width:0}
.egp-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.egp-eyebrow{font-size:10px;letter-spacing:.14em;color:var(--egp-red);font-weight:850}
.egp-heading h1{font-size:clamp(23px,2vw,32px);line-height:1.12;letter-spacing:-.03em;margin:6px 0 6px;font-weight:850}
.egp-heading p{color:var(--egp-muted);font-size:13px;line-height:1.45;margin:0}
.egp-button,.egp-button-outline{border-radius:8px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;min-height:42px;cursor:pointer}
.egp-shell a.egp-button,.egp-button{background:linear-gradient(180deg,#f31830,var(--egp-red));color:#fff;border:0}
.egp-shell a.egp-button-outline{background:#fff;color:#1b2835;border:1px solid #d8dee5}
.egp-panel,.egp-stat{border:1px solid #e1e6ec;border-radius:14px;background:#fff;box-shadow:0 5px 18px #1523300a;min-width:0}
.egp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 14px}
.egp-shell a.egp-stat{display:flex;align-items:center;gap:12px;padding:18px 15px;color:#101722}
.egp-stat-icon{flex:none;width:46px;height:46px;display:grid;place-items:center;font-size:26px;color:#fff;border-radius:11px;background:linear-gradient(145deg,#fa3347,#c00018)}
.egp-stat small{color:#3e4752;display:block;font-size:11px;line-height:1.25;margin-bottom:4px;font-weight:750}
.egp-stat strong{font-size:clamp(16px,1.6vw,24px);font-weight:850;letter-spacing:-.025em;line-height:1.1;display:block;overflow-wrap:anywhere}
.egp-feature-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:13px;margin-bottom:13px}
.egp-panel{padding:18px 16px}
.egp-panel h2{font-size:18px;font-weight:850;margin:0 0 14px;letter-spacing:-.025em}
.egp-panel p{font-size:13px;line-height:1.5;color:#576575}
.egp-small{font-size:11px!important;color:var(--egp-muted)!important}
.egp-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;height:174px;margin:12px 8px 0;padding-top:12px}
.egp-bar-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.egp-bar{max-height:130px;width:100%;max-width:52px;background:linear-gradient(0deg,#e81731,#ff9aa5);border-radius:5px 5px 0 0;min-height:4px}
.egp-bar-column small{font-size:10px;font-weight:750;color:#6a7581}
.egp-bar-value{font-size:10px;font-weight:750;color:#364150;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
.egp-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.egp-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;background:#f9fafb;border:1px solid #d8dfe6;border-radius:10px;min-height:98px;padding:12px 6px;font-weight:750;font-size:11px;color:#17232c}
.egp-actions a:hover{background:#fff3f4;border-color:#f4a6b2}
.egp-actions a span{color:var(--egp-red);font-size:28px;line-height:1}
.egp-tables{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}
.egp-panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.egp-panel-header h2{margin-bottom:10px}
.egp-panel-header a{font-size:12px;font-weight:800;white-space:nowrap}
.egp-table-scroll{overflow-x:auto;max-width:100%}
.egp-table{width:100%;border-collapse:collapse;min-width:450px;border-spacing:0}
.egp-table th{font-size:10px;text-align:left;background:#eef1f4;border-radius:3px;padding:10px 9px;color:#34404d}
.egp-table td{font-size:11px;padding:11px 9px;border-bottom:1px solid #edf0f3;color:#29333d;vertical-align:middle}
.egp-table td strong{color:var(--egp-red);font-weight:850}
.egp-table td a{font-weight:800}
.egp-table tr:last-child td{border-bottom:0}
.egp-chip{display:inline-block;background:#eaf2fa;color:#185c97;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:750;white-space:nowrap}
.egp-chip-paid{background:#dcf6e4;color:#156c34}
.egp-chip-overdue{background:#ffe0e2;color:#9f1126}
.egp-chip-open{background:#fff0d8;color:#865400}
.egp-dashboard-foot{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.egp-dashboard-foot a{font-weight:850;font-size:12px}
.egp-two-col{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
.egp-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
.egp-profile-grid div{padding-bottom:11px;border-bottom:1px solid #edf0f3}
.egp-profile-grid dt{font-size:11px;color:#6b7785;margin-bottom:4px}
.egp-profile-grid dd{font-size:13px;font-weight:750;margin:0;overflow-wrap:anywhere}
.egp-form{display:grid;gap:12px}
.egp-form label,.egp-message-form label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#2d3844}
.egp-form input,.egp-form select,.egp-message-form textarea{border:1px solid #cbd4de;border-radius:7px;width:100%;background:#fff;color:#12212e;font-size:13px;padding:11px;min-height:42px}
.egp-message-form textarea{resize:vertical}
.egp-email{display:block;color:#566271;font-size:10px;margin-top:4px}
.egp-messages{max-height:600px;overflow:auto;display:grid;gap:10px;margin:20px 0;padding:4px}
.egp-message{padding:14px 16px;border-radius:12px;background:#f3f6fa;max-width:86%;font-size:13px;line-height:1.45}
.egp-message.is-client{margin-left:auto;background:#fff0f1;border:1px solid #ffd1d6}
.egp-message.is-staff{margin-right:auto;border:1px solid #dbe3ed}
.egp-message strong{font-size:12px;display:inline-block;margin-right:8px}
.egp-message time{font-size:10px;color:#74808d}
.egp-message p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#27323e}
.egp-message-form{border-top:1px solid #e0e4e9;padding-top:18px;display:grid;gap:10px}
.egp-message-form button,.egp-form button{justify-self:start}
.egp-notice{background:#e3f7e9;color:#11572b;padding:11px 14px;border-radius:8px;margin-bottom:14px;font-weight:750;font-size:12px}
.egp-notice-error{background:#fff0f0;color:#aa1320}
@media(max-width:1250px){.egp-shell{grid-template-columns:230px minmax(0,1fr)}.egp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.egp-tables{grid-template-columns:1fr}}
@media(max-width:850px){.egp-shell{display:block}.egp-sidebar{padding:12px;gap:12px}.egp-company{padding:4px 4px 10px}.egp-sidebar nav{display:flex;overflow-x:auto;gap:4px;padding-bottom:4px}.egp-sidebar nav a{flex:0 0 auto;white-space:nowrap;padding:9px 10px}.egp-sidebar-support{display:none}.egp-main{padding:20px 14px 32px}.egp-feature-grid,.egp-two-col{grid-template-columns:1fr}}
@media(max-width:520px){.egp-heading{align-items:flex-start;flex-direction:column}.egp-stats{grid-template-columns:1fr 1fr;gap:8px}.egp-shell a.egp-stat{padding:12px 9px;gap:7px}.egp-stat-icon{width:33px;height:33px;font-size:18px}.egp-stat strong{font-size:16px}.egp-actions{grid-template-columns:repeat(2,1fr)}.egp-profile-grid,.egp-dashboard-foot{grid-template-columns:1fr}.egp-panel{padding:14px 11px}.egp-chart{gap:4px}}
@media(prefers-reduced-motion:reduce){.egp-shell *, .egp-shell *::before,.egp-shell *::after{scroll-behavior:auto!important;transition:none!important}}
.egp-order-details{background:#f8f9fb;border:1px solid #dfe5ed;border-radius:10px;padding:15px;margin-bottom:18px}
.egp-order-details h3{font-size:16px;margin:0 0 12px}
.egp-order-details p{margin:10px 0 0}
.egp-suspend{cursor:pointer;background:#fff;border:1px solid #d6dde6;border-radius:5px;color:#9a1e32;padding:5px 8px;font-size:11px;font-weight:750}
.egp-suspend:hover{background:#fff3f3}
