@font-face{
  font-family:Inter;
  src:local('Inter');
  font-display:swap
}
:root{
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:#26362d;
  background:#f6f7f2;
  font-synthesis:none;
  --green:#38563a;
  --lime:#b2ca68;
  --muted:#778078;
  --line:#e2e7dd;
  --paper:#fff;
  --shadow:0 12px 32px #26362d0b
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select,textarea{
  font:inherit
}
button,a,input,select,textarea{
  outline-offset:4px
}
button{
  cursor:pointer
}
button:disabled{
  opacity:.5;
  cursor:wait
}
button{
  border:1px solid var(--line);
  background:white;
  color:inherit;
  border-radius:9px;
  padding:10px 14px;
  font-weight:550
}
button:hover{
  background:#eff3e9
}
button.primary{
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
button.primary:hover{
  background:#29432c
}
button.ghost{
  border:0;
  background:transparent
}
button.danger{
  color:#a13f35
}
a{
  color:var(--green)
}
h1,h2,h3,p{
  margin-top:0
}
h1{
  font-size:30px;
  letter-spacing:-1px;
  margin-bottom:8px;
  font-weight:650
}
h2{
  font-size:20px;
  letter-spacing:-.4px
}
h3{
  font-size:14px
}
small,.muted{
  color:var(--muted)
}
small{
  font-size:12px
}
.loading{
  padding:40px
}
.shell{
  display:grid;
  grid-template-columns:246px minmax(0,1fr);
  min-height:100dvh
}
.sidebar{
  background:#243b28;
  color:#e5ecdf;
  padding:30px 18px 20px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100dvh
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 12px 42px
}
.brand-mark{
  border:2px solid var(--lime);
  color:var(--lime);
  border-radius:12px;
  font-weight:800;
  font-size:22px;
  padding:8px;
  letter-spacing:-2px
}
.brand-name{
  font-size:19px;
  font-weight:720;
  letter-spacing:1px
}
.brand small{
  color:#b3c0ac;
  font-size:11px;
  letter-spacing:2px
}
.nav-label{
  color:#9eb395;
  font-size:10px;
  letter-spacing:1.8px;
  margin:28px 12px 12px;
  text-transform:uppercase
}
.nav-button{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:#d7e2d0;
  margin:3px 0;
  padding:12px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px
}
.nav-button:hover{
  background:#314b33
}
.nav-button.active{
  background:#b2ca68;
  color:#203123
}
.nav-button .count{
  margin-left:auto;
  font-size:11px;
  opacity:.75
}
.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
  flex-shrink:0;
  background:#91b667
}
.dot.amber{
  background:#d6aa63
}
.dot.brown{
  background:#ae7851
}
.dot.blue{
  background:#8db5be
}
.dot.purple{
  background:#b7a3c8
}
.sidebar-bottom{
  margin-top:auto;
  padding-top:28px
}
.profile{
  border-top:1px solid #476047;
  padding:20px 9px 0;
  display:flex;
  align-items:center;
  gap:10px
}
.avatar{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#edf1e5;
  color:#476047;
  font-size:11px;
  font-weight:700;
  flex-shrink:0
}
.profile .avatar{
  background:#40553c;
  color:#d9e8b2
}
.profile strong{
  display:block;
  font-size:12px
}
.profile small{
  color:#a9bba0;
  font-size:10px
}
.profile .ghost{
  color:#bdcdb5;
  margin-left:auto;
  padding:6px
}
.main{
  min-width:0
}
.topbar{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 38px;
  border-bottom:1px solid var(--line);
  background:#fbfcf8;
  gap:12px
}
.breadcrumb{
  color:#8a9387;
  font-size:12px
}
.breadcrumb strong{
  color:#4c5c4c;
  font-weight:500
}
.top-actions{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:11px;
  color:#7e8978
}
.sync{
  display:flex;
  align-items:center;
  gap:7px
}
.connection.unavailable .dot{
  background:#d7ab62
}
.content{
  padding:35px 38px 45px;
  max-width:1800px;
  margin:auto
}
.heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px
}
.heading p{
  font-size:13px;
  color:var(--muted);
  margin:0
}
.heading-actions{
  display:flex;
  gap:8px
}
.today{
  font-size:11px;
  color:#63725f
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:30px
}
.stat{
  padding:19px 22px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper)
}
.stat span{
  font-size:11px;
  color:#6e7b6a
}
.stat strong{
  font-size:28px;
  font-weight:550;
  letter-spacing:-1px;
  display:block;
  margin-top:8px
}
.stat:last-child{
  background:#edf2e4;
  border-color:#e0e8d4
}
.toolbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
  align-items:center;
  flex-wrap:wrap
}
.tabs{
  display:flex;
  padding:4px;
  background:#e9ede3;
  border-radius:9px;
  gap:3px
}
.tabs button{
  padding:8px 16px;
  border:0;
  background:transparent;
  border-radius:6px;
  font-size:12px;
  color:#6d7965
}
.tabs button.active{
  background:#fff;
  box-shadow:0 2px 6px #26362d0a;
  color:#30452e
}
.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.filters input,.filters select{
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:12px;
  color:#586650
}
.filters input{
  max-width:190px
}
.board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.board.orders{
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.column{
  min-width:0;
  background:#eef1e9;
  border-radius:12px;
  padding:14px;
  min-height:350px
}
.column-header{
  display:flex;
  align-items:center;
  gap:9px;
  margin:3px 2px 18px;
  font-size:12px;
  font-weight:650
}
.column-header .badge{
  padding:3px 7px;
  background:#e1e7d9;
  border-radius:6px;
  font-size:10px;
  color:#738169
}
.column-header button{
  margin-left:auto;
  font-size:17px;
  padding:0 5px;
  color:#87967f;
  border:0;
  background:none
}
.cards{
  display:flex;
  flex-direction:column;
  gap:12px
}
.card{
  text-align:left;
  background:#fff;
  border:1px solid #e2e7dc;
  border-radius:11px;
  padding:17px;
  box-shadow:0 3px 5px #273a2403;
  cursor:pointer;
  transition:border-color .15s,transform .15s
}
.card:hover{
  border-color:#aec38e;
  transform:translateY(-2px);
  background:#fff
}
.card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  margin-bottom:13px
}
.tag{
  font-size:9px;
  padding:4px 7px;
  border-radius:4px;
  background:#edf3e2;
  color:#64813c;
  font-weight:600
}
.tag.amber{
  background:#fbf1dd;
  color:#a3752f
}
.tag.brown{
  background:#f5e9dd;
  color:#a27142
}
.tag.blue{
  background:#e7f1f4;
  color:#577f8b
}
.tag.purple{
  background:#efeaf6;
  color:#8c72a5
}
.priority{
  font-size:9px;
  color:#7d8877
}
.priority.high{
  color:#b48437
}
.priority.urgent{
  color:#b64e3c
}
.card h3{
  font-size:14px;
  line-height:1.5;
  margin-bottom:8px;
  font-weight:600;
  color:#33422e;
  overflow-wrap:anywhere
}
.card p{
  font-size:11px;
  color:#8b9485;
  line-height:1.6;
  margin-bottom:14px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.card-bottom{
  border-top:1px solid #f0f2eb;
  padding-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px
}
.due{
  font-size:10px;
  color:#7c8974
}
.due.late{
  color:#b05d42
}
.card .avatar{
  width:25px;
  height:25px;
  font-size:9px
}
.progress{
  height:3px;
  background:#edf0e6;
  border-radius:3px;
  margin:8px 0 13px;
  overflow:hidden
}
.progress-fill{
  height:100%;
  background:#a8bd73
}
.empty{
  padding:38px 10px;
  text-align:center;
  color:#88967e;
  font-size:12px;
  line-height:1.7
}
.section-title{
  margin:30px 0 16px;
  font-size:14px
}
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px
}
.calendar-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px
}
.calendar-head h2{
  margin:0;
  text-transform:capitalize
}
.weekdays,.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr))
}
.weekdays>div{
  text-align:center;
  font-size:11px;
  color:#7d8a74;
  padding:10px
}
.day{
  border-top:1px solid var(--line);
  border-right:1px solid var(--line);
  min-height:120px;
  padding:7px;
  min-width:0
}
.day:nth-child(7n){
  border-right:0
}
.day.outside{
  background:#f7f8f4;
  color:#b6bdb0
}
.day-number{
  font-size:11px;
  padding:5px;
  display:inline-flex;
  width:25px;
  height:25px;
  justify-content:center;
  border-radius:50%
}
.day.today .day-number{
  background:var(--green);
  color:#fff
}
.calendar-task{
  display:block;
  text-align:left;
  width:100%;
  border:0;
  border-radius:4px;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:5px;
  margin-top:4px;
  background:#ebf1df
}
.day-add{
  float:right;
  padding:2px 5px;
  border:0;
  background:none;
  color:#9aa68f
}
.login-screen{
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-aside{
  background:#243b28;
  color:#fff;
  padding:60px 12%;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.login-aside .brand{
  margin:0 0 70px
}
.login-aside h1{
  font-size:48px;
  line-height:1.15;
  font-weight:500;
  letter-spacing:-2px;
  max-width:450px
}
.login-aside h1 em{
  color:#b2ca68;
  font-style:normal
}
.login-aside p{
  color:#bacab1;
  font-size:15px;
  line-height:1.8;
  max-width:370px
}
.login-form-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px
}
.login-form{
  width:100%;
  max-width:360px
}
.login-form h2{
  font-size:25px;
  margin-bottom:10px
}
.login-form p{
  color:#7d8976;
  font-size:13px;
  line-height:1.7;
  margin-bottom:28px
}
.login-form .primary{
  width:100%;
  padding:13px
}
.field{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:17px;
  min-width:0
}
.field label{
  font-size:12px;
  font-weight:600;
  color:#53624b
}
.field input,.field select,.field textarea{
  width:100%;
  border:1px solid #dce3d4;
  border-radius:8px;
  padding:11px 12px;
  background:#fff;
  color:#2b3d28;
  font-size:13px
}
.field textarea{
  resize:vertical;
  min-height:90px;
  line-height:1.6
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid #b7cb92;
  border-color:transparent
}
.field small{
  font-size:11px
}
.fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 16px
}
.full{
  grid-column:1/-1
}
.error{
  color:#a43b32;
  background:#fcf0ed;
  padding:12px;
  border-radius:8px;
  font-size:12px;
  margin-bottom:16px
}
.notice{
  padding:12px 15px;
  border-radius:8px;
  background:#f3efdf;
  color:#8c7439;
  font-size:12px;
  line-height:1.6;
  margin-bottom:16px
}
.offline-banner{
  margin:0 0 20px
}
.mobile-menu{
  display:none
}
dialog{
  padding:0;
  border:1px solid var(--line);
  border-radius:16px;
  width:min(760px,calc(100vw - 28px));
  max-height:90dvh;
  box-shadow:0 24px 100px #15210d40;
  color:inherit;
  background:#fdfefa
}
dialog::backdrop{
  background:#14200d66;
  backdrop-filter:blur(3px)
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 26px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:#fdfefa;
  z-index:1;
  gap:10px
}
.modal-header h2{
  margin:0;
  font-size:19px
}
.modal-body{
  padding:25px 26px
}
.modal-footer{
  padding:16px 26px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:10px;
  background:#f8faf4
}
.detail-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px
}
.detail-description{
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.detail-audit{
  font-size:11px;
  color:#86907d;
  line-height:1.9;
  margin:18px 0
}
.detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 24px
}
.detail-actions button{
  font-size:12px
}
.divider{
  border:0;
  border-top:1px solid var(--line);
  margin:24px 0
}
.subtask{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  font-size:13px
}
.subtask input{
  accent-color:var(--green);
  width:16px;
  height:16px
}
.subtask.done span{
  text-decoration:line-through;
  color:#9aa590
}
.comment{
  padding:14px 0;
  border-bottom:1px solid #eef1e8
}
.comment-head{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  margin-bottom:7px
}
.comment p{
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.7;
  margin:0
}
.comment small{
  margin-left:auto;
  font-size:10px
}
.attachment{
  display:inline-flex;
  margin:8px 8px 0 0;
  border:1px solid var(--line);
  border-radius:7px;
  padding:7px;
  align-items:center;
  gap:8px;
  max-width:100%;
  font-size:11px
}
.attachment img{
  width:52px;
  height:52px;
  object-fit:cover;
  border-radius:4px
}
.history{
  font-size:11px;
  color:#75836a;
  line-height:1.8;
  margin-bottom:10px
}
.history strong{
  color:#47593d
}
.history small{
  display:block;
  font-size:10px
}
.inline-row{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:10px
}
.inline-row input{
  min-width:0;
  flex:1;
  padding:10px;
  border:1px solid var(--line);
  border-radius:7px;
  font-size:12px
}
.inline-row .quantity{
  max-width:90px
}
.inline-row button{
  padding:8px
}
.table-scroll{
  overflow-x:auto
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:12px
}
th,td{
  text-align:left;
  padding:13px 10px;
  border-bottom:1px solid var(--line)
}
th{
  font-size:10px;
  color:#849079;
  font-weight:500
}
td input[type=number]{
  width:70px;
  border:1px solid var(--line);
  border-radius:5px;
  padding:7px
}
.admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.admin-grid .panel h2{
  font-size:16px
}
.reference{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  gap:10px;
  font-size:12px
}
.reference button{
  font-size:10px;
  padding:6px 8px
}
.reference .buttons{
  display:flex;
  gap:4px
}
.reference.archived{
  opacity:.55
}
#toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:#263e29;
  color:white;
  border-radius:10px;
  padding:12px 22px;
  font-size:12px;
  z-index:5;
  max-width:90vw;
  box-shadow:var(--shadow);
  display:none
}
#toast.visible{
  display:block
}
.conflict-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.conflict-columns pre{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:250px;
  overflow:auto;
  background:#f0f3ea;
  border-radius:8px;
  padding:12px;
  font-size:11px
}
.hidden{
  display:none!important
}
.brand-logo{
  width:48px;
  height:40px;
  object-fit:contain
}
.help-text{
  font-size:11px;
  color:#839078;
  line-height:1.7
}
.task-title-line{
  display:flex;
  gap:8px;
  align-items:center
}
.task-title-line input{
  flex:1;
  min-width:0
}
@media(min-width:1500px){
  .content{
    padding:42px 55px
  }
  .board{
    gap:25px
  }
  .card{
    padding:21px
  }
  .column{
    padding:17px
  }
}
@media(max-width:1150px){
  .shell{
    grid-template-columns:210px minmax(0,1fr)
  }
  .sidebar{
    padding:25px 12px
  }
  .content{
    padding:28px 22px
  }
  .topbar{
    padding:0 22px
  }
  .board{
    gap:12px
  }
  .column{
    padding:10px
  }
  .board.orders{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .filters{
    gap:5px
  }
  .filters input{
    max-width:145px
  }
  .stat{
    padding:16px
  }
  .heading{
    align-items:flex-start
  }
  .today{
    display:none
  }
}
@media(max-width:800px){
  .shell{
    display:block
  }
  .sidebar{
    position:fixed;
    left:0;
    top:0;
    width:250px;
    z-index:4;
    transform:translateX(-100%);
    transition:transform .2s
  }
  .sidebar.open{
    transform:translateX(0);
    box-shadow:0 0 0 100vmax #14210d66
  }
  .mobile-menu{
    display:block;
    padding:5px 9px;
    font-size:18px
  }
  .topbar{
    height:61px;
    padding:0 18px
  }
  .breadcrumb{
    margin-right:auto
  }
  .top-actions{
    font-size:10px
  }
  .content{
    padding:24px 16px
  }
  h1{
    font-size:25px
  }
  .heading{
    margin-bottom:22px
  }
  .heading .primary{
    font-size:11px;
    padding:11px
  }
  .stats{
    gap:8px;
    margin-bottom:22px
  }
  .stat{
    padding:12px
  }
  .stat span{
    font-size:9px
  }
  .stat strong{
    font-size:23px
  }
  .board{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    padding-bottom:12px;
    gap:12px
  }
  .column{
    min-width:275px;
    flex:1;
    scroll-snap-align:start;
    padding:13px
  }
  .board.orders{
    display:flex
  }
  .toolbar{
    gap:14px
  }
  .filters{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px
  }
  .filters input{
    max-width:none;
    grid-column:1/-1
  }
  .filters select{
    width:100%;
    min-width:0
  }
  .admin-grid{
    grid-template-columns:1fr
  }
  .calendar.panel{
    padding:12px
  }
  .day{
    min-height:90px;
    padding:3px
  }
  .calendar-task{
    font-size:9px;
    padding:4px 2px
  }
  .day-number{
    font-size:10px
  }
  .calendar-head h2{
    font-size:17px
  }
  .day-add{
    display:none
  }
  .login-screen{
    grid-template-columns:1fr
  }
  .login-aside{
    padding:28px
  }
  .login-aside .brand{
    margin:0 0 25px
  }
  .login-aside h1{
    font-size:30px;
    max-width:none;
    margin-bottom:10px;
    letter-spacing:-1px
  }
  .login-aside p{
    font-size:12px;
    margin:0;
    max-width:none
  }
  .login-form-wrap{
    padding:30px 24px
  }
  .modal-body{
    padding:20px
  }
  .modal-header{
    padding:18px 20px
  }
  .modal-footer{
    padding:15px 20px
  }
  .fields{
    gap:0 12px
  }
  .conflict-columns{
    grid-template-columns:1fr
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.progress{
  display:block;
  width:100%;
  border:0;
  appearance:none
}
.progress::-webkit-progress-bar{
  background:#edf0e6;
  border-radius:3px
}
.progress::-webkit-progress-value{
  background:#a8bd73;
  border-radius:3px
}
.progress::-moz-progress-bar{
  background:#a8bd73
}

.card .request-answer { white-space: pre-wrap; overflow: visible; display: block; -webkit-line-clamp: unset; border-left: 3px solid var(--green, #a5be53); padding-left: 10px; }
.order-selection { border-bottom: 1px solid #dddddd30; padding: 10px 0; }
.order-selection .field { margin: 8px 0 8px 28px; }

.avatar { overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#my-profile { padding: 0; }
#profile-preview .avatar { width: 96px; height: 96px; font-size: 28px; margin-bottom: 16px; }

#photo-crop { max-width: 360px; margin: 0 auto 20px; }
#crop-preview { width: 256px; height: 256px; max-width: 100%; display: block; margin: 0 auto; border-radius: 50%; border: 2px solid #a5be53; cursor: grab; touch-action: none; }
#crop-preview:active { cursor: grabbing; }
#photo-crop input[type="range"] { width: 100%; padding: 0; accent-color: #789b45; }
#crop-zoom-value { margin-left: 8px; }
