.time-card-page{width:100%}
.time-card-container{width:min(1100px,calc(100% - 40px));margin:0 auto;padding:30px 0 60px}
.time-card-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:28px;color:#66737c;font-size:.9rem}
.time-card-breadcrumb a{color:#337b98;text-decoration:none}
.time-card-breadcrumb a:hover{text-decoration:underline}
.time-card-header{max-width:850px;margin-bottom:30px}
.time-card-header h1{margin:0 0 12px;color:#1f2d35;font-size:clamp(2rem,4vw,3rem);line-height:1.15}
.time-card-header p{margin:0;color:#53616a;font-size:1.05rem;line-height:1.7}
.time-card-calculator{margin-bottom:52px;overflow:hidden;background:#fff;border:1px solid #dce4e8;border-radius:16px;box-shadow:0 6px 24px rgba(31,45,53,.06)}
.time-card-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:26px 28px;background:#f7fafb;border-bottom:1px solid #e2e8eb}
.time-card-field label{display:block;margin-bottom:8px;color:#263840;font-weight:650}
.time-card-field input,.time-card-field select{width:100%;min-height:46px;padding:10px 12px;background:#fff;border:1px solid #bcc9cf;border-radius:8px;color:#1f2d35;font:inherit}
.time-card-field input:focus,.time-card-field select:focus,.time-card-row input:focus{outline:2px solid rgba(51,123,152,.2);outline-offset:1px;border-color:#337b98}
.time-card-field small{display:block;margin-top:7px;color:#6c7980;font-size:.86rem;line-height:1.45}
.time-card-week{padding:28px;border-bottom:1px solid #e2e8eb}
.time-card-week-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:16px}
.time-card-week-heading h2{margin:0;color:#263840;font-size:1.3rem}
.time-card-week-total{color:#337b98;font-weight:700}
.time-card-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.time-card-table{width:100%;min-width:700px;border-collapse:collapse}
.time-card-table th{padding:10px 9px;background:#f4f7f8;border:1px solid #dfe6e9;color:#53616a;font-size:.86rem;text-align:left}
.time-card-table td{padding:9px;border:1px solid #dfe6e9;vertical-align:middle}
.time-card-table td:first-child{width:120px;color:#263840;font-weight:650}
.time-card-row input{width:100%;min-height:42px;padding:8px 9px;background:#fff;border:1px solid #bdc9cf;border-radius:7px;color:#1f2d35;font:inherit;box-sizing:border-box}
.time-card-day-result{min-width:110px;color:#1f5368;font-weight:700;white-space:nowrap}
.time-card-actions{display:flex;flex-wrap:wrap;gap:12px;padding:0 28px 28px}
.time-card-actions button{min-height:46px;padding:10px 22px;border-radius:8px;font:inherit;font-weight:650;cursor:pointer}
.time-card-primary{background:#337b98;border:1px solid #337b98;color:#fff}
.time-card-primary:hover{background:#286982}
.time-card-secondary{background:#fff;border:1px solid #b9c5ca;color:#34444e}
.time-card-secondary:hover{background:#f4f7f8}
.time-card-error{display:none;margin:0 28px 24px;padding:13px 15px;background:#fff7f7;border:1px solid #cf7777;border-radius:8px;color:#8a2929;line-height:1.5}
.time-card-error.is-visible{display:block}
.time-card-results{padding:28px;background:#fbfcfc;border-top:1px solid #e2e8eb}
.time-card-results h2{margin:0 0 20px;color:#263840;font-size:1.35rem}
.time-card-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.time-card-result-card{padding:20px;background:#fff;border:1px solid #dce4e8;border-radius:10px}
.time-card-result-card.primary{background:#edf5f8;border-left:4px solid #337b98}
.time-card-result-card span{display:block;margin-bottom:7px;color:#627078;font-size:.9rem}
.time-card-result-card strong{display:block;color:#1f5368;font-size:clamp(1.45rem,4vw,2rem);line-height:1.15;overflow-wrap:anywhere}
.time-card-result-note{margin:18px 0 0;color:#68757c;font-size:.9rem;line-height:1.55}
.time-card-content{max-width:880px;margin:0 auto}
.time-card-content-section{padding:34px 0;border-bottom:1px solid #e3e8eb}
.time-card-content-section:last-child{border-bottom:0}
.time-card-content-section h2{margin:0 0 17px;color:#263840;font-size:clamp(1.45rem,3vw,1.85rem);line-height:1.25}
.time-card-content-section h2::after{content:"";display:block;width:110px;height:3px;margin-top:10px;background:#337b98}
.time-card-content-section p{margin:0 0 16px;color:#45525b;line-height:1.75}
.time-card-formula-box,.time-card-example{margin:22px 0;padding:21px;background:#f7fafb;border:1px solid #d9e3e7;border-radius:10px}
.time-card-formula{margin-bottom:10px;color:#1f5368;font-size:1.15rem;font-weight:700}
.time-card-faq{margin-top:18px}
.time-card-faq details{border-top:1px solid #dce3e6}
.time-card-faq details:last-child{border-bottom:1px solid #dce3e6}
.time-card-faq summary{padding:17px 4px;color:#26343d;font-weight:650;cursor:pointer}
.time-card-faq details p{margin:0;padding:0 4px 17px}
.time-card-related{margin-top:34px}
@media(max-width:760px){
.time-card-container{width:min(100% - 28px,1100px);padding-top:24px}
.time-card-controls{grid-template-columns:1fr;padding:22px 20px}
.time-card-week{padding:22px 20px}
.time-card-week-heading{display:block}
.time-card-week-total{display:block;margin-top:5px}

/* Mobile time-card layout: each day becomes its own stacked card. */
.time-card-table-wrap{overflow-x:visible}
.time-card-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0}
.time-card-table thead{display:none}
.time-card-table,.time-card-table tbody{display:block}
.time-card-table tr.time-card-row{display:block;margin:0 0 16px;background:#fff;border:1px solid #dfe6e9;border-radius:10px;overflow:hidden}
.time-card-table tr.time-card-row:last-child{margin-bottom:0}
.time-card-table td{display:grid;grid-template-columns:minmax(105px,42%) minmax(0,58%);align-items:center;gap:12px;width:auto;padding:10px 12px;border:0;border-top:1px solid #e5eaed}
.time-card-table td:first-child{display:block;width:auto;padding:11px 12px;background:#f4f7f8;border-top:0;color:#263840;font-size:1rem;font-weight:700}
.time-card-table td:nth-child(2)::before{content:"Start time"}
.time-card-table td:nth-child(3)::before{content:"End time"}
.time-card-table td:nth-child(4)::before{content:"Unpaid break"}
.time-card-table td:nth-child(5)::before{content:"Worked time"}
.time-card-table td:nth-child(n+2)::before{color:#53616a;font-size:.88rem;font-weight:650}

/* Mobile time fields use their own block wrapper so iOS time controls
   do not participate in the original table-cell sizing. */
.time-card-table td:nth-child(2),
.time-card-table td:nth-child(3){
    display:block;
    width:100%;
    min-width:0;
    box-sizing:border-box;
}
.time-card-table td:nth-child(2)::before,
.time-card-table td:nth-child(3)::before{
    display:block;
    margin-bottom:8px;
}
.time-card-input-wrap{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
    box-sizing:border-box;
}
.time-card-input-wrap input[type="time"]{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    -webkit-appearance:none;
    appearance:none;
}

.time-card-row input{min-width:0;width:100%;max-width:100%;min-height:44px;box-sizing:border-box}
.time-card-day-result{min-width:0;white-space:normal;text-align:left}

.time-card-actions{flex-direction:column;padding:0 20px 22px}
.time-card-actions button{width:100%;min-height:48px}
.time-card-error{margin:0 20px 20px}
.time-card-results{padding:22px 20px}
.time-card-result-grid{grid-template-columns:1fr}
.time-card-content-section{padding:30px 0}
}
@media(max-width:420px){
.time-card-container{width:min(100% - 24px,1100px)}
.time-card-header h1{font-size:1.9rem}
}

/* =========================================================
   Invoice Due Date Calculator
   ========================================================= */
.invoice-due-page{width:100%}
.invoice-due-container{width:min(1100px,calc(100% - 40px));margin:0 auto;padding:30px 0 60px}
.invoice-due-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:28px;color:#66737c;font-size:.9rem}
.invoice-due-breadcrumb a{color:#337b98;text-decoration:none}
.invoice-due-breadcrumb a:hover{text-decoration:underline}
.invoice-due-header{max-width:850px;margin-bottom:30px}
.invoice-due-header h1{margin:0 0 12px;color:#1f2d35;font-size:clamp(2rem,4vw,3rem);line-height:1.15}
.invoice-due-header p{margin:0;color:#53616a;font-size:1.05rem;line-height:1.7}
.invoice-due-calculator{margin-bottom:52px;overflow:hidden;background:#fff;border:1px solid #dce4e8;border-radius:16px;box-shadow:0 6px 24px rgba(31,45,53,.06)}
.invoice-due-calculator-head{padding:26px 28px 0}
.invoice-due-calculator-head h2{margin:0 0 8px;color:#263840;font-size:1.35rem}
.invoice-due-calculator-head p{margin:0;color:#66747c;line-height:1.6}
.invoice-due-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:24px 28px 28px}
.invoice-due-field label{display:block;margin-bottom:8px;color:#263840;font-weight:650}
.invoice-due-field input,.invoice-due-field select{width:100%;min-height:46px;padding:10px 12px;background:#fff;border:1px solid #bcc9cf;border-radius:8px;color:#1f2d35;font:inherit;box-sizing:border-box}
.invoice-due-field input:focus,.invoice-due-field select:focus{outline:2px solid rgba(51,123,152,.2);outline-offset:1px;border-color:#337b98}
.invoice-due-field small{display:block;margin-top:7px;color:#6c7980;font-size:.86rem;line-height:1.45}
.invoice-due-suffix-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
.invoice-due-suffix-input input{border-radius:8px 0 0 8px}
.invoice-due-suffix-input span{display:flex;align-items:center;padding:0 13px;background:#f4f7f8;border:1px solid #bcc9cf;border-left:0;border-radius:0 8px 8px 0;color:#53616a;font-weight:650}
.invoice-due-actions{display:flex;flex-wrap:wrap;gap:12px;padding:0 28px 28px}
.invoice-due-actions button{min-height:46px;padding:10px 22px;border-radius:8px;font:inherit;font-weight:650;cursor:pointer}
.invoice-due-primary{background:#337b98;border:1px solid #337b98;color:#fff}
.invoice-due-primary:hover{background:#286982}
.invoice-due-secondary{background:#fff;border:1px solid #b9c5ca;color:#34444e}
.invoice-due-secondary:hover{background:#f4f7f8}
.invoice-due-error{display:none;margin:0 28px 24px;padding:13px 15px;background:#fff7f7;border:1px solid #cf7777;border-radius:8px;color:#8a2929;line-height:1.5}
.invoice-due-error.is-visible{display:block}
.invoice-due-results{padding:28px;background:#fbfcfc;border-top:1px solid #e2e8eb}
.invoice-due-results h2{margin:0 0 20px;color:#263840;font-size:1.35rem}
.invoice-due-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.invoice-due-result-card{padding:20px;background:#fff;border:1px solid #dce4e8;border-radius:10px}
.invoice-due-result-card.primary{grid-column:1/-1;background:#edf5f8;border-left:4px solid #337b98}
.invoice-due-result-card span{display:block;margin-bottom:7px;color:#627078;font-size:.9rem}
.invoice-due-result-card strong{display:block;color:#1f5368;font-size:1.15rem;line-height:1.35;overflow-wrap:anywhere}
.invoice-due-result-card.primary strong{font-size:clamp(1.55rem,4vw,2.15rem)}
.invoice-due-result-card small{display:block;margin-top:7px;color:#6c7980;font-size:.9rem}
.invoice-due-summary{margin:18px 0 0;color:#52616a;line-height:1.65}
.invoice-due-content{max-width:880px;margin:0 auto}
.invoice-due-content-section{padding:34px 0;border-bottom:1px solid #e3e8eb}
.invoice-due-content-section:last-child{border-bottom:0}
.invoice-due-content-section h2{margin:0 0 17px;color:#263840;font-size:clamp(1.45rem,3vw,1.85rem);line-height:1.25}
.invoice-due-content-section h2::after{content:"";display:block;width:110px;height:3px;margin-top:10px;background:#337b98}
.invoice-due-content-section p{margin:0 0 16px;color:#45525b;line-height:1.75}
.invoice-due-formula-box,.invoice-due-example{margin:22px 0;padding:21px;background:#f7fafb;border:1px solid #d9e3e7;border-radius:10px}
.invoice-due-formula{margin-bottom:10px;color:#1f5368;font-size:1.15rem;font-weight:700}
.invoice-due-faq{margin-top:18px}
.invoice-due-faq details{border-top:1px solid #dce3e6}
.invoice-due-faq details:last-child{border-bottom:1px solid #dce3e6}
.invoice-due-faq summary{padding:17px 4px;color:#26343d;font-weight:650;cursor:pointer}
.invoice-due-faq details p{margin:0;padding:0 4px 17px}
.invoice-due-related{margin-top:34px}
@media(max-width:760px){
.invoice-due-container{width:min(100% - 28px,1100px);padding-top:24px}
.invoice-due-calculator-head{padding:22px 20px 0}
.invoice-due-fields{grid-template-columns:1fr;padding:22px 20px}
.invoice-due-actions{flex-direction:column;padding:0 20px 22px}
.invoice-due-actions button{width:100%;min-height:48px}
.invoice-due-error{margin:0 20px 20px}
.invoice-due-results{padding:22px 20px}
.invoice-due-result-grid{grid-template-columns:1fr}
.invoice-due-result-card.primary{grid-column:auto}
.invoice-due-content-section{padding:30px 0}
}
@media(max-width:420px){
.invoice-due-container{width:min(100% - 24px,1100px)}
.invoice-due-header h1{font-size:1.9rem}
}
/* Invoice date - iOS overflow fix */

.invoice-date-input-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.invoice-date-input-wrap input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .invoice-date-input-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .invoice-date-input-wrap input[type="date"] {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }

    .invoice-date-input-wrap input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
    }
}
