.smartyard{max-width:1500px}.smartyard .nav-tab-wrapper{margin-bottom:22px}.smartyard-cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin:22px 0}.smartyard-card{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:20px}.smartyard-card span{display:block;color:#646970;margin-bottom:8px}.smartyard-card strong{font-size:26px}.smartyard-actions{margin:18px 0 28px}.smartyard-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:16px;margin:20px 0}.smartyard label{display:block;font-weight:600;margin-bottom:14px}.smartyard input,.smartyard select,.smartyard textarea{width:100%;margin-top:6px}.smartyard-lines input,.smartyard-lines select{width:100%}.smartyard-summary{margin-left:auto;max-width:420px;background:#fff;border:1px solid #dcdcde;padding:18px;margin-top:20px}.smartyard-summary>div,.smartyard-totals p{display:flex;justify-content:space-between}.smartyard-summary .grand,.smartyard-totals .grand{font-size:20px;border-top:2px solid #1d2327;padding-top:10px}.smartyard-status{display:inline-block;padding:4px 8px;border-radius:999px;background:#f0f0f1}.smartyard-status.paid{background:#d7f1df}.smartyard-status.part-paid{background:#fff1c9}.smartyard-status.draft{background:#eee}.smartyard-filter{display:flex;gap:10px;margin:18px 0}.smartyard-filter input{min-width:300px}.smartyard-two{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:20px}.smartyard-two section{background:#fff;border:1px solid #dcdcde;padding:18px}.smartyard-toolbar{margin:18px 0}.smartyard-invoice-view{background:#fff;border:1px solid #dcdcde;padding:28px;margin-bottom:24px}.smartyard-invoice-view header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #1d2327;padding-bottom:18px;margin-bottom:18px}.smartyard-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.smartyard-totals{max-width:380px;margin-left:auto}.smartyard-front{padding:20px}@media(max-width:900px){.smartyard-cards,.smartyard-grid,.smartyard-two{grid-template-columns:1fr}.smartyard-filter{display:block}.smartyard-filter>*{margin-bottom:8px}.smartyard-filter input{min-width:0}}
.smartyard-brand{text-align:right;max-width:520px}.smartyard-brand img{display:block;max-width:180px;max-height:90px;margin:0 0 8px auto}.smartyard-brand span{font-size:12px;color:#59636f}.smartyard-payment-box,.smartyard-invoice-notes{margin-top:24px;padding:18px;border:1px solid #d8dde4;background:#fafbfc}.smartyard-payment-box h3,.smartyard-invoice-notes h3{margin-top:0}.smartyard-settings{max-width:800px}.smartyard-settings label{display:block;margin:0 0 14px}.smartyard-settings input,.smartyard-settings textarea{width:100%}
:root{--smartyard-navy:#143153;--smartyard-burgundy:#742230;--smartyard-soft:#f4f7fa}
.smartyard .button-primary{background:var(--smartyard-navy)!important;border-color:var(--smartyard-navy)!important}.smartyard .button-primary:hover{background:#0e2744!important;border-color:#0e2744!important}
.smartyard-invoice-view{padding:0;overflow:hidden;border-radius:8px}.smartyard-invoice-header{background:var(--smartyard-navy);color:#fff!important;padding:24px 28px!important;margin:0!important;border:0!important}.smartyard-title-block{min-width:280px}.smartyard-invoice-kicker{font-size:13px;font-weight:700;letter-spacing:.16em;opacity:.9}.smartyard-title-block h2{color:#fff!important;margin:6px 0 3px;font-size:28px}.smartyard-show-title{font-size:15px;font-weight:600;opacity:.95}.smartyard-brand{color:#fff;text-align:right}.smartyard-brand strong{color:#fff;font-size:15px}.smartyard-brand span{color:rgba(255,255,255,.88)}.smartyard-logo-wrap{display:inline-flex;background:#fff;border-radius:7px;padding:6px;margin-bottom:8px}.smartyard-brand img{max-width:145px;max-height:72px;margin:0}.smartyard-invoice-view>.smartyard-meta,.smartyard-invoice-view>table,.smartyard-invoice-view>.smartyard-totals,.smartyard-invoice-view>.smartyard-payment-box,.smartyard-invoice-view>.smartyard-invoice-notes{margin-left:28px;margin-right:28px}.smartyard-invoice-view>.smartyard-meta{margin-top:24px}.smartyard-invoice-view>table thead th{background:var(--smartyard-navy);color:#fff}.smartyard-payment-box,.smartyard-invoice-notes{border-left:4px solid var(--smartyard-navy);background:var(--smartyard-soft)}.smartyard-client-box{background:#fff;border:1px solid #dcdcde;border-left:4px solid var(--smartyard-navy);padding:18px;margin:18px 0}.smartyard-client-box h3{margin-top:0;color:var(--smartyard-navy)}.smartyard-span-2{grid-column:span 2}.smartyard td,.smartyard th{vertical-align:top}.smartyard table .column-money{text-align:right;white-space:nowrap}
@media(max-width:900px){.smartyard-span-2{grid-column:span 1}.smartyard-invoice-header{display:block!important}.smartyard-brand{text-align:left;margin-top:18px}.smartyard-logo-wrap{display:inline-flex}}

/* v1.6 invoice visual refinements */
.smartyard-invoice-view{background:#fff!important;overflow:visible!important}
.smartyard-invoice-header{background:#fff!important;color:#1d2327!important;padding:22px 28px!important;border-bottom:4px solid var(--smartyard-navy)!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:28px!important}
.smartyard-brand-left{display:flex;align-items:flex-start;gap:18px;min-width:0;flex:1}
.smartyard-main-logo{display:block;max-width:190px!important;max-height:115px!important;width:auto!important;height:auto!important;object-fit:contain!important;flex:0 0 auto}
.smartyard-business-copy{min-width:0;overflow-wrap:anywhere;line-height:1.45;color:#1d2327!important}
.smartyard-business-copy strong,.smartyard-business-copy span,.smartyard-contact-line{color:#1d2327!important}
.smartyard-contact-line{margin-top:4px;overflow-wrap:anywhere}
.smartyard-title-block{color:#1d2327!important;text-align:right;min-width:250px;max-width:42%}
.smartyard-invoice-kicker,.smartyard-title-block h2,.smartyard-show-title{color:#1d2327!important}
.smartyard-show-title{overflow-wrap:anywhere;white-space:normal}
.smartyard-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.smartyard-meta>div{background:#f4f7fa;padding:16px;border-radius:6px;min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.5}
@media(max-width:900px){.smartyard-invoice-header{display:block!important}.smartyard-title-block{max-width:none;text-align:left;margin-top:18px}.smartyard-brand-left{display:block}.smartyard-main-logo{margin-bottom:16px}.smartyard-meta{grid-template-columns:1fr}}

/* v1.7 accounting controls and admin preview cache-safe sizing */
.smartyard-invoice-header .smartyard-main-logo{width:190px!important;height:115px!important;max-width:190px!important;max-height:115px!important;object-fit:contain!important;object-position:left top!important}
.smartyard-invoice-header{min-height:0!important;max-height:none!important;background:#fff!important}
.smartyard-inline-form{display:inline;margin-left:10px}.smartyard-inline-form button{cursor:pointer}.smartyard-account-controls{margin-top:24px}.smartyard-status.cancelled{background:#f8d7da;color:#842029}.smartyard-status.credit-note{background:#dbeafe;color:#173b67}.smartyard-statement-head{background:#f4f7fa;border-left:4px solid var(--smartyard-navy);padding:14px 18px;margin:18px 0}.smartyard-statement-head h3{margin:0 0 4px}.smartyard-account-controls textarea{width:100%}


/* v1.10 customer search and invoice customer lookup */
.smartyard-customer-search-form{display:flex;gap:8px;align-items:center;margin:0 0 14px}.smartyard-customer-search-form input[type=search]{min-width:360px;max-width:100%;margin:0}.smartyard-customer-actions{white-space:nowrap}.smartyard-customer-actions .button-link-delete{color:#b32d2e;border-color:#d63638}.smartyard-customer-actions .button-link-delete:hover{color:#fff;background:#b32d2e;border-color:#b32d2e}#smartyard-customer-search{background:#fff}.smartyard #smartyard-customer-select option[hidden]{display:none}
@media(max-width:900px){.smartyard-customer-search-form{display:block}.smartyard-customer-search-form input[type=search]{min-width:0;width:100%;margin-bottom:8px}}

/* v1.14 SASJ Development & Transformation claim workflow */
.smartyard-sasj-fields{background:#f4f7fa;border:1px solid #d8dde4;border-left:4px solid var(--smartyard-navy);padding:18px;margin:18px 0}.smartyard-sasj-fields h3{margin:0 0 4px;color:var(--smartyard-navy)}.smartyard-sasj-fields .smartyard-grid{margin-bottom:0}

/* v1.20 public WCQ vendor application */
.smartyard-vendor-public{max-width:980px;margin:30px auto;padding:0 18px;font-family:Arial,sans-serif;color:#172033}
.smartyard-vendor-head{background:#fff;border:1px solid #dfe4ea;border-radius:12px;padding:24px;margin-bottom:20px}
.smartyard-vendor-head h2{margin-top:0;color:#0e2342}
.smartyard-vendor-alert{background:#fff2f2;border-left:5px solid #a50000;padding:12px 14px;font-size:16px}
.smartyard-vendor-form{background:#fff;border:1px solid #dfe4ea;border-radius:12px;padding:24px;box-shadow:0 5px 18px rgba(0,0,0,.05)}
.smartyard-vendor-form h3{color:#0e2342;margin-top:28px;border-bottom:2px solid #0e2342;padding-bottom:7px}
.smartyard-vendor-form label{display:block;font-weight:600;margin:12px 0}
.smartyard-vendor-form input[type=text],.smartyard-vendor-form input[type=email],.smartyard-vendor-form input[type=number],.smartyard-vendor-form select,.smartyard-vendor-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;border:1px solid #bcc6d4;border-radius:6px;font-weight:400;background:#fff}
.smartyard-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.smartyard-days{border:1px solid #dfe4ea;border-radius:8px;padding:14px;margin:16px 0}.smartyard-days label{display:inline-block;margin:6px 18px 6px 0;font-weight:500}
.smartyard-check{background:#f6f8fb;border-radius:8px;padding:12px 14px}.smartyard-check input{margin-right:8px}
.smartyard-public-submit{background:#0e2342;color:#fff;border:0;border-radius:7px;padding:13px 20px;font-size:16px;font-weight:700;cursor:pointer}
.smartyard-public-submit:hover{background:#183861}.smartyard-vendor-success{background:#edf8ef;border:1px solid #abd2b2;padding:18px;border-radius:10px;margin-bottom:18px}
.smartyard-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
@media(max-width:700px){.smartyard-public-grid{grid-template-columns:1fr}.smartyard-vendor-form{padding:18px}}

/* v1.29 reporting + SASJ claim email workflow */
.smartyard-report-table th,.smartyard-report-table td{white-space:nowrap}.smartyard-report-table th:first-child,.smartyard-report-table td:first-child{white-space:normal}.smartyard-report-table tfoot th{border-top:2px solid #143153;background:#f4f7fa}.smartyard-sasj-email{margin-top:16px;padding:18px;border:1px solid #d8dde4;border-left:4px solid var(--smartyard-navy);background:#fff}.smartyard-sasj-email h3{margin-top:0;color:var(--smartyard-navy)}.smartyard-pop-alert{margin:14px 0;padding:14px 16px;background:#fff4cc;border:1px solid #e7c75b;border-left:5px solid #b58105;font-size:14px}.smartyard-pop-alert strong{font-size:15px}

.smartyard-portal{--sy-navy:#101e30;--sy-gold:#b59a60;font-family:Arial,sans-serif;background:#f6f3ee;padding:28px;color:#172638;border-radius:16px;margin:24px auto;max-width:1440px;box-sizing:border-box}
.smartyard-brand{display:flex;justify-content:space-between;align-items:center;background:var(--sy-navy);color:white;padding:28px 32px;border-radius:12px}
.smartyard-brand small{letter-spacing:2px;font-size:11px;color:#dac79b}.smartyard-brand h2{color:white;margin:6px 0;font-family:Georgia,serif;font-size:38px}.smartyard-brand a{color:#dac79b}
.smartyard-demo-banner{background:#fff9e8;padding:14px 18px;border-left:4px solid var(--sy-gold);font-size:14px}
.smartyard-portal .wrap{margin:0}.smartyard-portal .nav-tab-wrapper{display:flex;flex-wrap:wrap;gap:6px;border:0;margin:20px 0;padding:0}
.smartyard-portal .nav-tab{display:block;padding:11px 16px;text-decoration:none;border:1px solid #dedbd4;border-radius:8px;background:white;color:#213149;margin:0;font-size:14px}
.smartyard-portal .nav-tab-active{background:var(--sy-navy);color:white;border-color:var(--sy-navy)}
.smartyard-portal .button,.smartyard-login .button{display:inline-block;padding:9px 15px;border-radius:6px;background:white;border:1px solid #b9c1cb;text-decoration:none;color:#172638;cursor:pointer;font-size:14px;line-height:1.4}
.smartyard-portal .button-primary{background:var(--sy-navy);color:white;border-color:var(--sy-navy)}
.smartyard-portal input,.smartyard-portal select,.smartyard-portal textarea{font:inherit;background:white;color:#172638;border:1px solid #c7cdd4;border-radius:6px;padding:9px;max-width:100%;box-sizing:border-box}
.smartyard-portal input[type=checkbox],.smartyard-portal input[type=radio]{width:auto}.smartyard-portal label{font-size:14px}
.smartyard-portal .widefat{width:100%;border-collapse:collapse;background:white;font-size:14px}.smartyard-portal .widefat th,.smartyard-portal .widefat td{padding:12px 10px;text-align:left;border-bottom:1px solid #e4e6ea;vertical-align:top}
.smartyard-portal .widefat th{background:#eef0f3;color:#172638}.smartyard-portal .striped tbody tr:nth-child(even){background:#fafbfc}
.smartyard-portal .notice{background:white;padding:10px 18px;border-left:4px solid var(--sy-gold);margin:14px 0}.smartyard-portal .description{color:#566476;font-size:13px}.smartyard-portal h1{font-size:28px}.smartyard-portal h2{font-size:23px}.smartyard-setup{padding:22px;background:white;border:1px solid #dedbd4;border-radius:10px;margin:20px 0}
.smartyard-login{padding:32px;border:1px solid #ddd;border-radius:12px;font-family:Arial,sans-serif}
@media(max-width:800px){.smartyard-portal{padding:14px}.smartyard-brand{padding:20px}.smartyard-portal .smartyard-grid,.smartyard-portal .smartyard-two{grid-template-columns:1fr}.smartyard-portal .widefat{display:block;overflow-x:auto}.smartyard-portal .nav-tab{padding:9px 12px}}
