/* InvoiceEZ Public Styles */
.iez-wrap { max-width: 860px; margin: 0 auto; font-family: Arial, sans-serif; }
.iez-header { padding: 0; }
.iez-header-inner { max-width: 860px; margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; }
.iez-logo { max-height: 60px; max-width: 200px; }
.iez-company-name { color: #fff; font-size: 22px; font-weight: 700; }
.iez-doc-type { color: rgba(255,255,255,0.7); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.iez-banner { padding: 14px 20px; margin: 0; font-size: 14px; }
.iez-banner-info    { background: #eff6ff; color: #1e40af; border-bottom: 1px solid #bfdbfe; }
.iez-banner-success { background: #f0fdf4; color: #166534; border-bottom: 1px solid #bbf7d0; }
.iez-banner-error   { background: #fef2f2; color: #991b1b; border-bottom: 1px solid #fecaca; }
.iez-banner-warning { background: #fffbeb; color: #92400e; border-bottom: 1px solid #fde68a; }

.iez-content { padding: 28px; }

.iez-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin-bottom: 28px; }
.iez-meta-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; }
.iez-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 4px; }
.iez-meta-value { font-weight: 700; color: #1a1a2e; font-size: 15px; }
.iez-meta-sub { font-size: 12px; color: #888; margin-top: 2px; }

.iez-title { font-size: 22px; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; }

.iez-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.iez-table th { background: #f1f5f9; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; border-bottom: 2px solid #e2e8f0; }
.iez-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #333; }
.iez-table tr:last-child td { border-bottom: none; }
.iez-num { text-align: right; }

.iez-totals { margin-left: auto; max-width: 340px; margin-bottom: 28px; }
.iez-total-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.iez-total-row:last-child { border-bottom: none; }
.iez-total-main { font-weight: 700; font-size: 16px; }
.iez-deposit-row { color: #888; font-size: 13px; }

.iez-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.iez-note-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; font-size: 13px; color: #555; line-height: 1.6; }
.iez-note-label { font-weight: 700; color: #1a1a2e; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.iez-actions { display: flex; flex-direction: column; gap: 16px; }
.iez-approval-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.iez-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; font-family: Arial, sans-serif; }
.iez-btn-approve  { background: #46c12f; color: #fff; }
.iez-btn-approve:hover { background: #3aa827; }
.iez-btn-deny     { background: #fff; color: #d63638; border: 2px solid #d63638; }
.iez-btn-deny:hover { background: #fef2f2; }
.iez-btn-pay      { background: #0b2559; color: #fff; width: 100%; margin-top: 8px; }
.iez-btn-pay:hover { background: #0d3070; }
.iez-btn-download { background: #f1f5f9; color: #0b2559; border: 2px solid #0b2559; }
.iez-btn-submit   { background: #0b2559; color: #fff; }

.iez-payment-options { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.iez-payment-options h3 { margin: 0 0 14px; font-size: 16px; }
.iez-pay-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.iez-pay-option:has(input:checked) { border-color: #46c12f; background: #f0fdf4; }
.iez-pay-option input { margin: 0; }

/* Request Form */
.iez-request-wrap { max-width: 680px; margin: 0 auto; }
.iez-form { background: #fff; padding: 28px; border: 1px solid #e2e8f0; border-radius: 10px; }
.iez-form-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.iez-form-col { flex: 1; min-width: 200px; }
.iez-full { flex: 1 1 100%; }
.iez-form-col label, .iez-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; color: #333; }
.iez-form-col input, .iez-form-col textarea, .iez-form-col select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.iez-req { color: #d63638; }

@media (max-width: 600px) {
    .iez-notes-grid { grid-template-columns: 1fr; }
    .iez-meta-grid { grid-template-columns: 1fr 1fr; }
    .iez-approval-buttons { flex-direction: column; }
    .iez-btn { width: 100%; }
}

/* Flatpickr date/time input wrapper */
.iez-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.iez-date-input-wrap input {
    width: 100%;
    padding: 9px 36px 9px 12px !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}
.iez-date-input-wrap input:focus {
    outline: none;
    border-color: #0b2559;
    box-shadow: 0 0 0 2px rgba(11,37,89,0.12);
}
.iez-cal-icon {
    position: absolute;
    right: 10px;
    font-size: 15px;
    pointer-events: none;
    line-height: 1;
    color: #888;
}
/* Flatpickr calendar theme tweaks */
.flatpickr-calendar {
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13) !important;
    font-family: Arial, sans-serif !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #0b2559 !important;
    border-color: #0b2559 !important;
}
.flatpickr-day:hover {
    background: #e8eef7 !important;
}
.flatpickr-months .flatpickr-month {
    background: #0b2559 !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
    background: #0b2559 !important;
    -webkit-appearance: none;
    appearance: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #0b2559 !important;
    color: #fff !important;
}
.flatpickr-current-month {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.flatpickr-weekday {
    color: #0b2559 !important;
    font-weight: 700 !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #fff !important;
    fill: #fff !important;
    opacity: 0.75;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #fff !important;
    stroke: #fff !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #ccc !important;
    cursor: not-allowed !important;
}
