/* ==== inline-block-1 (extracted from profit-management.php inline <style>) ==== */
";
    echo "table{border-collapse:collapse;font-family:Arial;font-size:12px}th,td{border:1px solid #999;padding:7px;text-align:left}.head{font-size:18px;font-weight:bold;background:#dbeafe}.section{font-weight:bold;background:#f8fafc}.profit{font-size:16px;font-weight:bold;background:#ecfdf5}.loss{font-size:16px;font-weight:bold;background:#fee2e2}";
    echo "

/* ==== inline-block-2 (extracted from profit-management.php inline <style>) ==== */
";
    echo "table{border-collapse:collapse;font-family:Arial;font-size:12px}th,td{border:1px solid #999;padding:6px;text-align:left;vertical-align:top}.head{font-size:18px;font-weight:bold;background:#dbeafe}.total td{font-size:15px;font-weight:bold;background:#ecfdf5}";
    echo "

/* ==== inline-block-3 (extracted from profit-management.php inline <style>) ==== */
body{background:linear-gradient(180deg,#f8fbff,#eef4ff)}
.profit-shell{padding:18px 0 44px}
.profit-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.profit-brand{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none}
.profit-logo,.profit-fallback{width:66px;height:66px;border-radius:20px;object-fit:cover;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.profit-fallback{display:grid;place-items:center;color:#fff;font-weight:1000;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed)}
.profit-title h1{margin:0;font-size:30px;letter-spacing:-.03em;color:#0f172a}
.profit-title p{margin:5px 0 0;color:#64748b;font-weight:800}

.profit-panel,.overall-panel{background:#fff;border:1px solid #e5e7eb;border-radius:26px;padding:16px;box-shadow:0 14px 36px rgba(15,23,42,.07);margin-bottom:16px}
.profit-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.profit-panel-head h2{margin:0;font-size:25px;color:#0f172a}
.profit-panel-head p{margin:5px 0 0;color:#64748b;font-weight:800}
.overall-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto auto;gap:8px;margin-bottom:14px}
.profit-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1.2fr auto auto;gap:8px;margin-bottom:14px}
.overall-filter-grid input,.overall-filter-grid select,.profit-filter-grid input,.profit-filter-grid select{min-height:44px;border:1px solid #cbd5e1;border-radius:14px;padding:0 10px;font-weight:850;background:#fff}
.overall-dashboard{display:grid;grid-template-columns:1.15fr repeat(9,minmax(0,1fr));gap:10px;margin:12px 0}
.overall-big,.overall-stat,.profit-big,.profit-stat{border-radius:22px;padding:15px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.overall-big,.profit-big{color:#fff;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);box-shadow:0 18px 42px rgba(37,99,235,.22)}
.overall-big small,.overall-stat small,.profit-big small,.profit-stat small{display:block;text-transform:uppercase;letter-spacing:.45px;font-size:10px;font-weight:1000}
.overall-big strong,.profit-big strong{display:block;margin-top:8px;font-size:30px;line-height:1.08}
.overall-stat,.profit-stat{background:#f8fafc;border:1px solid #e5e7eb}
.overall-stat:nth-child(2),.profit-stat:nth-child(2){background:#ecfdf5}
.overall-stat:nth-child(3),.profit-stat:nth-child(3){background:#fff7ed}
.overall-stat:nth-child(4),.profit-stat:nth-child(4){background:#eff6ff}
.overall-stat:nth-child(5),.profit-stat:nth-child(5){background:#f5f3ff}
.overall-stat:nth-child(6),.profit-stat:nth-child(6){background:#fef2f2}
.overall-stat.pending-stat{background:#fff7ed;border-color:#fed7aa}
.overall-stat.pending-stat strong{color:#9a3412}
#bdNetUncollected{color:#9a3412}
.overall-stat small,.profit-stat small{color:#64748b}
.overall-stat strong,.profit-stat strong{display:block;margin-top:7px;font-size:20px;color:#0f172a;line-height:1.15}
.overall-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin-top:12px}
.break-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:13px;overflow:hidden}
.break-card h3{
    margin:-13px -13px 12px;
    padding:13px 14px;
    font-size:17px;
    color:#fff;
    font-weight:1000;
    letter-spacing:.2px;
    background:linear-gradient(135deg,#0f172a,#2563eb);
}
.break-card:nth-child(1) h3{background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed)}
.break-card:nth-child(2) h3{background:linear-gradient(135deg,#14532d,#16a34a)}
.break-card:nth-child(3) h3{background:linear-gradient(135deg,#7c2d12,#f97316)}
.break-card:nth-child(4) h3{background:linear-gradient(135deg,#4c1d95,#ec4899)}
.break-card:nth-child(5) h3{background:linear-gradient(135deg,#7c2d12,#dc2626)}
.break-card:nth-child(6) h3{background:linear-gradient(135deg,#0f172a,#14532d,#16a34a)}
.uncollected-math-card .uncollected-step,
.overall-result-card .uncollected-step,
.sales-inventory-card .uncollected-step,
.gst-tax-card .uncollected-step{font-size:15px}
.uncollected-math-card .uncollected-minus strong,
.overall-result-card .uncollected-minus strong,
.sales-inventory-card .uncollected-minus strong,
.gst-tax-card .uncollected-minus strong{color:#dc2626}
.uncollected-math-card .uncollected-minus span,
.overall-result-card .uncollected-minus span,
.sales-inventory-card .uncollected-minus span,
.gst-tax-card .uncollected-minus span{color:#dc2626}
.uncollected-math-card .uncollected-result,
.overall-result-card .uncollected-result,
.sales-inventory-card .uncollected-result,
.gst-tax-card .uncollected-result{border-top:2px solid #0f172a;margin-top:4px;padding-top:10px;font-size:16px}
.uncollected-math-card .uncollected-result span,
.uncollected-math-card .uncollected-result strong,
.overall-result-card .uncollected-result span,
.overall-result-card .uncollected-result strong,
.sales-inventory-card .uncollected-result span,
.sales-inventory-card .uncollected-result strong,
.gst-tax-card .uncollected-result span,
.gst-tax-card .uncollected-result strong{color:#9a3412}
.break-line{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #cbd5e1;padding:8px 0;font-weight:850}
.break-line:last-child{border-bottom:0}
.profit-dashboard{display:grid;grid-template-columns:1.1fr repeat(5,minmax(0,1fr));gap:10px;margin:12px 0 14px}
.profit-list{display:grid;gap:10px}
.profit-order-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;overflow:hidden}
.profit-order-head{width:100%;border:0;padding:13px;background:linear-gradient(135deg,#f8fafc,#eef2ff);display:flex;justify-content:space-between;gap:10px;align-items:flex-start;text-align:left;cursor:pointer}
.profit-order-head strong{display:block;color:#0f172a}
.profit-order-head small{display:block;color:#64748b;margin-top:3px;font-weight:800}
.profit-pill{background:#111827;color:#fff;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:1000;white-space:nowrap}
.profit-order-body{display:none;border-top:1px solid #e5e7eb;padding:12px}
.profit-order-card.open .profit-order-body{display:block}
.profit-inner-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:10px}
.profit-inner-box{border:1px solid #e5e7eb;background:#f8fafc;border-radius:14px;padding:10px;font-size:12px;font-weight:850;line-height:1.4}
.profit-line{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(90px,.45fr));gap:8px;align-items:center;border-bottom:1px dashed #e5e7eb;padding:8px 0;font-size:13px}
.profit-line:last-child{border-bottom:0}
.profit-line strong{text-align:right}
.profit-positive{color:#166534!important}
.profit-negative{color:#991b1b!important}
.profit-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
.empty-profit{background:#fff;border:1px dashed #cbd5e1;border-radius:20px;padding:20px;text-align:center;color:#64748b;font-weight:850}
@media(max-width:1100px){.overall-breakdown{grid-template-columns:1fr 1fr}.overall-dashboard{grid-template-columns:1fr 1fr}.overall-filter-grid,.profit-filter-grid{grid-template-columns:1fr 1fr}.profit-filter-grid .wide{grid-column:1/-1}.overall-dashboard,.profit-dashboard{grid-template-columns:1fr 1fr 1fr}.overall-big,.profit-big{grid-column:1/-1}.overall-breakdown{grid-template-columns:1fr}.profit-inner-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.overall-breakdown{grid-template-columns:1fr}.overall-dashboard{grid-template-columns:1fr 1fr}.profit-shell{padding:12px 0 30px}.profit-head{display:grid;grid-template-columns:1fr;gap:10px}.profit-brand{background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);color:#fff;border-radius:22px;padding:12px;box-shadow:0 16px 34px rgba(37,99,235,.22)}.profit-logo,.profit-fallback{width:56px;height:56px;border-radius:17px}.profit-title h1{font-size:23px;color:#fff}.profit-title p{font-size:12px;color:rgba(255,255,255,.82)}.profit-panel,.overall-panel{border-radius:22px;padding:13px}.profit-panel-head{display:grid;grid-template-columns:1fr;gap:8px}.profit-panel-head h2{font-size:22px}.profit-panel-head a{width:100%;justify-content:center}.overall-filter-grid,.profit-filter-grid{grid-template-columns:1fr}.overall-filter-grid input,.overall-filter-grid select,.overall-filter-grid button,.profit-filter-grid input,.profit-filter-grid select,.profit-filter-grid button{width:100%;min-height:46px;border-radius:14px}.overall-dashboard,.profit-dashboard{grid-template-columns:1fr 1fr;gap:8px}.overall-big,.profit-big{grid-column:1/-1;border-radius:20px}.overall-big strong,.profit-big strong{font-size:27px}.overall-stat,.profit-stat{border-radius:16px;padding:10px;min-height:78px}.overall-stat strong,.profit-stat strong{font-size:17px}.profit-order-head{display:grid;grid-template-columns:1fr;gap:8px}.profit-pill{width:max-content}.profit-inner-grid{grid-template-columns:1fr}.profit-line{grid-template-columns:1fr;gap:4px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:9px;margin-bottom:7px}.profit-line strong{text-align:left}.profit-pager{display:grid;grid-template-columns:1fr;text-align:center}.profit-pager button{width:100%;min-height:44px}.profit-pager strong{order:-1;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px}}

/* ==== pm-navhead-v1 (extracted from profit-management.php inline <style>) ==== */
/* ===== NAVHEAD: burger drawer with index.php page list (all screen sizes) ===== */
.navhead-hidden-status{display:none !important;}
.bill-navhead{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 0 12px !important;
    min-height:0 !important;
}
.navhead-burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:46px;height:46px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    padding:0 12px;
    flex-shrink:0;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:box-shadow .15s ease, transform .15s ease;
}
.navhead-burger:hover{box-shadow:0 10px 26px rgba(0,0,0,.10);transform:translateY(-1px);}
.navhead-burger span{display:block;height:2.5px;width:100%;border-radius:3px;background:#0f172a;}
.navhead-page-title{
    font-size:16px;
    font-weight:1000;
    color:#0f172a;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
}
.navhead-lead{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
@media(max-width:640px){
    .navhead-page-title{font-size:14px;}
    .navhead-lead{gap:9px;}
}
/* create-posts.php puts the burger on a dark gradient hero, so the dark
   default would be unreadable there. */
.cp-hero .navhead-page-title{color:#fff;}
@media print{.navhead-page-title,.navhead-lead{display:none !important;}}

/* Drawer: identical behaviour on desktop and mobile */
.navhead-links{
    position:fixed;
    top:0;left:0;bottom:0;
    width:min(300px,86vw);
    background:#fff;
    border-right:1px solid var(--line);
    box-shadow:0 0 60px rgba(0,0,0,.22);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:4px;
    padding:18px 12px;
    overflow-y:auto;
    z-index:99998;
    transform:translateX(-102%);
    transition:transform .22s ease;
}
.navhead-links.open{transform:translateX(0);}
.navhead-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border-radius:12px;
    text-decoration:none;
    color:#334155;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    transition:background .15s ease,color .15s ease;
}
.navhead-link:hover{background:#f1f5f9;color:#0f172a;}
.navhead-link.active{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;}
.navhead-ico{font-size:17px;line-height:1;}
.navhead-backdrop{
    position:fixed;inset:0;
    background:rgba(15,23,42,.5);
    z-index:99997;
    opacity:0;pointer-events:none;
    transition:opacity .22s ease;
}
.navhead-backdrop.open{opacity:1;pointer-events:auto;}


/* Burger takes the place of the old logo + brand name on the left */
.profit-head{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
}
.navhead-burger{flex-shrink:0 !important;}
@media(max-width:640px){
}

/* The Overall Profit figure sits on the dark gradient card, but the JS tags it
   .profit-positive / .profit-negative (green / red) which is meant for the
   white stat cards. Keep this one white; the other uses are untouched. */
.overall-big strong#overallProfit,
.overall-big strong#overallProfit.profit-positive,
.overall-big strong#overallProfit.profit-negative{
    color:#fff !important;
}
