.ish-portal {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ish-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 4px 14px;
	margin-bottom: 10px;
	border-bottom: 1px solid #e2e2e2;
	font-size: 0.9em;
}
form#loginform input#wp-submit {
    background: #1ca3d0 !important;
    border-radius: 22px;
    padding: 20px;
    font-size: 20px;
}
.ish-topbar-user {
	color: #444;
}
.ish-topbar-logout {
	color: #c0392b;
	text-decoration: none;
	font-weight: 600;
}
.ish-topbar-logout:hover {
	text-decoration: underline;
}
.ish-banner {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-weight: 600;
}
.ish-banner-test {
	background: #fff8e1;
	border: 1px solid #f0c14b;
	color: #8a6d1a;
}
.ish-banner-warning {
	background: #fdecea;
	border: 1px solid #e57373;
	color: #7a1f1f;
	font-weight: 400;
	font-size: 13px;
}
.ish-banner-warning ul {
	margin: 4px 0 0;
	padding-left: 18px;
}
.ish-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 16px;
	background: #fff;
}
.ish-card h3 {
	margin-top: 0;
}
.ish-hint {
	font-weight: normal;
	font-size: 0.85em;
	color: #666;
}
.ish-row {
	display: flex;
	gap: 10px;
	align-items: center;
}
.ish-row input[type="text"] {
	flex: 1;
}
.ish-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin-bottom: 12px;
}
.ish-grid label {
	display: block;
	font-size: 0.85em;
	color: #444;
	margin-bottom: 2px;
}
.ish-grid input {
	width: 100%;
}
gmp-place-autocomplete.ish-place-autocomplete {
	width: 100%;
	--gmpx-color-surface: #fff;
	--gmpx-color-on-surface: #1d2327;
	--gmpx-font-size-base: 14px;
}
.ish-status {
	margin-top: 8px;
	font-size: 0.9em;
	color: #2271b1;
	min-height: 1.2em;
}
.ish-status-error {
	color: #c0392b;
	font-weight: 600;
}
.ish-status-warn {
	color: #8a6d1a;
	background: #fff8e1;
	border: 1px solid #f0c14b;
	padding: 8px 10px;
	border-radius: 6px;
	display: none;
}
.ish-rates-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee;
}
.ish-rates-toolbar-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ish-rates-toolbar-group label {
	font-size: 0.85em;
	color: #444;
}
.ish-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 320px;
}
.ish-chip {
	border: 1px solid #ccc;
	background: #f6f7f7;
	color: #777;
	border-radius: 14px;
	padding: 4px 12px;
	font-size: 0.85em;
	cursor: pointer;
	line-height: 1.4;
}
.ish-chip:hover {
	border-color: #999;
}
.ish-chip-active {
	background: #eef3fb;
	border-color: #2271b1;
	color: #2271b1;
	font-weight: 600;
}
.ish-writeback-row {
	margin-top: 4px;
	flex-wrap: wrap;
}
#ish-address-search-wrap gmp-place-autocomplete {
	width: 100%;
	display: block;
}
.ish-rate-row {
	display: block;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
.ish-rate-row input {
	margin-right: 8px;
}
/* Client feedback: the default browser radio outline is too pale grey for
   several team members (50-70 yrs) to see clearly against the rate list.
   Rebuilding the circle with a solid, high-contrast border fixes this
   regardless of browser/OS default styling, which we can't otherwise
   override with a color tweak alone. */
.ish-rate-row input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #444;
	border-radius: 50%;
	outline: none;
	position: relative;
	top: 4px;
	cursor: pointer;
}
.ish-rate-row input[type="radio"]:checked {
	border-color: #2271b1;
	background: #2271b1;
	box-shadow: inset 0 0 0 4px #fff;
}
.ish-rate-row input[type="radio"]:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.35);
}

/* Insurance-fee line shown above the rate list — client asked for a
   locally-calculated (1.5% of insured value) figure shown up front,
   separate from the per-carrier rates below it, so staff see the cost
   before comparing rates rather than only after buying. */
.ish-insurance-fee-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	margin-bottom: 10px;
	background: #fff8e6;
	border: 1px solid #f0deab;
	border-radius: 4px;
	font-size: 0.95em;
}
.ish-insurance-fee-line strong {
	font-size: 1.05em;
}

/* Nested per-ticket status rows under an Order in the "By Order" list —
   client asked to see each linked ticket's Repair Status right there,
   without opening the order first, so staff can tell at a glance which
   orders are ready for a quote/shipment. */
.ish-order-subrow td {
	padding: 0 10px 10px 10px !important;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}
.ish-ticket-status-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ish-ticket-status-list li {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 0.85em;
}
.ish-ticket-id {
	color: #777;
}
.ish-status-chip {
	font-weight: 600;
	padding: 1px 8px;
	border-radius: 10px;
	background: #eaf2fb;
	color: #2271b1;
}
.ish-status-chip-empty {
	background: #f1f1f1;
	color: #888;
	font-weight: 400;
}
.ish-locked {
	max-width: 420px;
	margin: 60px auto;
	text-align: center;
}
.ish-locked h2 {
	margin-bottom: 20px;
}
.ish-google-btn {
	width: 100%;
	text-align: center;

}
/* .ish-google-btn:hover,
.ish-google-btn:focus {
	background: #3367D6;
	border-color: #3367D6;
} */
.ish-login-divider {
	position: relative;
	text-align: center;
	margin: 18px 0;
	border-top: 1px solid #e2e2e2;
}
.ish-login-divider span {
	position: relative;
	top: -11px;
	background: #fff;
	padding: 0 10px;
	color: #888;
	font-size: 0.85em;
}
.ish-locked form.ish-login-form p,
.ish-locked #loginform p {
	text-align: left;
}
.ish-locked label {
	display: block;
	margin-bottom: 4px;
}
.ish-locked input[type="text"],
.ish-locked input[type="password"],
.ish-locked input[type="email"] {
	width: 100%;
}
.ish-locked #wp-submit {
	width: 100%;
	margin-top: 8px;
}

/* ---------------------------------------------------------------------
 * Ticket list
 * ------------------------------------------------------------------- */
#ish-portal-app {
	max-width: 1100px;
}
.ish-list-toolbar {
	margin-bottom: 12px;
}
.ish-list-toolbar .ish-row {
	flex-wrap: wrap;
}
.ish-checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9em;
	white-space: nowrap;
}
.ish-ticket-table {
	width: 100%;
	border-collapse: collapse;
}
.ish-ticket-table th,
.ish-ticket-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	font-size: 0.92em;
}
.ish-ticket-table th {
	background: #f6f7f7;
	font-weight: 600;
}
.ish-ticket-row:hover {
	background: #f9fbfe;
}
.ish-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	background: #eef3fb;
	color: #2271b1;
	font-size: 0.85em;
	font-weight: 600;
}
#ish-load-more-btn {
	margin-top: 12px;
}

/* ---------------------------------------------------------------------
 * Ticket detail panel
 * ------------------------------------------------------------------- */
.ish-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.ish-detail-group {
	margin-bottom: 14px;
}
.ish-detail-group h4 {
	margin: 0 0 6px;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #777;
}
.ish-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px 18px;
}
.ish-detail-field {
	display: flex;
	flex-direction: column;
	font-size: 0.9em;
}
.ish-detail-label {
	color: #777;
	font-size: 0.8em;
}
.ish-detail-value {
	word-break: break-word;
}
.ish-subitem-list,
.ish-attachment-list {
	margin: 0 0 14px;
	padding-left: 18px;
}
.ish-subitem-list li,
.ish-attachment-list li {
	margin-bottom: 6px;
}
/* By Ticket / By Order tabs — new, additive only. */
.ish-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 16px;
	border-bottom: 1px solid #dcdcde;
}
.ish-tab-btn {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 10px 16px;
	font-size: 1em;
	cursor: pointer;
	color: #555;
}
.ish-tab-btn:hover {
	color: #2271b1;
}
.ish-tab-btn.ish-tab-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 600;
}

/* Order detail's linked-devices table — new, additive only. */
.ish-order-devices-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 18px;
}
.ish-order-devices-table th,
.ish-order-devices-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	font-size: 0.9em;
}
.ish-order-devices-table th {
	color: #777;
	font-weight: 600;
}
.ish-order-devices-table .ish-view-ticket-btn {
	padding: 2px 10px;
	font-size: 0.85em;
}

/* Read-only per-ticket "View" modal, opened from the Order tab's device
   list. New, additive only. */
.ish-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 20px;
}
.ish-modal-box {
	background: #fff;
	border-radius: 6px;
	max-width: 720px;
	width: 100%;
	padding: 20px 24px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.ish-modal-box .ish-detail-header {
	margin-bottom: 10px;
}
