/* =========================================================
   SOFTITPRO SWITCHBOARD — VERSION 3
   Executive Entity Dashboard
========================================================= */

:root{
    --blue:#0b8f4d;
    --blue-dark:#076b39;
    --blue-soft:#eaf8f0;
    --green:#129b4b;
    --green-dark:#08753a;
    --green-soft:#edf9f1;
    --red:#d92335;
    --red-dark:#b31325;
    --red-soft:#fff0f2;
    --purple:#6654c9;
    --purple-dark:#4f3ba9;
    --purple-soft:#f1efff;
    --ink:#0a2864;
    --muted:#54698e;
    --line:#cbdcf0;
    --page:#eef6ff;
    --white:#fff;
    --shadow:0 5px 18px rgba(20,55,100,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    background:
        radial-gradient(circle at 5% 15%,rgba(76,170,235,.10),transparent 22%),
        radial-gradient(circle at 96% 75%,rgba(103,92,210,.08),transparent 24%),
        var(--page);
    color:var(--ink);
    font-family:"Segoe UI",Arial,sans-serif;
}
a{text-decoration:none;color:inherit}

/* Header */
.masthead{
    min-height:153px;
    display:flex;
    align-items:stretch;
    background:linear-gradient(108deg,#fafdff 0%,#f5fbff 53%,#dff4ff 100%);
    border-bottom:1px solid #cfe3f6;
    overflow:hidden;
}
.masthead-left{
    flex:1;
    display:flex;
    align-items:center;
    padding:17px 28px 16px 44px;
    min-width:0;
}
.brand-lockup{display:flex;align-items:center;gap:13px;min-width:340px}
.brand-logo{width:300px;height:80px;display:flex;align-items:center}
.brand-logo img{width:100%;height:100%;object-fit:contain;object-position:left center}
.brand-copy{display:none}
.masthead-divider{
    width:1px;height:65px;background:#173a78;margin:0 34px 0 20px;
}
.page-title{padding-top:1px}
.title-small{
    font-size:25px;font-weight:800;line-height:1.0;letter-spacing:.02em;
}
.title-large{
    font-size:48px;font-weight:900;line-height:.95;letter-spacing:-.02em;
}
.title-sub{
    font-size:16px;color:#315b9a;margin-top:8px;white-space:nowrap;
}
.title-sub strong{font-weight:600}
.masthead-visual{
    width:31%;min-width:310px;position:relative;overflow:hidden;
}
.building-photo{
    position:absolute;inset:0;
    background-image:url("../images/header-building.jpg");
    background-size:cover;background-position:center;
    filter:saturate(1.05);
}
.building-overlay{
    position:absolute;inset:0;
    background:linear-gradient(90deg,rgba(225,245,255,.20),rgba(0,117,174,.34));
}
.people-message{
    position:absolute;right:24px;top:23px;color:#fff;text-align:left;
    font-size:17px;font-weight:800;line-height:1.03;letter-spacing:.02em;
    text-shadow:0 1px 3px rgba(0,45,80,.25);
}
.people-message span{display:block}
.people-message small{
    display:block;font-size:14px;font-weight:600;line-height:1.05;margin-top:5px;
}

/* Dashboard */
.dashboard{padding:16px 18px 20px}
.entity-row{
    display:grid;
    grid-template-columns:1.05fr 1.15fr .86fr;
    gap:14px;
}
.entity-panel{
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    background:rgba(255,255,255,.72);
    box-shadow:var(--shadow);
}
.entity-header{
    min-height:91px;
    color:#fff;
    padding:13px 16px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.entity-softitpro{border-color:#4fbd7b}
.entity-softitpro .entity-header{background:linear-gradient(100deg,#08743d,#10a451)}
.entity-diabetes{border-color:#e78a94}
.entity-diabetes .entity-header{background:linear-gradient(100deg,#a91528,#d72b3e)}
.entity-natrapharm{border-color:#e66e79}
.entity-natrapharm .entity-header{background:linear-gradient(100deg,#981322,#c61f32)}
.entity-ecspi{border-color:#4e9a72}
.entity-ecspi .entity-header{background:linear-gradient(100deg,#0a4930,#126a45)}
.entity-demos{border-color:#79a9dc;margin-top:14px}
.entity-demos .entity-header{background:linear-gradient(100deg,#174f9c,#3976c7)}

.entity-heading-main{display:flex;align-items:center;gap:13px;min-width:0}
.entity-symbol{
    width:55px;height:55px;flex:0 0 55px;
    display:flex;align-items:center;justify-content:center;
    font-size:35px;color:#fff;
}
.entity-header h2{
    margin:0;font-size:25px;line-height:1.05;font-weight:800;letter-spacing:-.02em;
}
.entity-header p{
    margin:5px 0 0;font-size:15px;line-height:1.1;color:rgba(255,255,255,.96);
}
.entity-description{
    font-size:12px;line-height:1.45;text-align:left;max-width:140px;color:rgba(255,255,255,.96);
}
.wide-description{max-width:none;margin-right:8px}
.entity-body{padding:14px 17px 17px;background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(236,247,255,.68))}

/* System tiles */
.system-grid{display:grid;gap:11px}
.soft-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.diabetes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.system-tile{
    min-height:215px;
    background:rgba(255,255,255,.64);
    border:1px solid rgba(190,214,236,.55);
    border-radius:13px;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    padding:18px 10px 12px;
    position:relative;
    transition:.18s ease;
}
.system-tile:hover{
    transform:translateY(-2px);
    background:#fff;
    box-shadow:0 7px 18px rgba(31,85,140,.11);
}
.tile-icon{
    width:68px;height:68px;display:flex;align-items:center;justify-content:center;
    font-size:47px;margin-bottom:9px;
}
.tile-icon.blue{color:#0a9650}.tile-icon.green{color:#079746}
.system-tile h3{
    font-size:17px;line-height:1.1;margin:0;font-weight:800;color:#0b2c71;
}
.system-tile p{
    margin:8px 0 0;font-size:13px;line-height:1.3;color:#183e80;
}
.tile-arrow{
    width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:15px;margin-top:auto;
}
.blue-arrow{background:linear-gradient(135deg,#08743d,#18ad59)}
.green-arrow{background:linear-gradient(135deg,#0a9650,#21b86c)}

/* Natrapharm */
.natra-body{
    padding:14px 16px 16px;
    background:linear-gradient(180deg,#fff8f9,#fff2f4);
}
.natra-tile-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.natra-tile{
    min-height:158px;
    border-radius:12px;
    border:1px solid #efd2d7;
    background:rgba(255,255,255,.86);
    padding:13px 14px 12px;
    position:relative;
    transition:.18s ease;
    overflow:hidden;
}
.natra-tile:hover{
    transform:translateY(-2px);
    background:#fff;
    box-shadow:0 7px 18px rgba(137,26,42,.11);
}
.natra-main-tile{
    grid-column:1/-1;
    min-height:174px;
    background:linear-gradient(135deg,#fff,#fff4f5);
}
.natra-tile-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:45px;
}
.natra-logo-wrap{
    height:42px;
    max-width:165px;
    display:flex;
    align-items:center;
}
.natra-logo-wrap img{
    max-width:100%;
    max-height:42px;
    object-fit:contain;
}
.society-logo{
    width:48px;
    height:48px;
    border-radius:9px;
    background:#fff;
    border:1px solid #f0d8dc;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.society-logo img{
    width:38px;
    height:38px;
    object-fit:contain;
}
.future-logo{
    color:#a15d68;
    font-size:23px;
}
.natra-tile-icon{
    width:43px;
    height:43px;
    border-radius:10px;
    background:#ffe1e5;
    color:#c51e32;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}
.natra-tile-content{
    padding-right:32px;
    margin-top:8px;
}
.natra-tile-content h3{
    margin:0;
    font-size:18px;
    line-height:1.1;
    font-weight:850;
    color:#8f1728;
}
.natra-tile-content p{
    margin:6px 0 0;
    font-size:10px;
    line-height:1.35;
    color:#6b3a43;
}
.natra-tile-arrow{
    position:absolute;
    right:12px;
    bottom:12px;
    width:31px;
    height:31px;
    border-radius:50%;
    background:#c81f33;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
}
.muted-icon{
    background:#f5e8ea;
    color:#a56b74;
}
.muted-arrow{
    background:#b77b84;
}
.natra-future-tile{
    opacity:.9;
}

/* ECSPI */
.entity-ecspi{margin-top:14px}
.ecspi-body{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;
    background:linear-gradient(180deg,#eff9f3,#eaf6ef);
}
.erp-card{
    min-height:124px;border-radius:12px;background:rgba(255,255,255,.84);
    border:1px solid #d9e4f5;display:flex;align-items:center;gap:14px;padding:15px 14px;
    position:relative;
}
.erp-icon{
    width:64px;height:64px;flex:0 0 64px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;color:#fff;font-size:32px;
}
.erp-icon.hu{background:#0a6b43}.erp-icon.pay{background:#159b55}.erp-icon.pro{background:#245f42}.erp-icon.qr{background:#16804f}
.erp-copy{min-width:0;padding-right:25px}
.erp-copy h3{font-size:25px;margin:0 0 2px;font-weight:850;line-height:1;color:#104391}
.erp-copy strong{display:block;font-size:12px;color:#173d7b;margin-bottom:5px}
.erp-copy p{font-size:10px;line-height:1.35;margin:0;color:#183c78}
.erp-card:nth-child(2) .erp-copy h3{color:#113f84}
.erp-card:nth-child(3) .erp-copy h3{color:#4f248d}
.erp-arrow{
    position:absolute;right:12px;width:34px;height:34px;border-radius:50%;
    color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;
}
.hu-arrow{background:#0a7448}.pay-arrow{background:#159b55}.pro-arrow{background:#2b7652}.qr-arrow{background:#1d7650}

/* Demos */
.demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.demo-card{
    min-height:118px;border:1px solid #d5e3f4;border-radius:12px;background:#fff;
    display:flex;align-items:center;gap:15px;padding:15px 17px;position:relative;
}
.demo-icon{
    width:55px;height:55px;border-radius:12px;background:#eaf4ff;color:#1769c1;
    display:flex;align-items:center;justify-content:center;font-size:26px;flex:0 0 55px;
}
.demo-card h3{margin:0;font-size:17px;font-weight:800;color:#113b7d}
.demo-card p{font-size:11px;color:#42608e;margin:4px 0 7px}
.demo-card span{font-size:8px;font-weight:800;letter-spacing:.06em;color:#1769c1;background:#edf5ff;padding:4px 6px;border-radius:4px}
.demo-arrow{margin-left:auto;color:#9aa9bd;font-size:12px}

/* Bottom */
.bottom-section{margin-top:14px}
.bottom-grid{
    display:grid;grid-template-columns:1.7fr 1fr .82fr;gap:14px;
}
.bottom-panel{
    background:rgba(255,255,255,.75);
    border:1px solid #d1e1f1;border-radius:13px;overflow:hidden;
    min-height:170px;
}
.bottom-title{
    min-height:43px;padding:10px 17px;background:linear-gradient(90deg,#f0f6fd,#e6f0fb);
    border-bottom:1px solid #d7e5f2;display:flex;align-items:center;gap:10px;
    font-size:14px;font-weight:850;color:#143a7b;
}
.bottom-title i{font-size:18px}
.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;padding:11px}
.quick-item{
    min-height:93px;border:1px solid #dbe7f3;border-radius:10px;background:#fff;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
    color:#0b3276;font-size:10px;font-weight:700;text-align:center;
}
.quick-item i{font-size:25px}
.quick-item:hover{background:#f4f9ff}
.announcement{display:flex;gap:9px;padding:10px 14px 0}
.announcement-marker{
    width:18px;height:18px;border-radius:50%;flex:0 0 18px;color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:8px;margin-top:1px;
}
.green-marker{background:#21ad54}.blue-marker{background:#287de2}.orange-marker{background:#ff8a00}
.announcement strong{font-size:10px;color:#173b79;display:block;line-height:1.25}
.announcement p{font-size:9px;color:#526c95;margin:3px 0 0;line-height:1.25}
.status-item{
    display:flex;justify-content:space-between;align-items:center;padding:10px 14px 0;
    font-size:9px;color:#36527b;gap:10px;
}
.status-item strong{font-size:9px;color:#149643;font-weight:700}
.status-dot{display:inline-block;width:8px;height:8px;background:#18ad4c;border-radius:50%;margin-right:6px}

/* Footer */
.footer{
    border-top:1px solid #d3e2f1;background:rgba(255,255,255,.7);
    min-height:42px;display:flex;align-items:center;justify-content:space-between;
    padding:0 24px;color:#7086a5;font-size:9px;
}

/* Responsive */
@media(max-width:1250px){
    .ecspi-body{grid-template-columns:repeat(2,minmax(0,1fr))}

    .brand-logo{width:250px}
    .masthead-divider{margin-right:20px}
    .title-small{font-size:21px}.title-large{font-size:39px}.title-sub{font-size:13px}
    .entity-row{grid-template-columns:1fr 1fr}
    .entity-natrapharm{grid-column:1/-1}
    .bottom-grid{grid-template-columns:1fr 1fr}
    .status-panel{grid-column:1/-1}
}
@media(max-width:850px){
    .ecspi-body{grid-template-columns:1fr}

    .natra-tile-grid{grid-template-columns:1fr}
    .natra-main-tile{grid-column:auto}

    .masthead{display:block}
    .masthead-left{padding:14px 18px}
    .brand-lockup{min-width:230px}
    .brand-logo{width:210px;height:64px}
    .masthead-divider{margin:0 15px}
    .title-small{font-size:17px}.title-large{font-size:31px}.title-sub{font-size:11px}
    .masthead-visual{height:95px;width:100%}
    .people-message{right:18px;top:13px;font-size:14px}
    .entity-row{grid-template-columns:1fr}
    .entity-natrapharm{grid-column:auto}
    .diabetes-grid{grid-template-columns:repeat(3,1fr)}
    .bottom-grid{grid-template-columns:1fr}
    .status-panel{grid-column:auto}
}
@media(max-width:600px){
    .dashboard{padding:9px}
    .entity-header{align-items:flex-start;flex-direction:column}
    .entity-description{max-width:none}
    .soft-grid,.diabetes-grid,.demo-grid{grid-template-columns:1fr}
    .system-tile{min-height:185px}
    .natra-mini-row{grid-template-columns:1fr}
    .quick-grid{grid-template-columns:repeat(3,1fr)}
    .masthead-left{flex-direction:column;align-items:flex-start;gap:8px}
    .masthead-divider{display:none}
    .title-sub{white-space:normal}
    .footer{flex-direction:column;gap:3px;padding:8px}
}
