/* Full-width WordPress integration for the CRM page */
body.kwcrm-fullscreen-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f7f9 !important;
}
body.kwcrm-fullscreen-page #wpadminbar {
    display: none !important;
}
body.kwcrm-fullscreen-page .kwcrm-fullscreen-app {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
body.kwcrm-fullscreen-page .entry-content,
body.kwcrm-fullscreen-page .wp-block-post-content,
body.kwcrm-fullscreen-page .site-main,
body.kwcrm-fullscreen-page main {
    max-width: none !important;
}
body.kwcrm-fullscreen-page .entry-content > *,
body.kwcrm-fullscreen-page .wp-block-post-content > * {
    max-width: none !important;
}
/* KW-CRM Dashboard - isolated styles */
.kwcrm-app{font-family:Inter,Arial,sans-serif;display:flex;min-height:100vh;background:#f3f7f9;color:#172b3a;line-height:1.35}
.kwcrm-app *{box-sizing:border-box}
.kwcrm-sidebar{width:225px;flex:0 0 225px;background:linear-gradient(180deg,#063148,#021c2a);color:#dcebf1;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}
.kwcrm-brand{text-align:center;padding:18px 15px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.kwcrm-brand img{display:block;width:155px;height:auto;max-height:70px;object-fit:contain;margin:auto}
.kwcrm-brand small{display:block;font-size:8px;letter-spacing:1.5px;opacity:.6;margin-top:6px}
.kwcrm-nav{padding:12px 10px;flex:1}.kwcrm-nav>a{display:flex;align-items:center;gap:10px;padding:9px 10px;margin:2px 0;border-radius:7px;color:#d8e7ed;text-decoration:none;font-size:12px}.kwcrm-nav>a:hover{background:rgba(255,255,255,.07)}.kwcrm-nav>a.active{background:#087fba;color:#fff;box-shadow:inset 3px 0 #48cde8}
.kwcrm-subnav{padding:3px 0 8px}.kwcrm-subnav b{display:block;font-size:8px;letter-spacing:1.3px;color:#7393a3;padding:8px 11px 2px}.kwcrm-subnav a{display:block;color:#cbdde5;text-decoration:none;font-size:11px;padding:5px 22px;border-radius:6px}.kwcrm-subnav a:hover{background:rgba(255,255,255,.07)}
.kwcrm-sidebar-footer{text-align:center;padding:18px 10px 28px;color:#8aa8b6;font-size:8px;letter-spacing:1px}.kwcrm-mountain{font-size:25px;color:#fff;opacity:.55;margin-bottom:7px}
.kwcrm-main{flex:1;min-width:0}.kwcrm-topbar{height:62px;background:#fff;border-bottom:1px solid #e2e9ed;display:flex;align-items:center;padding:0 23px;gap:18px;position:sticky;top:0;z-index:20}.kwcrm-search{height:36px;width:410px;max-width:45vw;border:1px solid #dfe7eb;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 12px;color:#6d7d89;font-size:12px}.kwcrm-user-area{margin-left:auto;display:flex;align-items:center;gap:12px}.kwcrm-icon{border:0;background:transparent;font-size:17px;color:#536776;cursor:pointer}.kwcrm-notification{position:relative}.kwcrm-notification i{position:absolute;right:-3px;top:-4px;background:#e6515b;color:#fff;font-style:normal;font-size:7px;width:14px;height:14px;border-radius:50%;display:grid;place-items:center}.kwcrm-user{display:flex;align-items:center;gap:8px;border-left:1px solid #e6ecef;padding-left:12px}.kwcrm-avatar{width:35px;height:35px;border-radius:50%;background:#0c8bc3;color:#fff;display:grid;place-items:center;font-weight:700;font-size:12px}.kwcrm-user strong{font-size:11px;display:block}.kwcrm-user small{font-size:8px;color:#7a8994;display:block}.kwcrm-user>span{color:#7a8994}.kwcrm-mobile-menu{display:none}
.kwcrm-hero{margin:0 24px;padding:20px 0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e9ed}.kwcrm-hero h1{margin:0;font-size:25px;color:#142b3e}.kwcrm-hero h1 span{margin-left:7px}.kwcrm-hero p{margin:4px 0 0;color:#71808c;font-size:11px}.kwcrm-quote{display:flex;gap:25px;text-align:right;color:#61717e;font-size:10px}.kwcrm-quote strong{color:#203a4e;font-size:11px}.kwcrm-quote em{font-style:italic}
.kwcrm-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;padding:17px 24px}.kwcrm-kpi{background:#fff;border:1px solid #e0e8ec;border-radius:9px;padding:11px;display:flex;align-items:center;gap:9px}.kwcrm-kpi>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf6fc;color:#128ac1;font-weight:700;flex:none}.kwcrm-kpi.danger>span{background:#fff0f1;color:#dc4d57}.kwcrm-kpi.green>span{background:#edf8f1;color:#38a56a}.kwcrm-kpi.gold>span{background:#fff6df;color:#c28b18}.kwcrm-kpi.red>span{background:#fff0f1;color:#d95059}.kwcrm-kpi small{display:block;color:#6d7d89;font-size:9px}.kwcrm-kpi b{display:block;font-size:22px;line-height:1.15}.kwcrm-kpi em{font-size:7px;color:#74828c;font-style:normal;white-space:nowrap}.kwcrm-kpi em strong{color:#dc4d57}
.kwcrm-two-col{display:grid;grid-template-columns:1.05fr .95fr;gap:12px;padding:0 24px 12px}.kwcrm-two-col.second{grid-template-columns:1.1fr .9fr}
.kwcrm-card{background:#fff;border:1px solid #e0e8ec;border-radius:9px;overflow:hidden}.kwcrm-card-title{min-height:47px;padding:11px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf1f3}.kwcrm-card-title h2{margin:0;font-size:14px;color:#1b3040}.kwcrm-card-title small{display:block;color:#7a8791;font-size:9px}.kwcrm-card-title button{margin-left:auto;border:0;background:transparent;color:#1287c0;font-size:9px;font-weight:700;cursor:pointer}.kwcrm-card-title .pill{margin-left:auto}
.kwcrm-agenda-row{display:grid;grid-template-columns:67px 8px 1fr auto;gap:9px;align-items:center;padding:10px 14px;border-bottom:1px solid #edf1f3}.kwcrm-agenda-row time{font-weight:700;font-size:9px}.kwcrm-agenda-row b{display:block;font-size:10px}.kwcrm-agenda-row small{display:block;color:#78858f;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dot{width:8px;height:8px;border-radius:50%}.dot.blue{background:#168fc7}.dot.gold{background:#e5ac30}.dot.green{background:#40b276}.dot.purple{background:#7d54b8}
.pill{font-size:7px;font-weight:700;border-radius:999px;padding:4px 7px;white-space:nowrap}.pill.blue{background:#eaf6fc;color:#1689bf}.pill.gold{background:#fff5dc;color:#a8780b}.pill.green{background:#eaf8ef;color:#23854d}.pill.purple{background:#f1ecfa;color:#7046a6}.pill.danger{background:#fff0f1;color:#cb3f4b}
.kwcrm-follow-table{padding:5px 12px 10px;overflow:auto}.follow-head,.follow-row{display:grid;grid-template-columns:1.25fr .65fr .85fr .9fr .7fr;gap:8px;align-items:center;min-width:520px}.follow-head{font-size:7px;color:#88949c;padding:4px 0 6px}.follow-row{font-size:8px;padding:8px 0;border-top:1px solid #edf1f3}.follow-row b{font-size:9px}
.kwcrm-rental-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:11px}.kwcrm-rental-stats div{background:#f7fafc;border-radius:6px;text-align:center;padding:8px}.kwcrm-rental-stats b{display:block;font-size:19px}.kwcrm-rental-stats small{font-size:7px;color:#77858f}.kwcrm-rental-stats .urgent b{color:#dc4c58}.kwcrm-mini-table{padding:0 11px 10px;overflow:auto}.mini-head,.mini-row{display:grid;grid-template-columns:1.4fr .9fr .7fr .55fr .8fr .65fr;gap:7px;align-items:center;min-width:650px}.mini-head{font-size:7px;color:#87939b;padding:5px 0}.mini-row{font-size:7px;border-top:1px solid #edf1f3;padding:7px 0}.mini-row button{border:0;background:#eaf6fc;color:#1288c1;font-size:7px;border-radius:4px;padding:4px 5px}.danger-text{color:#dd4e58}
.kwcrm-tabs{margin-left:auto;display:flex;gap:2px}.kwcrm-tabs button{border:1px solid #e0e7eb;background:#fff;border-radius:5px;padding:4px 6px;font-size:7px;color:#687783}.kwcrm-tabs button.active{background:#138bc3;color:#fff;border-color:#138bc3}.kwcrm-listing-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:11px}.listing{border:1px solid #e5eaed;background:#fff;border-radius:7px;overflow:hidden;text-align:left;padding:0 0 7px;cursor:pointer}.listing:hover{border-color:#71bddc}.listing-img{display:block;height:55px;background:linear-gradient(135deg,#c9dbe3,#7ba6b8);position:relative}.listing-img:after{content:"";position:absolute;bottom:0;left:12%;right:12%;height:70%;background:#607d8a;clip-path:polygon(0 100%,0 55%,20% 62%,34% 25%,50% 53%,65% 8%,82% 48%,100% 35%,100% 100%)}.listing-img.field{background:linear-gradient(135deg,#dbead2,#83ae72)}.listing-img.factory{background:linear-gradient(135deg,#ded8cb,#a29885)}.listing-img.office{background:linear-gradient(135deg,#d9e2e8,#7b9ca9)}.listing-img.resort{background:linear-gradient(135deg,#e1e7ef,#a4b4c7)}.listing b,.listing strong,.listing small{display:block;padding:0 7px}.listing b{font-size:8px;margin-top:6px}.listing strong{font-size:18px}.listing small{font-size:6px;color:#78858e}
.kwcrm-pipeline{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:13px}.kwcrm-pipeline div{padding:9px 3px;text-align:center;border-radius:6px;background:#edf7fc}.kwcrm-pipeline div:nth-child(3),.kwcrm-pipeline div:nth-child(8){background:#edf8f1}.kwcrm-pipeline div:nth-child(4){background:#fff7e4}.kwcrm-pipeline div:nth-child(5){background:#f1ecfa}.kwcrm-pipeline div:nth-child(6){background:#fff0f5}.kwcrm-pipeline div:nth-child(7){background:#fff0f1}.kwcrm-pipeline b{font-size:18px;display:block}.kwcrm-pipeline span{font-size:6px;display:block;margin-top:2px}
.kwcrm-activities{padding:4px 13px 8px}.kwcrm-activities div{display:grid;grid-template-columns:.7fr 1.1fr 1.3fr .6fr;gap:6px;padding:7px 0;border-bottom:1px solid #edf1f3;font-size:8px}.kwcrm-activities time,.kwcrm-activities small{color:#82909a}.kwcrm-toast{position:fixed;right:22px;bottom:20px;background:#082f45;color:#fff;padding:10px 14px;border-radius:7px;font-size:11px;display:none;z-index:100}
@media(max-width:1250px){.kwcrm-kpis{grid-template-columns:repeat(3,1fr)}.kwcrm-two-col{grid-template-columns:1fr}.kwcrm-sidebar{width:205px;flex-basis:205px}}
@media(max-width:850px){.kwcrm-sidebar{position:fixed;left:-230px;z-index:50;transition:left .2s}.kwcrm-sidebar.open{left:0}.kwcrm-mobile-menu{display:block;border:0;background:transparent;font-size:20px}.kwcrm-search{flex:1;width:auto}.kwcrm-user>div:not(.kwcrm-avatar),.kwcrm-user>span{display:none}.kwcrm-quote{display:none}.kwcrm-hero{margin:0 14px}.kwcrm-kpis,.kwcrm-two-col{padding-left:14px;padding-right:14px}.kwcrm-listing-grid{grid-template-columns:repeat(2,1fr)}.kwcrm-pipeline{grid-template-columns:repeat(4,1fr)}}
@media(max-width:520px){.kwcrm-kpis{grid-template-columns:1fr}.kwcrm-topbar{padding:0 12px}.kwcrm-hero h1{font-size:20px}.kwcrm-pipeline{grid-template-columns:repeat(2,1fr)}}
