/* IT Helpdesk — front-end styles */

.ithd-form,
.ithd-ticket-list,
.ithd-ticket-detail {
	max-width: 720px;
	margin: 1.5em 0;
	font-size: 17px;
	line-height: 1.6;
}

.ithd-field {
	margin-bottom: 1.1em;
}

.ithd-field-note {
	font-size: 0.9em;
	color: #757575;
	margin-top: -0.4em;
}

.ithd-field-hint {
	display: block;
	font-size: 0.85em;
	color: #757575;
	margin-top: 0.4em;
}

.ithd-form input[type="file"] {
	display: block;
	width: 100%;
	font-size: 0.95em;
}

.ithd-attachment {
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 0.7em 1em;
	margin-bottom: 1.2em;
	font-size: 0.95em;
}

.ithd-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.ithd-field-row .ithd-field {
	flex: 1 1 200px;
	margin-bottom: 1.1em;
}

.ithd-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.ithd-field .required {
	color: #c0392b;
}

.ithd-form input[type="text"],
.ithd-form input[type="email"],
.ithd-form input[type="password"],
.ithd-form input[type="tel"],
.ithd-form select,
.ithd-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55em 0.7em;
	border: 1px solid #c3c9d2;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
	color: #1d2327;
}

.ithd-form input[type="text"]:focus,
.ithd-form input[type="email"]:focus,
.ithd-form input[type="password"]:focus,
.ithd-form input[type="tel"]:focus,
.ithd-form select:focus,
.ithd-form textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.ithd-form textarea {
	resize: vertical;
}

.ithd-button {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.65em 1.4em;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.ithd-button:hover,
.ithd-button:focus {
	background: #135e96;
	color: #fff;
}

.ithd-button-small {
	padding: 0.35em 0.9em;
	font-size: 0.85em;
}

.ithd-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ithd-notice {
	padding: 0.9em 1.1em;
	border-radius: 4px;
	background: #f0f0f1;
	border-left: 4px solid #72aee6;
	margin-bottom: 1.2em;
}

.ithd-notice-success {
	background: #edfaef;
	border-left-color: #46b450;
}

.ithd-notice-error {
	background: #fbeaea;
	border-left-color: #c0392b;
}

.ithd-table {
	width: 100%;
	border-collapse: collapse;
}

.ithd-table th,
.ithd-table td {
	text-align: left;
	padding: 0.6em 0.7em;
	border-bottom: 1px solid #e2e4e7;
}

.ithd-badge {
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: #e2e4e7;
	color: #1d2327;
}

.ithd-status-open { background: #d7e8fc; color: #12457a; }
.ithd-status-in-progress { background: #fff2cc; color: #7a5b00; }
.ithd-status-waiting { background: #f3e2fb; color: #5b1e91; }
.ithd-status-resolved { background: #dcf3df; color: #1c6b2d; }
.ithd-status-closed { background: #e2e4e7; color: #50575e; }

.ithd-priority-low { background: #e2e4e7; color: #50575e; }
.ithd-priority-medium { background: #d7e8fc; color: #12457a; }
.ithd-priority-high { background: #ffe3cc; color: #8a4b00; }
.ithd-priority-urgent { background: #fbdede; color: #8a1f11; }

.ithd-issue-type {
	background: #eee;
	color: #444;
}

.ithd-contact-info {
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 0.8em 1.2em;
	margin-bottom: 1.2em;
	font-size: 0.95em;
}

.ithd-contact-info ul {
	margin: 0.4em 0 0;
	padding-left: 1.1em;
}

.ithd-meta-row {
	margin: 0.6em 0 1.2em;
}

.ithd-meta-row .ithd-badge {
	margin-right: 0.4em;
}

.ithd-assigned {
	font-size: 0.9em;
	color: #50575e;
	margin-left: 0.4em;
}

.ithd-description {
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 1em 1.2em;
	margin-bottom: 1.5em;
}

.ithd-thread {
	margin-bottom: 1.5em;
}

.ithd-comment {
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 0.8em 1em;
	margin-bottom: 0.8em;
}

.ithd-comment-staff {
	background: #f0f6fc;
	border-color: #cfe2f3;
}

.ithd-comment-meta {
	font-size: 0.85em;
	color: #50575e;
	margin-bottom: 0.4em;
}

.ithd-tag {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border-radius: 3px;
	padding: 0.05em 0.5em;
	font-size: 0.85em;
}

.ithd-comment-meta .ithd-tag {
	margin: 0 0.4em;
}

/* Login forms (client/tech) */
.ithd-login-form {
	max-width: 420px;
	margin: 1.5em 0;
}

.ithd-login-help {
	font-size: 0.85em;
	color: #757575;
	margin-top: 1em;
}

/* Tech dashboard */
.ithd-tech-dashboard {
	max-width: 1000px;
	margin: 1.5em 0;
}

.ithd-tech-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1em;
}

.ithd-tech-header h2 {
	margin: 0;
}

.ithd-tech-controls {
	margin: 1.5em 0;
	padding: 1.2em;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
}

.ithd-tech-controls .ithd-form {
	margin-bottom: 0.8em;
}

.ithd-inline-form {
	display: inline-block;
	margin-right: 0.6em;
}

.ithd-empty {
	color: #757575;
	font-style: italic;
}

.ithd-reply-status {
	margin-top: 0.5em;
	font-size: 0.9em;
}

.ithd-reply-status.is-error {
	color: #c0392b;
}
