/* ── SMS Pros Invoice Submission Portal ─────────────────────────────── */
.ip-wrap {
    font-family: 'Raleway', sans-serif;
    color: #0A1128;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* ── Language toggle ────────────────────────────────────────────────── */
.ip-lang-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 16px;
}

.ip-lang-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    color: #64748b;
    transition: all .15s;
}

.ip-lang-btn.is-active {
    background: #1558D6;
    border-color: #1558D6;
    color: #fff;
}

/* ── HST radio toggle ───────────────────────────────────────────────── */
.ip-hst-toggle {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 6px 0;
}

.ip-hst-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0A1128;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.ip-hst-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #1558D6;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.ip-hst-radio--yes {
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.ip-hst-number-input {
    flex: 1;
    min-width: 140px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #0A1128;
    background: #fff;
    transition: border-color .18s;
    box-sizing: border-box;
}

.ip-hst-number-input:focus {
    outline: none;
    border-color: #1558D6;
    box-shadow: 0 0 0 3px rgba(21,88,214,.1);
}

.ip-hst-number-input.ip-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

/* ── Alert Banner ───────────────────────────────────────────────────── */
.ip-banner {
    background: #fff8e1;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ip-banner-title {
    font-size: 15px;
    font-weight: 800;
    color: #0A1128;
    margin: 0 0 10px;
    letter-spacing: .01em;
}

.ip-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ip-checklist li {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ip-checklist li::before {
    content: '✓';
    color: #16a34a;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.ip-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(10,17,40,.07), 0 4px 16px rgba(10,17,40,.05);
    padding: 28px;
    margin-bottom: 20px;
}

.ip-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0A1128;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .01em;
}

.ip-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1558D6;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Grid layouts ───────────────────────────────────────────────────── */
.ip-grid {
    display: grid;
    gap: 16px 20px;
}

.ip-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ip-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ip-field-wide { grid-column: 1 / -1; }

/* ── Fields ─────────────────────────────────────────────────────────── */
.ip-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-field > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
}

.ip-field em {
    font-style: normal;
    color: #ef4444;
    margin-left: 2px;
}

.ip-optional {
    color: #94a3b8 !important;
    font-size: 10px;
}

.ip-field input[type="text"],
.ip-field input[type="tel"],
.ip-field input[type="email"],
.ip-field input[type="date"],
.ip-field input[type="number"],
.ip-field select,
.ip-field textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #0A1128;
    background: #fff;
    transition: border-color .18s;
    width: 100%;
    box-sizing: border-box;
}

.ip-field textarea {
    resize: vertical;
    min-height: 80px;
}

.ip-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ip-field input:focus,
.ip-field select:focus,
.ip-field textarea:focus {
    outline: none;
    border-color: #1558D6;
    box-shadow: 0 0 0 3px rgba(21,88,214,.1);
}

.ip-field input.ip-invalid,
.ip-field select.ip-invalid,
.ip-field textarea.ip-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

/* ── Currency inputs ────────────────────────────────────────────────── */
.ip-amounts { margin-top: 16px; }

.ip-currency {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .18s;
}

.ip-currency:focus-within {
    border-color: #1558D6;
    box-shadow: 0 0 0 3px rgba(21,88,214,.1);
}

.ip-currency > span {
    padding: 9px 10px 9px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    flex-shrink: 0;
    user-select: none;
}

.ip-currency input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

.ip-currency input:focus {
    outline: none;
    box-shadow: none !important;
}

.ip-currency-total {
    background: #f8fafc;
}

.ip-currency-total input {
    background: #f8fafc;
    font-weight: 700;
    color: #0A1128;
}

/* ── Upload zones ───────────────────────────────────────────────────── */
.ip-upload-zone {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: border-color .18s, background .18s;
    cursor: pointer;
}

.ip-upload-zone:hover,
.ip-upload-zone.ip-drag-over {
    border-color: #1558D6;
    background: #eef3fd;
}

.ip-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.ip-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ip-upload-icon {
    width: 36px;
    height: 36px;
    color: #94a3b8;
}

.ip-upload-label > span {
    font-size: 13px;
    font-weight: 600;
    color: #1558D6;
}

.ip-upload-label > em {
    font-style: normal;
    font-size: 11px;
    color: #94a3b8;
}

.ip-upload-filename {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 4px;
}

/* ── Actions card ───────────────────────────────────────────────────── */
.ip-card-submit { padding: 20px 28px; }

.ip-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .18s;
}

.ip-btn--primary {
    background: #1558D6;
    color: #fff;
    border-color: #1558D6;
}
.ip-btn--primary:hover { background: #1245b0; border-color: #1245b0; }

.ip-btn--secondary {
    background: #fff;
    color: #0A1128;
    border-color: #e2e8f0;
}
.ip-btn--secondary:hover { border-color: #1558D6; }

.ip-btn--ghost {
    background: transparent;
    color: #64748b;
    border-color: transparent;
}
.ip-btn--ghost:hover { color: #c0392b; }

.ip-error-msg {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    margin: 0;
}

/* ── Success state ──────────────────────────────────────────────────── */
.ip-success {
    background: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    margin-bottom: 28px;
}

.ip-success-icon {
    width: 52px;
    height: 52px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin: 0 auto 16px;
}

.ip-success h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0A1128;
    margin: 0 0 10px;
}

.ip-success p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 6px;
}

.ip-success strong { color: #0A1128; }

/* ── Contacts bar ───────────────────────────────────────────────────── */
.ip-contacts-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: #1558D6;
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 16px;
}

.ip-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}

.ip-contact-role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.ip-contact a {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.ip-contact a:hover { color: #FF6B2B; }

/* ── Payment notice ─────────────────────────────────────────────────── */
.ip-payment-notice {
    background: #fff8e1;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.ip-payment-notice strong { color: #b45309; }

/* ── Hours table ────────────────────────────────────────────────────── */
.ip-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ip-hours-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
}

.ip-hours-table thead th {
    background: #1558D6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 10px;
    text-align: left;
    white-space: nowrap;
}

.ip-hours-table thead th:first-child { border-radius: 6px 0 0 0; }
.ip-hours-table thead th:last-child  { border-radius: 0 6px 0 0; }

.ip-hours-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.ip-hours-table tbody tr:nth-child(even) { background: #f8fafc; }
.ip-hours-table tbody tr:hover           { background: #eef3fd; }

.ip-hours-table td {
    padding: 6px 6px;
    vertical-align: middle;
}

.ip-cell-day {
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    min-width: 36px;
}

.ip-hours-table input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 13px;
    font-family: inherit;
    color: #0A1128;
    background: #fff;
    box-sizing: border-box;
}

.ip-hours-table input:focus {
    outline: none;
    border-color: #1558D6;
    box-shadow: 0 0 0 3px rgba(21,88,214,.1);
}

.ip-hours-table input[readonly] {
    background: #f8fafc;
    color: #64748b;
    border-color: transparent;
    cursor: default;
}

.ip-cell-date  { min-width: 90px; }
.ip-cell-start,
.ip-cell-end   { min-width: 90px; }
.ip-cell-lunch,
.ip-cell-total { min-width: 70px; text-align: right; }

.ip-subtotal-row td {
    background: #e8f0fe;
    font-weight: 700;
    font-size: 12px;
    color: #0A1128;
    padding: 8px 6px;
    border-top: 2px solid #1558D6;
}

.ip-subtotal-row input[readonly] {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 13px;
    text-align: right;
    color: #0A1128;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .ip-grid-2,
    .ip-grid-3 { grid-template-columns: 1fr; }
    .ip-card { padding: 18px 16px; }
    .ip-banner { flex-direction: column; gap: 10px; }
    .ip-contacts-bar { flex-direction: column; }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
    body * { visibility: hidden !important; }
    .ip-wrap,
    .ip-wrap * { visibility: visible !important; }
    .ip-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }
    .ip-actions,
    .ip-error-msg,
    .ip-banner { display: none !important; }
    .ip-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 10px;
        break-inside: avoid;
    }
}
