/* Mills Carpentry wireframe - small additions on top of vendor/css/custom_css.css */

.sidebar { padding-bottom: 70px; }
.sidebar .nav-link { padding: 9px 14px; margin: 1px 6px; }
.sidebar .submenu-item { font-size: 13px; }
.wf-so { font-size: 10px; opacity: .75; font-style: italic; margin-left: 4px; white-space: nowrap; }
.sidebar .link-text { white-space: normal !important; line-height: 1.2; }
.sidebar-brand-link .brand-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary-color);
	display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.logo-text { font-size: 16px !important; }

/* Screen-only banner */
.wf-banner { background: #fff8e1; border: 1px dashed #e6a700; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
	font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.wf-banner .wf-ref { font-size: 12px; background: #fff; border: 1px solid #f1d27a; border-radius: 20px; padding: 2px 10px; }
.wf-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wf-flow .btn { font-size: 12px; padding: 2px 10px; }

/* Locked (dummy) fields keep the normal look */
.form-control[readonly], .form-control:disabled, .form-select:disabled, textarea[readonly] { background-color: #fff; cursor: not-allowed; }
.form-check-input:disabled, .form-check-input:disabled ~ .form-check-label { opacity: 1; cursor: not-allowed; }
.wf-section-title { font-weight: 600; font-size: 15px; border-bottom: 1px solid #e9ecef; padding-bottom: 6px; margin: 14px 0 10px; color: var(--primary-color); }

/* Status badges */
.status-badge { white-space: nowrap; }
.st-new { background: #e7f0ff; color: #0b4bd8; }
.st-booked { background: #ede7ff; color: #5a2fc2; }
.st-onsite { background: #e6f7ff; color: #0a7ea4; }
.st-materials { background: #fff3e0; color: #c25e00; }
.st-feedback { background: #e8f5e9; color: #1b7a34; }
.st-invoice { background: #fffde7; color: #8a6d00; }
.st-closed { background: #eceff1; color: #455a64; }
.st-active { background: rgba(16,185,129,.12); color: #0f8a5f; }
.st-archived { background: #f1f1f1; color: #666; }
.st-warn { background: #fdecea; color: #b42318; }
.st-reserved { background: #fdecea; color: #7C2529; border: 1px dashed #7C2529; }

/* Stage stepper */
.wf-stepper { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 8px; }
.wf-stepper .step { flex: 1 1 110px; text-align: center; padding: 8px 4px; font-size: 13px; background: #eef1f6; color: #6b7280;
	border-right: 2px solid #fff; position: relative; }
.wf-stepper .step:first-child { border-radius: 8px 0 0 8px; }
.wf-stepper .step:last-child { border-radius: 0 8px 8px 0; border-right: 0; }
.wf-stepper .step.done { background: #e6d2d4; color: #7C2529; }
.wf-stepper .step.current { background: var(--primary-color); color: #fff; font-weight: 600; }

/* Placeholders */
.wf-img { background: repeating-linear-gradient(45deg, #f1f3f5, #f1f3f5 10px, #e9ecef 10px, #e9ecef 20px); border: 1px solid #dee2e6;
	border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6c757d; font-size: 13px; text-align: center; min-height: 90px; }
.wf-drop { border: 2px dashed #adb5bd; border-radius: 10px; padding: 22px; text-align: center; color: #6c757d; background: #fafbfc; }
.wf-reserved { border: 2px dashed #7C2529; background: #fdf3f3; border-radius: 12px; padding: 40px 20px; text-align: center; color: #7a1014; }

/* Mini panels */
.wf-panel { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; background: #fff; height: 100%; }
.wf-panel h6 { font-weight: 600; margin-bottom: 8px; }
.wf-kv { font-size: 14px; margin-bottom: 4px; }
.wf-kv span:first-child { color: #6b7280; display: inline-block; min-width: 130px; }

/* Timeline */
.wf-timeline { list-style: none; padding-left: 0; margin: 0; }
.wf-timeline li { border-left: 3px solid #e6d2d4; padding: 0 0 12px 14px; position: relative; font-size: 14px; }
.wf-timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary-color); }
.wf-timeline li small { color: #6b7280; display: block; }

/* Flow map */
.flow-section { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 14px; margin-bottom: 16px; }
.flow-section h5 { font-size: 16px; font-weight: 700; background: #efe6c4; display: inline-block; padding: 4px 10px; border-radius: 6px; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.flow-step { display: block; text-decoration: none; color: #222; border: 2px solid #8a8a83; background: #f3f1ea; border-radius: 8px;
	padding: 10px; width: 190px; font-size: 13px; transition: transform .15s; }
.flow-step:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.1); color: #000; }
.flow-step b { display: block; font-size: 13px; margin-bottom: 2px; }
.flow-step.purple { border-color: #6b3fa0; background: #f1ecf8; }
.flow-step.green { border-color: #1f7a4d; background: #e8f3ec; }
.flow-step.blue { border-color: #22336b; background: #e5e9f5; }
.flow-step.red { border-color: #7C2529; background: #fbe5e6; }
.flow-step.decision { border-style: dashed; }
.flow-arrow { align-self: center; color: #7C2529; font-size: 18px; }

/* Calendar */
.wf-cal th { font-size: 13px !important; text-align: center; }
.wf-cal td { vertical-align: top; height: 90px; width: 14%; font-size: 12px; }
.wf-appt { display: block; text-decoration: none; background: #e7f0ff; border-left: 3px solid var(--primary-color); border-radius: 4px;
	padding: 3px 5px; margin-bottom: 4px; color: #1f2937; }
.wf-appt:hover { background: #d4e3ff; color: #000; }
.wf-appt.amber { background: #fff3e0; border-left-color: #f59e0b; }
.wf-appt.green { background: #e8f5e9; border-left-color: #10b981; }

/* Phone frame for the team portal */
.wf-phone { max-width: 380px; margin: 0 auto; border: 10px solid #1f2937; border-radius: 34px; background: #f5f7fb; overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wf-phone .phone-top { background: var(--primary-color); color: #fff; padding: 14px 16px; font-weight: 600; }
.wf-phone .phone-body { padding: 14px; min-height: 560px; }
.wf-phone .tap { display: block; width: 100%; padding: 14px; font-size: 16px; margin-bottom: 10px; border-radius: 12px; }

/* Document / PDF preview */
.wf-doc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 18px rgba(0,0,0,.08); padding: 36px 40px; font-size: 14px; }
.wf-doc .doc-head { border-bottom: 3px solid var(--primary-color); padding-bottom: 12px; margin-bottom: 16px; }

.table td, .table th { vertical-align: middle; }
.table { table-layout: auto; }
table.nowrap td, table.nowrap th { white-space: nowrap; }
.table td { font-size: 14px; }
.table th { font-size: 14px !important; padding: 10px 8px !important; white-space: nowrap; }
.wf-toast { position: fixed; top: 20px; right: 20px; z-index: 2000; min-width: 300px; }
.wf-tabs .nav-link { color: #333; }
.wf-tabs .nav-link.active { color: var(--primary-color); font-weight: 600; }
.pp-row td { background: #fbe9ea !important; }
