
/* TicketFlow v31.8 - Tickets compact + project style */

.v31-tickets-page .top{
  align-items:center;
  margin-bottom:18px;
}
.v31-tickets-page .title{
  font-size:36px;
  letter-spacing:.01em;
  line-height:1;
}
.v31-tickets-page .sub{
  font-weight:700;
  color:#65788f;
}
.v31-tickets-page .top .btn{
  border-radius:14px;
  padding:14px 22px;
  box-shadow:0 10px 26px rgba(31,95,159,.18);
}

/* Compact filter card */
.v31-ticket-filter-card{
  padding:14px 16px!important;
  border-radius:18px!important;
  margin-bottom:18px!important;
}
.v31-ticket-filter-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,1.25fr) minmax(160px,.55fr) minmax(190px,.65fr) minmax(190px,.65fr) minmax(210px,.7fr)!important;
  gap:12px!important;
  align-items:end!important;
}
.v31-ticket-filter-grid .field{
  margin:0!important;
}
.v31-ticket-filter-grid label{
  font-weight:900;
  color:#0f2f4d;
  margin-bottom:6px;
}
.v31-ticket-filter-grid input,
.v31-ticket-filter-grid select{
  min-height:42px!important;
  height:42px!important;
  border-radius:12px!important;
  padding:8px 12px!important;
  font-weight:700;
}
.v31-ticket-filter-actions{
  margin-top:12px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.v31-ticket-filter-actions .check,
.v31-ticket-filter-actions .check-inline{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  border:1px solid #d5e1ef;
  border-radius:999px;
  background:#fff;
  padding:8px 12px;
  font-weight:800;
  color:#0f2f4d;
}
.v31-ticket-filter-actions input[type="checkbox"]{
  width:16px;
  height:16px;
}
.v31-ticket-filter-actions .btn{
  min-height:40px;
  border-radius:12px;
  padding:10px 16px;
}

/* Workspace dropdown with checkboxes */
.v31-check-dropdown{
  position:relative;
  width:100%;
}
.v31-check-dropdown-toggle{
  width:100%;
  min-height:42px;
  border:1px solid #c9d8ea;
  border-radius:12px;
  background:#fff;
  padding:8px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-weight:800;
  color:#0f2f4d;
  cursor:pointer;
}
.v31-check-dropdown-toggle:after{
  content:"▾";
  color:#1f5f9f;
  font-size:12px;
}
.v31-check-dropdown.open .v31-check-dropdown-toggle:after{
  transform:rotate(180deg);
}
.v31-check-dropdown-panel{
  position:absolute;
  z-index:300;
  left:0;
  right:0;
  top:calc(100% + 6px);
  background:#fff;
  border:1px solid #d5e1ef;
  border-radius:14px;
  box-shadow:0 16px 36px rgba(15,47,77,.16);
  padding:8px;
  display:none;
  max-height:260px;
  overflow:auto;
}
.v31-check-dropdown.open .v31-check-dropdown-panel{
  display:block;
}
.v31-check-option{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  color:#0f2f4d;
}
.v31-check-option:hover{
  background:#eef5fd;
}
.v31-check-option input{
  width:16px;
  height:16px;
}
.v31-check-dropdown-native{
  display:none!important;
}

/* Ticket list styled like projects */
.v31-ticket-list-card{
  overflow:hidden;
  padding:0!important;
  border-radius:18px!important;
}
.v31-ticket-bulk-form{
  margin:0;
}
.v31-ticket-table{
  width:100%;
  border-collapse:separate!important;
  border-spacing:0!important;
  margin:0!important;
}
.v31-ticket-table tbody,
.v31-ticket-table thead{
  display:block;
}
.v31-ticket-table tr{
  display:grid;
  grid-template-columns:44px 130px minmax(260px,1.45fr) minmax(145px,.65fr) minmax(160px,.75fr) 120px minmax(230px,1fr) 150px;
  gap:12px;
  align-items:center;
}
.v31-ticket-table tr:first-child{
  background:#f7fafe;
  border-bottom:1px solid #e4edf7;
  color:#0f2f4d;
  font-weight:900;
}
.v31-ticket-table tr[data-ticket-row]{
  min-height:68px;
  border-bottom:1px solid #edf2f8;
  background:#fff;
  cursor:pointer;
}
.v31-ticket-table tr[data-ticket-row]:hover{
  background:#f8fbff;
}
.v31-ticket-table th,
.v31-ticket-table td{
  display:block;
  padding:13px 0!important;
  border:0!important;
  min-width:0;
}
.v31-ticket-table th:first-child,
.v31-ticket-table td:first-child{
  padding-left:18px!important;
}
.v31-ticket-table th:last-child,
.v31-ticket-table td:last-child{
  padding-right:18px!important;
}
.v31-ticket-table td:nth-child(2) a{
  color:#1f5f9f;
  font-weight:900;
  text-decoration:none;
}
.v31-ticket-table td:nth-child(3){
  color:#182d45;
  font-weight:900;
  font-size:16px;
}
.v31-ticket-table td:nth-child(3) .muted{
  display:block;
  font-size:12px;
  font-weight:700;
  margin-top:2px;
}
.v31-ticket-table .badge{
  display:inline-flex;
  justify-content:center;
  min-width:82px;
  border-radius:999px;
  padding:7px 12px;
  background:#d9edb6;
  color:#5f7e33;
  font-weight:900;
  text-transform:uppercase;
}
.v31-ticket-table .ticket-latest-action{
  min-width:0!important;
  max-width:none!important;
}
.v31-ticket-table .ticket-latest-action .kind{
  display:inline-flex;
  max-width:100%;
}
.v31-ticket-table .ticket-latest-action .text{
  max-width:100%!important;
}
.v31-ticket-table .ticket-sort-link{
  color:#0f2f4d!important;
}
.v31-ticket-table .ticket-sort-link:hover{
  color:#1f5f9f!important;
}

/* Compact bulk toolbar */
.v31-ticket-list-card .toolbar.tight{
  padding:14px 18px;
  margin:0!important;
  border-bottom:1px solid #e4edf7;
  background:#fbfdff;
}
.v31-ticket-list-card .toolbar.tight strong{
  color:#0f2f4d;
}
.v31-ticket-list-card .toolbar.tight select{
  min-height:38px;
  border-radius:11px;
}
.v31-ticket-list-card .toolbar.tight .btn{
  min-height:38px;
  border-radius:11px;
}

/* Mobile / smaller screens */
@media(max-width:1250px){
  .v31-ticket-filter-grid{
    grid-template-columns:1fr 1fr!important;
  }
  .v31-ticket-table{
    min-width:1120px;
  }
  .v31-ticket-list-card{
    overflow:auto;
  }
}
@media(max-width:720px){
  .v31-tickets-page .title{font-size:30px}
  .v31-ticket-filter-grid{
    grid-template-columns:1fr!important;
  }
}
