/* Figma dashboard styles */
.plc-body { background:#f5f1ea; }

.plc-topbar{
  background:linear-gradient(0deg, #002842 0%, #002842 100%);
  height:70px;
  display:flex;
  align-items:center;
}

.plc-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding: 18px 36px;
}

.plc-logo-img{
  display:block;
  height: 34px; 
  margin-left: 6px; 
}

.plc-topbar-label{
  color:#fff;
  font-weight:600;
  padding-right: 6px;
}
.plc-topbar-title{ color:#fff; font-weight:600; opacity:.9; }

.plc-page{
  max-width:1200px;
  margin:0 auto;
  padding:42px 24px;
}

.plc-page-title{
  color: #002842;
  font-family: Diagramm;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 36px; /* 120% */
  letter-spacing: 0.396px;
}

.plc-page-sub{ margin-top:8px; color:#30444c; }

.plc-card-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:24px;
}

@media (max-width: 992px){
  .plc-card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .plc-card-grid{ grid-template-columns: 1fr; }
}

.plc-card-link{ text-decoration:none; color:inherit; }

.plc-dash-card{
  background:#fff;
  border:1px solid #e1dbd1;
  border-radius:10px;
  padding:22px;
  min-height:160px;
  box-shadow:0 2px 0 rgba(0,0,0,.04);
}

.plc-dash-top{
  display:flex;
  align-items:center;
  gap:14px;
}

.plc-dash-icon{
  width:54px;
  height:54px;
  border-radius:50%;
  background:#f39a1f;
  display:flex;
  align-items:center;
  justify-content:center;
}

.plc-dash-icon img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.plc-dash-name{
  color: #002842;
  font-family: Diagramm;
  font-size: 16.691px;
  font-style: normal;
  font-weight: 600;
  line-height: 22.255px; /* 133.333% */
  letter-spacing: 0.417px;
  text-transform: uppercase;
}

.plc-dash-meta{
  margin-top:30px;
  font-size:11px;
  letter-spacing:.12em;
  color:#6A7282;
  text-transform:uppercase;
}

.plc-dash-count{
  color: #F18D00;
  font-family: Inter;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px; /* 120% */
  letter-spacing: 0.396px;
}

/* ===== Entries Page (Figma match) --- TO:DO: I will have to come back to this some time */

.plc-entries-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.plc-entries-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 10px;
}

.plc-entries-topbar-right{
  color:#ffffffcc;
  font-weight:600;
  position: relative;
  top: -54px; /* visually aligns to figma header bar */
}

.plc-entries-title{
  margin: 10px 0 0;
  font-size: 34px;
  font-weight: 800;
  color:#0b3a46;
}

.plc-entries-sub{
  margin-top: 6px;
  color:#5a6b73;
}

.plc-entries-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-top: 6px;
}

.plc-entries-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
}

.plc-total-pill{
  background:#0b3a46;
  color:#fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.plc-add-btn{
  background:#f39a1f;
  color:#fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.plc-add-btn:hover{ filter:brightness(.97); color:#fff; }

.plc-card-surface{
  background:#fff;
  border:1px solid #e1dbd1;
  border-radius: 10px;
  margin-top: 24px;
  overflow:hidden;
}

.plc-card-surface-head{
  padding: 14px 18px;
  border-bottom: 1px solid #eee6dc;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.plc-card-surface-title{
  font-weight: 800;
  color:#0b3a46;
}

.plc-card-surface-right{
  color:#78838b;
  font-size: 12px;
  text-align:right;
  white-space:nowrap;
}

.plc-table-v2 thead th{
  font-size: 11px;
  letter-spacing:.12em;
  color:#7b858d;
  border-bottom: 1px solid #eee6dc !important;
  padding: 14px 18px;
}

.plc-table-v2 tbody td{
  padding: 14px 18px;
  border-top: 1px solid #f1ece4 !important;
  color:#2c3e46;
  font-size: 13px;
}

.plc-variety-link{
  color:#0b3a46;
  font-weight: 700;
  text-decoration:none;
}

.plc-variety-link:hover{ text-decoration:underline; }

.plc-status{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.plc-status-active{
  background:#e8f7ea;
  color:#2b8a3e;
}

.plc-status-inactive{
  background:#f1f3f5;
  color:#6c757d;
}

.plc-export-row{
  display:flex;
  justify-content:flex-end;
  margin-top: 18px;
}

.plc-export-btn{
  background:#0b3a46;
  color:#fff;
  border:none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  opacity: .9;
}

/* Right title in top teal header */
.plc-topbar-right{
  color:#fff;
  font-weight:600;
  opacity:.95;
}

.plc-topbar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-right: 6px;
}


/* Entries page spacing matches figma */
.plc-entries-wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.plc-entries-topbar{
  margin-top: 18px;
}

.plc-entries-header{
  margin-top: 10px;
}

.plc-entries-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
}

/* Card surface inner padding like figma */
.plc-card-surface-head{
  padding: 14px 18px;
}

.plc-table-v2 thead th{
  padding: 12px 18px;
}

.plc-table-v2 tbody td{
  padding: 14px 18px;
}
.plc-export-btn{
  height:44px;
  min-width:140px;
  border-radius:10px;
}
/* Make main content span full width of viewport (with padding) */
.plc-container{
  width: 100%;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Ensure table containers can expand fully */
.plc-table-wrap,
.table-responsive,
.card {
  width: 100%;
}
/* Header right stack like Figma */
.plc-actions-stack{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Total Entries pill (navy like navbar) */
.plc-total-pill-dark{
  background: #0b3a52;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  min-width: 140px;
  text-align: center;
}

/* Add variety (orange) */
.plc-btn-add{
  background: #f28c28;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}

.plc-btn-add:hover{ filter: brightness(0.95); color:#fff; }

/* Export bottom-right */
.plc-export-row{
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.plc-btn-export{
  background: #F18D00;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}

.plc-btn-export:disabled{
  opacity: 1;
  background: #F18D00;
  color:#fff;
}
/* Modal look */
.plc-modal .modal-content{
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.plc-modal .modal-header{
  border-bottom: 0;
  padding: 14px 18px 10px;
}

.plc-modal-title{
  font-weight: 700;
  color: #f28c28;
  font-size: 15px;
}

.plc-modal-section-title{
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plc-modal-divider{
  height: 2px;
  background: #f28c28;
  border-radius: 2px;
  margin: 6px 0 14px;
  opacity: .9;
}

.plc-modal .form-label{
  font-size: 11px;
  color: #1f2a33;
  font-weight: 600;
  margin-bottom: 4px;
}

.plc-modal .form-control{
  border-radius: 8px;
  height: 34px;
  font-size: 13px;
}

.plc-modal-hint{
  font-size: 11px;
  color: #6b7280;
  margin-top: 14px;
}

.plc-modal .modal-footer{
  border-top: 0;
  padding: 14px 18px 18px;
}

.plc-btn-cancel{
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 12px;
}

.plc-btn-addvar{
  background: #f28c28;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
}

/* 
   EDIT PAGES
*/

.plc-edit-wrap {
  padding-top: 18px;
  padding-bottom: 40px;
}

/* top action row */
.plc-edit-toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 6px;
}

.plc-btn-save{
  background:#0b3a52;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:700;
  padding: 8px 16px;
  font-size: 12px;
}

.plc-btn-save:hover{ opacity:.92; }

/* orange header band */
.plc-orange-band{
  background:#f28c28;
  border-radius:10px;
  padding: 14px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-top: 10px;
}

.plc-orange-left .plc-variety-title{
  font-size: 20px;
  font-weight: 800;
  color:#fff;
  line-height: 1.1;
}

.plc-orange-left .plc-variety-sub{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.plc-orange-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.plc-btn-pill-light{
  background:#fff;
  border:none;
  color:#0b3a52;
  border-radius:10px;
  font-weight:700;
  padding: 7px 12px;
  font-size: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* tabs */
/* Desktop/tablet: */
.plc-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  width: 100%;
  margin: 12px auto 0;
  padding: 0 16px 8px; 
  border-bottom: 1px solid #e6e1da;
}

/* Make tabs behave nicely */
.plc-tab {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #0b2d3a;
  text-decoration: none;
  white-space: nowrap;
}

/* Active underline */
.plc-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  background-color: #f7941d;
  border-radius: 2px;
}

/* ---- Small screens: "collapsible" behavior via horizontal scroll ---- */
@media (max-width: 992px) {
  .plc-tabs {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox hide scrollbar */
  }

  .plc-tabs::-webkit-scrollbar {
    display: none;                   /* Chrome/Safari hide scrollbar */
  }

  .plc-tabs {
    mask-image: linear-gradient(to right,
      transparent 0,
      #000 24px,
      #000 calc(100% - 24px),
      transparent 100%);
  }
}

/* Extra small screens: tighter spacing */
@media (max-width: 576px) {
  .plc-tabs {
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .plc-tab {
    font-size: 13px;
  }
}


/* white card surface */
.plc-detail-card{
  margin-top: 14px;
  border:1px solid #e5e7eb;
  border-radius:10px;
}

.plc-detail-card .card-body{
  padding: 16px;
}

/* section headers and orange line */
.plc-section-title{
  font-weight: 800;
  font-size: 12px;
  color:#111827;
  margin-top: 6px;
}

.plc-section-divider{
  height:2px;
  background:#f28c28;
  border-radius: 2px;
  margin: 6px 0 14px;
}
.plc-form .form-label{
  font-size: 11px;
  font-weight: 700;
  color:#111827;
  margin-bottom: 6px;
}

.plc-form .form-control,
.plc-form .form-select,
.plc-form textarea{
  border-radius: 8px;
  border:1px solid #e5e7eb;
  font-size: 12px;
  padding: 9px 10px;
}

.plc-form .form-control:focus,
.plc-form .form-select:focus,
.plc-form textarea:focus{
  border-color:#f28c28;
  box-shadow: 0 0 0 .15rem rgba(242,140,40,.15);
}

/* small helper link */
.plc-add-link{
  color:#0b3a52;
  font-weight:800;
  font-size: 12px;
  text-decoration:none;
}

/* Planting Programs - Edit  */
.plc-pp-list { margin-top: 6px; }

.plc-pp-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
  border-top:1px solid #eef0f2;
}
.plc-pp-row:first-child{ border-top:0; padding-top:8px; }

.plc-pp-left{ flex: 1 1 auto; min-width: 340px; }
.plc-pp-title{ font-weight:700; font-size:14px; color:#0b2239; }
.plc-pp-sub{ font-size:12px; color:#6c7a89; margin-top:2px; }
.plc-pp-hint{ font-size:12px; color:#9aa6b2; margin-top:10px; }

.plc-pp-right{
  flex: 0 0 auto;
  display:flex;
  justify-content:flex-end;
}

.plc-pp-form{
  margin-left:auto; 
  display:flex;
  align-items:center;
  gap:12px;
}

.plc-pp-select-sm{ width: 160px; }

.plc-pp-addbtn{
  background:#f28c00;
  border:1px solid #f28c00;
  color:#fff;
  font-weight:600;
  padding:10px 14px;
  border-radius:8px;
  white-space:nowrap;
}
.plc-pp-addbtn:hover{
  background:#e57f00;
  border-color:#e57f00;
  color:#fff;
}

/* Optional configured list styling */
.plc-pp-items { display:flex; flex-direction:column; gap:8px; }
.plc-pp-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border:1px solid #eef0f2;
  border-radius:8px;
  background:#fff;
}
.plc-pp-item-name{ font-size:13px; font-weight:600; color:#0b2239; flex:1; }
.plc-pp-item-type{ font-size:12px; color:#6c7a89; width:100px; text-align:left; }
.plc-pp-item-remove{ margin-left:auto; }

.plc-orange-header {
    background: #f28c00;
    color: #ffffff;
    padding: 24px 32px;
    border-radius: 12px;
}

/* top row */
.plc-orange-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* save button */
.plc-btn-save {
    background:  #f28c00;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
}

/* title */
.plc-orange-title {
    font-size: 22px;
    font-weight: 700;
}

/* subtitle */
.plc-orange-sub {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.95;
}
