﻿/* Phase 4: ausgelagerte Montagebericht-Styles aus modules.css */

/* Montageberichte v0.21.0 */
body.app-view-montage-reports .container{max-width:100%;}
#view-montage-reports .card{width:100%;max-width:100%;}
.montage-reports-page{max-width:min(100%,1120px);margin:0 auto;}
.montage-reports-actions .btn{min-height:46px;}
.montage-report-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1080px;margin:0 auto;}
.montage-report-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 18px 40px rgba(15,23,42,.06);}
.montage-report-card.is-locked{border-color:rgba(16,185,129,.28);background:linear-gradient(180deg,#f7fffb 0%,#f8fafc 100%);}
.montage-report-card__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.montage-report-card__title{font-size:18px;font-weight:800;line-height:1.1;}
.montage-report-card__sub{margin-top:6px;line-height:1.35;}
.montage-report-card__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;}
.montage-report-card__grid span{display:block;font-size:12px;}
.montage-report-card__grid strong{display:block;margin-top:2px;font-size:14px;}
.montage-report-card__actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:14px;}
.montage-report-card__actions .btn{min-width:0;padding-left:8px;padding-right:8px;}
.montage-wizard-card{overflow:visible;max-width:1040px;margin:0 auto;padding:24px 26px;}
.montage-wizard-meta{display:flex;flex-wrap:wrap;gap:8px;}
.montage-readonly{padding:14px 16px;border:1px solid rgba(16,185,129,.3);border-left:6px solid #10b981;border-radius:16px;background:rgba(16,185,129,.08);color:#065f46;}
.montage-stepper{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-bottom:6px;}


.montage-stepper__item{min-height:68px;padding:12px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);font-weight:700;text-align:left;line-height:1.2;}
.montage-stepper__item.is-active{border-color:#0b5bd3;background:rgba(11,91,211,.1);box-shadow:0 0 0 2px rgba(11,91,211,.08) inset;}
.montage-step-body{display:flex;flex-direction:column;gap:16px;margin-top:6px;}
.montage-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.montage-grid-hours{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.montage-grid-hours .field--wide{grid-column:1 / -1;}
.montage-grid-materials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.montage-grid-materials .field--wide{grid-column:1 / -1;}
.montage-grid-extras{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.montage-grid-extras .field--wide{grid-column:1 / -1;}
.montage-row-card{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;}
.montage-row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:10px;}
.montage-repeat-list{display:flex;flex-direction:column;gap:12px;}
.montage-textarea{min-height:140px;resize:vertical;}
.montage-textarea--xl{min-height:220px;}
.montage-extra-title{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 2px;}
.montage-signature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.montage-signature-card{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease;}
.montage-signature-card:hover{border-color:rgba(11,91,211,.24);box-shadow:0 10px 28px rgba(15,23,42,.08);}
.montage-signature-card:focus-within{border-color:rgba(11,91,211,.3);box-shadow:0 0 0 3px rgba(11,91,211,.08);}
.montage-signature-pad-wrap{margin-top:8px;border:1px dashed #94a3b8;border-radius:14px;background:repeating-linear-gradient(180deg,#fff,#fff 28px,#f8fafc 28px,#f8fafc 29px);overflow:hidden;}
.montage-signature-pad{display:block;touch-action:none;background:transparent;}
.montage-signature-preview{display:block;width:100%;height:84px;object-fit:contain;margin-top:10px;border-top:1px solid var(--line);padding-top:10px;}
.montage-step-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;}
.montage-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.montage-preview-frame{width:100%;min-height:900px;border:1px solid var(--line);border-radius:18px;background:#fff;}
.montage-reports-actions .btn,
.montage-step-actions .btn,
.montage-preview-toolbar .btn{min-width:120px;}
@media (max-width: 1180px){.montage-stepper{grid-template-columns:repeat(4,minmax(0,1fr));}.montage-signature-grid,.montage-grid-2,.montage-grid-materials,.montage-grid-hours,.montage-grid-extras{grid-template-columns:repeat(2,minmax(0,1fr));}.montage-report-list{grid-template-columns:1fr;}.montage-report-card__actions{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width: 760px){.montage-stepper,.montage-signature-grid,.montage-grid-2,.montage-grid-materials,.montage-grid-hours,.montage-grid-extras,.montage-report-card__grid,.montage-report-card__actions{grid-template-columns:1fr;}.montage-stepper__item{min-height:54px;}.montage-preview-frame{min-height:680px;}}

.montage-filter-row{align-items:flex-end;}
.montage-checkbox{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 6px 10px;color:var(--text);font-weight:600;}
.montage-grid-2--airy{gap:14px 18px;}
.montage-inline-hint{padding:12px 14px;border:1px solid rgba(245,158,11,.28);border-left:6px solid #f59e0b;border-radius:14px;background:rgba(245,158,11,.1);color:#92400e;}
.montage-signature-preview-box{min-height:132px;display:flex;align-items:center;justify-content:center;border:1px dashed #94a3b8;border-radius:14px;background:repeating-linear-gradient(180deg,#fff,#fff 30px,#f8fafc 30px,#f8fafc 31px);padding:10px;}
.montage-step-actions__right{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.montage-signature-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px;}
.montage-signature-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.54);}
.montage-signature-modal__dialog{position:relative;z-index:1;width:min(840px,100%);max-height:90vh;overflow:auto;padding:20px;border-radius:22px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.24);}
.montage-signature-modal__pad{border:1px dashed #94a3b8;border-radius:18px;background:repeating-linear-gradient(180deg,#fff,#fff 34px,#f8fafc 34px,#f8fafc 35px);overflow:hidden;cursor:crosshair;}
.montage-signature-pad--modal{display:block;touch-action:none;background:transparent;}
.montage-signature-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:var(--muted);}
@media (max-width: 1180px){.montage-stepper{grid-template-columns:repeat(4,minmax(0,1fr));}.montage-signature-grid,.montage-grid-2,.montage-grid-materials,.montage-grid-hours,.montage-grid-extras{grid-template-columns:repeat(2,minmax(0,1fr));}.montage-report-list{grid-template-columns:1fr;}.montage-report-card__actions{grid-template-columns:repeat(3,minmax(0,1fr));}.montage-step-actions__right{justify-content:stretch;}}
@media (max-width: 760px){.montage-stepper,.montage-signature-grid,.montage-grid-2,.montage-grid-materials,.montage-grid-hours,.montage-grid-extras,.montage-report-card__grid,.montage-report-card__actions,.montage-step-actions__right{grid-template-columns:1fr;}.montage-stepper__item{min-height:54px;}.montage-preview-frame{min-height:680px;}.montage-signature-modal{padding:10px;}.montage-signature-modal__dialog{padding:14px;}.montage-wizard-card{padding:18px;}.montage-signature-preview-box{min-height:120px;}}

.montage-signature-modal__dialog--compact{width:min(720px,100%);}
.montage-step-body{display:grid;gap:18px;}

