/* ======================================================
TRIPWIX PROPERTY RATES TOOL
FINAL CLEAN style.css
====================================================== */

:root{
  /* Tripwix Brand */
  --tw-green:#1FB796;
  --tw-green-dark:#18a989;
  --tw-dark:#163245;
  --tw-secondary:#00848B;
  --tw-bronze:#8D7142;
  --tw-warning:#FB5740;

  /* Light mode softened */
  --tw-bg:#F2F7F6;
  --tw-panel:#F8FCFB;
  --tw-panel-soft:#EEF6F4;
  --tw-border:#CFE4DE;
  --tw-text:#163245;
  --tw-muted:#536B76;
  --tw-input:#FCFEFD;
  --tw-input-soft:#EEF8F5;

  --shadow:0 14px 36px rgba(22,50,69,.08);
}

/* DARK VARIABLES */
body.dark-mode{
  --tw-bg:#041018;
  --tw-panel:#092333;
  --tw-panel-soft:#0b2b3d;
  --tw-border:rgba(255,255,255,.10);
  --tw-text:#f4f7fb;
  --tw-muted:#9fb3c8;
  --shadow:0 18px 45px rgba(0,0,0,.35);
}

/* RESET */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  min-height:100vh;
  padding:16px clamp(16px,3vw,42px);
  font-size:14px;
  color:var(--tw-text);
  background:
    radial-gradient(circle at top left,rgba(31,183,150,.08),transparent 30%),
    linear-gradient(180deg,#F7FBFA 0%,#EEF5F3 100%);
}

body.dark-mode{
  background:
    radial-gradient(circle at top left,rgba(31,183,150,.16),transparent 34%),
    linear-gradient(180deg,#041018 0%,#061a26 100%);
}

main{
  display:flex;
  flex-direction:column;
  gap:0;
}

/* HERO */
header,
main,
footer{
  width:100%;
  max-width:1480px;
  margin-left:auto;
  margin-right:auto;
}

header{ margin-bottom:18px; }

.hero{
  position:relative;
  min-height:430px;
  border-radius:32px;
  padding:34px 42px 60px;
  overflow:hidden;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  background:
    linear-gradient(135deg,rgba(6,24,36,.82),rgba(31,183,150,.45)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
}

body.dark-mode .hero{
  background:
    linear-gradient(135deg,rgba(5,20,30,.9),rgba(12,91,77,.56)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
}

.topbar{
  position:relative;
  z-index:3;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:44px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:18px;
}

.logo-wrap img{
  height:72px;
  width:auto;
  opacity:1;
  filter:none;
}

.logo-wrap span,
.logo-text{
  display:none!important;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:12px 22px;
  background:rgba(255,255,255,.22);
  color:white;
  font-weight:900;
  font-size:15px;
  backdrop-filter:blur(10px);
}

.hero-content{ max-width:760px; }

.hero h1,
.hero-content h1{
  font-size:64px!important;
  line-height:.95!important;
  letter-spacing:-2px;
  max-width:720px;
  margin-bottom:24px;
  font-weight:900;
  color:white;
}

.hero p,
.hero-content p{
  font-size:18px!important;
  line-height:1.45;
  max-width:820px;
  margin-bottom:28px;
  color:rgba(255,255,255,.96);
}

.hero .btn,
.hero-content .btn{
  width:max-content;
  padding:15px 32px;
  font-size:16px;
}

.theme-switch{
  position:absolute;
  right:28px;
  bottom:24px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  padding:8px 12px 8px 8px;
  background:rgba(255,255,255,.20);
  color:white;
  font-weight:900;
  font-size:.82rem;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(14px);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  max-width:calc(100% - 48px);
  transition:background .18s ease,border-color .18s ease,transform .08s ease;
}

.theme-switch:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.28);
}

.theme-switch-track{
  position:relative;
  display:inline-flex;
  width:42px;
  height:24px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  box-shadow:inset 0 0 0 1px rgba(22,50,69,.12);
  flex:0 0 auto;
}

.theme-switch-thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:var(--tw-green);
  box-shadow:0 3px 8px rgba(22,50,69,.24);
  transition:transform .18s ease,background .18s ease;
}

body.dark-mode .theme-switch{
  background:rgba(4,16,24,.54);
  border-color:rgba(255,255,255,.22);
}

body.dark-mode .theme-switch-track{
  background:rgba(255,255,255,.18);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}

body.dark-mode .theme-switch-thumb{
  transform:translateX(18px);
  background:#fff;
}

/* PANELS / SECTIONS */
.panel{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border:1px solid var(--tw-border);
  border-radius:18px;
  padding:16px 20px;
  margin:0 0 14px 0;
  box-shadow:var(--shadow);
  color:var(--tw-text);
}

body.dark-mode .panel{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.section-title h2{
  font-size:1.35rem;
  font-weight:900;
  line-height:1.1;
  color:var(--tw-text);
}

.field-help{
  display:block;
  margin-top:4px;
  color:var(--tw-muted);
  font-size:.70rem;
  font-weight:700;
  line-height:1.15;
  opacity:.82;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:var(--tw-green);
  color:white;
  padding:11px 18px;
  border-radius:999px;
  font-weight:900;
  font-size:.88rem;
  cursor:pointer;
  text-decoration:none;
  transition:transform .08s ease,background .18s ease,box-shadow .18s ease;
  box-shadow:0 10px 22px rgba(31,183,150,.18);
  white-space:nowrap;
}

.btn:hover{
  transform:translateY(-1px);
  background:var(--tw-green-dark);
}

.btn:active{ transform:scale(.97); }

.btn.ghost{
  background:#fff;
  color:#163245;
  border:1px solid #cbdde5;
  box-shadow:none;
}

body.dark-mode .btn.ghost{
  background:transparent;
  color:#f4f7fb;
  border:1px solid rgba(255,255,255,.16);
}

.btn.danger{
  background:rgba(255,90,103,.13);
  color:#b91c1c;
  border:1px solid rgba(255,90,103,.28);
  box-shadow:none;
}

body.dark-mode .btn.danger{ color:#ffb4bc; }

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* STICKY SAVE BAR */
.sticky-save-bar{
  position:sticky;
  top:12px;
  z-index:100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:linear-gradient(90deg,var(--tw-panel),var(--tw-panel-soft));
  border:1px solid var(--tw-border);
  border-radius:20px;
  padding:14px 18px;
  box-shadow:var(--shadow);
  color:var(--tw-text);
}

body.dark-mode .sticky-save-bar{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
}

.save-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--tw-text);
  font-weight:900;
  font-size:.86rem;
}

.status-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--tw-green);
}

/* FORMS */
.grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  width:100%;
}

.field label{
  font-size:.78rem;
  font-weight:900;
  color:var(--tw-text);
  margin-bottom:4px;
}

input,
select,
textarea{
  width:100%;
  min-width:0;
  max-width:100%;
  background:var(--tw-input);
  border:1px solid #B9D9D0;
  color:var(--tw-text);
  border-radius:14px;
  padding:11px 13px;
  font-size:.88rem;
  outline:none;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea{
  background:#0d3044;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--tw-green);
  box-shadow:0 0 0 3px rgba(31,183,150,.12);
}

textarea{
  min-height:110px;
  resize:vertical;
}

.property-create{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:12px;
  align-items:end;
}

/* DASHBOARD / KPI */
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.dashboard-card,
.kpi{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border:1px solid var(--tw-border);
  border-radius:16px;
  padding:16px;
  min-height:88px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:var(--tw-text);
}

body.dark-mode .dashboard-card,
body.dark-mode .kpi{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border-color:var(--tw-border);
}

.dashboard-card span,
.kpi span{
  display:block;
  color:var(--tw-muted);
  font-size:.74rem;
  font-weight:900;
  margin-bottom:8px;
}

.dashboard-card strong,
.kpi strong{
  display:block;
  font-size:1.45rem;
  font-weight:900;
  color:var(--tw-text);
}

.kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

/* NOTES / FORMULAS */
.note,
.formula-box{
  background:#E4F4F0;
  border-left:5px solid var(--tw-green);
  border-radius:14px;
  padding:14px 16px;
  color:var(--tw-text);
  line-height:1.45;
  font-size:.86rem;
  margin-bottom:16px;
}

body.dark-mode .note,
body.dark-mode .formula-box{
  background:#0d3044;
  color:#f4f7fb;
}

/* SEASONAL RATES TABLE */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}

.toolbar input{
  flex:1;
  min-width:260px;
}

.toolbar select{
  flex:0 0 220px;
}

#rate-table .toolbar .btn{
  display:inline-flex;
  min-width:95px;
  white-space:nowrap;
}

#rate-table .section-title{ align-items:center; }
#rate-table .actions{ margin-left:auto; }


.table-scroll{
  max-height:620px;
  overflow:auto;
  border:1px solid var(--tw-border);
  border-radius:18px;
}

table{
  width:100%;
  min-width:980px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  font-size:.82rem;
}

thead th{
  position:sticky;
  top:0;
  z-index:20;
  background:#163245;
  color:white;
  text-align:left;
  padding:12px 10px;
  font-size:.78rem;
  white-space:nowrap;
}

tbody td{
  background:#F6FAF9;
  border-top:1px solid #dcebe7;
  padding:10px 8px;
  vertical-align:middle;
  white-space:nowrap;
  color:#163245;
}

body.dark-mode tbody td{
  background:#092333;
  border-top:1px solid rgba(255,255,255,.08);
  color:#f4f7fb;
}

tbody tr:hover td{ background:#E6F4F1; }
body.dark-mode tbody tr:hover td{ background:#103247; }

#rate-table td input,
#rate-table td select{
  width:100%;
  min-width:90px;
  max-width:none;
  padding:9px 10px;
  font-size:.78rem;
  border-radius:13px;
}

#rate-table td:nth-child(5) input{
  background:#E8F7F3;
  border:1px solid #8dd8c5;
  font-weight:800;
}

body.dark-mode #rate-table td:nth-child(5) input{
  background:#0d3044;
  border-color:#1FB796;
}

.ntcValue{
  display:block;
  font-weight:900;
  color:var(--tw-text);
}

.ntcColumn small{ display:none; }

td .btn{
  padding:8px 12px;
  font-size:.75rem;
}

td .btn.ghost{
  color:#163245;
  border:1px solid #cbdde5;
  background:#fff;
}

body.dark-mode td .btn.ghost{
  color:#f4f7fb;
  background:transparent;
  border-color:rgba(255,255,255,.16);
}


/* SAVED PROPERTIES */

.property-search-bar{
  display:grid;
  grid-template-columns:1.8fr 150px 200px 200px;
  gap:14px;
  align-items:center;
  margin-top:16px;
}

.property-search-bar .btn{
  height:44px;
  padding:0 10px;
  border-radius:999px;
  font-weight:900;
  width:100%;
  min-width:0;
  justify-self:stretch;
}

.property-search-bar input,
.property-search-bar select{
  height:44px;
  width:100%;
}

.property-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:14px;
  margin-top:18px;
}

.property-card{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border:1px solid var(--tw-border);
  border-radius:18px;
  padding:16px;
  color:var(--tw-text);
}

body.dark-mode .property-card{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
}

.property-card strong{
  display:block;
  font-size:1rem;
  margin-bottom:8px;
}

.property-meta{
  color:var(--tw-muted);
  line-height:1.5;
  margin-bottom:14px;
  font-size:.86rem;
}

.property-card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* COLLAPSE / DRAWER / HISTORY */
.collapsible .collapsible-content{ display:none; }
.collapsible.open .collapsible-content{ display:block; }
.collapsible-header{ cursor:pointer; }

.collapse-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(31,183,150,.10);
  font-size:1rem;
  font-weight:900;
  transition:.2s;
}

.collapsible.open .collapse-icon{ transform:rotate(180deg); }

.drawer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  justify-content:flex-end;
  z-index:999;
}

.drawer.open{ display:flex; }

.drawer-panel{
  width:min(520px,95vw);
  height:100%;
  background:var(--tw-panel);
  padding:24px;
  overflow-y:auto;
  box-shadow:-20px 0 60px rgba(0,0,0,.3);
}

.history-list,
.activity-list{
  display:grid;
  gap:12px;
}

.history-card,
.activity-item{
  background:var(--tw-panel-soft);
  border:1px solid var(--tw-border);
  border-radius:16px;
  padding:14px;
}

/* GLOSSARY */
#glossarySection{ width:100%; }
#glossarySection .collapsible-content{ width:100%; }

.glossary-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.glossary-card{
  width:100%;
  min-width:0;
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border:1px solid var(--tw-border);
  border-radius:18px;
  padding:18px 20px;
  color:var(--tw-text);
}

body.dark-mode .glossary-card{
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  border-color:var(--tw-border);
  color:#f4f7fb;
}

.glossary-card strong{
  display:block;
  font-size:1rem;
  margin-bottom:10px;
  color:inherit;
}

.glossary-card p{
  margin:0 0 10px;
  line-height:1.45;
  color:var(--tw-muted);
}

.glossary-card small{
  display:block;
  color:var(--tw-muted);
  line-height:1.4;
  font-weight:700;
}

/* VALIDATION / FOOTER */
.missing-field{
  border-color:var(--tw-green)!important;
  box-shadow:0 0 0 3px rgba(31,183,150,.12)!important;
  background:var(--tw-input)!important;
}

body.dark-mode .missing-field{
  background:#0d3044!important;
}

footer{
  text-align:center;
  color:var(--tw-muted);
  padding:32px 0 8px;
}

/* RESPONSIVE */
@media(max-width:1300px){
  .glossary-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:1200px){
  .grid,
  .dashboard-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:900px){
  .property-create,
  .property-search-bar,
  .toolbar{ grid-template-columns:1fr; }

  .grid,
  .dashboard-grid,
  .kpis{ grid-template-columns:1fr; }

  .glossary-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }

  .section-title,
  .sticky-save-bar{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero{
    padding:26px;
    min-height:360px;
  }

  .topbar{ margin-bottom:32px; }

  .logo-wrap img{ height:54px; }

  .hero h1,
  .hero-content h1{
    font-size:42px!important;
    max-width:100%;
  }

  .hero p,
  .hero-content p{
    font-size:16px!important;
  }
}

@media(max-width:600px){
  body{ padding:8px; }
  .panel{ padding:18px; }
  .glossary-grid{ grid-template-columns:1fr; }
}

.row-error td,
.overlap-row td{
  background:rgba(255,90,90,.12)!important;
  border-top:1px solid rgba(255,90,90,.45)!important;
  border-bottom:1px solid rgba(255,90,90,.45)!important;
}


/* ======================================================
RATES TABLE VISUAL 
====================================================== */
#rate-table .table-scroll{
  width:100%;
  max-height:620px;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border-radius:18px;
}

#rate-table table.rates-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}

#rate-table .rates-table th,
#rate-table .rates-table td{
  padding:10px 8px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}

#rate-table .ntcColumn{
  text-align:left!important;
}

#rate-table .actions-cell{
  text-align:center!important;
  white-space:nowrap!important;
}

#rate-table .actions-cell .btn{
  padding:6px 8px!important;
  font-size:.70rem!important;
  margin:0 2px!important;
}

.custom-alert{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.custom-alert.hidden{
  display:none;
}

.custom-alert-box{
  width:420px;
  background:linear-gradient(180deg,var(--tw-panel),var(--tw-panel-soft));
  color:var(--tw-text);
  border-radius:20px;
  padding:28px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  border:1px solid var(--tw-border);
}

.custom-alert-box h3{
  margin-bottom:14px;
  color:var(--tw-green);
  font-weight:900;
}

.custom-alert-box p{
  line-height:1.5;
  margin-bottom:20px;
}

.custom-alert-box button{
  background:var(--tw-green);
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
}

.new-property-toolbar .btn{
  margin-top:14px;
}

/* ======================================================
FIX SEASONAL RATES TABLE - FINAL RESPONSIVE
====================================================== */

#rate-table .table-scroll{
  width:100%;
  overflow-x:auto!important;
  overflow-y:auto!important;
  max-height:620px;
}

#rate-table table.rates-table{
  width:100%!important;
  min-width:1120px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}

#rate-table col:nth-child(1){width:13%!important;}
#rate-table col:nth-child(2){width:13%!important;}
#rate-table col:nth-child(3){width:13%!important;}
#rate-table col:nth-child(4){width:10%!important;}
#rate-table col:nth-child(5){width:20%!important;}
#rate-table col:nth-child(6){width:14%!important;}
#rate-table col:nth-child(7){width:17%!important;}

#rate-table .rates-table th,
#rate-table .rates-table td{
  white-space:nowrap!important;
  vertical-align:middle!important;
}

#rate-table .ntcColumn{
  text-align:left!important;
}

#rate-table .actions-cell{
  text-align:center!important;
  white-space:nowrap!important;
}

#rate-table .actions-header{
  text-align:center!important;
}

#rate-table .rate-row-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  width:100%;
}

#rate-table .actions-cell .btn{
  display:inline-flex!important;
  min-width:42px!important;
  padding:6px 8px!important;
  margin:0 2px!important;
}

/* GAP ROW HIGHLIGHT */
#rate-table tr.gap-row td{
  background:#fff1e8!important;
  border-top:2px solid #FB5740!important;
  border-bottom:2px solid #FB5740!important;
}

body.dark-mode #rate-table tr.gap-row td{
  background:rgba(251,87,64,.18)!important;
}

#rate-table tr.row-error td{
  background:#ffecec!important;
  border-top:2px solid #FB5740!important;
  border-bottom:2px solid #FB5740!important;
}

#rate-table tr.overlap-row td{
  background:#fff4d6!important;
  border-top:2px solid #E0A800!important;
  border-bottom:2px solid #E0A800!important;
}

body.dark-mode #rate-table tr.row-error td{
  background:rgba(251,87,64,.18)!important;
}

body.dark-mode #rate-table tr.overlap-row td{
  background:rgba(224,168,0,.18)!important;
}

/* NEW RATE ROW HIGHLIGHT */
#rate-table tr.new-rate-row td{
  background:#e8f8f4!important;
  border-top:2px solid #1FB796!important;
  border-bottom:2px solid #1FB796!important;
  box-shadow:inset 0 0 0 1px rgba(31,183,150,.20);
}

#rate-table tr.new-rate-row td:first-child{
  border-left:4px solid #1FB796!important;
}

body.dark-mode #rate-table tr.new-rate-row td{
  background:rgba(31,183,150,.18)!important;
  box-shadow:inset 0 0 0 1px rgba(31,183,150,.28);
}

/* ACTIVE PROPERTY BADGE */

.active-property-badge{
  display:flex;
  align-items:center;
  padding:10px 18px;
  border-radius:14px;
  background:#E8F7F3;
  color:#163245;
  font-weight:800;
  font-size:.92rem;

  border:2px solid #1FB796;

  max-width:420px;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  box-shadow:0 0 0 4px rgba(31,183,150,.08);
}

body.dark-mode .active-property-badge{
  background:#0f2f40;
  border:2px solid #1FB796;
  color:#fff;

  box-shadow:0 0 0 4px rgba(31,183,150,.12);
}

.active-property-badge.hidden{
  display:none;
}

/* FORCE UNIFORM SPACING */
.panel:last-child{
  margin-bottom:0;
}

section.panel,
div.panel{
  margin-top:0!important;
}

